<< 02-04-2024 >>

00:31:01*SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev)
00:31:14*SchweinDeBurg joined #nim
00:39:06FromDiscord<cletus6872> is the Nim forum down for everybody, or is it just me?
01:39:04*krux02_ quit (Remote host closed the connection)
01:50:44*une joined #nim
01:52:41*rockcavera joined #nim
02:10:18*SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev)
02:25:04FromDiscord<sOkam! 🫐> I have a json file that has 4 fields, but it represents a tree and one of the fields can contain a group of those same 4 fields as the data for the 4th field↵How could I write an iterator that yields, lets say, field2 for all elements of the tree? 🤔
02:27:00FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=JtjBKtuaoLvZ
02:28:00FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=vSBUTTmaQwkc
02:28:30FromDiscord<sOkam! 🫐> what is unsafeGet?
02:28:54FromDiscord<Elegantbeef> `get` without the checks
02:29:08FromDiscord<sOkam! 🫐> oh its from options? kk
02:29:26FromDiscord<sOkam! 🫐> but... i don't have option types? 🤔↵i have a json. i don't know how to turn that into options
02:31:30FromDiscord<Elegantbeef> Are you using Nim's Json?
02:31:44FromDiscord<Elegantbeef> If so you can skip options and just use `JsonNode` and `nil`
02:32:33FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=JNzVNgqLdvCb
02:33:35FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=yLpdAZjhmSJU
02:34:03FromDiscord<sOkam! 🫐> oh! smart. ty beef 🤘
02:34:43FromDiscord<Elegantbeef> People cannot iterate a linked list anymore
02:34:44FromDiscord<Elegantbeef> This is what `seq` and friends have done to us
02:37:52FromDiscord<sOkam! 🫐> I have never been able to iterate a linked list ever, but that's because of lack of experience I would argue
02:39:04FromDiscord<sOkam! 🫐> wait, @ElegantBeef, "inner" is an array, so it is failing to retrieve "kind" from inner 🤔
02:39:11FromDiscord<sOkam! 🫐> can I add a for loop in there in some way?
02:39:19FromDiscord<Elegantbeef> So navigate it
02:40:02FromDiscord<sOkam! 🫐> well that's why im asking in the first place. i've always truggled with tree navigation, so i don't know how exactly
02:41:28FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=wuqKHPXoQTON
02:41:51*ExclamationPoint quit (Read error: Connection reset by peer)
02:42:01FromDiscord<sOkam! 🫐> but is that going to work recursively? that's why im asking
02:42:54*Guest4443 joined #nim
02:44:18FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=hDaQiYPANlew
02:44:46FromDiscord<sOkam! 🫐> plus I don't know if that's going to work recursively as expected
02:51:36FromDiscord<Elegantbeef> If you want it to work recursive make a `seq[JsonNode]` and add each `inner` to that then iterate until your queue is empty
02:54:03FromDiscord<sOkam! 🫐> In reply to @Elegantbeef "If you want it": I need a recursive iterator to add each inner in the first place, do I not?↵if that's not the case, then I really don't know what you meant
02:54:57FromDiscord<Elegantbeef> No cause each iteration cares about a single node and adds it's child(children)
02:59:32FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=LBwdqDuNQNgN
03:02:05FromDiscord<Elegantbeef> cause you don't need `tmp` anymore
03:02:11FromDiscord<Elegantbeef> `var list = @[json]`
03:02:50FromDiscord<albassort> im trying to do a redirect in httpbeast
03:02:54FromDiscord<albassort> but the headers are not there
03:04:36FromDiscord<albassort> https://media.discordapp.net/attachments/371759389889003532/1224555049989181513/image.png?ex=661deac3&is=660b75c3&hm=8795063ee22219e20602ec8db3b5e27fca8ad9fc17caa2a2a43743956e1a47df& https://media.discordapp.net/attachments/371759389889003532/1224555050223931443/image.png?ex=661deac3&is=660b75c3&hm=462947293cdc96199eb51a14f7ea6c43b45826af27f17ccfbdd9281451fa3696&
03:04:40FromDiscord<Elegantbeef> sokam you're practically doing a depth first search
03:07:27FromDiscord<sOkam! 🫐> In reply to @Elegantbeef "sokam you're practically doing": you might be hinting me on how to do this, but as usual, im just stuck in the small details of the syntax
03:09:33FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=SluxPVKQVfpO
03:09:37FromDiscord<Elegantbeef> Whoops
03:09:51FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=XLJFfyNnhIve
03:10:37FromDiscord<sOkam! 🫐> ah I was doing it all wrong it seems
03:11:59FromDiscord<Elegantbeef> Since iterators cannot be recursive and you want to visit every node this is the simplest I imagine
03:15:15FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=HCERikgfewYY
03:17:45FromDiscord<Elegantbeef> Tree traversal is fun for all ages!
03:37:05FromDiscord<sOkam! 🫐> wait, how do you early exit an iterator when a condition is true? return doesn't seem to work
03:37:15FromDiscord<Elegantbeef> break out of the loop
03:37:29FromDiscord<sOkam! 🫐> i meant inside the iterator
03:37:38FromDiscord<Elegantbeef> Same
03:37:42FromDiscord<Elegantbeef> Code runs until the next `yield`
03:37:49FromDiscord<Elegantbeef> If there is no yield the iterator is done
03:38:27FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=PlFCAYiYwRVI
03:39:18FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=MxnaLQSNjOwz
03:39:31FromDiscord<sOkam! 🫐> I guess
03:39:43FromDiscord<Elegantbeef> Iterators are just templates
03:39:54FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=WmrknUeTRvFM
03:40:20FromDiscord<Elegantbeef> even implement a `template reeeeturn() = ...`
03:45:31FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=fsiUmSvGcyBr
03:45:43FromDiscord<sOkam! 🫐> (edit) "https://play.nim-lang.org/#pasty=CdsLcCslWCsl" => "https://play.nim-lang.org/#pasty=pHCDsaqrGzwX"
03:50:00*SchweinDeBurg joined #nim
03:50:25FromDiscord<Elegantbeef> You're trying to do `a.kind = otherKind`
03:50:28FromDiscord<Elegantbeef> That's not valid Nim
03:52:00FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=QveGRVHdrxWO
03:53:32FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=MNzEaDiiQfdy
03:53:47FromDiscord<Elegantbeef> `entry.to` likely does it
03:54:47FromDiscord<sOkam! 🫐> no, its failing at that first line of the `entry.to` function
03:56:13FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=ApwTuApQsQaH
03:57:17FromDiscord<Elegantbeef> cause `to` likely does `result.kind = ....`
03:57:38FromDiscord<Elegantbeef> Explicitly stating the kind field is disallowed
03:58:12FromDiscord<sOkam! 🫐> i mean, `to` is that exact same function
03:58:19FromDiscord<Elegantbeef> https://nim-lang.org/docs/manual.html#types-cast-uncheckedassign
03:58:21FromDiscord<sOkam! 🫐> its recursively calling itself
03:58:44FromDiscord<Elegantbeef> Hey I cannot say much more than what I can say
06:00:45*advesperacit joined #nim
06:12:48*PMunch joined #nim
06:20:30FromDiscord<zectbumo> I found that if you find that nim secret crashes on you then you can do this to quickly get you back in↵`while ! nim secret; do done`
06:53:16FromDiscord<grumblygibson> > Araq commented on Aug 27, 2023↵> Use Malebolgia instead and avoid channels with thread pools.↵↵Are channels being removed or deprecated, or was this architecture guidance? I'm currently working with channels for the first time and reading up.
07:11:28FromDiscord<odexine> Architecture guidance I believe
07:13:29*xet7 quit (Remote host closed the connection)
07:15:54*xet7 joined #nim
08:02:55FromDiscord<bung8954> In reply to @grumblygibson "> Araq commented on": it still works
08:19:56FromDiscord<Phil> In reply to @grumblygibson "> Araq commented on": Not really, Araq is just recommending to use an abstraction over channels rather than the real thing
08:20:09FromDiscord<Phil> It's like telling you to use an ORM instead of writing raw SQL everywhere
08:21:08FromDiscord<Phil> I use channels as well for writing a multithreading runtime, that's the kind of package that (in Araqs opinion) should use channels.
08:21:34FromDiscord<ringabout> Well, built-in `channels` and `threadpool` are deprecated though
08:22:14FromDiscord<mratsim> In reply to @isofruit "I use channels as": the built-in channel were written for the old runtime, and use RTTI, they should be avoided even by libraries
08:22:38FromDiscord<mratsim> there is a replacement in github.com/nim-lang/threading
08:22:50FromDiscord<mratsim> (edit) "channel" => "channels"
08:22:59FromDiscord<Phil> I'm aware, that's the channel I use currently, the first implementation was using system/channels with plans to support both
08:23:08FromDiscord<Phil> Before the thread safety debugging became too annoying
08:23:34FromDiscord<Phil> In reply to @ringabout "Well, built-in `channels` and": It's only deprecated if the code and docs say so, right now neither do 😛
08:24:03FromDiscord<Phil> Like, I know it, but in the general conscience that can not be assumed to be known
08:24:29FromDiscord<grumblygibson> Thanks for the clarification. @mratsim ah okay. I'll refactor my example for threading (which I think fails to compile on msvc right now IIRC?)
08:25:05FromDiscord<Phil> In reply to @grumblygibson "Thanks for the clarification.": If you use refc instead of orc I think you should be fine, since that's said old runtime
08:25:54FromDiscord<Phil> That's the way I'd go if threading/channels don't work with the compiler you plan on using
08:27:40FromDiscord<grumblygibson> Thanks. I'll refactor for threading/channels. I have an example with refc and std/channels that works 100% fine on linux amd64 systems, and completely fails synchronization on OSX UMA systems. Trying to figure it out... brb with new tests...
08:31:58FromDiscord<Phil> In reply to @grumblygibson "Thanks. I'll refactor for": Note: threading channels are fixed size as opposed to std/channels.↵This was a deliberate design decision by the author (not me, please don't pitchfork me)↵↵This is an issue I ran into when I swapped myself
08:32:56FromDiscord<grumblygibson> Hmm, good to know. I think it should be fine as I'm only passing boolean flags for state between threads.
08:33:43FromDiscord<Phil> Check. I mean for the most part this is only an issue if you use trySend tryRecv, those can now actually fail without just growing and burning through more RAM
08:34:03FromDiscord<Phil> It's just sth to be aware of for edge cases... like tests
08:39:42*Guest4443 quit (Ping timeout: 252 seconds)
08:55:44FromDiscord<grumblygibson> sent a long message, see https://pasty.ee/XwRDEtrqtbto
08:59:39FromDiscord<Phil> No brainpower, apologies. I'm at work
09:17:29*PMunch_ joined #nim
09:20:24*PMunch quit (Ping timeout: 252 seconds)
11:37:07FromDiscord<grumblygibson> In reply to @grumblygibson "I would be so": solved. `initLock` should not be forgotten.
12:10:20*ntat joined #nim
12:59:41*rockcavera quit (Remote host closed the connection)
13:57:09FromDiscord<TӨMΛ ☠> Silly daily question from Toma, but what procedure let me convert string into char?
13:57:26FromDiscord<TӨMΛ ☠> (edit) "Silly daily question from Toma, but what procedure let me convert string into char? ... " added "(of length one)"
13:57:29PMunch_Array access?
13:57:34FromDiscord<TӨMΛ ☠> (edit) "(of" => "(string of"
13:57:58PMunch_`myStringGuaranteedToBeOnlyOneCharNoMoreNoLess[0]`
13:58:04PMunch_That converts to a character
13:58:25*PMunch_ is now known as PMutnch
13:58:30*PMutnch is now known as PMunch
13:58:39FromDiscord<TӨMΛ ☠> Oooh, Nim, you silly beautiful being↵Thank you so much, this looks both funny and awesome ❤️
13:59:14PMunchI mean you're literally selecting the first character from a string of characters, not sure what's so funny and awesome about that :P
13:59:43PMunchNote that that it will only work with ASCII characters
14:06:20FromDiscord<TӨMΛ ☠> In reply to @PMunch "I mean you're literally": It's very intuitive if you remember how smoothly Nim let you work around data types, but I still forget how much nice sugar syntax it uses for such stuff↵I was wondering if I need to convert it to seq, then pick first element, or if there's explicit `toChar` proc, silly me 😄
14:14:03*PMunch quit (Quit: Leaving)
14:22:26*krux02 joined #nim
14:32:38FromDiscord<nnsee> In reply to @toma400 "Silly daily question from": fyi a char and a string of length one are different types
14:45:34FromDiscord<nnsee> In reply to @toma400 "Silly daily question from": perhaps the easiest demonstration of this is to show that they occupy different sizes of memory https://play.nim-lang.org/#pasty=WxclaJaBXqDK
14:53:38FromDiscord<nnsee> and if you're interested in the memory contents themselves https://play.nim-lang.org/#pasty=NgbOfJGUOVBR
14:56:18FromDiscord<TӨMΛ ☠> This is fascinating. I love how you included binary which is what I'm coding right now and what was the reason of my question at the first place
14:56:36FromDiscord<TӨMΛ ☠> I really need to start rewatching CS50, feels like it's best time now when I'm touching this field
15:04:31FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=krxOddKyGuGG
15:16:02FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=cSnZqSXffPvP
15:19:16FromDiscord<norax.2> so i whas wondering
15:19:26FromDiscord<norax.2> does nim use ASCII or UTF-8?
15:19:44FromDiscord<norax.2> and mostly does it let you switch it while in code
15:19:55FromDiscord<norax.2> like do an echo whit ascii and another whit utf-8
15:33:37FromDiscord<Robyn [She/Her]> In reply to @toma400 "I'm probably annoying at": Try importing `std/tables` in that file
15:34:05FromDiscord<Robyn [She/Her]> The `$` proc probably isn't in scope so it uses the default implementation
15:34:44FromDiscord<Robyn [She/Her]> In reply to @norax.2 "does nim use ASCII": Nim doesn't care really, but a `char` is exactly one byte, if you want UTF-8, look at `std/unicode`
15:35:04FromDiscord<norax.2> oki
15:35:13FromDiscord<norax.2> im trying to print emojis
15:35:17FromDiscord<norax.2> (war crime)
15:35:31FromDiscord<Robyn [She/Her]> In reply to @norax.2 "im trying to print": You can do that without std/unicode
15:35:45FromDiscord<norax.2> so is UTF-8
15:35:57FromDiscord<Robyn [She/Her]> Just paste the emojis into the string
15:35:58FromDiscord<norax.2> cause ASCII doesnt support emoji
15:36:22FromDiscord<Robyn [She/Her]> In reply to @norax.2 "so is UTF-8": No, Nim strings are literally just a sequence of bytes, it doesn't care about encoding
15:37:03FromDiscord<norax.2> k
15:39:06Amun-Ranim string literals are encoded in utf-8
15:39:33FromDiscord<norax.2> okay then i whas right
15:41:11Amun-Rabut unless you use std/unicode you'll iterate over octets
15:43:16FromDiscord<noltemann> The issue I'm facing is that when trying to compile a program in Nim, I'm getting the error message "cannot open file: nimx." This indicates that the compiler can't find the nimx file needed for compilation. I've checked the file's location, reinstalled nimx, and reviewed the environment settings, but the problem persists. I need assistance in resolving this issue to compile my program successfully.
15:43:40FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "nim string literals are": Huh?
15:45:07FromDiscord<Robyn [She/Her]> https://nim-lang.org/docs/manual.html#lexical-analysis-string-literals↵> Strings in Nim may contain any 8-bit value
15:45:49FromDiscord<Robyn [She/Her]> I'd assume that means it's purely just a sequence of bytes
15:48:30FromDiscord<norax.2> encoding is how nim transforms text to bytes
15:48:40FromDiscord<norax.2> ascii uses uhh 4 if im not wrong
15:48:47FromDiscord<norax.2> and only the american letters
15:48:50Amun-RaRobys: yes, strings are sequences of bytes
15:48:58FromDiscord<norax.2> while utf-8
15:49:03FromDiscord<norax.2> all lenguages and emojis
15:49:09FromDiscord<norax.2> (edit) "emojis" => "emojis/simbles"
15:49:12FromDiscord<norax.2> should be 8 bytes
15:49:14FromDiscord<kots> I would take what amun ra said as: text is conceptually a series of codepoints, and in order to have a string literal (in memory) as a series of bytes, the compiler has to choose one way or another to encode those codepoints, and it happens to choose utf-8
15:49:41FromDiscord<norax.2> aniway thx
15:49:48FromDiscord<norax.2> now i know that it uses utf-8
15:49:52FromDiscord<norax.2> and i can use emoji
15:49:56FromDiscord<norax.2> (edit) "emoji" => "emojis"
15:50:17Amun-RaRobyn: but the default string encoding is the other thing
15:50:21Amun-RaRobyn: 'https://play.nim-lang.org/#pasty=psoHExEwQvCt'
15:52:37Amun-RaI mean string literal encoding*
15:54:25FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "Robyn: 'https://play.nim-lang.org/#pasty=psoHExEwQv": I'd imagine that's dependent on the system, still?
15:54:45FromDiscord<noltemann> Can someone help me? I'm having issues with NimX
15:55:18Amun-RaRobyn: that would be problematic - different behavior on different systems
15:55:27FromDiscord<Robyn [She/Her]> In reply to @noltemann "Can someone help me?": https://dontasktoask.com/
15:56:20Amun-RaRobyn: check this https://play.nim-lang.org/#pasty=ARJCWhjuhVRI
15:56:43FromDiscord<noltemann> In reply to @chronos.vitaqua "https://dontasktoask.com/": The issue I'm facing is that when trying to compile a program in Nim, I'm getting the error message "cannot open file: nimx." This indicates that the compiler can't find the nimx file needed for compilation. I've checked the file's location, reinstalled nimx, and reviewed the environment settings, but the problem persists. I need assistance in resolving this issue to compile my
15:57:11Amun-RaRobyn: s2 encoding may depend on the editor, but the s1 one is always utf-8
15:57:31FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "Robyn: that would be": It would, but I can't see why Nim would do anything regarding string literals...
15:58:07FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "Robyn: s2 encoding may": It just converts that to a unicode code point, no? Whether the user actually is using UTF-8 on their system it's irrelevent?
15:58:35FromDiscord<Robyn [She/Her]> I don't know enough about this to actually come to a conclusion, but it seems fishy
15:59:22Amun-RaRobyn: to be consistent, just remember - always set text editor to utf-8 or always use \u literals
15:59:40Amun-Rafor \u literals are stored always as utf-8
16:00:24FromDiscord<Robyn [She/Her]> In reply to @noltemann "The issue I'm facing": If you're doing this in a nimble project, have you made sure to add `requires "nimx"`? Though by reading the GitHub repo, you need to specify the file you want to import specifically: https://github.com/yglukhov/nimx#usage
16:03:52FromDiscord<TӨMΛ ☠> In reply to @chronos.vitaqua "Try importing `std/tables` in": Ooh, that works, thank you ❤️ ↵Out of curiosity, is there a way to export it from main file, so you will have it always imported with `import espirit`?
16:04:38Amun-Ratables?
16:04:47Amun-Raimport std/tables; export tables
16:04:47FromDiscord<TӨMΛ ☠> (edit) "↵Out" => "↵~~Out" | "espirit`?" => "espirit`?~~ ...turns out it's just enough to put `export tables` 😄"
16:04:54*Guest4443 joined #nim
16:05:28FromDiscord<Robyn [She/Her]> In reply to @toma400 "Ooh, that works, thank": No problem!
16:05:53FromDiscord<TӨMΛ ☠> In reply to @Amun-Ra "import std/tables; export tables": Yeah, I feel like I forgot how to code in Nim for those few months of not doing it regularly 😄 thank you!↵It's always such good thing to come back though
16:06:02Amun-Rahappens :p
16:31:02*Guest4443 quit (Quit: Leaving)
16:59:04*SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev)
17:19:12*rockcavera joined #nim
18:03:07FromDiscord<pierce.jason> I'm trying to install the nim-lang.org extension in VSCodium, but only the saem one is listed in VSCodium and on open-vsx.org. Where would I find a download for the official nim-lang.org plugin for VS Code/Code/Codium?
18:18:14FromDiscord<tixonochek> Why do people call it Vs codium
18:18:38advesperacitbecause vscodium exists?
18:18:51Amun-RaI wonder… https://vscodium.com/
18:19:04FromDiscord<tixonochek> oh alr
18:19:18Amun-Ravscodium is to vscode as chromium is to chrome :)
18:19:19FromDiscord<starkiller1493> In reply to @pierce.jason "I'm trying to install": https://github.com/nim-lang/vscode-nim
18:19:26FromDiscord<Ethin> Because that's what it's called. It's a fork of VSCode that supposedly removes all the trackers and MS-specific stuff for those who hate Microsoft's guts. (It also breaks accessibility, or last time I tried using it did, so meh.)
18:19:44FromDiscord<tixonochek> In reply to @tixonochek "oh alr": never knew this thing existed
18:20:02FromDiscord<tixonochek> In reply to @Amun-Ra "vscodium is to vscode": weird analogy with chromium & chrome in my opinion
18:20:47Amun-Rait's pretty close
18:20:53Amun-Ranot 1:1 tho
18:24:05FromDiscord<Ethin> Question\: for `std/json`, how are objects handled that are dynamic? I.e., something like the Google discovery document where they have the parameters key,which is itself an object of keys, which themselves are objects, but the keys aren't known at compile time (see [here](https://developers.google.com/discovery/v1/reference/apis) for a better idea of what I'm talking about). Also how should I handle `$ref` stuff?
18:24:11FromDiscord<pierce.jason> In reply to @starkiller1493 "https://github.com/nim-lang/vscode-nim": Latest release tag there is 0.6, but that's years depricated. Release notes mention much more recent releases, but I cannot find a download for them. I see a .nimble file, but the extension is not in the nimble repos. I can clone the repo and build, but would prefer a released bin
18:25:34advesperacithttps://github.com/nim-lang/vscode-nim/issues/40 related issue, it's not published for vscodium atm
18:28:24FromDiscord<nervecenter> sent a long message, see https://pasty.ee/ngcUmmRfYcwr
18:28:43FromDiscord<nervecenter> (edit) "https://pasty.ee/LaivSUqFGmUn" => "https://pasty.ee/ikYfAoKqfeeQ"
18:28:51FromDiscord<nervecenter> (edit) "https://pasty.ee/SvrASNishiQX" => "https://pasty.ee/JZzUPXBCLtur"
18:29:31FromDiscord<nervecenter> (edit) "https://pasty.ee/dQTgkgwlYvlT" => "https://pasty.ee/QbGiOgVfmkoZ"
18:29:40FromDiscord<starkiller1493> In reply to @pierce.jason "Latest release tag there": Oh, you can just download it ffrom the market in the version history tab↵https://marketplace.visualstudio.com/items?itemName=NimLang.nimlang
18:29:48FromDiscord<starkiller1493> (edit) "ffrom" => "from"
18:30:12FromDiscord<nervecenter> (edit) "https://pasty.ee/CXkjVssPzZxK" => "https://pasty.ee/kheHVnQNRIqg"
18:32:29FromDiscord<pierce.jason> In reply to @starkiller1493 "Oh, you can just": Awesome, thanks! Waiting on the Version History to load now...
18:33:12FromDiscord<starkiller1493> In reply to @pierce.jason "Awesome, thanks! Waiting on": loads instantly for me
18:33:14FromDiscord<starkiller1493> https://marketplace.visualstudio.com/_apis/public/gallery/publishers/NimLang/vsextensions/nimlang/0.9.0/vspackage
18:33:45FromDiscord<pierce.jason> I've got gimpy internet, haha. The direct link did the trick!
18:37:38FromDiscord<huantian> In reply to @Amun-Ra "vscodium is to vscode": I think it should go chromium, chrome, and ungoogled chromium is analogous to code,vscode, and vscodium
18:38:35FromDiscord<madonuko> code is vscode
18:38:46FromDiscord<madonuko> codium is vscodium
18:38:56FromDiscord<madonuko> fundamentally no diff
18:39:18FromDiscord<huantian> Ehhhhhhhh I mean code as in the unbranded vscode that you have when you build from source
18:39:34FromDiscord<huantian> Code OSS if you will
18:39:40FromDiscord<madonuko> I didn't know that oops
18:39:48FromDiscord<madonuko> ah ok
18:46:30FromDiscord<pierce.jason> You da bomb! Extension is installed, it couldn't find nimlangserver, extension used nimble to auto-install, loaded nimsuggest. I think I'm good to go
18:46:38FromDiscord<pierce.jason> Thanks so much @starkiller1493
18:57:26*ntat quit (Quit: Leaving)
19:00:57FromDiscord<Phil> I will be honest, the main reasong I use vscodium is because that's whats in the arch repo and it does exactly the job I want it to
19:01:03FromDiscord<Phil> (edit) "reasong" => "reason"
19:28:26FromDiscord<pierce.jason> I don't have a good reason for vscodium. Closest is that VS Code barfed on the official plugin a couple times for me and I decided to try something not really different. Not exactly the definition of insanity, but pretty close
19:29:28FromDiscord<pierce.jason> @starkiller1493 btw, I updated that bug with the info you found for me
19:37:40FromDiscord<jaabir6947> # Hot Teen & Onlyfans Leaks :underage: :peach: https://discord.gg/esexx @everyone
20:02:08*rockcavera quit (Remote host closed the connection)
20:02:34FromDiscord<hxmus> error: '_O_BINARY' undeclared (first use in this function); did you mean 'O_BINARY'?↵ 151 | _setmode(T1_, _O_BINARY);↵ | ^~~~~~~~~↵ | O_BINARY
20:02:39FromDiscord<hxmus> whats that issue
20:02:53FromDiscord<nnsee> In reply to @noltemann "The issue I'm facing": is this chatgpt
20:03:18FromDiscord<nnsee> regardless, are you getting the error actually _when compiling_ or just in your IDE by nimsuggest?
20:03:35FromDiscord<nnsee> if it's the former, then how exactly are you installing nimx?
20:04:28FromDiscord<Robyn [She/Her]> In reply to @nnsee "regardless, are you getting": There's no nimx.nim file in the repo so that error makes sense
20:05:33FromDiscord<hxmus> https://media.discordapp.net/attachments/371759389889003532/1224811980628562041/image.png?ex=661eda0c&is=660c650c&hm=82d8ce486e7bd0d262472abadc58c4931954747274da271205813d1210b6ac4e&
20:06:12FromDiscord<hxmus> is there any problem with slib@[email protected] on windows
20:10:26*def- quit (Quit: -)
20:11:44*def- joined #nim
20:13:04FromDiscord<hxmus> i see it because cygwin isnt supported
20:18:40FromDiscord<Ethin> Uh.... With std/httpclient how do you get it to read the system cert store?
20:22:23FromDiscord<Ethin> Like I'm surprised it can't read the windows cert store.... Openssl cando that
20:22:32FromDiscord<Ethin> Like I'm surprised it can't read the windows cert store.... Openssl can do that
20:25:08*krux02_ joined #nim
20:25:19FromDiscord<michaelb.eth> the ca thing needs to be stored next to the executable, iirc
20:25:23FromDiscord<michaelb.eth> on windows
20:27:50*krux02 quit (Ping timeout: 268 seconds)
20:36:42FromDiscord<starkiller1493> How can I parse an enum just by it's name? parseEnum uses the string of the enum when it has one
20:37:31FromDiscord<sOkam! 🫐> @starkiller1493 there is a function for it on `std/enumutils`, can't remember the name
20:42:14FromDiscord<starkiller1493> In reply to @heysokam "<@348479174178111491> there is a": You mean symbolName? That can work, I can just iterate over the enum and compare
20:42:30FromDiscord<sOkam! 🫐> In reply to @starkiller1493 "You mean symbolName? That": that's what i usually do myself, yep
20:50:11*rockcavera joined #nim
20:55:30FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=AXxyPAekHFXk
21:08:37FromDiscord<sOkam! 🫐> @ElegantBeef any ideas about that error? 👆
21:09:03FromDiscord<sOkam! 🫐> im giga confused, trying everything I can think of and it still crashes
21:10:45FromDiscord<Elegantbeef> No cause I don't know what line 60 is
21:11:00FromDiscord<nnsee> how do you not know line 60
21:11:14FromDiscord<sOkam! 🫐> ?
21:11:23FromDiscord<Elegantbeef> I was dropped as a child
21:11:31FromDiscord<sOkam! 🫐> ` var filename :clang.CXString`
21:12:05FromDiscord<Elegantbeef> Seems like it's the `clang.CXString`
21:12:21FromDiscord<nnsee> hm... i wonder if it could be the clang.CXString
21:12:30FromDiscord<sOkam! 🫐> yeah, but how/why 🤔
21:12:42FromDiscord<Elegantbeef> I don't know remove the `clang` and see if it goes away
21:14:15FromDiscord<sOkam! 🫐> what could cause explicit import qualification to fail like that?
21:14:21FromDiscord<Elegantbeef> No clue
21:15:08FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=KhLcgobiEFCO
21:15:38FromDiscord<sOkam! 🫐> @pmunch well, that's a bug in `libclang-nim`, very easy to fix also
21:16:13FromDiscord<Elegantbeef> Believe it or not github has issues
21:17:21FromDiscord<nnsee> i don't believe it
21:19:29FromDiscord<sOkam! 🫐> !tag github issue @message above
21:19:58FromDiscord<sOkam! 🫐> nope... not connected↵_(sarcastic joke, ofc)_
21:20:07FromDiscord<nnsee> In reply to @heysokam "!tag github issue @message": hey don't drag me into it
21:20:21FromDiscord<sOkam! 🫐> 😄
21:27:38*advesperacit quit ()
21:27:50*xet7 quit (Remote host closed the connection)
21:32:43*xet7 joined #nim
21:35:15FromDiscord<Ethin> How do you get std/ssl to read the windows cert store? It says there aren't any CA certs (but obviously there are)
21:35:16FromDiscord<Ethin> When you try to build using std/httpclient using -d\:ssl
21:36:06*Jjp137 quit (Quit: Leaving)
21:36:39FromDiscord<Elegantbeef> You ship the `.pem` or w/e with the binary afaik
21:37:31*Jjp137 joined #nim
21:42:54FromDiscord<Robyn [She/Her]> https://gist.github.com/Luyten-Orion/3662cbf15778555dc2dfe18753e7f617
21:43:18FromDiscord<Robyn [She/Her]> Too big to paste here lol
21:43:48FromDiscord<Robyn [She/Her]> (edit) "Too" => "The message is too"
21:44:03FromDiscord<Robyn [She/Her]> Also waaay too much code to even paste/strip down
21:53:22FromDiscord<Robyn [She/Her]> My SQL was incomplete, got it working now!
21:55:28FromDiscord<Ethin> Uh... The CA certificates are just normal HTTPS certs taht come with every system. I would do that if these were specialized/self-signed but they aren't
21:56:19FromDiscord<Ethin> The std/ssl module is saying it has no CA certificates whatsoever. As in, it can't establish (any) HTTPS connections securely because it probably doesn't even have a root CA certificate.
21:56:47FromDiscord<nnsee> are you sure? it should by default read the windows ca store
21:56:51FromDiscord<Ethin> `Error: unhandled exception: No SSL/TLS CA certificates found. [IOError]`
21:56:56FromDiscord<nnsee> hmm
21:57:47FromDiscord<nnsee> that's strange
21:58:24FromDiscord<Ethin> Granted I downloaded openssl 1.1.1W from the normal place you get win64 binaries but that shouldn't impact anything.... It should still see system certs
22:00:10FromDiscord<Ethin> I mean if it doesn't explicitly call out to the windows cert store that might be why. I know that windows isn't exactly a popular platform for Nim (which I don't understand, programming languages should generally be platform/OS agnostic, but eh)
22:00:48FromDiscord<nnsee> In reply to @Ethin "I mean if it": well, it should be openssl itself that's responsible for checking the cert store
22:00:54FromDiscord<nnsee> which is why i find it odd
22:01:07FromDiscord<nnsee> maybe it's mingw fuckery
22:02:09FromDiscord<Ethin> I'm not using an openssl from mingw though
22:02:39FromDiscord<Ethin> Pretty sure the binaries it's loading are natively-compiled. I'm using this one\: https://slproweb.com/download/Win64OpenSSL-1_1_1w.exe
22:04:54FromDiscord<Ethin> These ones - https://slproweb.com/products/Win32OpenSSL.html
22:09:47*Mister_Magister quit (Excess Flood)
22:13:17FromDiscord<michaelb.eth> In reply to @Ethin "The std/ssl module is": https://nim-lang.org/docs/net.html#ssl-on-windows
22:13:43FromDiscord<nnsee> interesting
22:13:52FromDiscord<nnsee> windows really is something else huh
22:14:35FromDiscord<michaelb.eth> if you use chronos instead of std/net I don't think you need to do that because BearSSL gets statically linked and the cert authority stuff is baked in... I think!
22:15:37FromDiscord<nnsee> i do like bearssl
22:16:01*Mister_Magister joined #nim
22:17:02FromDiscord<michaelb.eth> yep: https://github.com/status-im/nim-bearssl/blob/master/bearssl/certs/cacert.nim
22:17:12FromDiscord<michaelb.eth> nim-bearssl being a dependency of nim-chronos
22:19:33FromDiscord<nnsee> >20221116
22:19:35FromDiscord<nnsee> seems kind of old
22:19:48FromDiscord<nnsee> isn't that from before that one CA was removed from the mozilla store?
22:24:21FromDiscord<michaelb.eth> does seem to be a bit old, found this: https://curl.se/docs/caextract.html
22:25:22FromDiscord<michaelb.eth> not sure if / how much of a concern it could be, maybe @arnetheduck knows
22:35:29*SchweinDeBurg joined #nim
22:44:34FromDiscord<Ethin> You'd think that std/net would be able to read the windows cert store instead of requiring apps to ship with the CA cert chain.... I don't know any other programming language that requires you to do that
22:45:41FromDiscord<nnsee> In reply to @Ethin "You'd think that std/net": i mean, it seems like you should open an issue about this on github
22:45:56FromDiscord<nnsee> i'm very surprised that this is the case
22:46:12FromDiscord<Ethin> I mean I will, but Nim on Windows doesn't seem to get a lot of attention for some reason
22:46:27FromDiscord<Elegantbeef> Developers don't use Windows 😛
22:46:38FromDiscord<Elegantbeef> Insert no true scotsman here
22:46:45FromDiscord<Ethin> Lol yes, developers do use windows
22:46:51FromDiscord<Ethin> Maybe not the nim devs but devs do use it
22:47:11FromDiscord<nnsee> unfortunately
22:47:31FromDiscord<Robyn [She/Her]> ^^
22:47:51FromDiscord<Robyn [She/Her]> I am stuck with Windows atm and WSL has been the only thing stopping me from loosing my goddamn mind-
22:48:20FromDiscord<Ethin> That's like saying that developers don't use MacOS. Which is absurd, because there are apps for both platforms, so obviously devs do use both
22:48:50FromDiscord<Robyn [She/Her]> You can develop for a platform without using it for development
22:48:57FromDiscord<Elegantbeef> How much more clear do I have to make my insincerity?
22:49:01FromDiscord<Robyn [She/Her]> But yeah obviously developers can use any OS
22:49:09FromDiscord<Robyn [She/Her]> Beef is trolling, btw :P
22:49:17FromDiscord<Elegantbeef> Since when is joking trolling?
22:49:18FromDiscord<Ethin> Sure,and that'll cause you some interesting problems, because you'll make assumptions about the platform that aren't probably true
22:49:32FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "Since when is joking": Potato potato
22:49:48FromDiscord<Elegantbeef> No that's like saying borrowing and stealing are the same
22:50:01FromDiscord<nnsee> you wouldn't borrow a car
22:50:15FromDiscord<Robyn [She/Her]> Yes I would
22:50:18FromDiscord<Robyn [She/Her]> :>
22:52:24FromDiscord<Phil> Just to spell it out before this turns into an actual debate: Beef do be talking out of his ass due to general distaste for windows (tbh - which I share)
22:52:48FromDiscord<Elegantbeef> I made a joke
22:52:50FromDiscord<Elegantbeef> Cmon
22:53:01FromDiscord<Phil> ~~People on MacOs don't develop software, they write Apps. What does that mean? Who knows!~~
22:53:11FromDiscord<Ethin> I get the distaste. But whether you believe it or not, windows is superior to Linux in several ways when it comes to desktop computing
22:53:20FromDiscord<Phil> In reply to @Elegantbeef "I made a joke": I was trying to imply that
22:53:20FromDiscord<nnsee> ohoohoh
22:53:27FromDiscord<Elegantbeef> Ok now we're in subjective territories
22:53:32FromDiscord<nnsee> i'll grab my popcorn
22:53:43FromDiscord<Elegantbeef> I for one could not live without my OS forcing me to update 😄
22:53:55FromDiscord<Phil> In reply to @Ethin "I get the distaste.": Put that discussion into #offtopic , this is not nim related and if somebody actually wants to ask a nim question I'd like the channel to be able to cater to them.
22:54:08FromDiscord<Phil> Well, not directly a nim related topic
22:54:09FromDiscord<Elegantbeef> People don't ask Nim questions
22:54:17FromDiscord<Ethin> Oh, this isn't subjective. Assistive technology is one area where Windows has the upper hand. Go look at the features a screen reader on Windows has and look at wha Orca has, yeah, no comparison
22:54:42FromDiscord<Ethin> Anyway sorry for going off topic xD
22:54:55FromDiscord<Ethin> Idk if I can accessthat discord channel on Matrix...Worth a try
22:55:05FromDiscord<Phil> You can, its called nim-offtopic in matrix
22:55:12FromDiscord<Phil> bridged to the discord offtopic channel
22:55:26FromDiscord<Phil> I'd know, I'm always on both clients at the same time
22:55:40FromDiscord<Ethin> Oh very nice
22:55:41FromDiscord<Elegantbeef> #offtopic
22:55:42FromDiscord<nnsee> i deleted my incredibly long message
22:55:48FromDiscord<Elegantbeef> [#nim\:envs.net](https://matrix.to/#/#nim:envs.net) is the matrix space
22:56:09FromDiscord<Elegantbeef> Assuming you have a client that has space support
22:56:39FromDiscord<Ethin> I do... Element for me is... Weird with spaces
22:57:14FromDiscord<Ethin> Easier to just join specific rooms than to try to access the list of rooms from the space, it doesn't like that for some reason
23:00:32FromDiscord<Robyn [She/Her]> In reply to @Ethin "I get the distaste.": In market domination, yeah
23:00:56FromDiscord<Robyn [She/Her]> In reply to @isofruit "Put that discussion into": Fair, sorry
23:15:09*jmdaemon joined #nim
23:42:37FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=VpSMroxwjnbT
23:42:53FromDiscord<Robyn [She/Her]> (edit) "https://play.nim-lang.org/#pasty=FFZfaNZnGyaz" => "https://play.nim-lang.org/#pasty=hWiyjUBpKXgX"
23:43:23FromDiscord<Elegantbeef> `default(obj)` is `nil`
23:43:43FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=MTtwornToixf
23:43:51FromDiscord<Robyn [She/Her]> Aahh okay, thanks!