<< 08-04-2024 >>

00:11:27*Mister_Magister quit (Quit: bye)
00:27:35FromDiscord<0b110111101> https://media.discordapp.net/attachments/371759389889003532/1226689866855612456/00.png?ex=6625aef7&is=661339f7&hm=f33a3a8cb4fb7c55b3503a632e10ae42c01143294465a559f3d86ee6a148ba1f&
00:27:41FromDiscord<0b110111101> i cannot install highgui
00:28:02FromDiscord<Elegantbeef> It's probably not in the package registry
00:28:11FromDiscord<Elegantbeef> So just \`nimble install highguisUrlHere
00:28:56FromDiscord<0b110111101> In reply to @Elegantbeef "It's probably not in": do u have the link ?
00:35:54FromDiscord<Elegantbeef> No you're the one trying to install a package
00:36:26FromDiscord<0b110111101> nvm i installed nigui
01:03:04FromDiscord<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:43FromDiscord<0b110111101> In reply to @kreatoo "does anybody know a": maybe the term package
01:52:10FromDiscord<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:18FromDiscord<MDuardo> I started using std/terminal today and it's absolutely great
03:05:29FromDiscord<MDuardo> Really liked it
03:06:11FromDiscord<MDuardo> I just don't know how to use all 16 colors
03:06:47FromDiscord<Elegantbeef> `ansiForegroundCode(...)`
03:07:01FromDiscord<Elegantbeef> It supports 256 colours
03:22:07*cm quit (Ping timeout: 268 seconds)
03:22:36*cm joined #nim
03:35:56FromDiscord<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:29FromDiscord<Elegantbeef> Don't think the stdlib supports more than the 8 named colours
03:37:23FromDiscord<MDuardo> Me neither, that's what I'm trying to do
03:38:05FromDiscord<MDuardo> I wanted to see Nitch source code to see if I can do something but only echoes 8 colors
03:38:16FromDiscord<Elegantbeef> It's just extra ansi codes
03:43:35*SchweinDeBurg joined #nim
04:32:36Amun-Raecho "\e[0;#m" for first 8 colors (where # is 0…7)
04:32:48Amun-Raecho "\e[1;#m" for second 8 colors (where # is 0…7)
04:33:03Amun-Raargh 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:50FromDiscord<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:53FromDiscord<mratsim> and redis too: https://www.phoronix.com/review/fedora-frame-pointer/5
07:41:51*MacDefender joined #nim
08:24:21FromDiscord<zectbumo> sent a code paste, see https://play.nim-lang.org/#pasty=eJLvlEcjMaCL
08:25:03anddamhowdy, does nim have a Tk binding? I ask as I wasn't able to find one with a brief search
08:25:29FromDiscord<Elegantbeef> Zect out here making eldritch horrors
08:26:14FromDiscord<Elegantbeef> https://github.com/neroist/nim-tcl
08:26:27FromDiscord<Elegantbeef> Literally today 😄
08:26:33FromDiscord<Elegantbeef> Damn lucky you
08:27:48anddamit was about time
08:28:05anddamI have been waiting since yesterday for this project to come out
08:28:19anddamTBH I would have spent my luck otherwise
08:28:21FromDiscord<nnsee> your patience has paid off, evidently
08:28:30anddamstill, I'll take it as life victory
08:28:42anddamaand starred!
08:30:34anddamoh tclsh.exe in the repo
08:30:48anddamclassic binary test file security attack
08:32:20anddamis there a "gentle introduction to macro'ing in nim"?
08:32:40FromDiscord<Elegantbeef> https://dev.to/beef331/demystification-of-macros-in-nim-13n8 might be 'gentle'
08:35:01anddamthanks
08:45:32*Mister_Magister joined #nim
09:01:39*xutaxkamay quit (Ping timeout: 252 seconds)
09:02:11*xutaxkamay joined #nim
10:28:51FromDiscord<0b110111101> https://media.discordapp.net/attachments/371759389889003532/1226841179719467068/6354.png?ex=66263be2&is=6613c6e2&hm=a166d07567a7b2ae7afc8344d8b735050aeabc8c2f8ed71c821ab142f802e7e8&
10:28:53FromDiscord<0b110111101> whats wrong ?
10:29:11FromDiscord<odexine> tuple type needs field names
10:29:24FromDiscord<0b110111101> how ?
10:29:35FromDiscord<odexine> `tuple[a: int, b: int, c: int]`↵if you do not want this, use parens syntax `(int, int, int)`
10:29:49FromDiscord<odexine> additionally, you dont need to import system
10:29:51FromDiscord<0b110111101> i see
10:29:56FromDiscord<nnsee> https://nimbyexample.com/tuples.html
10:29:57FromDiscord<odexine> this is automatically imported
10:30:09FromDiscord<odexine> In reply to @nnsee "https://nimbyexample.com/tuples.html": ngl i read the site name as "NIMBY example"
10:30:59FromDiscord<0b110111101> THANKS
10:32:46*krux02 joined #nim
11:36:59*disso-peach joined #nim
11:37:10FromDiscord<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:54FromDiscord<Phil> Afaik none, the latter is just more readable imo
11:42:58FromDiscord<0b110111101> i see
11:43:13FromDiscord<0b110111101> so they are just different ways of creating a sequence ?
11:46:04FromDiscord<nnsee> https://nim-lang.org/docs/system.html#newSeq%2Cseq%5BT%5D%2CNatural
11:46:20FromDiscord<nnsee> > This is equivalent to `s = @[]; setlen(s, len)`, but more efficient since no reallocation is needed.
11:47:09FromDiscord<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:24FromDiscord<0b110111101> https://media.discordapp.net/attachments/371759389889003532/1226860948938297417/0697.png?ex=66264e4c&is=6613d94c&hm=b925d56103feac2b6a8ab4e279366b9c0510130788702e7d2a4166512c34724c&
11:47:43FromDiscord<0b110111101> what is 1 ?
11:48:08FromDiscord<solitudesf> initial size of the sequence
11:48:30FromDiscord<0b110111101> In reply to @solitudesf "initial size of the": i don't understand what u mean by initial size
11:48:45FromDiscord<0b110111101> it is 1 while i am adding 2 values
11:48:48FromDiscord<0b110111101> how ????
11:48:50FromDiscord<solitudesf> newSeq[int](1) is @[0]
11:49:00FromDiscord<solitudesf> then you add 7 and it becomes @[0, 7]
11:49:01FromDiscord<solitudesf> and so on
11:49:04FromDiscord<0b110111101> aaaah
11:49:07FromDiscord<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:10FromDiscord<nervecenter> whoop too slow
11:49:44FromDiscord<0b110111101> it is like the default value that comes with the sequence
11:50:02FromDiscord<nervecenter> Yes, almost all values in Nim are expected to have a default initialization
11:50:15FromDiscord<nervecenter> The language abhors nulls unless explicitly marked as nullable
11:50:18FromDiscord<0b110111101> now i understand
11:50:29FromDiscord<0b110111101> i see
11:50:34FromDiscord<0b110111101> interesting
11:51:35FromDiscord<nervecenter> Now it's not the default value that comes with the sequence
11:51:41FromDiscord<nervecenter> it's the default value that comes with `int`
11:51:53FromDiscord<nervecenter> Any `int` that is declared but not specified will be `0`
11:52:13FromDiscord<nervecenter> so `var a: int` will result in a being 0
11:52:36FromDiscord<nervecenter> If you have a proc `proc return_an_int(): int =`, the default value of `result` will be 0
11:52:53FromDiscord<nervecenter> (edit) "a" => "`a`"
11:54:19FromDiscord<0b110111101> sent a code paste, see https://play.nim-lang.org/#pasty=rMsaTpRJUvFN
11:54:23FromDiscord<0b110111101> what ???
11:55:15FromDiscord<nnsee> sent a code paste, see https://play.nim-lang.org/#pasty=IXOVExBKkGmN
11:55:46FromDiscord<0b110111101> sent a code paste, see https://play.nim-lang.org/#pasty=btVxshrfNZgC
11:56:45FromDiscord<nnsee> as far as i know if you set a length, it will always be initialized with zeroes
11:57:09FromDiscord<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:34FromDiscord<0b110111101> https://media.discordapp.net/attachments/371759389889003532/1226863505378906185/--.png?ex=662650ad&is=6613dbad&hm=55d885d4ef877f28306c6f17185ee4defa080dc9d5a20e13a68e55efbe30fd5c&
11:59:12FromDiscord<nnsee> yes. you are creating a new sequence of len 0
11:59:32FromDiscord<nnsee> it includes 0 pre-initialized values
11:59:43FromDiscord<nnsee> so attempting to index the sequence is wrong
11:59:52FromDiscord<nnsee> i don't even know what line 5 is supposed to do
12:00:24FromDiscord<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:32FromDiscord<nnsee> also... please avoid screenshots
12:00:37FromDiscord<nnsee> use something like https://play.nim-lang.org
12:04:31FromDiscord<odexine> or just use the code text blocks in discord
12:18:28FromDiscord<0b110111101> sent a code paste, see https://play.nim-lang.org/#pasty=eGdnOojpPSom
12:19:08FromDiscord<nnsee> https://nim-lang.org/docs/system.html#Natural
12:30:52FromDiscord<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:09FromDiscord<nervecenter> (edit) "work," => "work and will throw compiler errors,"
12:31:14FromDiscord<nervecenter> (edit) "compiler" => "runtime"
12:31:38FromDiscord<nervecenter> (edit) "sequences" => "new sequence"
12:33:04FromDiscord<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:45FromDiscord<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:48FromDiscord<xtrayambak> I've tried using a `var MAtomSeq` instead of a `MAtomSeq` and that doesn't work either
12:35:59FromDiscord<xtrayambak> The signature is correct from what I see
12:36:43FromDiscord<xtrayambak> I can't send it here because that'd be too large
12:37:27FromDiscord<xtrayambak> sent a code paste, see https://play.nim-lang.org/#pasty=SmvviMjHgVFf
12:55:26FromDiscord<lomineheck> sent a long message, see https://pasty.ee/ZYGjCZQTVmhk
12:56:40FromDiscord<xtrayambak> In reply to @lomineheck "trying to make a": You forgot to add the variable you want to run the case against
12:57:05FromDiscord<lomineheck> (also ignore the equivalent of 1000 if then statements in echo of)
12:57:07FromDiscord<xtrayambak> sent a code paste, see https://play.nim-lang.org/#pasty=QliwwHbbKdSQ
12:57:28FromDiscord<xtrayambak> In reply to @lomineheck "(also ignore the equivalent": Then it's probably the indentation in the first statement
12:57:32FromDiscord<lomineheck> i love the froming face haha
12:57:58FromDiscord<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:02FromDiscord<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:28FromDiscord<.lisuwu_> In reply to @lomineheck "english please? 🤡 (i": indent = space
12:59:49FromDiscord<xtrayambak> In reply to @lomineheck "english please? 🤡 (i": Indentation is just the number of spaces
12:59:50FromDiscord<.lisuwu_> also welcome to coding world, prepare to go insane for days on some problems
13:00:02FromDiscord<xtrayambak> Nim uses it to determine the scope of your calls
13:00:19*ntat quit (Quit: Leaving)
13:00:45FromDiscord<xtrayambak> sent a code paste, see https://play.nim-lang.org/#pasty=XyAWVkTUSnlK
13:01:03FromDiscord<xtrayambak> sent a code paste, see https://play.nim-lang.org/#pasty=IxiEbZzigYiU
13:01:10FromDiscord<xtrayambak> (edit) "https://play.nim-lang.org/#pasty=yGxOUtJpYJqS" => "https://play.nim-lang.org/#pasty=lOQayWkhQlpD"
13:01:14FromDiscord<lomineheck> In reply to @.lisuwu_ "also welcome to coding": very prepared to do so
13:01:31FromDiscord<.lisuwu_> In reply to @lomineheck "very prepared to do": if you think you are prepared, maybe you arent prepared :)
13:01:34FromDiscord<.lisuwu_> (edit) "In reply to @lomineheck "very prepared to do": if you think you are prepared, maybe you arent prepared :) ... " added "/j"
13:01:56FromDiscord<.lisuwu_> anyway i suggest nicely asking instead of wording like that so people dont think bad of you
13:02:12FromDiscord<lomineheck> In reply to @.lisuwu_ "anyway i suggest nicely": wait what?
13:02:31FromDiscord<xtrayambak> In reply to @.lisuwu_ "if you think you": I accidentally read your name as "Lua 🌸 " 💀
13:02:33FromDiscord<.lisuwu_> aka say something like "can you explain what indent means ?" instead of smthing like "english please?"
13:02:45FromDiscord<.lisuwu_> just my personal suggestion ^^
13:02:45FromDiscord<lomineheck> In reply to @.lisuwu_ "aka say something like": i was making a joke out of saying english please
13:02:51FromDiscord<lomineheck> i was making fun of people who actually say that
13:03:00FromDiscord<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:09FromDiscord<.lisuwu_> In reply to @xtrayambak "I accidentally read your": hahah
13:03:18FromDiscord<.lisuwu_> my friend once mispelled lua saying "lisa"
13:03:23FromDiscord<.lisuwu_> i wonder what's it with my name and lua
13:03:34FromDiscord<xtrayambak> The Lisa interpreter has crashed yet again
13:04:00FromDiscord<nnsee> lisa means "add" in estonian
13:04:21FromDiscord<xtrayambak> Means absolutely nothing in the language I speak, I think
13:04:43FromDiscord<xtrayambak> In reply to @lomineheck "i was making fun": Btw, did that fix your problem?
13:04:58FromDiscord<.lisuwu_> In reply to @nnsee "lisa means "add" in": 1 lisa 1 = 2 👍
13:05:16FromDiscord<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:28FromDiscord<xtrayambak> Can you send the code (if you're fine with that)
13:05:31FromDiscord<nnsee> In reply to @.lisuwu_ "1 lisa 1 =": oh, more like, add something to a soup or something
13:05:35FromDiscord<nnsee> what you're talking about is liida
13:05:35FromDiscord<.lisuwu_> ooh
13:05:51FromDiscord<lomineheck> In reply to @xtrayambak "Can you send the": yeah sure, the entire thing? (oh god im ready to get judged haha)
13:05:52FromDiscord<xtrayambak> I'd say you should learn the absolute basics of Nim if you can't comprehend the value of indentations yet
13:05:56FromDiscord<xtrayambak> In reply to @lomineheck "yeah sure, the entire": Yes
13:06:01FromDiscord<xtrayambak> Send it via Nim playground
13:06:09FromDiscord<xtrayambak> https://play.nim-lang.org/
13:06:30FromDiscord<lomineheck> In reply to @xtrayambak "I'd say you should": in the process of doing so
13:07:22FromDiscord<lomineheck> https://play.nim-lang.org/#pasty=VLLYSpvLZBSO
13:08:09FromDiscord<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:28FromDiscord<xtrayambak> https://play.nim-lang.org/#pasty=KORXMWSkMLjG
13:08:30FromDiscord<xtrayambak> try this out
13:09:02FromDiscord<lomineheck> 3 issues now https://media.discordapp.net/attachments/371759389889003532/1226881488193327135/image.png?ex=6626616d&is=6613ec6d&hm=0428d72077d1c3b695cd9620488372e70167bd4321d86c564eddb1b912f0904e&
13:09:33FromDiscord<lomineheck> all specifically on line 32 for some reason
13:09:48FromDiscord<.lisuwu_> In reply to @lomineheck "3 issues now": add space to line 32
13:10:31FromDiscord<xtrayambak> sorry, there was a problem
13:10:32FromDiscord<xtrayambak> https://play.nim-lang.org/#pasty=KORXMWSkMLjG
13:10:35FromDiscord<xtrayambak> try this out
13:10:50FromDiscord<nnsee> same link
13:10:52FromDiscord<xtrayambak> you missed out multiple values to ask the player 😄
13:10:56FromDiscord<xtrayambak> wait
13:10:56FromDiscord<xtrayambak> ah
13:11:01FromDiscord<xtrayambak> wl-clipboard being wl-clipboard again
13:11:03FromDiscord<lomineheck> In reply to @xtrayambak "you missed out multiple": oopsies haha
13:11:06FromDiscord<xtrayambak> https://play.nim-lang.org/#pasty=mwoDiliqDyKs
13:11:08FromDiscord<xtrayambak> try this
13:11:10FromDiscord<nnsee> wayland chad detected
13:11:25FromDiscord<xtrayambak> In reply to @nnsee "wayland chad detected": I love Hyprland (other than the edgy developer) :)
13:11:37FromDiscord<lomineheck> it works now! tysm
13:11:42FromDiscord<xtrayambak> yw :)
13:11:43FromDiscord<nnsee> i'm more of a sway guy myself
13:11:52FromDiscord<xtrayambak> sway is like vanilla icecream
13:12:11FromDiscord<nnsee> it does exactly what i need it to and nothing more
13:12:28FromDiscord<xtrayambak> Hyprland is like mixing LSD in icecream and handing it out to children in a park
13:12:35FromDiscord<xtrayambak> anyways, let's not go offtopic lol
13:12:35FromDiscord<nnsee> also i've spent time contributing to it, so there's a sunk cost fallacy kind of thing going on
13:12:44FromDiscord<nnsee> sure yeah
13:50:39*lucasta joined #nim
14:20:48FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=mYuJHrpVIgiZ
14:21:16FromDiscord<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:55FromDiscord<solitudesf> i think installExt and skipFiles are conflicting
15:03:12FromDiscord<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:33FromDiscord<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:08FromDiscord<sOkam! 🫐> (edit) "they were" => "it" | "italready installed ... 🧩" added "them by that point"
15:05:11FromDiscord<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:02NimEventerNew 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:44FromDiscord<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:27pmp-pmaybe https://github.com/nim-lang/Nim/wiki/Nim-for-Python-Programmers
15:31:02FromDiscord<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:11NerveTrying 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:44Amun-Raeither 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:06FromDiscord<nnsee> wasn't raspbian 32 bit for a while even on 64 bit systems?
17:16:31NerveOkay, 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:10NerveOh 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:06FromDiscord<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:26FromDiscord<nnsee> you can cross compile and target 32 bit systems with a 64 bit compiler, too
17:25:35NerveI 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:19NerveI 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:51FromDiscord<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:55NerveOkay 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:32NerveCompiling 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:16FromDiscord<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:34FromDiscord<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:14FromDiscord<zumi.dxy> A public proc that returns a private Thing?↵↵like a `getSomething` that returns an `Object.something`
21:17:09FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=smZJPgPXisuR
21:19:57FromDiscord<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:15FromDiscord<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:26FromDiscord<zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=GjrRUsHaiwpR
21:35:20FromDiscord<zumi.dxy> (edit) "https://play.nim-lang.org/#pasty=tgfxCnZrKJIW" => "https://play.nim-lang.org/#pasty=RJAlxDGpcZRT"
21:35:31FromDiscord<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:50FromDiscord<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:02FromDiscord<Robyn [She/Her]> In reply to @vindaar "if I read you": Ah it was already said
21:43:58FromDiscord<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:15FromDiscord<Robyn [She/Her]> That is true :P
22:10:12NimEventerNew 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:30FromDiscord<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:34FromDiscord<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