<< 01-08-2025 >>

00:48:56*xutaxkamay joined #nim
00:50:23*amadaluzia quit (Read error: Connection reset by peer)
00:54:21*amadaluzia joined #nim
01:00:54FromDiscord<zectbumo> do I get a t-shirt if I can get the compiler to crash?
01:02:18FromDiscord<Kapendev Pythonista Dartista ๐Ÿฆ€โšก> Yes. (PNG)
01:02:41FromDiscord<zectbumo> NFT?
01:17:56*amadaluzia quit (Quit: ZNC 1.10.1 - https://znc.in)
01:18:23*amadaluzia joined #nim
01:43:36FromDiscord<Robyn [She/Her]> In reply to @leorize "technically nim is used": haven't heard anything about that recently
02:31:54*xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in)
02:38:26*tiorock joined #nim
02:38:26*tiorock quit (Changing host)
02:38:26*tiorock joined #nim
02:38:26*rockcavera quit (Killed (iridium.libera.chat (Nickname regained by services)))
02:38:26*tiorock is now known as rockcavera
02:52:23*xutaxkamay joined #nim
02:54:13*xutaxkamay quit (Client Quit)
02:54:43*rockcavera quit (Remote host closed the connection)
02:56:35*xutaxkamay joined #nim
04:11:27*amadaluzia quit (Read error: Connection reset by peer)
04:14:22*amadaluzia joined #nim
04:19:40*skippy8 joined #nim
05:22:13FromDiscord<lainlaylie> sent a code paste, see https://play.nim-lang.org/#pasty=bLvzOAsq
06:04:37*nils` quit (Ping timeout: 248 seconds)
07:36:05FromDiscord<lainlaylie> speaking of async does anyone know where chronos's theindex is...?
08:53:30*nils` joined #nim
09:34:30*amadaluzia quit (Ping timeout: 252 seconds)
09:53:37FromDiscord<aintea> sent a code paste, see https://play.nim-lang.org/#pasty=HdWhtUFV
11:15:57FromDiscord<lainlaylie> In reply to @aintea "So I have this": looks like it's some side effect of const closures, adding nimcall to the type is a workaround
11:38:02*przmk quit (Remote host closed the connection)
11:39:54*przmk joined #nim
12:29:02FromDiscord<aintea> yep that did the trick
12:29:06FromDiscord<aintea> that's interesting
12:51:31FromDiscord<nieznanymagnat> In reply to @demotomohiro "https://play.nim-lang.org/#pasty=OOMerciZ Changed u": That was an interesting read, thanksโ†ตI don't know why, but constructors in Nim don't want to stick in my mind, despite having (almost) the same syntax as in Python where I have no problem with that at all. Maybe it's the addition of the type in the square brackets next to different kind of brackets, almost as in BrainFuck ๐Ÿ˜…
12:55:38FromDiscord<nieznanymagnat> In reply to @blashyrk "https://play.nim-lang.org/#pasty=buwaZVGj 1. Stati": thanks as wellโ†ตabout 2. all the lists on stack ain't gonna have more than 10-20 elements (it's limited in the functions calling it), and the nodes are loaded one at the time so I think it should be fine. All of it is a backed for my Godot's plugin
12:59:53FromDiscord<blashyrk> In reply to @nieznanymagnat "thanks as well about": Yeah since you're using indices to reference nodes/edges it's totally fine, if you kept references directly you'd have to use `ref object` since you cannot allocate recursive structures on the stack, but I assume you already know all this ๐Ÿ™‚
13:15:10*amadaluzia joined #nim
13:55:45*lucerne quit (Quit: Bye)
13:58:04*lucerne joined #nim
14:10:58*amadaluzia quit (Ping timeout: 252 seconds)
14:11:48*amadaluzia joined #nim
14:32:03*beholders_eye joined #nim
15:32:34*beholders_eye quit (Ping timeout: 260 seconds)
15:34:17*beholders_eye joined #nim
15:41:28*beholders_eye quit (Ping timeout: 240 seconds)
15:43:31*beholders_eye joined #nim
16:16:44*beholders_eye quit (Ping timeout: 252 seconds)
16:20:44*xet7 quit (Ping timeout: 272 seconds)
16:33:04*xet7 joined #nim
17:01:49*xet7 quit (Remote host closed the connection)
17:08:12*FromDiscord quit (Remote host closed the connection)
17:08:25*FromDiscord joined #nim
17:09:08FromDiscord<nervecenter> neato
17:28:12FromDiscord<TFed> how to parse all kinds of quotations? I just dont wanna use regex
17:30:00FromDiscord<TFed> `(one circle thing [square thing inside it {and so on "even quotes have been used, <etc.>"}])`
17:30:44FromDiscord<TFed> `(one circle thing [square thing inside it {and so on "even quotes were used, <etc.>"}])`
17:31:11FromDiscord<TFed> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/1400892891596849274): how to parse all kinds of quotations and brackets? I just dont wanna use regex
17:32:56FromDiscord<TFed> syntax just indicates how content inside should be processed
17:36:48FromDiscord<TFed> my command that i'm working on... requires this feature, but i hope this is common thing and that i can find somewhere else
17:37:30FromDiscord<leorize> just write your own parser? it's just balanced pairs
17:38:00FromDiscord<TFed> ok, i think i can make it
17:48:39*beholders_eye joined #nim
18:12:58*beholders_eye quit (Ping timeout: 240 seconds)
18:14:54*beholders_eye joined #nim
19:18:36*beholders_eye quit (Ping timeout: 276 seconds)
19:19:49*nils` quit (Ping timeout: 248 seconds)
19:20:07*beholders_eye joined #nim
19:31:51FromDiscord<TFed> one more question how to convert char into string
19:40:59*nils` joined #nim
19:48:00Amun-Ra$c
20:01:20FromDiscord<TFed> oh yeah $ returns string, it makes sense. ๐Ÿ˜Œ
20:01:21FromDiscord<TFed> I was asking how to convert char to string, this is what is used\: before $c\:
20:01:27FromDiscord<TFed> "" & c
20:04:56FromDiscord<ieltan> Lol i'm doing some crazy things to the compiler i think
20:05:15FromDiscord<ieltan> anyone tried casting a `ptr T` as a `lent T`
20:06:21FromDiscord<Elegantbeef> With this compiler using it is crazy
20:06:42FromDiscord<Elegantbeef> no but stop it
20:06:52FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=lXoJsOhN
20:06:54FromDiscord<Elegantbeef> But that's just a stupid way to write `t[]`
20:07:31FromDiscord<ieltan> sent a code paste, see https://play.nim-lang.org/#pasty=bZoEjKpW
20:08:26FromDiscord<ieltan> i just want to know if the compiler actually return `T`as a pointer and not a value
20:08:33FromDiscord<Elegantbeef> That's not casting
20:08:58FromDiscord<ieltan> would you say it's converting ? coercing ? i suck at technical babble
20:09:59FromDiscord<Elegantbeef> `lent T` is a `ptr T` internally if you do not do `var a = myUnique[]`
20:11:53FromDiscord<Elegantbeef> I'd say returning lent from a ptr location
20:16:59FromDiscord<ieltan> so as long as i dont deref it it's not copied then
20:17:04FromDiscord<ieltan> (edit) "it" => "it,"
20:18:21FromDiscord<Elegantbeef> No
20:18:29FromDiscord<Elegantbeef> As long as you do not store it it'll not copy
20:18:49FromDiscord<ieltan> ah
20:18:59FromDiscord<ieltan> alright thanks ๐Ÿ™‚
20:29:36FromDiscord<ollicron_53732> sent a code paste, see https://play.nim-lang.org/#pasty=fvIAQUDq
20:31:28FromDiscord<ollicron_53732> (edit) "https://play.nim-lang.org/#pasty=SAsybOnV" => "https://play.nim-lang.org/#pasty=NPqqMjgs"
20:49:07FromDiscord<arnetheduck> opinion poll on https://github.com/arnetheduck/nph/issues/101 - feel free to ๐Ÿ‘ / ๐Ÿ‘Ž if you care (non-binding ๐Ÿ˜„)
21:00:47*zgasma quit (Quit: Lost terminal)
21:05:35FromDiscord<TFed> I will use only 4 brackets, []{}() and \<\>
21:05:41FromDiscord<TFed> i was procrastinating instead of writing the solution, it's harder than i thought
21:06:01FromDiscord<Elegantbeef> It's not too hard
21:08:14FromDiscord<TFed> probably because i just wasnt prepared for writting solution for balanced parantheses issue
21:08:36FromDiscord<TFed> i will watch youtube about it. i will start from checking whether expession is balanced or not
21:11:37FromDiscord<leorize> sent a long message, see https://pasty.ee/uCBJirvF
21:12:04FromDiscord<Elegantbeef> If you write it intelligently your `parse` can just take in a `openArray[(char, char)]` where each entry is an open/close
21:16:01FromDiscord<TFed> ok i will learn more about it thanks for info
21:39:05*skippy8 quit (Quit: WeeChat 4.6.3)
21:53:28*beholders_eye quit (Ping timeout: 240 seconds)
22:20:48FromDiscord<morgan (ping with reply)> spent hours debugging just to realize that it was because i set up arc/orc hooks and it was getting deallocated in the middle of the code running
22:21:09FromDiscord<morgan (ping with reply)> (a custom sorta memory view/range thing)
22:21:48FromDiscord<morgan (ping with reply)> it mostly is not owning its own memory, just passing around views into it and modifying the length and offset
22:24:45FromDiscord<morgan (ping with reply)> i think it'll be easier to just handle that completely manually
23:15:15FromDiscord<ollicron_53732> In reply to @morganalyssa "spent hours debugging just": that's what hooks are for though...
23:15:17FromDiscord<ollicron_53732> isnt it?
23:16:15FromDiscord<ollicron_53732> if you use arc/orc gotta use compiler flags for either.
23:16:36FromDiscord<morgan (ping with reply)> the hooks were making it dealloc when it wasn't supposed to
23:16:58FromDiscord<ollicron_53732> o.o odd
23:17:01FromDiscord<morgan (ping with reply)> maybe referencing others could work but idk i'll just manage that memory myself
23:17:28FromDiscord<morgan (ping with reply)> yeah its prob from me not having it be self contained
23:18:05*ftajhii quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
23:19:23FromDiscord<morgan (ping with reply)> like how im designing it, the file is read in to one bytesection, then as it reads thru it would be split up into bytesections for each chunk's prepend, data, and append, without any copying or allocating or deallocating
23:20:29FromDiscord<morgan (ping with reply)> in a bunch of places im modifying views into the data, i'd need to have them all reference each other or something to have that shared memory managed correctly
23:20:30FromDiscord<morgan (ping with reply)> i think
23:22:38FromDiscord<morgan (ping with reply)> im only working with seqs of bytes for individual fields (which could be fairly long if you wanted) because that makes reordering bytes easier (i have a bytemapping system that can do essentially arbitrary endianness not just big and little)
23:24:17*ftajhii joined #nim
23:24:49FromDiscord<morgan (ping with reply)> i know i need to be able to work with raw memory because i'll replace some older code of mine if i go back to working on it eventually (reminds me i gotta make it able to handle it N bytes at a time with a way to request more)