00:02:48 | FromDiscord | <gogolxdong> AI is another chance to teach Nim😆 |
00:14:18 | FromDiscord | <morgan> how do i do for x in y and mutate x? y is passed in as a var type |
00:15:43 | FromDiscord | <Yardanico> In reply to @MorganAlyssa "how do i do": for x in y.mitems |
00:15:47 | FromDiscord | <Yardanico> if it has that iterator defined of course |
00:16:12 | FromDiscord | <morgan> ah thanks |
00:16:29 | FromDiscord | <morgan> that made the error go away |
00:16:32 | FromDiscord | <morgan> it's a seq |
00:24:46 | NimEventer | New thread by Naterlarsen: How to return from a function back to the main application loop, see https://forum.nim-lang.org/t/10057 |
00:29:55 | FromDiscord | <ringabout> In reply to @Elegantbeef "<@658563905425244160>\: do not recall": Well, I'd love to but I don't have access to ban them. |
02:15:55 | * | derpydoo quit (Quit: derpydoo) |
04:11:10 | * | beholders_eye quit (Ping timeout: 260 seconds) |
04:32:44 | * | azimut_ quit (Ping timeout: 255 seconds) |
04:35:42 | * | derpydoo joined #nim |
05:22:24 | FromDiscord | <0xrh0d4m1n> how to have auto completion using an ide like vscodium and the extension support for nim (by nimsaem), my vcodium is not getting autocompletion (my nim: `Nim Compiler Version 1.6.12 [Linux: amd64]`), anyone can help me 🙂 ? |
05:24:29 | rockcavera | 0xrh0d4m1n, in my experience with the "saem" extension, you need to open a Nim file from a "folder" in vscode. If you open a .nim file directly, autocompletion will not work. |
05:24:53 | rockcavera | I believe the same applies to vscodium |
05:27:18 | FromDiscord | <0xrh0d4m1n> thx, I will test @rockcavera[IRC] |
05:27:52 | rockcavera | this is one of the reasons I don't use this extension |
05:29:24 | FromDiscord | <0xrh0d4m1n> how you get your auto completion then? hehe I am just curious |
05:31:46 | FromDiscord | <Elegantbeef> It should work on a single file, just nimsuggest in general is odd |
05:31:52 | * | arkurious quit (Quit: Leaving) |
05:32:03 | rockcavera | I use this extension https://marketplace.visualstudio.com/items?itemName=kosz78.nim |
05:36:49 | FromDiscord | <0xrh0d4m1n> thank you @rockcavera |
05:38:37 | FromDiscord | <Phil> It should be noted that intellij with the nim plugin is also a viable option |
05:43:13 | FromDiscord | <Elegantbeef> So is using any LSP supporting editor + nimlsp/nimlangserver |
05:46:21 | FromDiscord | <huantian> I should try the lsp at some point |
05:55:55 | * | xet7 quit (Ping timeout: 248 seconds) |
06:04:15 | * | rockcavera quit (Remote host closed the connection) |
06:24:19 | FromDiscord | <Gumbercules> oh wow.... just learned about: `/d1reportAllClassLayout` |
06:24:23 | FromDiscord | <Gumbercules> pretty fucking handy... |
06:24:37 | termer | what's it do |
06:28:17 | NimEventer | New post on r/nim by thindil: [Nim Blog] Nim version 2.0.0 RC2 released, see https://reddit.com/r/nim/comments/128diww/nim_blog_nim_version_200_rc2_released/ |
06:28:20 | FromDiscord | <Gumbercules> outputs the memory layout of classes for msvc C++ compiler |
06:29:38 | FromDiscord | <Gumbercules> sent a code paste, see https://play.nim-lang.org/#ix=4snI |
06:31:03 | * | Onionhammer quit (Read error: Connection reset by peer) |
06:33:04 | * | Onionhammer joined #nim |
06:49:59 | FromDiscord | <morgan> anyone know if there's info on using boxy and pixie? |
06:50:11 | FromDiscord | <morgan> well more specifically i want to draw a straight line rn |
06:59:16 | FromDiscord | <morgan> ping me if you respond |
07:08:37 | * | Notxor joined #nim |
07:54:58 | NimEventer | New thread by Araq: The Nim development team cooperates with OpenAI in order to fight climate change, see https://forum.nim-lang.org/t/10058 |
07:55:42 | FromDiscord | <Elegantbeef> What a shitty april fools joke |
08:08:37 | FromDiscord | <Dale> Wow |
08:08:49 | FromDiscord | <Dale> Araq is pretty funny |
08:09:12 | FromDiscord | <Elegantbeef> The world renowned german humour |
08:16:54 | * | ltriant joined #nim |
08:20:13 | FromDiscord | <huantian> What would be funny is if we release 2.0 early and break everything |
08:36:08 | FromDiscord | <Rika> In reply to @Elegantbeef "The world renowned german": Lol |
08:38:43 | FromDiscord | <Phil> German humour just works on constructing very absurd and silly scenarios, so that checks out |
08:43:37 | * | ltriant quit (Ping timeout: 276 seconds) |
09:06:18 | * | ltriant joined #nim |
09:07:51 | FromDiscord | <Elegantbeef> Yea just what i thought would happen digging a big ol' hole |
09:08:05 | FromDiscord | <Elegantbeef> Less about a joke and just more about a shitty political take |
09:09:21 | NimEventer | New thread by ingo: Dear library developers,, see https://forum.nim-lang.org/t/10059 |
09:51:39 | * | ltriant quit (Ping timeout: 248 seconds) |
10:01:39 | FromDiscord | <I have 50GB of nothing on my PC> is there any (good) way to get wysiwyg with karax? |
10:05:35 | FromDiscord | <hotdog> In reply to @I have 50GB of nothing on my PC "is there any (good)": You mean like an editor you can embed in a Karax app, or something you can use to make Karax apps? |
10:07:30 | FromDiscord | <I have 50GB of nothing on my PC> @hotdog I just want to see the visual changes without having to start over again every time I recompile the program |
10:07:47 | FromDiscord | <I have 50GB of nothing on my PC> Something like a live server |
10:08:23 | * | ltriant joined #nim |
10:08:27 | FromDiscord | <hotdog> You can use a tool like entr to recompile when there are changes, and a tool like browsersync to automatically reload the browser |
10:09:00 | FromDiscord | <I have 50GB of nothing on my PC> but then I have to recreate the state I was in previously |
10:09:04 | FromDiscord | <I have 50GB of nothing on my PC> that's what I want to avoid |
10:09:07 | FromDiscord | <hotdog> Which will just refresh the page, if you want HCR you’ll need to hook into the nim apis for that |
10:09:48 | FromDiscord | <hotdog> I tend to just rely on navigation, making sure the url takes you back mostly to the right place |
10:10:27 | FromDiscord | <hotdog> @I have 50GB of nothing on my PC https://nim-lang.org/docs/hcr.html |
10:14:33 | FromDiscord | <hotdog> You can take a look at the changes that were proposed in this PR for reference if you want to go the HCR route https://github.com/karaxnim/karax/pull/55 |
10:15:16 | * | ltriant quit (Ping timeout: 276 seconds) |
10:37:59 | * | ltriant joined #nim |
10:43:41 | * | ltriant quit (Ping timeout: 265 seconds) |
10:47:50 | NimEventer | New Nimble package! jsonnet - Binding for Jsonnet the data templating language, see https://github.com/thechampagne/jsonnet-nim |
11:20:24 | * | azimut joined #nim |
11:28:48 | * | ltriant joined #nim |
11:33:11 | FromDiscord | <kcvinker> sent a code paste, see https://play.nim-lang.org/#ix=4sop |
11:33:20 | * | ltriant quit (Ping timeout: 248 seconds) |
12:00:55 | * | ltriant joined #nim |
12:05:46 | * | ltriant quit (Ping timeout: 276 seconds) |
12:35:31 | FromDiscord | <Rika> `f.mySeq.setLen(0)`? |
12:35:48 | FromDiscord | <Rika> same with the next line |
12:42:01 | NimEventer | New thread by singularity-desu: How do I test if varaible is a type of proc?, see https://forum.nim-lang.org/t/10060 |
12:52:27 | * | ltriant joined #nim |
12:55:48 | FromDiscord | <Tanzin> why is kotlin so trash? |
12:57:34 | FromDiscord | <Phil> As someone writing Nim code, I do not know |
13:01:26 | * | ltriant quit (Ping timeout: 265 seconds) |
13:01:27 | FromDiscord | <Tanzin> Oky |
13:08:02 | NimEventer | New Nimble package! nuance - nim untyped AST node generation at runtime with custom line info, see https://github.com/metagn/nuance |
13:36:09 | FromDiscord | <kcvinker> In reply to @Rika "`f.mySeq.setLen(0)`?": That was a type |
13:36:15 | FromDiscord | <kcvinker> (edit) "type" => "typo" |
13:37:19 | FromDiscord | <kcvinker> The `seq.isNil` is the contribution of `chatGPT`. I don't think it will work |
13:40:20 | FromDiscord | <kcvinker> There is no `reserve` or `resize` in `nim manual` |
13:42:54 | FromDiscord | <System64 ~ Flandre Scarlet> Byw↵Why using "Nil" instead of "Null"? |
13:43:45 | FromDiscord | <Rika> because pascal root i assume |
13:48:31 | FromDiscord | <kcvinker> So I am asking once again. How to resize a seq ? |
13:51:26 | FromDiscord | <Andreas> In reply to @kcvinker "So I am asking": id do like so : https://play.nim-lang.org/#ix=4spb |
13:52:05 | FromDiscord | <kcvinker> In reply to @Andreas "id do like so": Oh great. Thank you @Andreas |
13:53:40 | FromDiscord | <kcvinker> @Andreas I need the seq to be empty and resize |
13:55:22 | FromDiscord | <kcvinker> sent a code paste, see https://play.nim-lang.org/#ix=4spd |
13:55:44 | FromDiscord | <Gumbercules> Clear works too |
13:55:51 | FromDiscord | <Gumbercules> If you don't want to truncate |
13:57:06 | FromDiscord | <Andreas> sent a code paste, see https://play.nim-lang.org/#ix=4spf |
13:58:47 | FromDiscord | <kcvinker> @Andreas & @Gumbercules I want to clear all items from seq and set new size for it |
14:00:37 | FromDiscord | <Andreas> In reply to @kcvinker "<@754284517316886598> & <@204328759715692544>": https://play.nim-lang.org/#ix=4spk |
14:01:51 | FromDiscord | <kcvinker> In reply to @Andreas "https://play.nim-lang.org/#ix=4spk": Thanks. That's what I wanted |
14:03:38 | FromDiscord | <Andreas> In reply to @kcvinker "Thanks. That's what I": i'm afraid to ask what is the purpose of that ? |
14:05:01 | FromDiscord | <kcvinker> sent a code paste, see https://play.nim-lang.org/#ix=4spm |
14:06:18 | FromDiscord | <Andreas> In reply to @kcvinker "<@754284517316886598> This is": maybe try a IntSet ? |
14:06:59 | FromDiscord | <kcvinker> IntSet ?? Didn't heard yet. Thanks for pointing me a direction. Let me check that. |
14:07:28 | FromDiscord | <Andreas> (edit) "?" => "/ PackesSet.." |
14:07:42 | FromDiscord | <Andreas> (edit) "PackesSet.." => "PackedSet.." |
14:08:32 | FromDiscord | <Andreas> In reply to @kcvinker "IntSet ?? Didn't heard": or a Set if the order is not important.. |
14:08:54 | FromDiscord | <kcvinker> In reply to @Andreas "or a Set if": Order is not impotrant |
14:11:39 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Rika "because pascal root i": What do you mean? |
14:13:41 | FromDiscord | <System64 ~ Flandre Scarlet> btw @exelotl Is it fine I fork your Tilengine bindings repo? And can I put my fork on GitHub? (I'm more used to GitHub) |
14:16:09 | FromDiscord | <exelotl> Sure! |
14:20:05 | * | junaid_ joined #nim |
14:26:08 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @exelotl "Sure!": Alright! Thanks!↵I'll add my expansions |
14:50:54 | * | junaid_ quit (Quit: leaving) |
14:51:23 | * | junaid_ joined #nim |
15:08:30 | * | junaid_ quit (Remote host closed the connection) |
15:29:46 | * | ltriant joined #nim |
15:34:35 | * | ltriant quit (Ping timeout: 248 seconds) |
16:02:53 | * | arkurious joined #nim |
16:39:35 | * | PMunch joined #nim |
16:46:37 | PMunch | Hmm, I have a proc with a `typedesc[Table[X, Y]]` and I keep getting type mismatch errors when I try to call the procedure with e.g. `Table[string, int]` |
16:46:58 | PMunch | Oh, nvm, I had an enum value called Table.. |
16:48:42 | PMunch | So it thought I was trying to call `[]` on that enum value |
16:57:53 | PMunch | Hmm, would it be cool if this worked? https://play.nim-lang.org/#ix=4sqh |
16:58:00 | PMunch | Or would that just be silly? |
17:00:28 | FromDiscord | <Andreas> @PMunch what would regard it a 'insane idea' to compile `nimsuggest` and `nimlanguageserver` to WASM ? |
17:01:01 | PMunch | At that point why not just compile nimLSP? |
17:01:02 | FromDiscord | <Andreas> (edit) "@PMunch what would regard it a 'insane idea' to compile `nimsuggest` and `nimlanguageserver` to WASM ? ... " added "Is it possible at all or would it require massive changes ?" |
17:01:29 | FromDiscord | <Andreas> In reply to @PMunch "At that point why": fair enough - but same question ? |
17:01:52 | PMunch | Honestly I have no idea. nimsuggest is essentially the Nim compiler (just with some bits removed and other bits added), so if you can compile the compiler to WASM you should be able to compile nimsuggest to WASM |
17:02:04 | PMunch | On the other hand, why would you compile it to WASM? |
17:08:03 | FromDiscord | <Andreas> In reply to @PMunch "On the other hand,": last week i found myself looking at a typescript-thing in VSCode - what followed was a sort of arcade-game, where suddenly everything popped-up in all possible colors - it was not possible to use VSCode anymore. I want to say goodbye to VSCode asap. TheLapCE-editor has not implemented 95-percent of VSCode - the arcade-game-code. But its much snappier and has some functions, that VSCode does not |
17:08:52 | FromDiscord | <Andreas> (edit) "TheLapCE-editor" => "The LapCE-editor" |
17:09:56 | PMunch | Huh, hadn't heard of Lapce before |
17:10:14 | PMunch | And it has a WASM based plugin system I see |
17:11:30 | PMunch | It might be possible to compile nimlanguageserver to WASM and use normal native nimsuggest |
17:11:37 | PMunch | Not sure which limitations you have |
17:11:45 | PMunch | That is of course if you can't compile nimlsp to wasm |
17:12:13 | PMunch | I guess we'll have to summon our in-house expert on WASM, ElegantBeef, ElegantBeef, ElegantBeef! |
17:13:55 | FromDiscord | <Andreas> In reply to @PMunch "And it has a": its a rather young project, i looked at the python-integration - envy - but i have no clue what restrictions wrt to communication with nimsuggest from WASM are to expect.. |
17:14:34 | PMunch | How does the Python -> WASM thing work? |
17:15:17 | FromDiscord | <Andreas> In reply to @PMunch "How does the Python": fuck me running - they have a binary WASM-thing - and it obviuosly works - did not test it.. |
17:15:55 | FromDiscord | <Andreas> (edit) "obviuosly" => "obviously" |
17:17:46 | FromDiscord | <Andreas> @ElegantBeef how come the LapCE-python-integration comes along with a WASM-LSP-thing, that we wannabe VS-Code-quitters on the nim-side don't have ? |
17:25:47 | FromDiscord | <Andreas> In reply to @PMunch "How does the Python": the Python-WASM-file is 4.8 MB, my python3-binary is 163-KB, so its prbl. a entire interpreter plus smth.. |
17:29:32 | PMunch | My python3 binary is 14K, but links with libpython3.10.so.1.0 which is 3.7M along with some other libraries. So 4.8M does indeed sound like a statically compiled version of the Python interpreter |
17:30:13 | PMunch | But yeah, if the Python interpreter can be compiled to WASM I don't see why the Nim compiler shouldn't be able to |
17:35:40 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @exelotl "Sure!": https://github.com/system64MC/nim-tilengine↵Forked! Did I do something wrong? |
17:49:19 | FromDiscord | <System64 ~ Flandre Scarlet> Hi, is it normal the function isn't found while I import the right file, and the file exists? https://media.discordapp.net/attachments/371759389889003532/1091781353210662952/image.png |
17:52:36 | FromDiscord | <Rika> Does it exist in the file |
17:54:27 | * | derpydoo quit (Remote host closed the connection) |
17:54:42 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Rika "Does it exist in": yeah |
17:57:44 | FromDiscord | <sOkam!> In reply to @System64 "Hi, is it normal": is it marked with ``? I made that mistake too many times to count 🙈 |
17:58:46 | FromDiscord | <sOkam!> also, did you try compiling, or is it the lsp erroring? sometimes it needs reloading to not choke on missing new things when editing, for some reason |
18:00:21 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @sOkam! "is it marked with": yeah it is↵And I tried compiling, it yells |
18:00:39 | FromDiscord | <System64 ~ Flandre Scarlet> Undefine identifier |
18:00:46 | FromDiscord | <System64 ~ Flandre Scarlet> (edit) "Undefine" => "Undefined" |
18:07:45 | FromDiscord | <Yardanico> are you sure it's actually importing the file you think it's importing from the .nimble/pkgs ? |
18:07:49 | FromDiscord | <Yardanico> are you compiling with nimble or nim? |
18:07:59 | FromDiscord | <Yardanico> and yeah, check that the identifier is actually there in tilengine |
18:08:05 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @Yardanico "are you compiling with": nim, but it should work |
18:08:23 | FromDiscord | <Yardanico> In reply to @System64 "nim, but it should": if it's a nimble dependency it can get messed up if you use nim directly, it might use a different version and stuff |
18:09:27 | FromDiscord | <System64 ~ Flandre Scarlet> I installed it with Nimble |
18:09:39 | FromDiscord | <exelotl> In reply to @System64 "https://github.com/system64MC/nim-tilengine Forked!": seems OK... but with the direction you're going, forking seems like a strange choice after all. If you don't need to break or change anything in nim-tilengine, maybe you'd be better off making an expansion library that simply has nim-tilengine as a dependency? |
18:10:01 | FromDiscord | <exelotl> e.g. <https://github.com/photonstorm/Flixel-Power-Tools> is a set of helpers to be used with Flixel. |
18:10:29 | FromDiscord | <exelotl> <https://github.com/sverx/GBAdv> is a set of helpers on top of libgba |
18:10:31 | FromDiscord | <exelotl> etc. |
18:11:38 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @exelotl "seems OK... but with": Oh yeah, might be better↵But I also can use a custom version of Tilengine too, and in that case, I'd need to modify the original lib |
18:11:59 | FromDiscord | <exelotl> yeah, in that case what you're doing makes sense |
18:12:39 | FromDiscord | <System64 ~ Flandre Scarlet> Or if I want to overload some procs, etc |
18:13:25 | FromDiscord | <System64 ~ Flandre Scarlet> for example my previous bindings, for setting colors, you could use individual RGB components, an uint32, or a Color object |
18:14:04 | FromDiscord | <System64 ~ Flandre Scarlet> But the weird thing, is I have an error |
18:19:34 | FromDiscord | <System64 ~ Flandre Scarlet> Should I export somethung? |
18:19:37 | FromDiscord | <System64 ~ Flandre Scarlet> (edit) "somethung?" => "something?" |
18:32:33 | * | ltriant joined #nim |
18:36:42 | FromDiscord | <System64 ~ Flandre Scarlet> Alright so I fixed the thing!↵There was a conflix |
18:36:45 | FromDiscord | <System64 ~ Flandre Scarlet> (edit) "conflix" => "conflict" |
18:37:24 | * | ltriant quit (Ping timeout: 255 seconds) |
18:38:33 | FromDiscord | <sOkam!> was gonna mention that, but i figured that should show on the error message |
18:44:19 | FromDiscord | <System64 ~ Flandre Scarlet> Oh my god!↵This is so good, this binding is crafted sooo well! |
18:47:06 | FromDiscord | <System64 ~ Flandre Scarlet> I will definitively use this binding instead of my old one |
18:48:29 | FromDiscord | <System64 ~ Flandre Scarlet> Btw is it possible to force update even if the version is the same? |
18:50:15 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4sqH |
18:51:10 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4sqI |
18:52:01 | FromDiscord | <michaelb.eth> but that's awkward... is there something I can change so I can use my `$` without qualifying it? |
18:52:15 | FromDiscord | <michaelb.eth> (edit) "https://play.nim-lang.org/#ix=4sqH" => "https://play.nim-lang.org/#ix=4sqL" |
18:57:24 | FromDiscord | <hotdog> In reply to @michaelb.eth "I have a `type": What’s the signature of MyType? |
18:58:31 | FromDiscord | <michaelb.eth> depends, on Windows it's `distinct uint16` and otherwise it's `distinct uint32` |
18:59:23 | FromDiscord | <michaelb.eth> but I think I understand now why in e.g. stew/byteutils module conversion from bytes is accomplished with `string.fromBytes(...)` rather than an overload of `$`, so I'll do similar |
18:59:43 | FromDiscord | <System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=4sqN |
19:01:09 | FromDiscord | <michaelb.eth> (edit) "in" => "with" | "withe.g. stew/byteutils module ... conversion" added "the" |
19:11:45 | FromDiscord | <anddam> howdy |
19:11:57 | FromDiscord | <anddam> prodly Powered by Discord™ now |
19:13:31 | FromDiscord | <exelotl> Because I don't want to deviate too far from the tilengine C & Python APIs, and also because (row, col) is quite common in other APIs like ncurses or when dealing with 2D arrays in general |
19:15:15 | FromDiscord | <anddam> @System64 ~ Flandre Scarlet are you able to get floating imgui windows while using nimgl/imgui? |
19:32:19 | FromDiscord | <ericdraven> Anyone know of a way to read nim manual in the terminal? Or is the browser the way to go? |
19:48:02 | * | azimut quit (Ping timeout: 255 seconds) |
19:56:44 | * | azimut joined #nim |
19:57:18 | FromDiscord | <Elegantbeef> You want to override both the `seq` and `array` `$` for the type?↵(@michaelb.eth) |
19:57:56 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4sr3 |
19:59:42 | FromDiscord | <michaelb.eth> sent a code paste, see https://play.nim-lang.org/#ix=4sr4 |
19:59:52 | FromDiscord | <michaelb.eth> (edit) "https://play.nim-lang.org/#ix=4sr4" => "https://play.nim-lang.org/#ix=4sr5" |
20:02:12 | FromDiscord | <Elegantbeef> Ah if unclear the reason it didnt work is that Nim doesnt do implicit conversions when there is ambiguity |
20:02:30 | FromDiscord | <Elegantbeef> `openArray[T]` and `openArray[MyType]` both require an implicit conversion |
20:06:37 | FromDiscord | <michaelb.eth> I see, thanks for that tip, makes more sense now |
20:10:27 | FromDiscord | <anddam> doesn't nim allow double underscore in identifiers? |
20:11:27 | FromDiscord | <sOkam!> In reply to @anddam "doesn't nim allow double": nope |
20:11:31 | FromDiscord | <michaelb.eth> In reply to @anddam "doesn't nim allow double": https://nim-lang.org/docs/manual.html#lexical-analysis-identifiers-amp-keywords |
20:12:03 | FromDiscord | <anddam> damn, this update is more and more like quicksand |
20:12:32 | FromDiscord | <michaelb.eth> update? |
20:12:33 | FromDiscord | <anddam> I am probably just better off using the library rather than trying to update it |
20:12:50 | FromDiscord | <anddam> yes, I have been battling nimgl/imgui update for a while, in my little spare time |
20:13:05 | FromDiscord | <anddam> and it's a mix of me not knowing nim, and mostly C++ |
20:13:07 | FromDiscord | <anddam> C I do, a bit |
20:13:36 | FromDiscord | <anddam> nimgl/imgui wraps cimgui, that in turns is a C wrapper over the C++ Dear Imgui |
20:14:23 | FromDiscord | <anddam> both wrappers have automated generators, but the nim one is a bit outdated compared to dearimgui and made assumptions that don't allow for a quick "go!" |
20:15:49 | FromDiscord | <anddam> e.g. https://github.com/anddam/imgui/blob/feature/update-dear-imgui/src/imgui.nim#L373 has enum `ImGuiKey` with names `A`, `C`, `V` and so on |
20:16:45 | FromDiscord | <anddam> this comes from cimgui's ImGuiKey_A enum name, it gets split, the first part is used as enum type and the second part is used as name |
20:17:22 | FromDiscord | <anddam> once upgrading the library now there are `ImGuiKey_0` to `ImGuiKey_9` and the digits are not valid names, |
20:17:38 | * | kenran joined #nim |
20:17:39 | FromDiscord | <anddam> or there's `ImGuiKey_End` and `ImGuiKey_END`, different in C, invalid once split |
20:18:59 | FromDiscord | <anddam> now I am trying to understand what @etra wrote to me yesterday |
20:22:43 | FromDiscord | <michaelb.eth> sounds fun 😄 |
20:30:04 | FromDiscord | <anddam> not, really, I just wanted to move some sprite around without the constraint of the window |
20:31:16 | FromDiscord | <anddam> In reply to @michaelb.eth "https://nim-lang.org/docs/manual.html#lexical-analy": oh and in the C++ → C conversion there's plenty of dunder `` to autogenerate unique symbols when using templates |
20:32:16 | FromDiscord | <anddam> these asterisks https://github.com/anddam/imgui/blob/feature/update-dear-imgui/src/imgui.nim#L52 are the export marker, right? |
20:36:27 | FromDiscord | <michaelb.eth> In reply to @anddam "these asterisks https://github.com/anddam/imgui/blo": yes |
20:43:58 | * | Notxor quit (Remote host closed the connection) |
20:46:44 | FromDiscord | <anddam> nimgl has very little activity, not sure how opening an issue is worth it |
20:49:35 | * | ltriant joined #nim |
20:51:37 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @anddam "<@380360389377916939> are you able": Wdym? |
20:52:04 | FromDiscord | <Elegantbeef> Popout windows that are not bounded to your glfw i assume |
20:52:05 | FromDiscord | <anddam> the docking branch, my whole point in trying to update it was getting the docking feature |
20:52:16 | FromDiscord | <Elegantbeef> Or sdl2 window, do not remember what it encourages |
20:52:25 | FromDiscord | <System64 ~ Flandre Scarlet> Ah, not yet |
20:52:32 | FromDiscord | <anddam> that, also windows docks to one another |
20:52:50 | FromDiscord | <anddam> I am opening a ticket, this thing goes beyond my paygrade |
20:53:07 | FromDiscord | <System64 ~ Flandre Scarlet> Especially C++ oof |
20:54:24 | * | ltriant quit (Ping timeout: 248 seconds) |
20:56:01 | FromDiscord | <anddam> it's a context where I know almost nothing, also in the end the GUI library was an accessory, what I need is a 2D game engine |
20:56:04 | FromDiscord | <anddam> https://github.com/tankfeud/norx will do for now |
20:57:41 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @anddam "it's a context where": Oh alright↵I use Tilengine imo |
20:57:58 | * | kenran quit (Remote host closed the connection) |
21:21:38 | FromDiscord | <anddam> ohh that's nice |
21:34:12 | FromDiscord | <System64 ~ Flandre Scarlet> In reply to @anddam "ohh that's nice": I recommand it, very nice engine |
21:34:17 | * | ltriant joined #nim |
21:39:05 | * | ltriant quit (Ping timeout: 265 seconds) |
22:21:48 | * | ltriant joined #nim |
22:27:50 | * | ltriant quit (Ping timeout: 260 seconds) |
22:35:49 | FromDiscord | <Elegantbeef> Pmunch(assuming you're still on) yea Nim can compile to wasm |
22:36:08 | FromDiscord | <Elegantbeef> https://www.jasonbeetham.com/snake/nicoscripter.html using emscripten the NimVM runs fine |
22:48:26 | FromDiscord | <Andreas> In reply to @Elegantbeef "https://www.jasonbeetham.com/snake/nicoscripter.htm": this is nothing but AWESOME |
22:57:57 | FromDiscord | <monofuel> sent a long message, see http://ix.io/4srQ |
23:46:54 | FromDiscord | <hotdog> In reply to @monofuel "I'm parsing some data": jsony supports that, not sure about the other libraries |
23:47:25 | FromDiscord | <Elegantbeef> std/jsonutils aswell |
23:48:06 | FromDiscord | <Q-Master> https://github.com/Q-Master/packets.nim↵(@monofuel) |
23:48:46 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4ss0 |
23:48:56 | FromDiscord | <monofuel> wooo choices! thank you 🙇♂️ |
23:57:40 | * | PMunch quit (Quit: leaving) |