00:31:01 | * | SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev) |
00:31:14 | * | SchweinDeBurg joined #nim |
00:39:06 | FromDiscord | <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:04 | FromDiscord | <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:00 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=JtjBKtuaoLvZ |
02:28:00 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=vSBUTTmaQwkc |
02:28:30 | FromDiscord | <sOkam! 🫐> what is unsafeGet? |
02:28:54 | FromDiscord | <Elegantbeef> `get` without the checks |
02:29:08 | FromDiscord | <sOkam! 🫐> oh its from options? kk |
02:29:26 | FromDiscord | <sOkam! 🫐> but... i don't have option types? 🤔↵i have a json. i don't know how to turn that into options |
02:31:30 | FromDiscord | <Elegantbeef> Are you using Nim's Json? |
02:31:44 | FromDiscord | <Elegantbeef> If so you can skip options and just use `JsonNode` and `nil` |
02:32:33 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=JNzVNgqLdvCb |
02:33:35 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=yLpdAZjhmSJU |
02:34:03 | FromDiscord | <sOkam! 🫐> oh! smart. ty beef 🤘 |
02:34:43 | FromDiscord | <Elegantbeef> People cannot iterate a linked list anymore |
02:34:44 | FromDiscord | <Elegantbeef> This is what `seq` and friends have done to us |
02:37:52 | FromDiscord | <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:04 | FromDiscord | <sOkam! 🫐> wait, @ElegantBeef, "inner" is an array, so it is failing to retrieve "kind" from inner 🤔 |
02:39:11 | FromDiscord | <sOkam! 🫐> can I add a for loop in there in some way? |
02:39:19 | FromDiscord | <Elegantbeef> So navigate it |
02:40:02 | FromDiscord | <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:28 | FromDiscord | <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:01 | FromDiscord | <sOkam! 🫐> but is that going to work recursively? that's why im asking |
02:42:54 | * | Guest4443 joined #nim |
02:44:18 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=hDaQiYPANlew |
02:44:46 | FromDiscord | <sOkam! 🫐> plus I don't know if that's going to work recursively as expected |
02:51:36 | FromDiscord | <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:03 | FromDiscord | <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:57 | FromDiscord | <Elegantbeef> No cause each iteration cares about a single node and adds it's child(children) |
02:59:32 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=LBwdqDuNQNgN |
03:02:05 | FromDiscord | <Elegantbeef> cause you don't need `tmp` anymore |
03:02:11 | FromDiscord | <Elegantbeef> `var list = @[json]` |
03:02:50 | FromDiscord | <albassort> im trying to do a redirect in httpbeast |
03:02:54 | FromDiscord | <albassort> but the headers are not there |
03:04:36 | FromDiscord | <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:40 | FromDiscord | <Elegantbeef> sokam you're practically doing a depth first search |
03:07:27 | FromDiscord | <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:33 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=SluxPVKQVfpO |
03:09:37 | FromDiscord | <Elegantbeef> Whoops |
03:09:51 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=XLJFfyNnhIve |
03:10:37 | FromDiscord | <sOkam! 🫐> ah I was doing it all wrong it seems |
03:11:59 | FromDiscord | <Elegantbeef> Since iterators cannot be recursive and you want to visit every node this is the simplest I imagine |
03:15:15 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=HCERikgfewYY |
03:17:45 | FromDiscord | <Elegantbeef> Tree traversal is fun for all ages! |
03:37:05 | FromDiscord | <sOkam! 🫐> wait, how do you early exit an iterator when a condition is true? return doesn't seem to work |
03:37:15 | FromDiscord | <Elegantbeef> break out of the loop |
03:37:29 | FromDiscord | <sOkam! 🫐> i meant inside the iterator |
03:37:38 | FromDiscord | <Elegantbeef> Same |
03:37:42 | FromDiscord | <Elegantbeef> Code runs until the next `yield` |
03:37:49 | FromDiscord | <Elegantbeef> If there is no yield the iterator is done |
03:38:27 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=PlFCAYiYwRVI |
03:39:18 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=MxnaLQSNjOwz |
03:39:31 | FromDiscord | <sOkam! 🫐> I guess |
03:39:43 | FromDiscord | <Elegantbeef> Iterators are just templates |
03:39:54 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=WmrknUeTRvFM |
03:40:20 | FromDiscord | <Elegantbeef> even implement a `template reeeeturn() = ...` |
03:45:31 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=fsiUmSvGcyBr |
03:45:43 | FromDiscord | <sOkam! 🫐> (edit) "https://play.nim-lang.org/#pasty=CdsLcCslWCsl" => "https://play.nim-lang.org/#pasty=pHCDsaqrGzwX" |
03:50:00 | * | SchweinDeBurg joined #nim |
03:50:25 | FromDiscord | <Elegantbeef> You're trying to do `a.kind = otherKind` |
03:50:28 | FromDiscord | <Elegantbeef> That's not valid Nim |
03:52:00 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=QveGRVHdrxWO |
03:53:32 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=MNzEaDiiQfdy |
03:53:47 | FromDiscord | <Elegantbeef> `entry.to` likely does it |
03:54:47 | FromDiscord | <sOkam! 🫐> no, its failing at that first line of the `entry.to` function |
03:56:13 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=ApwTuApQsQaH |
03:57:17 | FromDiscord | <Elegantbeef> cause `to` likely does `result.kind = ....` |
03:57:38 | FromDiscord | <Elegantbeef> Explicitly stating the kind field is disallowed |
03:58:12 | FromDiscord | <sOkam! 🫐> i mean, `to` is that exact same function |
03:58:19 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/manual.html#types-cast-uncheckedassign |
03:58:21 | FromDiscord | <sOkam! 🫐> its recursively calling itself |
03:58:44 | FromDiscord | <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:30 | FromDiscord | <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:16 | FromDiscord | <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:28 | FromDiscord | <odexine> Architecture guidance I believe |
07:13:29 | * | xet7 quit (Remote host closed the connection) |
07:15:54 | * | xet7 joined #nim |
08:02:55 | FromDiscord | <bung8954> In reply to @grumblygibson "> Araq commented on": it still works |
08:19:56 | FromDiscord | <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:09 | FromDiscord | <Phil> It's like telling you to use an ORM instead of writing raw SQL everywhere |
08:21:08 | FromDiscord | <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:34 | FromDiscord | <ringabout> Well, built-in `channels` and `threadpool` are deprecated though |
08:22:14 | FromDiscord | <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:38 | FromDiscord | <mratsim> there is a replacement in github.com/nim-lang/threading |
08:22:50 | FromDiscord | <mratsim> (edit) "channel" => "channels" |
08:22:59 | FromDiscord | <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:08 | FromDiscord | <Phil> Before the thread safety debugging became too annoying |
08:23:34 | FromDiscord | <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:03 | FromDiscord | <Phil> Like, I know it, but in the general conscience that can not be assumed to be known |
08:24:29 | FromDiscord | <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:05 | FromDiscord | <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:54 | FromDiscord | <Phil> That's the way I'd go if threading/channels don't work with the compiler you plan on using |
08:27:40 | FromDiscord | <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:58 | FromDiscord | <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:56 | FromDiscord | <grumblygibson> Hmm, good to know. I think it should be fine as I'm only passing boolean flags for state between threads. |
08:33:43 | FromDiscord | <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:03 | FromDiscord | <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:44 | FromDiscord | <grumblygibson> sent a long message, see https://pasty.ee/XwRDEtrqtbto |
08:59:39 | FromDiscord | <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:07 | FromDiscord | <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:09 | FromDiscord | <TӨMΛ ☠> Silly daily question from Toma, but what procedure let me convert string into char? |
13:57:26 | FromDiscord | <TӨMΛ ☠> (edit) "Silly daily question from Toma, but what procedure let me convert string into char? ... " added "(of length one)" |
13:57:29 | PMunch_ | Array access? |
13:57:34 | FromDiscord | <TӨMΛ ☠> (edit) "(of" => "(string of" |
13:57:58 | PMunch_ | `myStringGuaranteedToBeOnlyOneCharNoMoreNoLess[0]` |
13:58:04 | PMunch_ | 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:39 | FromDiscord | <TӨMΛ ☠> Oooh, Nim, you silly beautiful being↵Thank you so much, this looks both funny and awesome ❤️ |
13:59:14 | PMunch | I 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:43 | PMunch | Note that that it will only work with ASCII characters |
14:06:20 | FromDiscord | <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:38 | FromDiscord | <nnsee> In reply to @toma400 "Silly daily question from": fyi a char and a string of length one are different types |
14:45:34 | FromDiscord | <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:38 | FromDiscord | <nnsee> and if you're interested in the memory contents themselves https://play.nim-lang.org/#pasty=NgbOfJGUOVBR |
14:56:18 | FromDiscord | <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:36 | FromDiscord | <TӨMΛ ☠> I really need to start rewatching CS50, feels like it's best time now when I'm touching this field |
15:04:31 | FromDiscord | <TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=krxOddKyGuGG |
15:16:02 | FromDiscord | <TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=cSnZqSXffPvP |
15:19:16 | FromDiscord | <norax.2> so i whas wondering |
15:19:26 | FromDiscord | <norax.2> does nim use ASCII or UTF-8? |
15:19:44 | FromDiscord | <norax.2> and mostly does it let you switch it while in code |
15:19:55 | FromDiscord | <norax.2> like do an echo whit ascii and another whit utf-8 |
15:33:37 | FromDiscord | <Robyn [She/Her]> In reply to @toma400 "I'm probably annoying at": Try importing `std/tables` in that file |
15:34:05 | FromDiscord | <Robyn [She/Her]> The `$` proc probably isn't in scope so it uses the default implementation |
15:34:44 | FromDiscord | <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:04 | FromDiscord | <norax.2> oki |
15:35:13 | FromDiscord | <norax.2> im trying to print emojis |
15:35:17 | FromDiscord | <norax.2> (war crime) |
15:35:31 | FromDiscord | <Robyn [She/Her]> In reply to @norax.2 "im trying to print": You can do that without std/unicode |
15:35:45 | FromDiscord | <norax.2> so is UTF-8 |
15:35:57 | FromDiscord | <Robyn [She/Her]> Just paste the emojis into the string |
15:35:58 | FromDiscord | <norax.2> cause ASCII doesnt support emoji |
15:36:22 | FromDiscord | <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:03 | FromDiscord | <norax.2> k |
15:39:06 | Amun-Ra | nim string literals are encoded in utf-8 |
15:39:33 | FromDiscord | <norax.2> okay then i whas right |
15:41:11 | Amun-Ra | but unless you use std/unicode you'll iterate over octets |
15:43:16 | FromDiscord | <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:40 | FromDiscord | <Robyn [She/Her]> In reply to @Amun-Ra "nim string literals are": Huh? |
15:45:07 | FromDiscord | <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:49 | FromDiscord | <Robyn [She/Her]> I'd assume that means it's purely just a sequence of bytes |
15:48:30 | FromDiscord | <norax.2> encoding is how nim transforms text to bytes |
15:48:40 | FromDiscord | <norax.2> ascii uses uhh 4 if im not wrong |
15:48:47 | FromDiscord | <norax.2> and only the american letters |
15:48:50 | Amun-Ra | Robys: yes, strings are sequences of bytes |
15:48:58 | FromDiscord | <norax.2> while utf-8 |
15:49:03 | FromDiscord | <norax.2> all lenguages and emojis |
15:49:09 | FromDiscord | <norax.2> (edit) "emojis" => "emojis/simbles" |
15:49:12 | FromDiscord | <norax.2> should be 8 bytes |
15:49:14 | FromDiscord | <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:41 | FromDiscord | <norax.2> aniway thx |
15:49:48 | FromDiscord | <norax.2> now i know that it uses utf-8 |
15:49:52 | FromDiscord | <norax.2> and i can use emoji |
15:49:56 | FromDiscord | <norax.2> (edit) "emoji" => "emojis" |
15:50:17 | Amun-Ra | Robyn: but the default string encoding is the other thing |
15:50:21 | Amun-Ra | Robyn: 'https://play.nim-lang.org/#pasty=psoHExEwQvCt' |
15:52:37 | Amun-Ra | I mean string literal encoding* |
15:54:25 | FromDiscord | <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:45 | FromDiscord | <noltemann> Can someone help me? I'm having issues with NimX |
15:55:18 | Amun-Ra | Robyn: that would be problematic - different behavior on different systems |
15:55:27 | FromDiscord | <Robyn [She/Her]> In reply to @noltemann "Can someone help me?": https://dontasktoask.com/ |
15:56:20 | Amun-Ra | Robyn: check this https://play.nim-lang.org/#pasty=ARJCWhjuhVRI |
15:56:43 | FromDiscord | <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:11 | Amun-Ra | Robyn: s2 encoding may depend on the editor, but the s1 one is always utf-8 |
15:57:31 | FromDiscord | <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:07 | FromDiscord | <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:35 | FromDiscord | <Robyn [She/Her]> I don't know enough about this to actually come to a conclusion, but it seems fishy |
15:59:22 | Amun-Ra | Robyn: to be consistent, just remember - always set text editor to utf-8 or always use \u literals |
15:59:40 | Amun-Ra | for \u literals are stored always as utf-8 |
16:00:24 | FromDiscord | <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:52 | FromDiscord | <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:38 | Amun-Ra | tables? |
16:04:47 | Amun-Ra | import std/tables; export tables |
16:04:47 | FromDiscord | <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:28 | FromDiscord | <Robyn [She/Her]> In reply to @toma400 "Ooh, that works, thank": No problem! |
16:05:53 | FromDiscord | <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:02 | Amun-Ra | happens :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:07 | FromDiscord | <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:14 | FromDiscord | <tixonochek> Why do people call it Vs codium |
18:18:38 | advesperacit | because vscodium exists? |
18:18:51 | Amun-Ra | I wonder… https://vscodium.com/ |
18:19:04 | FromDiscord | <tixonochek> oh alr |
18:19:18 | Amun-Ra | vscodium is to vscode as chromium is to chrome :) |
18:19:19 | FromDiscord | <starkiller1493> In reply to @pierce.jason "I'm trying to install": https://github.com/nim-lang/vscode-nim |
18:19:26 | FromDiscord | <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:44 | FromDiscord | <tixonochek> In reply to @tixonochek "oh alr": never knew this thing existed |
18:20:02 | FromDiscord | <tixonochek> In reply to @Amun-Ra "vscodium is to vscode": weird analogy with chromium & chrome in my opinion |
18:20:47 | Amun-Ra | it's pretty close |
18:20:53 | Amun-Ra | not 1:1 tho |
18:24:05 | FromDiscord | <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:11 | FromDiscord | <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:34 | advesperacit | https://github.com/nim-lang/vscode-nim/issues/40 related issue, it's not published for vscodium atm |
18:28:24 | FromDiscord | <nervecenter> sent a long message, see https://pasty.ee/ngcUmmRfYcwr |
18:28:43 | FromDiscord | <nervecenter> (edit) "https://pasty.ee/LaivSUqFGmUn" => "https://pasty.ee/ikYfAoKqfeeQ" |
18:28:51 | FromDiscord | <nervecenter> (edit) "https://pasty.ee/SvrASNishiQX" => "https://pasty.ee/JZzUPXBCLtur" |
18:29:31 | FromDiscord | <nervecenter> (edit) "https://pasty.ee/dQTgkgwlYvlT" => "https://pasty.ee/QbGiOgVfmkoZ" |
18:29:40 | FromDiscord | <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:48 | FromDiscord | <starkiller1493> (edit) "ffrom" => "from" |
18:30:12 | FromDiscord | <nervecenter> (edit) "https://pasty.ee/CXkjVssPzZxK" => "https://pasty.ee/kheHVnQNRIqg" |
18:32:29 | FromDiscord | <pierce.jason> In reply to @starkiller1493 "Oh, you can just": Awesome, thanks! Waiting on the Version History to load now... |
18:33:12 | FromDiscord | <starkiller1493> In reply to @pierce.jason "Awesome, thanks! Waiting on": loads instantly for me |
18:33:14 | FromDiscord | <starkiller1493> https://marketplace.visualstudio.com/_apis/public/gallery/publishers/NimLang/vsextensions/nimlang/0.9.0/vspackage |
18:33:45 | FromDiscord | <pierce.jason> I've got gimpy internet, haha. The direct link did the trick! |
18:37:38 | FromDiscord | <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:35 | FromDiscord | <madonuko> code is vscode |
18:38:46 | FromDiscord | <madonuko> codium is vscodium |
18:38:56 | FromDiscord | <madonuko> fundamentally no diff |
18:39:18 | FromDiscord | <huantian> Ehhhhhhhh I mean code as in the unbranded vscode that you have when you build from source |
18:39:34 | FromDiscord | <huantian> Code OSS if you will |
18:39:40 | FromDiscord | <madonuko> I didn't know that oops |
18:39:48 | FromDiscord | <madonuko> ah ok |
18:46:30 | FromDiscord | <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:38 | FromDiscord | <pierce.jason> Thanks so much @starkiller1493 |
18:57:26 | * | ntat quit (Quit: Leaving) |
19:00:57 | FromDiscord | <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:03 | FromDiscord | <Phil> (edit) "reasong" => "reason" |
19:28:26 | FromDiscord | <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:28 | FromDiscord | <pierce.jason> @starkiller1493 btw, I updated that bug with the info you found for me |
19:37:40 | FromDiscord | <jaabir6947> # Hot Teen & Onlyfans Leaks :underage: :peach: https://discord.gg/esexx @everyone |
20:02:08 | * | rockcavera quit (Remote host closed the connection) |
20:02:34 | FromDiscord | <hxmus> error: '_O_BINARY' undeclared (first use in this function); did you mean 'O_BINARY'?↵ 151 | _setmode(T1_, _O_BINARY);↵ | ^~~~~~~~~↵ | O_BINARY |
20:02:39 | FromDiscord | <hxmus> whats that issue |
20:02:53 | FromDiscord | <nnsee> In reply to @noltemann "The issue I'm facing": is this chatgpt |
20:03:18 | FromDiscord | <nnsee> regardless, are you getting the error actually _when compiling_ or just in your IDE by nimsuggest? |
20:03:35 | FromDiscord | <nnsee> if it's the former, then how exactly are you installing nimx? |
20:04:28 | FromDiscord | <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:33 | FromDiscord | <hxmus> https://media.discordapp.net/attachments/371759389889003532/1224811980628562041/image.png?ex=661eda0c&is=660c650c&hm=82d8ce486e7bd0d262472abadc58c4931954747274da271205813d1210b6ac4e& |
20:06:12 | FromDiscord | <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:04 | FromDiscord | <hxmus> i see it because cygwin isnt supported |
20:18:40 | FromDiscord | <Ethin> Uh.... With std/httpclient how do you get it to read the system cert store? |
20:22:23 | FromDiscord | <Ethin> Like I'm surprised it can't read the windows cert store.... Openssl cando that |
20:22:32 | FromDiscord | <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:19 | FromDiscord | <michaelb.eth> the ca thing needs to be stored next to the executable, iirc |
20:25:23 | FromDiscord | <michaelb.eth> on windows |
20:27:50 | * | krux02 quit (Ping timeout: 268 seconds) |
20:36:42 | FromDiscord | <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:31 | FromDiscord | <sOkam! 🫐> @starkiller1493 there is a function for it on `std/enumutils`, can't remember the name |
20:42:14 | FromDiscord | <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:30 | FromDiscord | <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:30 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=AXxyPAekHFXk |
21:08:37 | FromDiscord | <sOkam! 🫐> @ElegantBeef any ideas about that error? 👆 |
21:09:03 | FromDiscord | <sOkam! 🫐> im giga confused, trying everything I can think of and it still crashes |
21:10:45 | FromDiscord | <Elegantbeef> No cause I don't know what line 60 is |
21:11:00 | FromDiscord | <nnsee> how do you not know line 60 |
21:11:14 | FromDiscord | <sOkam! 🫐> ? |
21:11:23 | FromDiscord | <Elegantbeef> I was dropped as a child |
21:11:31 | FromDiscord | <sOkam! 🫐> ` var filename :clang.CXString` |
21:12:05 | FromDiscord | <Elegantbeef> Seems like it's the `clang.CXString` |
21:12:21 | FromDiscord | <nnsee> hm... i wonder if it could be the clang.CXString |
21:12:30 | FromDiscord | <sOkam! 🫐> yeah, but how/why 🤔 |
21:12:42 | FromDiscord | <Elegantbeef> I don't know remove the `clang` and see if it goes away |
21:14:15 | FromDiscord | <sOkam! 🫐> what could cause explicit import qualification to fail like that? |
21:14:21 | FromDiscord | <Elegantbeef> No clue |
21:15:08 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=KhLcgobiEFCO |
21:15:38 | FromDiscord | <sOkam! 🫐> @pmunch well, that's a bug in `libclang-nim`, very easy to fix also |
21:16:13 | FromDiscord | <Elegantbeef> Believe it or not github has issues |
21:17:21 | FromDiscord | <nnsee> i don't believe it |
21:19:29 | FromDiscord | <sOkam! 🫐> !tag github issue @message above |
21:19:58 | FromDiscord | <sOkam! 🫐> nope... not connected↵_(sarcastic joke, ofc)_ |
21:20:07 | FromDiscord | <nnsee> In reply to @heysokam "!tag github issue @message": hey don't drag me into it |
21:20:21 | FromDiscord | <sOkam! 🫐> 😄 |
21:27:38 | * | advesperacit quit () |
21:27:50 | * | xet7 quit (Remote host closed the connection) |
21:32:43 | * | xet7 joined #nim |
21:35:15 | FromDiscord | <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:16 | FromDiscord | <Ethin> When you try to build using std/httpclient using -d\:ssl |
21:36:06 | * | Jjp137 quit (Quit: Leaving) |
21:36:39 | FromDiscord | <Elegantbeef> You ship the `.pem` or w/e with the binary afaik |
21:37:31 | * | Jjp137 joined #nim |
21:42:54 | FromDiscord | <Robyn [She/Her]> https://gist.github.com/Luyten-Orion/3662cbf15778555dc2dfe18753e7f617 |
21:43:18 | FromDiscord | <Robyn [She/Her]> Too big to paste here lol |
21:43:48 | FromDiscord | <Robyn [She/Her]> (edit) "Too" => "The message is too" |
21:44:03 | FromDiscord | <Robyn [She/Her]> Also waaay too much code to even paste/strip down |
21:53:22 | FromDiscord | <Robyn [She/Her]> My SQL was incomplete, got it working now! |
21:55:28 | FromDiscord | <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:19 | FromDiscord | <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:47 | FromDiscord | <nnsee> are you sure? it should by default read the windows ca store |
21:56:51 | FromDiscord | <Ethin> `Error: unhandled exception: No SSL/TLS CA certificates found. [IOError]` |
21:56:56 | FromDiscord | <nnsee> hmm |
21:57:47 | FromDiscord | <nnsee> that's strange |
21:58:24 | FromDiscord | <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:10 | FromDiscord | <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:48 | FromDiscord | <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:54 | FromDiscord | <nnsee> which is why i find it odd |
22:01:07 | FromDiscord | <nnsee> maybe it's mingw fuckery |
22:02:09 | FromDiscord | <Ethin> I'm not using an openssl from mingw though |
22:02:39 | FromDiscord | <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:54 | FromDiscord | <Ethin> These ones - https://slproweb.com/products/Win32OpenSSL.html |
22:09:47 | * | Mister_Magister quit (Excess Flood) |
22:13:17 | FromDiscord | <michaelb.eth> In reply to @Ethin "The std/ssl module is": https://nim-lang.org/docs/net.html#ssl-on-windows |
22:13:43 | FromDiscord | <nnsee> interesting |
22:13:52 | FromDiscord | <nnsee> windows really is something else huh |
22:14:35 | FromDiscord | <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:37 | FromDiscord | <nnsee> i do like bearssl |
22:16:01 | * | Mister_Magister joined #nim |
22:17:02 | FromDiscord | <michaelb.eth> yep: https://github.com/status-im/nim-bearssl/blob/master/bearssl/certs/cacert.nim |
22:17:12 | FromDiscord | <michaelb.eth> nim-bearssl being a dependency of nim-chronos |
22:19:33 | FromDiscord | <nnsee> >20221116 |
22:19:35 | FromDiscord | <nnsee> seems kind of old |
22:19:48 | FromDiscord | <nnsee> isn't that from before that one CA was removed from the mozilla store? |
22:24:21 | FromDiscord | <michaelb.eth> does seem to be a bit old, found this: https://curl.se/docs/caextract.html |
22:25:22 | FromDiscord | <michaelb.eth> not sure if / how much of a concern it could be, maybe @arnetheduck knows |
22:35:29 | * | SchweinDeBurg joined #nim |
22:44:34 | FromDiscord | <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:41 | FromDiscord | <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:56 | FromDiscord | <nnsee> i'm very surprised that this is the case |
22:46:12 | FromDiscord | <Ethin> I mean I will, but Nim on Windows doesn't seem to get a lot of attention for some reason |
22:46:27 | FromDiscord | <Elegantbeef> Developers don't use Windows 😛 |
22:46:38 | FromDiscord | <Elegantbeef> Insert no true scotsman here |
22:46:45 | FromDiscord | <Ethin> Lol yes, developers do use windows |
22:46:51 | FromDiscord | <Ethin> Maybe not the nim devs but devs do use it |
22:47:11 | FromDiscord | <nnsee> unfortunately |
22:47:31 | FromDiscord | <Robyn [She/Her]> ^^ |
22:47:51 | FromDiscord | <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:20 | FromDiscord | <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:50 | FromDiscord | <Robyn [She/Her]> You can develop for a platform without using it for development |
22:48:57 | FromDiscord | <Elegantbeef> How much more clear do I have to make my insincerity? |
22:49:01 | FromDiscord | <Robyn [She/Her]> But yeah obviously developers can use any OS |
22:49:09 | FromDiscord | <Robyn [She/Her]> Beef is trolling, btw :P |
22:49:17 | FromDiscord | <Elegantbeef> Since when is joking trolling? |
22:49:18 | FromDiscord | <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:32 | FromDiscord | <Robyn [She/Her]> In reply to @Elegantbeef "Since when is joking": Potato potato |
22:49:48 | FromDiscord | <Elegantbeef> No that's like saying borrowing and stealing are the same |
22:50:01 | FromDiscord | <nnsee> you wouldn't borrow a car |
22:50:15 | FromDiscord | <Robyn [She/Her]> Yes I would |
22:50:18 | FromDiscord | <Robyn [She/Her]> :> |
22:52:24 | FromDiscord | <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:48 | FromDiscord | <Elegantbeef> I made a joke |
22:52:50 | FromDiscord | <Elegantbeef> Cmon |
22:53:01 | FromDiscord | <Phil> ~~People on MacOs don't develop software, they write Apps. What does that mean? Who knows!~~ |
22:53:11 | FromDiscord | <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:20 | FromDiscord | <Phil> In reply to @Elegantbeef "I made a joke": I was trying to imply that |
22:53:20 | FromDiscord | <nnsee> ohoohoh |
22:53:27 | FromDiscord | <Elegantbeef> Ok now we're in subjective territories |
22:53:32 | FromDiscord | <nnsee> i'll grab my popcorn |
22:53:43 | FromDiscord | <Elegantbeef> I for one could not live without my OS forcing me to update 😄 |
22:53:55 | FromDiscord | <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:08 | FromDiscord | <Phil> Well, not directly a nim related topic |
22:54:09 | FromDiscord | <Elegantbeef> People don't ask Nim questions |
22:54:17 | FromDiscord | <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:42 | FromDiscord | <Ethin> Anyway sorry for going off topic xD |
22:54:55 | FromDiscord | <Ethin> Idk if I can accessthat discord channel on Matrix...Worth a try |
22:55:05 | FromDiscord | <Phil> You can, its called nim-offtopic in matrix |
22:55:12 | FromDiscord | <Phil> bridged to the discord offtopic channel |
22:55:26 | FromDiscord | <Phil> I'd know, I'm always on both clients at the same time |
22:55:40 | FromDiscord | <Ethin> Oh very nice |
22:55:41 | FromDiscord | <Elegantbeef> #offtopic |
22:55:42 | FromDiscord | <nnsee> i deleted my incredibly long message |
22:55:48 | FromDiscord | <Elegantbeef> [#nim\:envs.net](https://matrix.to/#/#nim:envs.net) is the matrix space |
22:56:09 | FromDiscord | <Elegantbeef> Assuming you have a client that has space support |
22:56:39 | FromDiscord | <Ethin> I do... Element for me is... Weird with spaces |
22:57:14 | FromDiscord | <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:32 | FromDiscord | <Robyn [She/Her]> In reply to @Ethin "I get the distaste.": In market domination, yeah |
23:00:56 | FromDiscord | <Robyn [She/Her]> In reply to @isofruit "Put that discussion into": Fair, sorry |
23:15:09 | * | jmdaemon joined #nim |
23:42:37 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=VpSMroxwjnbT |
23:42:53 | FromDiscord | <Robyn [She/Her]> (edit) "https://play.nim-lang.org/#pasty=FFZfaNZnGyaz" => "https://play.nim-lang.org/#pasty=hWiyjUBpKXgX" |
23:43:23 | FromDiscord | <Elegantbeef> `default(obj)` is `nil` |
23:43:43 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=MTtwornToixf |
23:43:51 | FromDiscord | <Robyn [She/Her]> Aahh okay, thanks! |