00:11:27 | * | Mister_Magister quit (Quit: bye) |
00:27:35 | FromDiscord | <0b110111101> https://media.discordapp.net/attachments/371759389889003532/1226689866855612456/00.png?ex=6625aef7&is=661339f7&hm=f33a3a8cb4fb7c55b3503a632e10ae42c01143294465a559f3d86ee6a148ba1f& |
00:27:41 | FromDiscord | <0b110111101> i cannot install highgui |
00:28:02 | FromDiscord | <Elegantbeef> It's probably not in the package registry |
00:28:11 | FromDiscord | <Elegantbeef> So just \`nimble install highguisUrlHere |
00:28:56 | FromDiscord | <0b110111101> In reply to @Elegantbeef "It's probably not in": do u have the link ? |
00:35:54 | FromDiscord | <Elegantbeef> No you're the one trying to install a package |
00:36:26 | FromDiscord | <0b110111101> nvm i installed nigui |
01:03:04 | FromDiscord | <kreatoo> does anybody know a library that outputs code in a syntax highlighted manner to the terminal, like bat library in rust? |
01:22:46 | * | SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev) |
01:23:08 | * | SchweinDeBurg joined #nim |
01:46:43 | FromDiscord | <0b110111101> In reply to @kreatoo "does anybody know a": maybe the term package |
01:52:10 | FromDiscord | <Elegantbeef> It wouldn't be too hard to use highlite and an array to apply colours using std/terminal |
01:55:55 | * | SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev) |
03:05:18 | FromDiscord | <MDuardo> I started using std/terminal today and it's absolutely great |
03:05:29 | FromDiscord | <MDuardo> Really liked it |
03:06:11 | FromDiscord | <MDuardo> I just don't know how to use all 16 colors |
03:06:47 | FromDiscord | <Elegantbeef> `ansiForegroundCode(...)` |
03:07:01 | FromDiscord | <Elegantbeef> It supports 256 colours |
03:22:07 | * | cm quit (Ping timeout: 268 seconds) |
03:22:36 | * | cm joined #nim |
03:35:56 | FromDiscord | <MDuardo> I mean, terminals have usually 16 colors + 256↵↵But I want to know how I can echo all 16 colors, not just 8 |
03:36:29 | FromDiscord | <Elegantbeef> Don't think the stdlib supports more than the 8 named colours |
03:37:23 | FromDiscord | <MDuardo> Me neither, that's what I'm trying to do |
03:38:05 | FromDiscord | <MDuardo> I wanted to see Nitch source code to see if I can do something but only echoes 8 colors |
03:38:16 | FromDiscord | <Elegantbeef> It's just extra ansi codes |
03:43:35 | * | SchweinDeBurg joined #nim |
04:32:36 | Amun-Ra | echo "\e[0;#m" for first 8 colors (where # is 0…7) |
04:32:48 | Amun-Ra | echo "\e[1;#m" for second 8 colors (where # is 0…7) |
04:33:03 | Amun-Ra | argh it should be 3# in both cases |
05:44:00 | * | cnx quit (Remote host closed the connection) |
05:44:48 | * | cnx joined #nim |
06:53:28 | * | ntat joined #nim |
07:09:50 | FromDiscord | <mratsim> In reply to @jviega "I mean, frame pointer": Resurrecting this, there is a 7x cost to frame pointers for AES256 cryptography: https://www.phoronix.com/review/fedora-frame-pointer/2↵↵and cryptography in general |
07:10:53 | FromDiscord | <mratsim> and redis too: https://www.phoronix.com/review/fedora-frame-pointer/5 |
07:41:51 | * | MacDefender joined #nim |
08:24:21 | FromDiscord | <zectbumo> sent a code paste, see https://play.nim-lang.org/#pasty=eJLvlEcjMaCL |
08:25:03 | anddam | howdy, does nim have a Tk binding? I ask as I wasn't able to find one with a brief search |
08:25:29 | FromDiscord | <Elegantbeef> Zect out here making eldritch horrors |
08:26:14 | FromDiscord | <Elegantbeef> https://github.com/neroist/nim-tcl |
08:26:27 | FromDiscord | <Elegantbeef> Literally today 😄 |
08:26:33 | FromDiscord | <Elegantbeef> Damn lucky you |
08:27:48 | anddam | it was about time |
08:28:05 | anddam | I have been waiting since yesterday for this project to come out |
08:28:19 | anddam | TBH I would have spent my luck otherwise |
08:28:21 | FromDiscord | <nnsee> your patience has paid off, evidently |
08:28:30 | anddam | still, I'll take it as life victory |
08:28:42 | anddam | aand starred! |
08:30:34 | anddam | oh tclsh.exe in the repo |
08:30:48 | anddam | classic binary test file security attack |
08:32:20 | anddam | is there a "gentle introduction to macro'ing in nim"? |
08:32:40 | FromDiscord | <Elegantbeef> https://dev.to/beef331/demystification-of-macros-in-nim-13n8 might be 'gentle' |
08:35:01 | anddam | thanks |
08:45:32 | * | Mister_Magister joined #nim |
09:01:39 | * | xutaxkamay quit (Ping timeout: 252 seconds) |
09:02:11 | * | xutaxkamay joined #nim |
10:28:51 | FromDiscord | <0b110111101> https://media.discordapp.net/attachments/371759389889003532/1226841179719467068/6354.png?ex=66263be2&is=6613c6e2&hm=a166d07567a7b2ae7afc8344d8b735050aeabc8c2f8ed71c821ab142f802e7e8& |
10:28:53 | FromDiscord | <0b110111101> whats wrong ? |
10:29:11 | FromDiscord | <odexine> tuple type needs field names |
10:29:24 | FromDiscord | <0b110111101> how ? |
10:29:35 | FromDiscord | <odexine> `tuple[a: int, b: int, c: int]`↵if you do not want this, use parens syntax `(int, int, int)` |
10:29:49 | FromDiscord | <odexine> additionally, you dont need to import system |
10:29:51 | FromDiscord | <0b110111101> i see |
10:29:56 | FromDiscord | <nnsee> https://nimbyexample.com/tuples.html |
10:29:57 | FromDiscord | <odexine> this is automatically imported |
10:30:09 | FromDiscord | <odexine> In reply to @nnsee "https://nimbyexample.com/tuples.html": ngl i read the site name as "NIMBY example" |
10:30:59 | FromDiscord | <0b110111101> THANKS |
10:32:46 | * | krux02 joined #nim |
11:36:59 | * | disso-peach joined #nim |
11:37:10 | FromDiscord | <0b110111101> sent a code paste, see https://play.nim-lang.org/#pasty=edMOSkjtEUCg |
11:39:15 | * | dtomato quit (Quit: The Lounge - https://thelounge.chat) |
11:41:54 | FromDiscord | <Phil> Afaik none, the latter is just more readable imo |
11:42:58 | FromDiscord | <0b110111101> i see |
11:43:13 | FromDiscord | <0b110111101> so they are just different ways of creating a sequence ? |
11:46:04 | FromDiscord | <nnsee> https://nim-lang.org/docs/system.html#newSeq%2Cseq%5BT%5D%2CNatural |
11:46:20 | FromDiscord | <nnsee> > This is equivalent to `s = @[]; setlen(s, len)`, but more efficient since no reallocation is needed. |
11:47:09 | FromDiscord | <nnsee> without specifying `len`, it is set to `0` automatically. see https://github.com/nim-lang/Nim/blob/version-2-0/lib/system.nim#L613 |
11:47:24 | FromDiscord | <0b110111101> https://media.discordapp.net/attachments/371759389889003532/1226860948938297417/0697.png?ex=66264e4c&is=6613d94c&hm=b925d56103feac2b6a8ab4e279366b9c0510130788702e7d2a4166512c34724c& |
11:47:43 | FromDiscord | <0b110111101> what is 1 ? |
11:48:08 | FromDiscord | <solitudesf> initial size of the sequence |
11:48:30 | FromDiscord | <0b110111101> In reply to @solitudesf "initial size of the": i don't understand what u mean by initial size |
11:48:45 | FromDiscord | <0b110111101> it is 1 while i am adding 2 values |
11:48:48 | FromDiscord | <0b110111101> how ???? |
11:48:50 | FromDiscord | <solitudesf> newSeq[int](1) is @[0] |
11:49:00 | FromDiscord | <solitudesf> then you add 7 and it becomes @[0, 7] |
11:49:01 | FromDiscord | <solitudesf> and so on |
11:49:04 | FromDiscord | <0b110111101> aaaah |
11:49:07 | FromDiscord | <nervecenter> The parameter of `newSeq` is the initial size, you gave it 1 which means initialize a seq with 1 element. The default value for `int` is 0. So it initially has a 0 in it |
11:49:10 | FromDiscord | <nervecenter> whoop too slow |
11:49:44 | FromDiscord | <0b110111101> it is like the default value that comes with the sequence |
11:50:02 | FromDiscord | <nervecenter> Yes, almost all values in Nim are expected to have a default initialization |
11:50:15 | FromDiscord | <nervecenter> The language abhors nulls unless explicitly marked as nullable |
11:50:18 | FromDiscord | <0b110111101> now i understand |
11:50:29 | FromDiscord | <0b110111101> i see |
11:50:34 | FromDiscord | <0b110111101> interesting |
11:51:35 | FromDiscord | <nervecenter> Now it's not the default value that comes with the sequence |
11:51:41 | FromDiscord | <nervecenter> it's the default value that comes with `int` |
11:51:53 | FromDiscord | <nervecenter> Any `int` that is declared but not specified will be `0` |
11:52:13 | FromDiscord | <nervecenter> so `var a: int` will result in a being 0 |
11:52:36 | FromDiscord | <nervecenter> If you have a proc `proc return_an_int(): int =`, the default value of `result` will be 0 |
11:52:53 | FromDiscord | <nervecenter> (edit) "a" => "`a`" |
11:54:19 | FromDiscord | <0b110111101> sent a code paste, see https://play.nim-lang.org/#pasty=rMsaTpRJUvFN |
11:54:23 | FromDiscord | <0b110111101> what ??? |
11:55:15 | FromDiscord | <nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=IXOVExBKkGmN |
11:55:46 | FromDiscord | <0b110111101> sent a code paste, see https://play.nim-lang.org/#pasty=btVxshrfNZgC |
11:56:45 | FromDiscord | <nnsee> as far as i know if you set a length, it will always be initialized with zeroes |
11:57:09 | FromDiscord | <nnsee> see the same documentation link I sent↵> Note that the sequence will be filled with zeroed entries. After the creation of the sequence you should assign entries to the sequence instead of adding them. |
11:57:34 | FromDiscord | <0b110111101> https://media.discordapp.net/attachments/371759389889003532/1226863505378906185/--.png?ex=662650ad&is=6613dbad&hm=55d885d4ef877f28306c6f17185ee4defa080dc9d5a20e13a68e55efbe30fd5c& |
11:59:12 | FromDiscord | <nnsee> yes. you are creating a new sequence of len 0 |
11:59:32 | FromDiscord | <nnsee> it includes 0 pre-initialized values |
11:59:43 | FromDiscord | <nnsee> so attempting to index the sequence is wrong |
11:59:52 | FromDiscord | <nnsee> i don't even know what line 5 is supposed to do |
12:00:24 | FromDiscord | <nnsee> and it currently probably fails because of that (you're taking a value but not doing anything with it, which Nim does not like) |
12:00:32 | FromDiscord | <nnsee> also... please avoid screenshots |
12:00:37 | FromDiscord | <nnsee> use something like https://play.nim-lang.org |
12:04:31 | FromDiscord | <odexine> or just use the code text blocks in discord |
12:18:28 | FromDiscord | <0b110111101> sent a code paste, see https://play.nim-lang.org/#pasty=eGdnOojpPSom |
12:19:08 | FromDiscord | <nnsee> https://nim-lang.org/docs/system.html#Natural |
12:30:52 | FromDiscord | <nervecenter> In reply to @0b110111101 "": `newSeq(0)` means the sequences is of length 0 or empty, so `@[]`. Lines 5 and 7 will not work, line 9 will print `@[]` |
12:31:09 | FromDiscord | <nervecenter> (edit) "work," => "work and will throw compiler errors," |
12:31:14 | FromDiscord | <nervecenter> (edit) "compiler" => "runtime" |
12:31:38 | FromDiscord | <nervecenter> (edit) "sequences" => "new sequence" |
12:33:04 | FromDiscord | <nervecenter> Let's do a hypothetical example: `newSeq[int](5)` will initialize a new sequence of length 5. The type is `int`, so all of the elements will be integers initialized to their default value, or 0. So if you `echo` this seq, you'll see `@[0, 0, 0, 0, 0]`. |
12:34:45 | FromDiscord | <xtrayambak> Any idea why this fails? `MAtomSeq` is a `distinct seq[MAtom]` https://media.discordapp.net/attachments/371759389889003532/1226872864884396102/hLgOelN.png?ex=66265965&is=6613e465&hm=62f11c9ff305fa84428445d0f6462153d38522d516868b73f0a766834ed60558& |
12:35:48 | FromDiscord | <xtrayambak> I've tried using a `var MAtomSeq` instead of a `MAtomSeq` and that doesn't work either |
12:35:59 | FromDiscord | <xtrayambak> The signature is correct from what I see |
12:36:43 | FromDiscord | <xtrayambak> I can't send it here because that'd be too large |
12:37:27 | FromDiscord | <xtrayambak> sent a code paste, see https://play.nim-lang.org/#pasty=SmvviMjHgVFf |
12:55:26 | FromDiscord | <lomineheck> sent a long message, see https://pasty.ee/ZYGjCZQTVmhk |
12:56:40 | FromDiscord | <xtrayambak> In reply to @lomineheck "trying to make a": You forgot to add the variable you want to run the case against |
12:57:05 | FromDiscord | <lomineheck> (also ignore the equivalent of 1000 if then statements in echo of) |
12:57:07 | FromDiscord | <xtrayambak> sent a code paste, see https://play.nim-lang.org/#pasty=QliwwHbbKdSQ |
12:57:28 | FromDiscord | <xtrayambak> In reply to @lomineheck "(also ignore the equivalent": Then it's probably the indentation in the first statement |
12:57:32 | FromDiscord | <lomineheck> i love the froming face haha |
12:57:58 | FromDiscord | <xtrayambak> Probably indent the echo's scope by 1? https://media.discordapp.net/attachments/371759389889003532/1226878705201057864/mXnwQsJ.png?ex=66265ed5&is=6613e9d5&hm=c4611a2afb9b4b4765a7436b48df674eb0217b2482cb74525a415290c476feb3& |
12:59:02 | FromDiscord | <lomineheck> In reply to @xtrayambak "Probably indent the echo's": english please? 🤡 (i am extremely new to nim and coding in general, i acknowledge that saying a statement like this is laughable) |
12:59:28 | FromDiscord | <.lisuwu_> In reply to @lomineheck "english please? 🤡 (i": indent = space |
12:59:49 | FromDiscord | <xtrayambak> In reply to @lomineheck "english please? 🤡 (i": Indentation is just the number of spaces |
12:59:50 | FromDiscord | <.lisuwu_> also welcome to coding world, prepare to go insane for days on some problems |
13:00:02 | FromDiscord | <xtrayambak> Nim uses it to determine the scope of your calls |
13:00:19 | * | ntat quit (Quit: Leaving) |
13:00:45 | FromDiscord | <xtrayambak> sent a code paste, see https://play.nim-lang.org/#pasty=XyAWVkTUSnlK |
13:01:03 | FromDiscord | <xtrayambak> sent a code paste, see https://play.nim-lang.org/#pasty=IxiEbZzigYiU |
13:01:10 | FromDiscord | <xtrayambak> (edit) "https://play.nim-lang.org/#pasty=yGxOUtJpYJqS" => "https://play.nim-lang.org/#pasty=lOQayWkhQlpD" |
13:01:14 | FromDiscord | <lomineheck> In reply to @.lisuwu_ "also welcome to coding": very prepared to do so |
13:01:31 | FromDiscord | <.lisuwu_> In reply to @lomineheck "very prepared to do": if you think you are prepared, maybe you arent prepared :) |
13:01:34 | FromDiscord | <.lisuwu_> (edit) "In reply to @lomineheck "very prepared to do": if you think you are prepared, maybe you arent prepared :) ... " added "/j" |
13:01:56 | FromDiscord | <.lisuwu_> anyway i suggest nicely asking instead of wording like that so people dont think bad of you |
13:02:12 | FromDiscord | <lomineheck> In reply to @.lisuwu_ "anyway i suggest nicely": wait what? |
13:02:31 | FromDiscord | <xtrayambak> In reply to @.lisuwu_ "if you think you": I accidentally read your name as "Lua 🌸 " 💀 |
13:02:33 | FromDiscord | <.lisuwu_> aka say something like "can you explain what indent means ?" instead of smthing like "english please?" |
13:02:45 | FromDiscord | <.lisuwu_> just my personal suggestion ^^ |
13:02:45 | FromDiscord | <lomineheck> In reply to @.lisuwu_ "aka say something like": i was making a joke out of saying english please |
13:02:51 | FromDiscord | <lomineheck> i was making fun of people who actually say that |
13:03:00 | FromDiscord | <xtrayambak> In reply to @.lisuwu_ "aka say something like": It's an okay way to say it casually, and we're no professional folks in black tie suits so it's good :) |
13:03:09 | FromDiscord | <.lisuwu_> In reply to @xtrayambak "I accidentally read your": hahah |
13:03:18 | FromDiscord | <.lisuwu_> my friend once mispelled lua saying "lisa" |
13:03:23 | FromDiscord | <.lisuwu_> i wonder what's it with my name and lua |
13:03:34 | FromDiscord | <xtrayambak> The Lisa interpreter has crashed yet again |
13:04:00 | FromDiscord | <nnsee> lisa means "add" in estonian |
13:04:21 | FromDiscord | <xtrayambak> Means absolutely nothing in the language I speak, I think |
13:04:43 | FromDiscord | <xtrayambak> In reply to @lomineheck "i was making fun": Btw, did that fix your problem? |
13:04:58 | FromDiscord | <.lisuwu_> In reply to @nnsee "lisa means "add" in": 1 lisa 1 = 2 👍 |
13:05:16 | FromDiscord | <lomineheck> In reply to @xtrayambak "Btw, did that fix": for some reason my brain is exploding trying to interpret the code and what it means (dw you explained it fine im just a simpleton lmao) |
13:05:28 | FromDiscord | <xtrayambak> Can you send the code (if you're fine with that) |
13:05:31 | FromDiscord | <nnsee> In reply to @.lisuwu_ "1 lisa 1 =": oh, more like, add something to a soup or something |
13:05:35 | FromDiscord | <nnsee> what you're talking about is liida |
13:05:35 | FromDiscord | <.lisuwu_> ooh |
13:05:51 | FromDiscord | <lomineheck> In reply to @xtrayambak "Can you send the": yeah sure, the entire thing? (oh god im ready to get judged haha) |
13:05:52 | FromDiscord | <xtrayambak> I'd say you should learn the absolute basics of Nim if you can't comprehend the value of indentations yet |
13:05:56 | FromDiscord | <xtrayambak> In reply to @lomineheck "yeah sure, the entire": Yes |
13:06:01 | FromDiscord | <xtrayambak> Send it via Nim playground |
13:06:09 | FromDiscord | <xtrayambak> https://play.nim-lang.org/ |
13:06:30 | FromDiscord | <lomineheck> In reply to @xtrayambak "I'd say you should": in the process of doing so |
13:07:22 | FromDiscord | <lomineheck> https://play.nim-lang.org/#pasty=VLLYSpvLZBSO |
13:08:09 | FromDiscord | <xtrayambak> you might've forgotten to ask the player what they want to do https://media.discordapp.net/attachments/371759389889003532/1226881266645864538/W9SfhJV.png?ex=66266138&is=6613ec38&hm=6a8de63afc0c01171468b83b424aa6dfcae0a35652c58cc80b8e1ecb652ef30d& |
13:08:28 | FromDiscord | <xtrayambak> https://play.nim-lang.org/#pasty=KORXMWSkMLjG |
13:08:30 | FromDiscord | <xtrayambak> try this out |
13:09:02 | FromDiscord | <lomineheck> 3 issues now https://media.discordapp.net/attachments/371759389889003532/1226881488193327135/image.png?ex=6626616d&is=6613ec6d&hm=0428d72077d1c3b695cd9620488372e70167bd4321d86c564eddb1b912f0904e& |
13:09:33 | FromDiscord | <lomineheck> all specifically on line 32 for some reason |
13:09:48 | FromDiscord | <.lisuwu_> In reply to @lomineheck "3 issues now": add space to line 32 |
13:10:31 | FromDiscord | <xtrayambak> sorry, there was a problem |
13:10:32 | FromDiscord | <xtrayambak> https://play.nim-lang.org/#pasty=KORXMWSkMLjG |
13:10:35 | FromDiscord | <xtrayambak> try this out |
13:10:50 | FromDiscord | <nnsee> same link |
13:10:52 | FromDiscord | <xtrayambak> you missed out multiple values to ask the player 😄 |
13:10:56 | FromDiscord | <xtrayambak> wait |
13:10:56 | FromDiscord | <xtrayambak> ah |
13:11:01 | FromDiscord | <xtrayambak> wl-clipboard being wl-clipboard again |
13:11:03 | FromDiscord | <lomineheck> In reply to @xtrayambak "you missed out multiple": oopsies haha |
13:11:06 | FromDiscord | <xtrayambak> https://play.nim-lang.org/#pasty=mwoDiliqDyKs |
13:11:08 | FromDiscord | <xtrayambak> try this |
13:11:10 | FromDiscord | <nnsee> wayland chad detected |
13:11:25 | FromDiscord | <xtrayambak> In reply to @nnsee "wayland chad detected": I love Hyprland (other than the edgy developer) :) |
13:11:37 | FromDiscord | <lomineheck> it works now! tysm |
13:11:42 | FromDiscord | <xtrayambak> yw :) |
13:11:43 | FromDiscord | <nnsee> i'm more of a sway guy myself |
13:11:52 | FromDiscord | <xtrayambak> sway is like vanilla icecream |
13:12:11 | FromDiscord | <nnsee> it does exactly what i need it to and nothing more |
13:12:28 | FromDiscord | <xtrayambak> Hyprland is like mixing LSD in icecream and handing it out to children in a park |
13:12:35 | FromDiscord | <xtrayambak> anyways, let's not go offtopic lol |
13:12:35 | FromDiscord | <nnsee> also i've spent time contributing to it, so there's a sunk cost fallacy kind of thing going on |
13:12:44 | FromDiscord | <nnsee> sure yeah |
13:50:39 | * | lucasta joined #nim |
14:20:48 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=mYuJHrpVIgiZ |
14:21:16 | FromDiscord | <sOkam! 🫐> (edit) "https://play.nim-lang.org/#pasty=zeVZitskpnLn" => "https://play.nim-lang.org/#pasty=NgrhzYdDhGxQ" |
14:51:30 | * | lucasta quit (Quit: Leaving) |
15:00:55 | FromDiscord | <solitudesf> i think installExt and skipFiles are conflicting |
15:03:12 | FromDiscord | <sOkam! 🫐> In reply to @solitudesf "i think installExt and": that was also my thought. but if I remove `installExt` then nothing is installed 🤷♂️ |
15:04:33 | FromDiscord | <sOkam! 🫐> and if I explicitly list the files/folders that I want... then it starts looking for `src/get` stuff when calling for nimble install, which obviously should just ignore because they were already installed 🧩 |
15:05:08 | FromDiscord | <sOkam! 🫐> (edit) "they were" => "it" | "italready installed ... 🧩" added "them by that point" |
15:05:11 | FromDiscord | <solitudesf> In reply to @heysokam "that was also my": yeah, because it is a binary package otherwise. im not saying that how its supposed to work, i think thats a bug. |
15:13:02 | NimEventer | New thread by melovv: Best way to pass many parameters to a function, see https://forum.nim-lang.org/t/11385 |
15:18:37 | * | pmp-p joined #nim |
15:18:39 | * | Batzy quit (Read error: Connection reset by peer) |
15:21:46 | * | Batzy joined #nim |
15:22:42 | * | dtomato joined #nim |
15:22:44 | FromDiscord | <queebee> There was a github page with different examples how things are done in comparison to python and other languages. "nim for python users" or something like that. Does someone have the link? |
15:23:27 | pmp-p | maybe https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programmers |
15:31:02 | FromDiscord | <queebee> Thats it thank you |
15:34:15 | * | dtomato quit (Quit: The Lounge - https://thelounge.chat) |
15:42:58 | * | dtomato joined #nim |
15:43:09 | * | coldfeet joined #nim |
15:51:29 | * | coldfeet quit (Remote host closed the connection) |
16:07:37 | * | MacDefender quit (Remote host closed the connection) |
16:07:55 | * | MacDefender joined #nim |
16:38:24 | * | tiorock joined #nim |
16:38:24 | * | tiorock quit (Changing host) |
16:38:24 | * | tiorock joined #nim |
16:38:24 | * | rockcavera quit (Killed (molybdenum.libera.chat (Nickname regained by services))) |
16:38:24 | * | tiorock is now known as rockcavera |
16:38:27 | * | MacDef joined #nim |
16:38:27 | * | SEP_ joined #nim |
16:39:19 | * | nazgulsenpai_ joined #nim |
16:39:57 | * | ntat joined #nim |
16:41:46 | * | pmp-p_ joined #nim |
16:41:46 | * | pmp-p quit (Killed (NickServ (GHOST command used by pmp-p_))) |
16:41:59 | * | Batzy_ joined #nim |
16:42:23 | * | nazgulsenpai quit (Ping timeout: 268 seconds) |
16:42:23 | * | MacDefender quit (Ping timeout: 268 seconds) |
16:42:24 | * | SEP quit (Ping timeout: 268 seconds) |
16:42:25 | * | Batzy quit (Ping timeout: 268 seconds) |
16:46:44 | * | def- quit (Quit: -) |
16:47:54 | * | Nerve joined #nim |
16:47:57 | * | def- joined #nim |
16:49:11 | Nerve | Trying to compile the Nim compiler on a Raspberry Pi 4 Model B. It's aarch64. I'm getting a failed assert: "NIM_STATIC_ASSERT(sizeof(NI) == sizeof(void*) && NIM_INTBITS == sizeof(NI)*8, "Pointer size mismatch between Nim and C/C++ backend. You probably need to setup the backend compiler for target CPU.")" Any idea how to handle this? |
16:51:44 | Amun-Ra | either you're using 32-bit compiler on 64-bit system or vice versa |
16:52:57 | * | xet7 quit (Quit: Leaving) |
16:59:52 | * | SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev) |
17:01:57 | * | ixmpp joined #nim |
17:16:06 | FromDiscord | <nnsee> wasn't raspbian 32 bit for a while even on 64 bit systems? |
17:16:31 | Nerve | Okay, it's 32-bit gcc. That's kind of what I actually want, since our final embedded target is 32-bit. Is there any way to compile the Nim compiler for 32-bit systems? |
17:21:10 | Nerve | Oh wow, I just overwrote "ucpu" in the makefile to be "arm" and it appears to be working. Currently compiling the C sources, will check in when I start bootstrapping v2.0 |
17:23:06 | FromDiscord | <nnsee> In reply to @Nerve "Okay, it's 32-bit gcc.": you mean you're targeting the compiler itself for the embedded system? that would be very odd |
17:23:26 | FromDiscord | <nnsee> you can cross compile and target 32 bit systems with a 64 bit compiler, too |
17:25:35 | Nerve | I don't have much embedded experience, I figured since we have an RPi already set up as a small workstation I could just get the Nim toolchain working on it to give it a spin, I thought it might be easier than trying to cross-compile |
17:26:19 | Nerve | I tried cross-compiling once already and was having a hard time, most of all because I was trying to target Windows for a different end goal, but I'm sure compiling for ARM with Musl would probably be easier |
17:27:51 | FromDiscord | <nnsee> in any case there's a flag for koch which lets you specify which target to build for, just like if you were compiling regular nim code with the compiler |
17:43:54 | * | xet7 joined #nim |
17:46:55 | Nerve | Okay actually that's interesting. I didn't need to bootstrap or anything. I did the same "ucpu := arm" makefile change in the nim-2.0.0.tar.xz extracted source folder. Then ran "make". Seems to have worked just fine. |
17:48:07 | * | fallback quit (Ping timeout: 268 seconds) |
17:54:30 | * | fallback joined #nim |
18:04:28 | * | MacDef quit (Quit: WeeChat 4.2.2) |
18:20:32 | Nerve | Compiling koch and nimble both worked, downloaded my packages fine. A lot of the prototype test scripts for my program work fine, but I can't seem to compile my program itself because of some permission issue. |
18:28:08 | * | xutaxkamay quit (Read error: Connection reset by peer) |
18:28:23 | * | xutaxkamay_ joined #nim |
18:29:06 | * | xutaxkamay_ is now known as xutaxkamay |
19:24:33 | * | ntat quit (Quit: Leaving) |
19:41:01 | * | Nerve quit (Quit: Client closed) |
19:59:16 | FromDiscord | <nervecenter> Turned out make didn't have permission to run my Nim executable. I feel like I've encountered this one before. I'll handle it tomorrow. |
21:00:27 | * | dtomato quit (Quit: The Lounge - https://thelounge.chat) |
21:00:55 | * | dtomato joined #nim |
21:11:34 | FromDiscord | <TӨMΛ ☠> Out of curiosity, how would you access objects that are not exported? I know Java uses mixins to pass `private` elements, is there similar concept for Nim if you'd like to access non-exported struct, field, enum, proc or whatever else in the file? |
21:14:14 | FromDiscord | <zumi.dxy> A public proc that returns a private Thing?↵↵like a `getSomething` that returns an `Object.something` |
21:17:09 | FromDiscord | <TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=smZJPgPXisuR |
21:19:57 | FromDiscord | <TӨMΛ ☠> Sorry if this is confusing example, I'm not even sure if it makes sense to me, probably the answer is incredibly silly?↵The thing that I aim for is "how can I access code that someone didn't want to export, without editing the file". I'm not sure if it should be even a legit concern in Nim case, I just know in Java it is |
21:20:15 | FromDiscord | <TӨMΛ ☠> (edit) "Sorry if this is confusing example, I'm not even sure if it makes sense to me, probably the answer is incredibly silly?↵The thing that I aim for is "how can I access code that someone didn't want to export, without editing the file". I'm not sure if it should be even a legit concern in Nim case, I just know in Java it is ... " added "(in Minecraft modding at least)" |
21:34:26 | FromDiscord | <zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=GjrRUsHaiwpR |
21:35:20 | FromDiscord | <zumi.dxy> (edit) "https://play.nim-lang.org/#pasty=tgfxCnZrKJIW" => "https://play.nim-lang.org/#pasty=RJAlxDGpcZRT" |
21:35:31 | FromDiscord | <vindaar> if I read you correctly, you want either: https://nim-lang.github.io/Nim/manual_experimental.html#importing-private-symbols or https://nim-lang.github.io/Nim/importutils.html#privateAccess%2Ctypedesc for fields of a specfic type |
21:42:50 | FromDiscord | <Robyn [She/Her]> In reply to @toma400 "Nah, like if you": There is `std/importutils` which has `privateAccess` to access private fields, and you can also do `import [modulename] {.all.}` to get access to unexported variables, fields and types |
21:43:02 | FromDiscord | <Robyn [She/Her]> In reply to @vindaar "if I read you": Ah it was already said |
21:43:58 | FromDiscord | <Elegantbeef> You can use those but using hidden APIs is just bad form and will bite you |
21:51:46 | * | disso-peach quit (Quit: Leaving) |
22:05:15 | FromDiscord | <Robyn [She/Her]> That is true :P |
22:10:12 | NimEventer | New thread by Cnerd: Declaring ambigious tuples, see https://forum.nim-lang.org/t/11390 |
22:23:27 | * | krux02_ joined #nim |
22:26:37 | * | krux02 quit (Ping timeout: 272 seconds) |
22:57:30 | FromDiscord | <hitblast> Is there a way to append a `JsonNode` object into another `JsonNode`? Currently working with a CLI application and I need this functionality. |
23:03:04 | * | gshumway quit (Ping timeout: 246 seconds) |
23:05:02 | * | gshumway_ joined #nim |
23:19:34 | FromDiscord | <Elegantbeef> `yourJsonNode["field"] = yourOtherNode` |
23:24:15 | * | oprypin quit (Quit: No Ping reply in 180 seconds.) |
23:25:49 | * | oprypin joined #nim |
23:40:12 | * | deadmarshal_ quit (Ping timeout: 255 seconds) |
23:46:18 | * | deadmarshal_ joined #nim |