00:18:51 | FromDiscord | <Robyn [She/Her]> In reply to @aryzen "and I'm guessing that's": I think it's moreso because it allows a developer to decide the best way to right something |
00:28:40 | FromDiscord | <aryzen> Nim offers so many ways to do certain things but is hardest on using spaces over tabs |
00:28:46 | FromDiscord | <aryzen> (edit) "hardest" => "hard set" |
00:41:35 | FromDiscord | <aryzen> I’m not sure if I installed the wrong plugin or need to set something, but my VSCode doesn’t check for errors while I type, it only checks when I save |
00:43:25 | FromDiscord | <demotomohiro> Vim can automatically replace tab with spaces. |
00:52:23 | FromDiscord | <aryzen> Yeah, I’ve just set my VScode to use spaces instead but I personally prefer tabs is all |
00:54:38 | FromDiscord | <zumi.dxy> In reply to @demotomohiro "Vim can automatically replace": Nim also has a "source code filter" for this kinda thing↵<https://github.com/nim-lang/Nim/wiki/Unofficial-FAQ#why-are-tabs-forbidden>↵<https://nim-lang.org/docs/filters.html> |
00:55:29 | FromDiscord | <zumi.dxy> if I understand it correctly doesn't it replace all tabs (not just leading tabs)? |
01:14:41 | FromDiscord | <demotomohiro> In reply to @zumi.dxy "Nim also has a": I have never used source code filter to replace all tabs to spaces. |
01:41:03 | FromDiscord | <huantian> In reply to @aryzen "I’m not sure if": yes, it's recommended to turn on auto save for nim files because of that |
02:24:48 | FromDiscord | <aryzen> In reply to @huantian "yes, it's recommended to": no way to change it to be like C#? |
02:34:17 | FromDiscord | <.bobbbob> it's probably just because the nim lsp is really buggy and jank |
02:37:10 | * | rockcavera quit (Read error: Connection reset by peer) |
02:38:13 | * | rockcavera joined #nim |
02:45:05 | FromDiscord | <aryzen> Is there another VSCode plugin I could be using for that? |
02:45:51 | * | rockcavera quit (Read error: Connection reset by peer) |
02:47:14 | FromDiscord | <aryzen> also, afaik Nim first compiles to C and then to machine, is there a way to get it to save the output of the C conversion? |
02:51:50 | * | rockcavera joined #nim |
02:55:29 | FromDiscord | <janakali> In reply to @aryzen "also, afaik Nim first": Nim always saves C code in the cache folder "~/.cache" on linux, |
02:56:50 | FromDiscord | <aryzen> I’m on Mac but maybe it’s in the same spot? |
03:04:25 | * | krux02 quit (Remote host closed the connection) |
03:10:30 | FromDiscord | <janakali> when you run `nim r <project.nim>` it tells you where is the cache folder, but you can also save cache to any folder with `--nimcache:"<path>"` flag. https://media.discordapp.net/attachments/371759389889003532/1208249083601494036/IMG_20240217_110541.jpg?ex=65e298a5&is=65d023a5&hm=aa7cc5245701cee52b7d1911c377bf4c9ce5ff4f81cf508630f2698e981efca0& |
03:53:36 | * | azimut joined #nim |
04:31:38 | * | rockcavera quit (Read error: Connection reset by peer) |
04:32:41 | * | rockcavera joined #nim |
04:52:08 | * | rockcavera quit (Read error: Connection reset by peer) |
04:52:28 | * | rockcavera joined #nim |
05:13:43 | * | rockcavera quit (Remote host closed the connection) |
06:26:04 | * | jmdaemon joined #nim |
06:34:41 | * | junaid_ joined #nim |
06:39:15 | * | junaid_ quit (Client Quit) |
07:03:55 | * | xaltsc quit (Ping timeout: 255 seconds) |
07:08:24 | * | ntat joined #nim |
07:17:13 | FromDiscord | <that_dude.> I have to work with `ptr UncheckedArray[cfloat]` as a type, what is the best way to create it? Ideally I don't need to manually destroy it |
07:17:30 | FromDiscord | <Elegantbeef> Use `seq[cfloat]` |
07:17:37 | FromDiscord | <that_dude.> I will know it's always 3 long |
07:17:50 | FromDiscord | <Elegantbeef> So then `array[3, cfloat]` |
07:18:02 | FromDiscord | <that_dude.> Does that just work when used for c interop? It's more static lib stuff |
07:18:12 | FromDiscord | <Elegantbeef> Yes |
07:18:38 | FromDiscord | <that_dude.> Cool |
07:18:59 | FromDiscord | <Elegantbeef> Though you can just take in an `array[3, cfloat]` if you're doing interop with your own libraries 😄 |
07:19:02 | FromDiscord | <that_dude.> And it's `array[3, cfloat]` and not `ptr array[3, cfloat]` |
07:19:27 | FromDiscord | <Elegantbeef> Well if you want to mutate it make it a `var array[3, cfloat]` |
07:20:32 | FromDiscord | <that_dude.> I'm not worried about mutating it. I just need to make sure it can work with `const float rgb []` from some provided lib code |
07:37:55 | * | junaid_ joined #nim |
07:46:11 | * | hohlerde joined #nim |
08:41:07 | * | def- quit (Quit: -) |
08:43:19 | * | def- joined #nim |
08:55:52 | FromDiscord | <aryzen> Is there a good tutorial for nim? |
08:58:21 | FromDiscord | <that_dude.> In reply to @aryzen "Is there a good": https://nim-lang.org/documentation.html↵This has a lot of tutorials linked |
09:55:55 | * | hohlerde quit (Quit: Connection closed for inactivity) |
11:40:43 | FromDiscord | <graveflo> sent a long message, see https://pasty.ee/bCIMtTCJDjQl |
13:09:15 | * | jmdaemon quit (Ping timeout: 260 seconds) |
13:27:35 | * | tc424 quit (Ping timeout: 272 seconds) |
13:29:56 | * | tc424 joined #nim |
13:40:34 | * | xutaxkamay joined #nim |
13:44:24 | * | tc424 quit (Ping timeout: 255 seconds) |
13:48:14 | * | tc424 joined #nim |
13:56:34 | * | tc424 quit (Ping timeout: 246 seconds) |
14:02:27 | * | tc424 joined #nim |
14:07:39 | FromDiscord | <graveflo> Is there a way to "reset" a NimNode or tree of NimNodes so that they go through semantic processing again? If I use `getImpl` and I want to re-emit the ast with changes I have to scrub information from the ast tree that belongs to it's source so it doesn't get effed up |
14:35:21 | * | tc424 quit (Ping timeout: 272 seconds) |
14:36:07 | * | tc424 joined #nim |
15:02:17 | * | azimut quit (Ping timeout: 255 seconds) |
15:03:03 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1 - https://znc.in) |
15:03:59 | * | xutaxkamay joined #nim |
15:18:49 | FromDiscord | <leorize> yes, there are a bunch of hacks for that |
15:19:20 | FromDiscord | <leorize> but really it's a compiler bug |
15:20:05 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1 - https://znc.in) |
15:21:55 | * | xutaxkamay joined #nim |
15:21:56 | FromDiscord | <leorize> this is the best method of doing it atm\: https://github.com/nim-works/cps/blob/002fd1c3ea31f38dd626b66c16ba532dab04b5d5/cps/rewrites.nim#L117-L442 |
15:22:46 | FromDiscord | <graveflo> wow, that is a lot of special cases. Thanks for sharing |
15:25:03 | FromDiscord | <nnsee> wow, cool layout, github https://media.discordapp.net/attachments/371759389889003532/1208433940881346560/Screenshot_20240217-172425_Firefox.png?ex=65e344cf&is=65d0cfcf&hm=e5839befbad19c326e2d066cbe249a4e9e041816e76bb52910d82cb4fba7fd1a& |
15:32:18 | FromDiscord | <leorize> lol |
15:46:16 | * | rockcavera joined #nim |
15:46:33 | FromDiscord | <leorize> note that getImpl and generics are not fun and don't expect that you can solve it↵(@graveflo) |
15:48:53 | FromDiscord | <graveflo> I was only chasing an solution to that problem for exploratory reasons. Luckily I don't actually need it. It would be nice if it worked and I can think of some situations where it would be more pressing to have that feature. I'm not just do it it the long way this time |
15:49:06 | * | xet7 joined #nim |
15:49:16 | FromDiscord | <graveflo> (edit) "not" => "going to" |
16:21:25 | FromDiscord | <takemichihanagaki3129> In reply to @nnsee "wow, cool layout, github": Some times, this happens with me.↵Just reload the page. IDK why this happens, lol. |
16:22:29 | * | advesperacit joined #nim |
16:34:49 | * | azimut joined #nim |
16:35:22 | * | Guest20fa joined #nim |
16:38:21 | * | Guest20fa quit (Client Quit) |
17:09:49 | * | redj quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
17:14:35 | FromDiscord | <fosster> nim people, I'm having difficulties debugging nim code with gdb |
17:15:13 | FromDiscord | <fosster> basically I want to display a local variable but everytime I try it gives back "No symbol "var" in current context" |
17:15:57 | FromDiscord | <fosster> I tried with `info locals` it only gives back stuff like the line number, the function name and other things but not my variables |
17:16:31 | FromDiscord | <fosster> how are you supposed to lookup variables in gdb? |
17:16:38 | FromDiscord | <fosster> how are you supposed to lookup nim variables in gdb? |
17:17:17 | FromDiscord | <leorize> you compiled with debug information, right? |
17:17:28 | FromDiscord | <fosster> yup, `--debugger:native` |
17:17:40 | FromDiscord | <leorize> did you turn off stacktraces? |
17:17:49 | FromDiscord | <leorize> `--stacktrace:off`, basically |
17:18:34 | FromDiscord | <fosster> I've just tried, same thing |
17:19:08 | FromDiscord | <leorize> are you at the start of a function or inside it? |
17:19:28 | FromDiscord | <fosster> in any point of the function, always the same |
17:19:56 | FromDiscord | <leorize> hmm that's weird, can you share the code? |
17:20:28 | FromDiscord | <leorize> I never used `info locals` but just tab-completed my way through |
17:20:40 | FromDiscord | <fosster> actually I don't see why the code itself would be the problem since it's a problem of the debugger |
17:20:46 | FromDiscord | <fosster> btw I use `nim-gdb` |
17:21:51 | FromDiscord | <leorize> sometimes compiler could optimize away locals |
17:21:56 | FromDiscord | <leorize> I use regular `gdb` |
17:22:09 | FromDiscord | <leorize> the nim enhancement didn't do enough for me to use it |
17:23:06 | FromDiscord | <fosster> this is what I get when doing `info locals`\:↵`FR_ = {prev = 0x7fffffffe6e0, procname = 0x555555569545 "function", line = 0, filename = 0x555555569bd0 "/path/to/the/source/file", len = 0, calldepth = 1, frameMsgLen = 0}` |
17:23:41 | FromDiscord | <fosster> hmm, so how can I disable any optimization? |
17:24:10 | FromDiscord | <leorize> you don't have `-d:release` or anything, right? |
17:24:33 | FromDiscord | <fosster> nop, just plain simple `nimble build` with the debugger flag |
17:27:41 | FromDiscord | <leorize> so uh, don't use `nimble build` |
17:29:13 | FromDiscord | <fosster> should I compile it with just nimc? |
17:29:34 | FromDiscord | <fosster> should I compile it with just nim? |
17:29:39 | FromDiscord | <fosster> should I compile it with just nim compiler? |
17:30:26 | FromDiscord | <leorize> yea |
17:31:26 | FromDiscord | <nnsee> nimble has its own ideas on how to call the nim compiler |
17:32:50 | FromDiscord | <fosster> thought it would just call the compiler under the hood with no hidden magic |
17:35:04 | FromDiscord | <leorize> that is if nimble was trustworthy |
17:46:50 | FromDiscord | <fosster> why isn't it? isn't the official package manager from nim team? |
17:47:41 | FromDiscord | <leorize> official != good |
17:47:48 | FromDiscord | <leorize> in fact it's widely known that nimble is pretty trash |
17:48:00 | FromDiscord | <leorize> and we only put up with it because there are no alternatives |
17:48:18 | FromDiscord | <leorize> well there's atlas now but it doesn't do everything yet |
17:50:12 | FromDiscord | <fosster> if so, in my opinion they should put more effort in the package manager, since it seems to be ha "must-have" for modern succesful programming languages |
17:50:25 | FromDiscord | <alex.boisvert> BTW, you can see what nimble does if you pass `--debug` , such as `nimble --debug build`. It doesn't have to be mysterious. |
17:50:30 | FromDiscord | <fosster> but can you please expand, why do you thing is it trash |
17:50:51 | FromDiscord | <fosster> thanks for the hint↵(@alex.boisvert) |
17:51:38 | FromDiscord | <leorize> it pools packages in one location, and compiler picks the latest one without consideration for the version that should be used |
17:51:54 | FromDiscord | <fosster> I mean for the few times I've worked with nim, it just did get the jobe done |
17:52:00 | FromDiscord | <fosster> I mean for the few times I've worked with nim, it just did get the job done |
17:52:01 | FromDiscord | <leorize> nimble files are nimscript that requires execution before data could be obtained from them |
17:52:08 | FromDiscord | <nnsee> did you guys know that nimble was initially called... babel |
17:52:35 | FromDiscord | <leorize> once you start working with more than a few projects deps from other projects start interfering with what you have |
17:52:54 | FromDiscord | <fosster> I can see |
17:53:45 | FromDiscord | <fosster> sounds like a phone app to learn languages lol↵(@nnsee) |
17:54:01 | FromDiscord | <leorize> well nim original name was nimrod |
17:54:09 | * | johnjaye quit (Ping timeout: 255 seconds) |
17:54:31 | FromDiscord | <leorize> so the names of software was revolving around biblical entities |
17:58:00 | * | cnx quit (Remote host closed the connection) |
17:58:48 | FromDiscord | <fosster> what a trip |
17:58:50 | * | cnx joined #nim |
18:09:32 | FromDiscord | <ezquerra> Araq himself is working on improving the package manager situation by developing atlas |
18:14:02 | * | junaid__ joined #nim |
18:14:19 | * | junaid__ quit (Client Quit) |
18:15:16 | * | junaid_ quit (Remote host closed the connection) |
18:19:55 | * | tc424 quit (Ping timeout: 268 seconds) |
18:22:46 | * | tc424 joined #nim |
18:42:00 | FromDiscord | <Robyn [She/Her]> In reply to @leorize "well there's atlas now": Cargo but Nim would be cool :P |
18:47:00 | * | junaid_ joined #nim |
18:52:27 | FromDiscord | <leorize> well disruptek/nimph exists |
18:53:54 | FromDiscord | <nnsee> is there a special nimskull matrix server or something |
18:53:59 | FromDiscord | <nnsee> where are the cool kids hang out |
19:00:33 | FromDiscord | <haxscramper> #nimworks\:envs.net |
19:06:04 | FromDiscord | <Robyn [She/Her]> Oh that's a neat tool |
19:24:54 | * | derpydoo joined #nim |
20:09:07 | * | junaid_ quit (Remote host closed the connection) |
20:17:11 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1 - https://znc.in) |
20:18:07 | * | xutaxkamay joined #nim |
20:23:44 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1 - https://znc.in) |
20:24:35 | * | xutaxkamay joined #nim |
20:30:00 | * | xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1 - https://znc.in) |
20:30:51 | * | xutaxkamay joined #nim |
20:32:35 | * | azimut quit (Ping timeout: 255 seconds) |
20:33:29 | * | azimut joined #nim |
20:47:26 | * | azimut quit (Ping timeout: 255 seconds) |
20:50:52 | * | azimut joined #nim |
21:14:27 | FromDiscord | <ebahi> can someone tell me what `detectOsImpl` in the std `distro` library do? i want to detect if a distro is based on another distro like debian or arch or fedora |
21:18:10 | FromDiscord | <leorize> you can read it's source code |
21:18:16 | FromDiscord | <leorize> it's pretty simple logic |
21:19:05 | FromDiscord | <ebahi> i did but i couldn't understand what the result meant |
21:19:27 | FromDiscord | <Elegantbeef> It tells you if the platform you're running on is of that distro |
21:19:59 | * | nazgulsenpai quit (Quit: ZNC 1.8.2 - https://znc.in) |
21:20:27 | FromDiscord | <ebahi> oh ok |
21:36:19 | * | nazgulsenpai joined #nim |
21:41:48 | NimEventer | New thread by Paths: Issues trying to install nim, see https://forum.nim-lang.org/t/11031 |
21:56:02 | * | ntat quit (Quit: Leaving) |
22:18:59 | FromDiscord | <ezquerra> Is there a way to spress that an argument must be an openArray[bool] or an openArray[openArray[bool]] or an openArray[openArray[openArray[bool]]] and so on?↵That is, that the "bottom" type is a bool which is stored on any number of levels of sequences or arrays? |
22:19:04 | FromDiscord | <ezquerra> (edit) "spress" => "express" |
22:22:55 | * | azimut quit (Remote host closed the connection) |
22:24:19 | * | azimut joined #nim |
22:25:57 | FromDiscord | <Robyn [She/Her]> In reply to @ezquerra "Is there a way": Like, a generic N-depth array? Possibly? |
22:26:11 | FromDiscord | <Robyn [She/Her]> I'll see if I can make a working example of that if it's even possible |
22:26:18 | FromDiscord | <Robyn [She/Her]> Probably hellish though |
22:27:21 | FromDiscord | <ezquerra> Yes |
22:29:08 | * | azimut quit (Ping timeout: 255 seconds) |
22:29:57 | FromDiscord | <demotomohiro> I tried "proc foo(x: openArray[openArray[int]]) =" and compiler says: "invalid type: 'openArray[int]' in this context: 'proc (x: openArray[openArray[int]])' for proc". |
22:31:24 | * | azimut joined #nim |
22:34:04 | FromDiscord | <Robyn [She/Her]> I'm struggling to make something work |
22:34:12 | FromDiscord | <Robyn [She/Her]> In reply to @demotomohiro "I tried "proc foo(x:": Probably needs to be a seq then |
22:45:17 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=ubqcbAFTKjDE |
22:45:35 | FromDiscord | <Robyn [She/Her]> Had to use seqs but this should still do the trick |
22:49:40 | FromDiscord | <Elegantbeef> You can use an array if you use a concept 😄 |
22:50:00 | FromDiscord | <ezquerra> How? |
22:50:15 | FromDiscord | <Robyn [She/Her]> Concepts are probably much better yeah, not proficient in them enough to suggest them though, personally |
22:51:26 | FromDiscord | <Elegantbeef> https://github.com/beef331/nimtrest/wiki/Code-snippets#procedure-based-introspection |
22:51:26 | FromDiscord | <Elegantbeef> Turn that BoxConcept into a `Box[T] = concept bc` and use `T` instead of `BoxAtom` |
22:52:35 | FromDiscord | <Elegantbeef> https://play.nim-lang.org/#pasty=rzjzzJOgVwyi |
22:52:49 | FromDiscord | <Elegantbeef> Accepts arrays of seqs of arrays of seqs of arrays 😛 |
22:53:13 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=KQOsKFIoklyR |
22:54:53 | FromDiscord | <Elegantbeef> I of course cannot help myself from doing the slight modification https://play.nim-lang.org/#pasty=nJqRTMnpKQhh 😄 |
22:55:11 | FromDiscord | <Elegantbeef> `result.startsWith` |
22:55:15 | FromDiscord | <Elegantbeef> You didnt assign ressult |
22:55:25 | FromDiscord | <Elegantbeef> You arent returning any names |
22:55:26 | FromDiscord | <sOkam! 🫐> tru ty |
22:55:37 | FromDiscord | <sOkam! 🫐> i had it assigned before but lost in translation |
22:56:23 | FromDiscord | <Elegantbeef> Those clipboards are devilish |
22:56:40 | FromDiscord | <sOkam! 🫐> now it renames, tysm |
22:57:00 | FromDiscord | <Elegantbeef> Insert clearly snide comment here |
23:00:09 | FromDiscord | <sOkam! 🫐> is there an easier way to strip strings from start of other strings that with indexing? |
23:00:15 | FromDiscord | <sOkam! 🫐> (edit) "that" => "than" |
23:00:52 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=pjmAwjbJumDY |
23:01:32 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=sdXqJjJGIUyo |
23:01:40 | FromDiscord | <pmunch> A macro? |
23:01:48 | FromDiscord | <pmunch> Or template I guess |
23:01:54 | FromDiscord | <Elegantbeef> Why not a proc |
23:02:01 | FromDiscord | <pmunch> Or even just a proc |
23:02:12 | FromDiscord | <pmunch> Could even be a func! |
23:02:21 | FromDiscord | <sOkam! 🫐> or even just a for loop with an array, just realized that |
23:02:51 | FromDiscord | <Elegantbeef> I'd just make a proc and use a factory |
23:03:01 | FromDiscord | <bosinski2023> In reply to @Elegantbeef "I of course cannot": thx for the sweet concept, btw is this a new style- or a old-style-concept ? |
23:03:08 | FromDiscord | <Elegantbeef> Actually that's not factory... |
23:03:17 | FromDiscord | <Elegantbeef> Old style concept, new style are even more untested |
23:04:12 | FromDiscord | <Elegantbeef> New style explode if you even think about using them slightly |
23:04:23 | FromDiscord | <Elegantbeef> Old style are a bit more stable and much more usable ime |
23:04:46 | FromDiscord | <bosinski2023> In reply to @Elegantbeef "Old style are a": well, then i'll wait a bit... |
23:04:54 | FromDiscord | <Elegantbeef> The worst part about both is they're not capable of being used to tag a type 😄 |
23:05:25 | FromDiscord | <bosinski2023> In reply to @Elegantbeef "The worst part about": what is ´tag a type´ ? |
23:05:32 | FromDiscord | <Elegantbeef> Want to add type information to a type to say "This is of a type `T[YourConcept]` too bad" |
23:05:36 | FromDiscord | <Elegantbeef> Whoops |
23:06:06 | FromDiscord | <sOkam! 🫐> In reply to @Elegantbeef "I'd just make a": problem is that there is no real "just" in that sentence |
23:06:26 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=RDAHsnRbtWzy |
23:06:32 | FromDiscord | <Elegantbeef> I mean it's two procs |
23:06:41 | FromDiscord | <Tommy> sent a long message, see https://pasty.ee/txgBwNAdQzvp |
23:07:06 | FromDiscord | <ezquerra> In reply to @Elegantbeef "I of course cannot": Does this kind of thing significantly affect compilation time? |
23:07:50 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=luNEDmadVMAE |
23:08:03 | FromDiscord | <Elegantbeef> I mean probably but I don't care about compile times that much |
23:08:13 | FromDiscord | <Elegantbeef> My code compiles fast enough that it's not a concern |
23:08:17 | FromDiscord | <bosinski2023> In reply to @Tommy "Hello sorry for bothering": clear answer NO, and now fck-off and sell your poisen elsewhere.. |
23:08:43 | FromDiscord | <Elegantbeef> I appreciate that they're attempting to sell cannabis in matrix and include a maple leaf |
23:08:54 | FromDiscord | <Elegantbeef> It's legal here we don't need to go to sketchy matrix users to buy cannabis |
23:09:40 | * | advesperacit quit () |
23:09:42 | FromDiscord | <bosinski2023> In reply to @Elegantbeef "It's legal here we": psycadelics, legal in canada ? you#re kiddin me ? |
23:09:59 | FromDiscord | <Elegantbeef> Cannabis has been legal in Canada since 2017 |
23:10:49 | FromDiscord | <bosinski2023> In reply to @Elegantbeef "Cannabis has been legal": ok, Thommy-boy is selling DMT, Lsd, Mdma, ketamine, too. |
23:11:08 | FromDiscord | <Elegantbeef> Right but I said they are advertising cannabis and included a maple leaf |
23:11:23 | FromDiscord | <Elegantbeef> Anyway it does not matter I found it funny |
23:12:18 | FromDiscord | <Elegantbeef> @ezquerra alternatively you can forgo the concept and just use `auto` and have it explode in your face when the error hits pretty much the exact same as it does now |
23:12:31 | FromDiscord | <bosinski2023> In reply to @Elegantbeef "Right but I said": yep great 😉 how can one make your snippet from the playground persist, say until nim 3.0 ? Or better copy/paste and keep it local ? |
23:12:49 | FromDiscord | <Elegantbeef> I mean any new snippets I make I try to add to my wiki |
23:13:16 | FromDiscord | <Elegantbeef> I personally think old style concepts work swell and are grand to use |
23:13:28 | FromDiscord | <Elegantbeef> But ymmv if you're attempting to do FP shenanigans inside them |
23:14:20 | FromDiscord | <bosinski2023> In reply to @Elegantbeef "I mean any new": nice plan, i guess that will later be the foundation for your upcoming "Nim Magic Tipps&Tricks" - title - i appreciate it :)) |
23:14:39 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=rWtUlDAWOioO |
23:14:43 | FromDiscord | <Elegantbeef> Nah I don't have enough insults to fill a book |
23:16:59 | FromDiscord | <sOkam! 🫐> what was the recent change to enum names exactly?↵i remember that being implemented, but don't remember how to find the note↵anyone knows how to find the news, or can explain what it was? |
23:17:16 | FromDiscord | <Elegantbeef> You can have overloaded enum names and the type system reasons it |
23:17:30 | FromDiscord | <Elegantbeef> Though if you have overloaded enum names and procedure or type names it explodes |
23:17:42 | FromDiscord | <sOkam! 🫐> kk ty ✍️ |
23:17:45 | FromDiscord | <Elegantbeef> https://nim-lang.org/blog/2023/08/01/nim-v20-released.html#overloadable-enums |
23:22:51 | FromDiscord | <bosinski2023> sent a code paste, see https://play.nim-lang.org/#pasty=tCayRRHhRZyv |
23:23:00 | FromDiscord | <ezquerra> It is not very clear to me what is the situation with concepts. They seem to be in some kind of limbo in which there are 2 versions but none is complete nor deprecated? |
23:23:11 | FromDiscord | <bosinski2023> (edit) "https://play.nim-lang.org/#pasty=xPVhDPgWCjxA" => "https://play.nim-lang.org/#pasty=ImyVbGwcqVSH" |
23:23:24 | * | lucasta joined #nim |
23:27:42 | FromDiscord | <Elegantbeef> Well new style are not capable or representing old style |
23:28:24 | FromDiscord | <Elegantbeef> do `static: gaps4[1]` in that case |
23:31:47 | FromDiscord | <bosinski2023> In reply to @Elegantbeef "do `static: gaps4[1]` in": thx wizard, i appreciate it, pls. work on your wiki.. |
23:50:35 | * | azimut quit (Ping timeout: 255 seconds) |