00:11:27 | FromDiscord | <leorize> sliding sync works on matrix.org if you're using that homeserver |
00:11:27 | FromDiscord | <leorize> works best with element-x client for mobile |
00:11:27 | FromDiscord | <leorize> that shit is unbelievably fast |
00:11:28 | FromDiscord | <Elegantbeef> It's also on their electron client right? |
00:11:28 | FromDiscord | <Elegantbeef> To be the anti blizzard "I do not have phone" |
00:11:28 | FromDiscord | <leorize> the impl for web is a lil rusty afaik |
00:11:30 | FromDiscord | <leorize> there was a time facebook and google both talked xmpp and you can message between them↵(@JJ) |
00:11:31 | FromDiscord | <leorize> i do miss that time |
00:15:00 | FromDiscord | <Chronos [She/Her]> I was actually trying to read the spec for XMPP but it's overwhelming so I just turned on my PC and lost myself in TikTok lol |
00:15:13 | FromDiscord | <Elegantbeef> This is your mind on tiktok |
00:15:42 | FromDiscord | <Chronos [She/Her]> In offtopic, just said how it was evil lol |
00:15:56 | FromDiscord | <Chronos [She/Her]> But nah, I just struggle to focus with verbose text |
00:16:20 | FromDiscord | <Chronos [She/Her]> Obviously it's a lot of information they have to lay out in a specific way so that there's no misinterpretation, but it's still very overwhelming |
00:17:55 | FromDiscord | <Chronos [She/Her]> Combine that with my non-technical and non-functional brain, and you get a recipe of pain lol |
00:18:06 | FromDiscord | <JJ> In reply to @leorize "there was a time": and then google eee'd google talk 😔 |
00:19:18 | FromDiscord | <JJ> In reply to @leorize "sliding sync works on": hm i'll have to try it again. i've an old matrix.org account i can pull up. though it does crack me up how the matrix clients have gone from riot --> riot-x/element --> element-x. just one more total rewrite i swear |
00:19:59 | FromDiscord | <Chronos [She/Her]> Since I want to eventually try and use my chat application for something, I do need to study some actual chat protocols and stuff before I get there |
00:20:08 | FromDiscord | <Chronos [She/Her]> Wish I could just get the information zapped into my brain lol |
00:21:18 | FromDiscord | <JJ> also check out https://modern.ircdocs.horse/ and https://ircv3.net/ @Chronos [She/Her] |
00:22:09 | FromDiscord | <Chronos [She/Her]> Thanks JJ! |
00:26:02 | * | krux02 quit (Remote host closed the connection) |
00:29:08 | FromDiscord | <leorize> while not federated, zulip is a kind of forum/chat hybrid that you might want to look at |
00:32:42 | FromDiscord | <JJ> i wish more languages used zulip 😔 😔 |
00:32:51 | FromDiscord | <JJ> all the proof assistants do which is neat |
00:38:04 | FromDiscord | <leorize> isn't one of the issue is that you have to self-host zulip? |
00:41:38 | FromDiscord | <JJ> nah, they'll host one for you for free with bad search, or you can pay per-user, slack-style |
00:42:18 | FromDiscord | <JJ> but also you can self-host & it's fully open-source, unlike mattermost et al |
00:42:35 | FromDiscord | <JJ> i think all the proof assistant ones have a sponsor deal or something along those lines too |
01:25:20 | * | disso-peach joined #nim |
04:19:59 | * | cm_ joined #nim |
04:20:04 | * | cm quit (Ping timeout: 245 seconds) |
04:20:20 | * | cm_ is now known as cm |
05:17:23 | FromDiscord | <xtrayambak> Nim could really use an `--explain` flag in my opinion |
05:17:56 | FromDiscord | <xtrayambak> Without a LSP server, it's a nightmare to get stuff right since you have to compile, compile and compile until you've gotten the arguments right, or you have to have a browser open with the Nim docs |
05:18:55 | FromDiscord | <user2m> Any good PDF libraries for doing basic editing? Just looking to cut pages out of a PDF and store the text in memory |
05:19:06 | FromDiscord | <xtrayambak> have you tried nimPDF? |
05:19:13 | FromDiscord | <xtrayambak> https://github.com/jangko/nimPDF |
05:19:19 | FromDiscord | <xtrayambak> nvm |
05:19:22 | FromDiscord | <xtrayambak> it's another URL |
05:19:25 | FromDiscord | <xtrayambak> just search it via nimble |
05:19:52 | FromDiscord | <xtrayambak> https://github.com/jangko/nimpdf |
05:20:10 | FromDiscord | <xtrayambak> there's also libharu bindings (whatever those do) https://github.com/z-kk/libharu |
05:24:37 | FromDiscord | <user2m> I haven't tried an nimpdf, but it was the first thing that came up in my search, but it looks like it's primarily for creating PDFs unless I'm mistaken |
05:25:10 | FromDiscord | <user2m> I'll check out libharu |
06:17:32 | * | nyeaa4928423010 quit (Ping timeout: 258 seconds) |
06:33:56 | FromDiscord | <that_dude.> In reply to @xtrayambak "Nim could really use": I do kinda second this. It would be cool if errors gave some addition resources such as common issues or links to additional resources |
07:02:56 | FromDiscord | <Zoom> use pdftk to cut pages. Extracting text from PDFs is a pain, do you control the input?↵(@user2m) |
07:47:14 | * | mahlon quit (Ping timeout: 258 seconds) |
07:53:04 | * | mahlon joined #nim |
09:04:08 | FromDiscord | <Phil> Hmm anyone have an idea on how you can detect whether a type is an object variant without using a macro? |
09:39:19 | FromDiscord | <Elegantbeef> @Phil https://play.nim-lang.org/#ix=4KJC |
09:40:06 | FromDiscord | <Elegantbeef> Remove the cruft call it a win |
09:58:40 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=4KJI |
09:58:44 | FromDiscord | <Phil> In reply to @Elegantbeef "<@180601887916163073> https://play.nim-lang.org/#ix": Okay I will admit that is cool |
09:59:58 | * | neceve joined #nim |
10:13:50 | FromDiscord | <Phil> In reply to @Elegantbeef "<@180601887916163073> https://play.nim-lang.org/#ix": Is the first line even necessary? |
10:14:07 | FromDiscord | <Phil> I ran it on 1.6.12 and 2.0 and both worked without it |
10:16:48 | * | gooba_ joined #nim |
10:17:48 | FromDiscord | <Phil> Which I don't get, how the hell does this work without the first line |
10:18:37 | * | gooba quit (Ping timeout: 255 seconds) |
10:45:58 | FromDiscord | <Phil> I just triple realized how nuts that concept is given that it's a generic over a group of types |
10:46:40 | FromDiscord | <jaar23> https://github.com/nais314/stui↵Hi @enthus1ast is this tui repo still being maintaining? I'm planning to build some tui application and seeing this. 👍 |
10:53:55 | FromDiscord | <cephonaltera> wait you can call procs in concept definitions? |
10:54:25 | FromDiscord | <Chronos [She/Her]> If they can run at compile time, yeah |
10:54:29 | FromDiscord | <Chronos [She/Her]> I think so, at least |
11:14:11 | FromDiscord | <cephonaltera> man i can never figure out how concepts want me to describe something |
11:16:15 | FromDiscord | <cephonaltera> i guess its just not the intended usecase https://media.discordapp.net/attachments/371759389889003532/1170682988732895243/image.png?ex=6559ee7e&is=6547797e&hm=bd99465f46d5b6acc45db3a603bca40a649d8733a658cc05e5dea3209a68c609& |
11:19:55 | FromDiscord | <cephonaltera> sent a code paste, see https://play.nim-lang.org/#ix=4KK2 |
11:22:03 | FromDiscord | <that_dude.> sent a code paste, see https://play.nim-lang.org/#ix=4KK3 |
11:22:04 | FromDiscord | <that_dude.> I couldn't get the static part to work |
11:22:07 | FromDiscord | <demotomohiro> In reply to @cephonaltera "man i can never": concept is somekind of type class.↵Your Balls can says I can do `x + 1 > 3` with Balls.↵But you have to implement `+` proc that takes Balls yourself. |
11:22:38 | FromDiscord | <that_dude.> (edit) |
11:23:09 | FromDiscord | <that_dude.> Concepts don't actually do any logic. They just help constrain generic arguments |
11:27:33 | FromDiscord | <cephonaltera> well this does logic, its just compile time https://media.discordapp.net/attachments/371759389889003532/1170685830466113636/image.png?ex=6559f124&is=65477c24&hm=b9048cb67cb79c2621f8d9a4fa28b2d9d21914ee8f565886659c35436c359acb& |
11:31:18 | FromDiscord | <ezquerra> Is there a way to view the `nim code` that is the result of all the macro and template substitutions? |
11:31:49 | FromDiscord | <ezquerra> In order to debug macros and templates... |
11:36:14 | FromDiscord | <demotomohiro> In reply to @ezquerra "Is there a way": https://nim-lang.org/docs/macros.html#expandMacros.m,typed |
13:07:55 | NimEventer | New thread by geohuz: Error running nim postgresql client os macos, see https://forum.nim-lang.org/t/10606 |
13:10:25 | FromDiscord | <ezquerra> In reply to @demotomohiro "https://nim-lang.org/docs/macros.html#expandMacros.": Thanks. Is there something similar for templates? |
13:11:36 | FromDiscord | <ezquerra> Ideally what I’d like to see is Nim code that only has procs and funcs, no macros or pragmas since all would have been expanded |
13:26:56 | FromDiscord | <demotomohiro> Doesn't `expandMacro` work to template? |
13:31:01 | FromDiscord | <summarity> How can I access an `extern` global variable from a C compilation unit in Nim? E.g. file.c declared `extern void something;` and is compiled via `{. compile: "file.c" .}` |
13:32:05 | FromDiscord | <demotomohiro> `expandMacro` not only expand macros and templates but also constant expressions:↵https://play.nim-lang.org/#ix=4KKw |
13:35:45 | FromDiscord | <demotomohiro> In reply to @summarity "How can I access": If you have header file `file.h`, it is probably `let something{.header: "file.h".}: pointer` |
13:36:52 | FromDiscord | <demotomohiro> or `var something{.header: "file.h".}: pointer ` if you want to change the variable. |
13:47:23 | * | CO2 quit (Quit: WeeChat 4.1.1) |
14:00:51 | NimEventer | New question by vijay shankar: Opening File in Nim, see https://stackoverflow.com/questions/77426194/opening-file-in-nim |
14:20:37 | * | CO2 joined #nim |
14:30:14 | * | def- quit (Quit: -) |
14:31:26 | * | def- joined #nim |
14:33:05 | * | gooba_ quit (Quit: Leaving) |
14:33:23 | * | gooba joined #nim |
14:38:26 | FromDiscord | <kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KKO |
14:38:57 | FromDiscord | <System64 ~ Flandre Scarlet> Hi↵What is the more performant?↵Writing data in a one big buffer and writing the entire buffer on file at once? (uses more memory)↵Or Writing on a small buffer and then writing on file multiple times? (uses less memory) |
14:41:39 | FromDiscord | <kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KKQ |
14:42:03 | FromDiscord | <kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KKR |
14:42:40 | FromDiscord | <demotomohiro> In reply to @kcvinker5420 "When using operator overloading,": Use operator overloading when it makes sense rather than using alphabet name. |
14:43:11 | FromDiscord | <kcvinker5420> In reply to @demotomohiro "Use operator overloading when": Was trying to do some ugly trick |
14:43:21 | FromDiscord | <kcvinker5420> (edit) "trick" => "tricks" |
14:44:48 | FromDiscord | <demotomohiro> In reply to @sys64 "Hi What is the": It depends. iirc, Nim's file io uses buffer in default when writing to a file. |
14:47:08 | FromDiscord | <griffith1deadly> In reply to @sys64 "Hi What is the": if it server application, write to file once ↵if client application, write to file multiple |
14:48:13 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @griffith1deadly "if it server application,": What happens is I want to write a waveform↵But since my software runs natively and on Emscripten, I have 2 differents approaches : https://media.discordapp.net/attachments/371759389889003532/1170736332952326214/message.nim?ex=655a202d&is=6547ab2d&hm=e72e86db62ec388c4d184ead74d0c90535f116aa63a5b80477d2f89afc6c8e87& |
14:49:05 | FromDiscord | <Phil> Was there a simple way to check if x is one of several types? |
14:49:18 | FromDiscord | <Phil> Something like `x of [A, B]`? |
15:04:26 | FromDiscord | <treeform> In reply to @sys64 "What happens is I": Did you run into the fact that ffmpeg does not produce a "clean" .wav but ads this strange audioFormat == 65534 some sort of Microsoft header to it? https://github.com/treeform/slappy/commit/96b5b04ca4171d8524864a075e84ceac92e11ec0 |
15:06:24 | FromDiscord | <treeform> Run into this recently |
15:06:40 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @treeform "Did you run into": Weird↵But the wav I export isn't a recording, it's computed |
15:06:41 | FromDiscord | <treeform> (edit) "Run" => "Ran" |
15:07:00 | FromDiscord | <treeform> I think this is more about reading. Do you read wav as well? |
15:07:28 | FromDiscord | <System64 ~ Flandre Scarlet> No, only export |
15:07:32 | FromDiscord | <treeform> ok |
15:11:03 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @griffith1deadly "if it server application,": I can limit the buffer to 8MB, it wouldn't be that harmful for memory |
15:13:21 | FromDiscord | <System64 ~ Flandre Scarlet> Since one waveform can have up to 4096 samples↵A sample can use up to 2 bytes↵And you can export up to 1024 waveforms at once |
15:29:23 | FromDiscord | <System64 ~ Flandre Scarlet> Btw is it possible to do async with Emscripten ? |
15:48:08 | Amun-Ra | you can call sync code with async js (-sASYNCIFY) |
15:59:51 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Amun-Ra "you can call sync": The code that must run async is written in Nim and has the EMSCRIPTEN_KEEPALIVE pragma |
16:00:04 | FromDiscord | <System64 ~ Flandre Scarlet> and this code is also called from Nim |
16:02:18 | Amun-Ra | so syncify it |
16:05:43 | Amun-Ra | you can't intermix nim async and js async |
16:06:48 | * | CO2 quit (Quit: WeeChat 4.1.1) |
16:07:53 | FromDiscord | <Phil> Dangit, the Concept doesn't catch ref object variants |
16:17:49 | * | CO2 joined #nim |
16:24:24 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Amun-Ra "you can't intermix nim": No, I want Nim to call async Nim |
16:28:34 | FromDiscord | <Phil> ElegantBeef I summon thee to ask if concepts acctually work with macros because mine currently aren't↵(Trying the macro approach to figuring out whether a type is an object variant type because I can't figure out how to cover ref-object-variants |
16:28:53 | FromDiscord | <Phil> (edit) "ref-object-variants" => "ref-object-variants)" |
16:34:36 | FromDiscord | <jmgomez> In reply to @isofruit "Something like `x of": `typeof(x) is A | B ` |
16:35:09 | FromDiscord | <jmgomez> In reply to @isofruit "ElegantBeef I summon thee": they should work with macros, yes |
16:35:36 | FromDiscord | <kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KLo |
16:37:19 | FromDiscord | <jmgomez> In reply to @kcvinker5420 "I want to use": https://nim-lang.org/1.6.6/dynlib.html |
16:37:45 | FromDiscord | <kcvinker5420> Thanks @jmgomez 🙂 |
16:39:24 | FromDiscord | <demotomohiro> In reply to @kcvinker5420 "I want to use": Compile with `--clib:shellscalingapi` |
16:40:21 | FromDiscord | <kcvinker5420> Okay, But is there any ways to tell this to nim in source code ? Like the `pragma` in D ? |
16:42:37 | FromDiscord | <jmgomez> `passL` should be equivalent to what demo posted (specifying the expected name)↵https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-passl-pragma |
16:43:07 | NimEventer | New thread by stbalbach: Detect replacement/binary characters?, see https://forum.nim-lang.org/t/10607 |
16:46:16 | FromDiscord | <kcvinker5420> In reply to @demotomohiro "Compile with `--clib:shellscalingapi`": Worked with this |
16:46:22 | Amun-Ra | System64: you don't need to expose such a function then |
16:46:30 | FromDiscord | <kcvinker5420> (edit) "In reply to @demotomohiro "Compile with `--clib:shellscalingapi`": Worked with this" => "sent a code paste, see https://play.nim-lang.org/#ix=4KLu" |
16:46:46 | FromDiscord | <taperfade> heyyy |
16:46:54 | FromDiscord | <kcvinker5420> In reply to @jmgomez "`passL` should be equivalent": Let me check. Thanks |
16:46:58 | FromDiscord | <taperfade> i have a problem with memalloc |
16:47:02 | FromDiscord | <taperfade> memalloc.nim |
16:47:36 | FromDiscord | <taperfade> C:\Users\morbo\Desktop\importan\nim-2.0.0_x64\nim-2.0.0\lib\system\memalloc.nim(409, 8) Error: implementation of 'system.getFreeMem()' expected |
16:48:02 | FromDiscord | <taperfade> this is the thing causing problems https://media.discordapp.net/attachments/371759389889003532/1170766485011038348/image.png?ex=655a3c41&is=6547c741&hm=819b957dcdd05dc9ca87af6d1143a33946304b9c05fda0fc6c42f062363417b4& |
16:48:04 | FromDiscord | <taperfade> idk how to fix |
16:48:08 | FromDiscord | <taperfade> or what went wrong |
16:48:26 | FromDiscord | <user2m> In reply to @Zoom "use pdftk to cut": is pdftk a library? from my cursory google search it looks like a program |
16:50:16 | FromDiscord | <.bobbbob> whats a good library for user input like gnu readline? stdin.readline isnt cutting it |
16:50:42 | FromDiscord | <griffith1deadly> In reply to @taperfade "C:\Users\morbo\Desktop\importan\nim-2.0.0_x64\nim-2": add to compile command -d:hasAlloc |
16:50:53 | FromDiscord | <user2m> In reply to @.bobbbob "whats a good library": maybe this https://github.com/jjv360/nim-termui |
16:51:29 | FromDiscord | <taperfade> In reply to @griffith1deadly "add to compile command": to ? |
16:52:14 | Amun-Ra | taperfade: run nim with --listcmd and show complete commandline |
16:53:36 | Amun-Ra | what target are you compiling for? |
16:54:23 | FromDiscord | <taperfade> idk |
16:54:31 | FromDiscord | <taperfade> i get this error |
16:54:40 | FromDiscord | <taperfade> with just echo "hello world" |
16:54:43 | FromDiscord | <taperfade> im so confused |
16:55:20 | Amun-Ra | I'm not a windows user but I suspect that should work ootb like it does on Linux |
16:55:42 | Amun-Ra | s/that/this/ |
16:56:09 | FromDiscord | <taperfade> what |
16:56:49 | Amun-Ra | https://play.nim-lang.org/#ix=4KLA |
16:57:48 | FromDiscord | <.bobbbob> In reply to @user2m "maybe this https://github.com/jjv360/nim-termui": doesnt seem to work with nim 2.0 |
16:58:23 | FromDiscord | <taperfade> guys |
16:58:29 | FromDiscord | <taperfade> should i reinstall nim |
16:58:31 | FromDiscord | <taperfade> or smth |
16:58:33 | FromDiscord | <taperfade> like that |
16:59:15 | FromDiscord | <taperfade> https://media.discordapp.net/attachments/371759389889003532/1170769309832847401/image.png?ex=655a3ee3&is=6547c9e3&hm=0ea987e890a0dea7d0f0abb2f69c4a91f4af8affc7fea840815ade5c93b897d2& |
16:59:26 | FromDiscord | <taperfade> what does it want from me |
16:59:46 | FromDiscord | <taperfade> i feel like im trying to communicate to a ancient long forgotten god that speaks in aremaic riddles |
17:00:02 | Amun-Ra | I'd reinstall it |
17:00:37 | FromDiscord | <.bobbbob> did you delete stuff from the system library haha |
17:00:44 | FromDiscord | <taperfade> i dont think so |
17:00:50 | FromDiscord | <kcvinker5420> sent a code paste, see https://play.nim-lang.org/#ix=4KLC |
17:01:25 | FromDiscord | <taperfade> lets pray it doesnt break my c compiler again |
17:01:40 | FromDiscord | <taperfade> i wish windows would just work with coding |
17:01:42 | FromDiscord | <taperfade> i hate linux |
17:01:55 | Amun-Ra | ¯\(ツ)/¯ |
17:04:27 | FromDiscord | <Chronos [She/Her]> In reply to @sys64 "No, I want Nim": It shouldn't be any different from how it works normally in Nim, then |
17:05:03 | Amun-Ra | true, that functions shouldn't be even exposed as external |
17:05:08 | Amun-Ra | function* |
17:05:28 | FromDiscord | <taperfade> i just want to try a reverse shell script |
17:05:34 | FromDiscord | <taperfade> why does nim have to break |
17:05:38 | FromDiscord | <taperfade> big karma |
17:05:42 | FromDiscord | <taperfade> 😭 |
17:06:27 | Amun-Ra | I'm off then |
17:06:55 | FromDiscord | <taperfade> ok |
17:07:04 | FromDiscord | <taperfade> anyway |
17:07:17 | FromDiscord | <taperfade> i want to work on something other than silly malicious stuff |
17:07:26 | FromDiscord | <taperfade> so boring |
17:09:02 | FromDiscord | <Chronos [She/Her]> What if I use Nimscript as a buildscript for Java projects /j |
17:09:07 | FromDiscord | <Chronos [She/Her]> That'd be horrid but a bit funny |
17:09:33 | Amun-Ra | that'd be unorthodox |
17:11:48 | FromDiscord | <griffith1deadly> In reply to @chronos.vitaqua "What if I use": also nimble for gradle replacing |
17:12:02 | FromDiscord | <taperfade> guys please help |
17:12:06 | FromDiscord | <taperfade> what does it mean |
17:12:11 | FromDiscord | <taperfade> Error: implementation of 'system.getFreeMem()' expect |
17:12:16 | NimEventer | New thread by icebergg: Experimental: "inferGenericTypes" -- unknown experimental feature, see https://forum.nim-lang.org/t/10608 |
17:12:30 | Amun-Ra | it means your nim does not function properly |
17:12:30 | FromDiscord | <griffith1deadly> In reply to @taperfade "guys please help": reinstall your nim instance |
17:12:38 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KLG |
17:12:44 | FromDiscord | <taperfade> In reply to @griffith1deadly "reinstall your nim instance": erm |
17:12:46 | FromDiscord | <taperfade> what |
17:12:48 | FromDiscord | <Chronos [She/Her]> In reply to @griffith1deadly "also nimble for gradle": I wonder how this would even be done tbh, I'd imagine it would not integrate well without being able to compile to the JVM lol |
17:12:51 | Amun-Ra | I used make for my java projects, not any typical java rubbish |
17:13:09 | Amun-Ra | taperfade: reinstall means remove the current nim installed and install new one |
17:13:24 | FromDiscord | <taperfade> how do i delete it tho |
17:14:39 | FromDiscord | <griffith1deadly> you install nim with choosenim? |
17:14:50 | FromDiscord | <taperfade> what the flip is choosenim |
17:14:52 | FromDiscord | <taperfade> alright |
17:14:52 | FromDiscord | <taperfade> wait |
17:16:30 | FromDiscord | <Chronos [She/Her]> In reply to @Amun-Ra "I used make for": Sounds hellish, but probably better than working with Maven and Gradle lol |
17:17:23 | Amun-Ra | Chronos: it wasn't that hellish tbh, I used no external deps outside of stdlib, even making jars is pretty easy :) |
17:18:08 | FromDiscord | <taperfade> yooo it works |
17:18:09 | FromDiscord | <taperfade> thankies |
17:18:31 | FromDiscord | <Chronos [She/Her]> In reply to @Amun-Ra "Chronos: it wasn't that": ah, I assumed you used external projects lol |
17:22:16 | Amun-Ra | :) |
17:22:49 | Amun-Ra | iirc it was jdk 7… how time flies… |
17:26:11 | FromDiscord | <taperfade> how do i define a socket |
17:33:51 | FromDiscord | <taperfade> let sock:Socket = ??? |
17:36:26 | FromDiscord | <Chronos [She/Her]> Something called the docs may help |
17:36:26 | FromDiscord | <Chronos [She/Her]> https://nim-lang.org/docs/net.html#newSocket%2CDomain%2CSockType%2CProtocol |
17:37:22 | FromDiscord | <taperfade> holy shit |
17:37:42 | FromDiscord | <taperfade> now |
17:37:59 | FromDiscord | <taperfade> why did i not find that |
17:38:04 | FromDiscord | <taperfade> the search function is ass |
17:39:49 | FromDiscord | <taperfade> whats a sock type |
17:40:40 | FromDiscord | <Chronos [She/Her]> I searched on google for "Sockets nim" and searched `newSocket` and it game up, not too hard lol |
17:41:37 | Amun-Ra | I don't think search bar is the hindrance in this case… |
17:42:43 | FromDiscord | <taperfade> ok |
17:42:46 | FromDiscord | <taperfade> anyways |
17:42:51 | FromDiscord | <taperfade> whats a sockType |
17:43:18 | FromDiscord | <taperfade> oh i think i got it |
17:45:03 | FromDiscord | <taperfade> nvm |
17:45:04 | FromDiscord | <.aingel.> In reply to @griffith1deadly "if it server application,": Why is this? |
17:45:11 | FromDiscord | <taperfade> chronos |
17:45:12 | FromDiscord | <taperfade> youre smart |
17:45:21 | FromDiscord | <taperfade> what do i put into the proc |
17:45:21 | FromDiscord | <Chronos [She/Her]> Hm... Do I need to do anything with `HiddenStdConv` when I'm generating code or |
17:45:51 | FromDiscord | <Chronos [She/Her]> In reply to @taperfade "what do i put": I don't mess with sockets, so idk |
17:46:38 | FromDiscord | <griffith1deadly> In reply to @.aingel. "Why is this?": i always stick to the thinking that if it's a server - memory caching is the best option, because CPU time can be more expensive |
17:47:07 | FromDiscord | <taperfade> omfg |
17:47:09 | FromDiscord | <taperfade> i read the docs |
17:47:10 | FromDiscord | <taperfade> i got it |
17:47:50 | FromDiscord | <.aingel.> In reply to @griffith1deadly "i always stick to": Interesting |
17:48:28 | FromDiscord | <griffith1deadly> In reply to @.aingel. "Interesting": the minecraft (mod) development is crippling people |
17:59:29 | FromDiscord | <.aingel.> Because of server memory caching? |
18:05:54 | FromDiscord | <griffith1deadly> In reply to @.aingel. "Because of server memory": because it fully singlethreaded (1.7.10) and you as server/project/online modpack creator need squeeze maximum performance |
18:06:58 | FromDiscord | <Phil> Also:↵Webdev servers are about databases, caching, and caching and databases.↵So using caching correctly is like 50% of the equation to get a fast server |
18:07:19 | FromDiscord | <Phil> It's also about databases, databases and databases... did I mention caching? |
18:20:42 | FromDiscord | <.aingel.> In reply to @griffith1deadly "because it fully singlethreaded": Async? |
18:23:24 | FromDiscord | <griffith1deadly> In reply to @.aingel. "Async?": only for yourself code, there are a lot of mods in minecraft that are written by people who don't really know anything about code and its optimization. and also handling a lot of tiles/entities can put tps in 1-2 if there are a couple of performance bugs in there, even small ones) |
18:28:53 | FromDiscord | <griffith1deadly> in EnderIO mod for example calling Enum.values() (native method that always allocate native array) can fall your tps from 20 to 13-14 with few pipes |
18:28:53 | FromDiscord | <.aingel.> Ouch, I see |
18:28:56 | FromDiscord | <.aingel.> Yeah makes sense |
18:36:04 | FromDiscord | <griffith1deadly> sent a long message, see http://ix.io/4KLX |
18:36:48 | FromDiscord | <ElegantBeef> In reply to @isofruit "ElegantBeef I summon thee": They should assuming you do not try to overload untyped macros |
18:37:50 | FromDiscord | <Phil> In reply to @elegantbeef "They should assuming you": I abandoned the approach the nanosecond I saw that apparently the type you get in a concept is looking odd (some kind of `Alias`popping up in the description). I moved back to the proc based approach and adjusted it to also support ref variants |
18:38:26 | FromDiscord | <ElegantBeef> Right you'd want to do `proc[T: MyConcept](bleh: T) = myMacro(T)` |
18:38:47 | FromDiscord | <ElegantBeef> Implicit generics do not give you the type, but the concept |
18:39:33 | FromDiscord | <Phil> Ahhhh... oh well, got away without it so all good in the end |
18:39:44 | FromDiscord | <Phil> But good to know in the future, thank! |
18:40:57 | FromDiscord | <ElegantBeef> Anyway it's always fun to do type introspection with procs, one of these days I'll figure out a way to find all the branch fields without a macro 😄 |
19:03:23 | FromDiscord | <Chronos [She/Her]> How would y'all recommend I format the ideas/features from other protocols I should use (if I don't end up just using one of them in the end) |
19:05:20 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @griffith1deadly "because it fully singlethreaded": Also↵Java |
19:06:21 | FromDiscord | <griffith1deadly> In reply to @sys64 "Also Java": minecraft problem is not java |
19:06:51 | FromDiscord | <griffith1deadly> minecraft problem - very bad code quality and singlethreading |
19:07:10 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @griffith1deadly "minecraft problem - very": Is it still the case with 1.20? |
19:07:46 | FromDiscord | <Chronos [She/Her]> They've done some optimisations but it's still getting heavier as time goes on :p |
19:08:41 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @chronos.vitaqua "They've done some optimisations": True↵At the same time you have the Bedrock edition which is faster but sucks at the same time |
19:09:24 | FromDiscord | <Chronos [She/Her]> Because they don't focus on parity with it, sadly |
19:09:41 | FromDiscord | <griffith1deadly> In reply to @sys64 "Is it still the": in last versions code quality getting better, and with 1.13 or 1.14 it stopped being single-threaded (different logic and render threads), but still bad code |
19:09:50 | FromDiscord | <Chronos [She/Her]> Also JSON sucks for plugin stuff, but they have to use that for iOS sadly |
19:10:22 | FromDiscord | <System64 ~ Flandre Scarlet> It sucks becaue :↵1) No modding↵2) Microtransactions, Microtransactions, Microtransactions and Microtransactions |
19:10:33 | FromDiscord | <griffith1deadly> In reply to @chronos.vitaqua "Also JSON sucks for": in ios can use lua, or i misread? |
19:11:00 | FromDiscord | <Chronos [She/Her]> In reply to @griffith1deadly "in ios can use": Can't have any code be executed iirc |
19:11:15 | FromDiscord | <Chronos [She/Her]> In reply to @sys64 "It sucks becaue :": Rip |
19:11:40 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @chronos.vitaqua "Can't have any code": Don't worry, soon we will be able to sideload apps outside of the app store |
19:11:40 | FromDiscord | <griffith1deadly> In reply to @chronos.vitaqua "Can't have any code": appstore have many application with lua processing |
19:12:12 | FromDiscord | <Chronos [She/Her]> In reply to @griffith1deadly "appstore have many application": It does? Huh, maybe I'm mistaken |
19:12:15 | FromDiscord | <griffith1deadly> genshin impact for example |
19:12:21 | FromDiscord | <Chronos [She/Her]> In reply to @sys64 "Don't worry, soon we": Mojang won't allow that |
19:12:30 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @chronos.vitaqua "Mojang won't allow that": wdym? |
19:12:31 | FromDiscord | <Chronos [She/Her]> In reply to @griffith1deadly "genshin impact for example": Is the code inputted by the user? |
19:12:42 | FromDiscord | <Chronos [She/Her]> In reply to @sys64 "wdym?": They'll still have to be available through the app store |
19:12:49 | FromDiscord | <Chronos [She/Her]> And the app store has restrictions on this |
19:12:51 | FromDiscord | <System64 ~ Flandre Scarlet> Yeah true |
19:12:59 | FromDiscord | <System64 ~ Flandre Scarlet> Anyways, Apple is Bad!! |
19:13:00 | FromDiscord | <griffith1deadly> In reply to @chronos.vitaqua "Is the code inputted": no, bun it gets from the server, not static in application |
19:13:08 | FromDiscord | <griffith1deadly> (edit) "bun" => "but" |
19:13:17 | FromDiscord | <Chronos [She/Her]> Hm, not sure then |
19:13:22 | FromDiscord | <Chronos [She/Her]> In reply to @sys64 "Anyways, Apple is Bad!!": Agreed |
19:13:30 | FromDiscord | <System64 ~ Flandre Scarlet> https://tenor.com/bA2C1.gif |
19:13:34 | FromDiscord | <Chronos [She/Her]> In reply to @chronos.vitaqua "Hm, not sure then": Swear there was some restrictions about this |
19:13:38 | FromDiscord | <System64 ~ Flandre Scarlet> I love to do this joke |
19:14:48 | FromDiscord | <griffith1deadly> In reply to @sys64 "It sucks becaue :": for bedrock exist official mojang ui library in react |
19:15:12 | FromDiscord | <System64 ~ Flandre Scarlet> React?↵So JavaScript? |
19:15:12 | FromDiscord | <griffith1deadly> (edit) "In reply to @sys64 "It sucks becaue :": for bedrock exist official mojang ui library in react ... " added "(typescript)" |
19:15:16 | FromDiscord | <griffith1deadly> yes |
19:15:21 | FromDiscord | <System64 ~ Flandre Scarlet> Oh |
19:16:06 | FromDiscord | <griffith1deadly> https://github.com/Mojang/ore-ui |
19:16:59 | FromDiscord | <System64 ~ Flandre Scarlet> Oh, interesting |
19:20:36 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KMh |
19:21:43 | * | Arthur joined #nim |
19:26:08 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KMj |
19:26:36 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KMk |
19:27:40 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4KMl |
19:36:00 | FromDiscord | <griffith1deadly> In reply to @sys64 "Btw about async stuff": i think emscripten mean JavaScript async, not nim |
19:36:32 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @griffith1deadly "i think emscripten mean": Yeah but I want to run some Nim code asynchronously |
19:36:33 | * | xet7 joined #nim |
19:37:27 | FromDiscord | <griffith1deadly> you can't, because nim async does not support emscripten |
19:38:11 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @griffith1deadly "you can't, because nim": Oh! Woops!↵Well, users will have to deal with huge lag during export then :/ |
20:18:46 | FromDiscord | <taperfade> guys |
20:18:49 | FromDiscord | <taperfade> guys |
20:18:55 | FromDiscord | <summarity> I think I stumbled upon a bug in the push/pop pragma logic, can someone try to see if this repros: https://gist.github.com/turbo/0eafeca307945273a980c2f4ee63d960 ? |
20:19:06 | FromDiscord | <taperfade> lets say i have a server and a client , how do i send tasks to the clinet |
20:19:07 | FromDiscord | <taperfade> like |
20:19:15 | FromDiscord | <taperfade> opening firefox |
20:22:04 | FromDiscord | <System64 ~ Flandre Scarlet> ``Warning: conversion to enum with holes is unsafe``↵Is there a way to mute those warnings? |
20:23:59 | FromDiscord | <Phil> In reply to @sys64 "``Warning: conversion to enum": Should be with the compiler flag to disable specific classes of warnings |
20:24:00 | FromDiscord | <Elegantbeef> Stop doing it or use `--warning:..:off` |
20:24:21 | FromDiscord | <Phil> See warning off flag: gtk48 |
20:24:24 | FromDiscord | <Phil> (edit) "gtk48" => "https://nim-lang.org/docs/nimc.html" |
20:33:08 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @isofruit "Should be with the": I can't do that into the config.nims? https://media.discordapp.net/attachments/371759389889003532/1170823135151538206/image.png?ex=655a7104&is=6547fc04&hm=32b33f7a4a3ec5c32744fa13c2bb4158b078fe95f9b3072c16c9d5f013e255d7& |
20:33:48 | * | __________ joined #nim |
20:34:36 | FromDiscord | <Elegantbeef> Probably need `switch("warning", "HoleEnumConv:off")` |
20:34:38 | FromDiscord | <Elegantbeef> Think that works |
20:34:40 | * | _________ quit (Ping timeout: 258 seconds) |
20:39:56 | FromDiscord | <demotomohiro> `--warning:"HoleEnumConv:off"` might work. |
20:40:22 | FromDiscord | <demotomohiro> https://nim-lang.org/docs/nimscript.html#--.t%2Cuntyped%2Cuntyped |
20:45:29 | * | __________ quit (Quit: leaving) |
20:53:19 | * | neceve quit (Ping timeout: 264 seconds) |
20:54:09 | * | _________ joined #nim |
20:58:20 | FromDiscord | <taperfade> guys |
20:58:28 | FromDiscord | <taperfade> what is that array called again |
20:58:31 | FromDiscord | <taperfade> that can change sizes |
20:58:35 | FromDiscord | <taperfade> i forgor |
21:00:11 | Amun-Ra | seq? |
22:19:17 | xutaxkamay | sorry, this is maybe not related to nim itself at all, but i wanted to try out really the language today, so i went to setup cocvim with the lsp server, but i don't see any semantic highlighting? |
22:25:19 | xutaxkamay | im just hoping this is something wrong with my configs, let me know if you the steps on how i installed nim or configs |
22:25:42 | FromDiscord | <JJ> xutaxkamay: check out https://github.com/alaviss/nim.nvim |
22:26:04 | FromDiscord | <JJ> there is no highlighting merged into native vim regex highlighting files or nvim-treesitter highlighting, afaik |
22:26:16 | xutaxkamay | okay, thank you |
22:30:29 | xutaxkamay | okay yeah awesome i got now some colors, thanks again |
22:41:36 | FromDiscord | <leorize> nvim-treesitter backend for nim has been upstreamed fwiw |
22:41:53 | FromDiscord | <leorize> install `nim` and `nim_format_string` parser and you'll get the tree-sitter goodness |
22:43:10 | FromDiscord | <.aingel.> In reply to @leorize "install `nim` and `nim_format_string`": Nice! |
22:43:18 | FromDiscord | <.aingel.> What's nim_format_string |
22:43:21 | FromDiscord | <.aingel.> That's another lang to add? |
22:52:16 | FromDiscord | <leorize> it's formatting for `fmt"string"` |
22:52:56 | FromDiscord | <leorize> s/formatting/syntax/ |
23:09:19 | FromDiscord | <.aingel.> Oh gotcha |
23:59:13 | * | CO2 quit (Quit: WeeChat 4.1.1) |