<< 02-07-2025 >>

00:34:59*xet7 quit (Remote host closed the connection)
00:46:25*xtr00 quit (Read error: Connection reset by peer)
00:47:21*xtr00 joined #nim
02:30:00*amadaluzia quit (Quit: ZNC 1.10.0 - https://znc.in)
02:50:39*Jjp137 quit (Quit: Leaving)
02:55:14*skippy8 joined #nim
02:55:41*Jjp137 joined #nim
03:13:22*m5zs7k quit (Ping timeout: 248 seconds)
03:32:28*m5zs7k joined #nim
03:45:12*rockcavera quit (Remote host closed the connection)
04:38:05*derpydoo joined #nim
04:38:59*derpydoo quit (Client Quit)
04:47:09*derpydoo joined #nim
05:29:33*perro quit (Ping timeout: 276 seconds)
05:40:05*perro joined #nim
06:26:04*jjido joined #nim
06:27:38*perro quit (Ping timeout: 272 seconds)
06:28:28*perro joined #nim
07:13:09*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
09:00:13FromDiscord<madonuko> futhark is actually… magic https://media.discordapp.net/attachments/371759389889003532/1389893414799151134/image.png?ex=6866469d&is=6864f51d&hm=6657817705fcf1e6bc7bb4c7694a47dfc4c227440180abf726f6d2682c0c6aec&
09:00:25FromDiscord<madonuko> https://media.discordapp.net/attachments/371759389889003532/1389893463461466172/image.png?ex=686646a8&is=6864f528&hm=56639e0a65fb8cb7118dca73c03efccd4e7c774a01ce0e8860e83b7f6bdef842&
09:00:29FromDiscord<madonuko> this is purely magic…
09:02:33FromDiscord<madonuko> the person who made this should obtain a nobel price
09:02:42FromDiscord<madonuko> (edit) "price" => "prize"
09:24:34Amun-Ra/lib64/glib-2.0/include? what system is that?
09:30:22FromDiscord<madonuko> fedora?
09:30:39FromDiscord<madonuko> it's the same as `/usr/lib64/glib-2.0/include`
09:31:05FromDiscord<madonuko> I figured /lib64/ would be a bit more universal so
09:32:14FromDiscord<leorize> you want /usr/lib64
09:32:57FromDiscord<leorize> /lib paths are legacy and on unmerged-usr systems they contains only the bare minimum
09:34:04Amun-Rapretty weird
09:35:18FromDiscord<leorize> glib is kinda weird
09:36:01FromDiscord<leorize> though I'd say if you want to use stuff with gobject-introspection support, gintro package might be a lot better
09:36:58FromDiscord<leorize> which extracts data from gobject-introspection and provides high quality bindings
09:38:37FromDiscord<madonuko> I see
09:42:09*derpydoo quit (Quit: derpydoo)
09:48:33*xtr00 quit (Read error: Connection reset by peer)
09:54:07*xtr00 joined #nim
12:33:18FromDiscord<DetermiedNim1> Hi chat
12:35:52FromDiscord<DetermiedNim1> sent a code paste, see https://play.nim-lang.org/#pasty=LKcGcPpj
12:36:15FromDiscord<DetermiedNim1> (edit) "https://play.nim-lang.org/#pasty=SbFlCpHa" => "https://play.nim-lang.org/#pasty=xyHnYjys"
12:38:25FromDiscord<janakali> `"i = " & $i`
12:39:51FromDiscord<DetermiedNim1> Well
12:39:56FromDiscord<DetermiedNim1> yeah
12:40:01FromDiscord<DetermiedNim1> That was a typo
12:40:50FromDiscord<madonuko> how does it fail?
12:40:56FromDiscord<madonuko> which target?
12:41:22FromDiscord<DetermiedNim1> Compilation target?
12:41:27FromDiscord<madonuko> yeah
12:41:33FromDiscord<madonuko> what's the error
12:41:37Amun-Raand what's uartWriteLine
12:42:06FromDiscord<DetermiedNim1> it just writes the string to this uart thing↵That works
12:42:11FromDiscord<DetermiedNim1> I have tested it a lot
12:43:03FromDiscord<DetermiedNim1> https://github.com/object-Object/mlogv32/tree/main↵This is the processor↵Riscv32
12:43:30Amun-Raso the question remains, what's the error
12:44:21FromDiscord<DetermiedNim1> uh ill have to come back in a bit for that cause I don't have my laptop available rn
12:44:51FromDiscord<DetermiedNim1> compilation succeeds tho
12:45:36Amun-Rawhat happens if you send a constant string to the uart
12:45:42FromDiscord<DetermiedNim1> It works
12:46:31FromDiscord<DetermiedNim1> It just writes each byte then \n
12:47:13Amun-Rain the same loop?
12:50:31FromDiscord<DetermiedNim1> sent a code paste, see https://play.nim-lang.org/#pasty=GPLZXWyr
12:51:53FromDiscord<madonuko> eh let's just wait for the diagnostics
12:52:17FromDiscord<DetermiedNim1> I know the issue isn't printing because↵`let str = "a" & "b"`↵`discard "a" & "b"`↵both don't work
12:52:26FromDiscord<DetermiedNim1> (edit) ""b"`↵`discard" => ""b"` and↵`discard"
12:53:09FromDiscord<DetermiedNim1> In reply to @madonuko "eh let's just wait": Yeah I should be able to get it in a bit
13:06:43FromDiscord<demotomohiro> In reply to @determiedmech1 "Hi chat": `$i` requires c standard libs and heap allocation. And `string & string` needs heap allocation.↵So you probably need to avoid them or implement malloc and intToStr yourself.
13:07:51FromDiscord<DetermiedNim1> Ah
13:10:56FromDiscord<demotomohiro> iirc, Raspbery pi pico sdk provides malloc.
13:13:41FromDiscord<DetermiedNim1> In reply to @determiedmech1 "uh ill have to": It just says "Control transferred to 0xfffffff0 (default mtvec), halting."
13:14:07FromDiscord<DetermiedNim1> but yeah I think providing my own malloc might be the solution
13:16:06FromDiscord<demotomohiro> If you add `-d:malloc` and don't get link error like `undefined reference malloc`, your sdk or lib might already have malloc.
13:17:49FromDiscord<DetermiedNim1> "port memory manager to your platform"
13:18:31FromDiscord<DetermiedNim1> In reply to @demotomohiro "iirc, Raspbery pi pico": I'll take a look at this
13:19:12FromDiscord<demotomohiro> Sorry, not `-d:malloc` but `-d:useMalloc`.
13:20:19FromDiscord<DetermiedNim1> It compiles
13:20:23FromDiscord<DetermiedNim1> But doesn't run
13:22:17FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=DZlrOwQU
13:23:18FromDiscord<demotomohiro> (You need to implement `proc intToHexStr(x: int): array[16, char]` that probably not so hard).
13:25:28FromDiscord<DetermiedNim1> why hex string?
13:28:39FromDiscord<demotomohiro> Just because int to hex string is easier and doesn't requires integer div/mod that slow on some mcu.↵And doesn't need large buffer to put result string.
13:42:31FromDiscord<madonuko> sent a code paste, see https://play.nim-lang.org/#pasty=aQjFbiay
14:02:02FromDiscord<madonuko> is chronicles broken
14:02:31FromDiscord<madonuko> actually should try devel
14:05:45FromDiscord<madonuko> nope, still fails
14:05:48FromDiscord<madonuko> (edit) "nope, still fails ... " added "with HEAD"
14:19:01*pmp-p_ joined #nim
14:19:01*pmp-p quit (Killed (NickServ (GHOST command used by pmp-p_)))
14:48:51*xet7 joined #nim
14:53:09*xet7 quit (Ping timeout: 248 seconds)
14:58:47FromDiscord<madonuko> I'm very very confusion
15:01:59FromDiscord<madonuko> ah
15:02:02FromDiscord<madonuko> ah ha
15:02:17FromDiscord<madonuko> so I cannot import both chronicles and ptr_math at the same time
15:54:21*Goodbye_Vincent1 quit (Ping timeout: 252 seconds)
16:55:04*amadaluzia joined #nim
17:10:10strogon14the ptr_math code references this snippet: https://forum.nim-lang.org/t/1188#7366
17:10:10strogon14I just copied what I needed from that thread into my project.
17:11:21FromDiscord<madonuko> I just ended up not importing them in the same file
17:28:19FromDiscord<DetermiedNim1> Are there any resources that explain the process of implementing a custom allocator
17:39:53*jjido joined #nim
17:52:00FromDiscord<Elegantbeef> https://github.com/planetis-m/mimalloc_nim world be the closest to 'explain'
19:13:38*beholders_eye joined #nim
19:28:16*xtr00 quit (Ping timeout: 265 seconds)
19:29:00*xtr00 joined #nim
19:36:11FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=GZHBSWbH
19:37:00*xtr00 quit (Ping timeout: 252 seconds)
19:42:58Amun-Rabecause of enum holes
19:43:03Amun-Ra(I suspect)
19:45:37FromDiscord<TӨMΛ ☠> Oooh
19:45:39FromDiscord<TӨMΛ ☠> That makes sense
19:52:14FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=LLijJYDB
19:54:33*xtr00 joined #nim
19:55:26FromDiscord<TӨMΛ ☠> After converting all of these to ints, it works... but the issue is that the final value is beyond `int` range (because original storage used `uint32`) so the problem repeats again, uh
19:57:03Amun-Rawhat's the code?
19:59:18FromDiscord<TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=SiQyvmtQ
19:59:49FromDiscord<TӨMΛ ☠> (the identation is correct in .nim file, just copy-paste broke it)
20:01:33Amun-RaI usually make flags using distinct types
20:02:36Amun-Rahmm, there should be no difference
20:34:39FromDiscord<TӨMΛ ☠> In reply to @Amun-Ra "I usually make flags": How does it look like?
20:35:02*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
20:35:21FromDiscord<TӨMΛ ☠> I never used distincts so far and went with fairly primitive imagination of how this could work (and I just like enums, my lib has a lot of these)
21:09:51*skippy8 quit (Quit: WeeChat 4.6.3)
21:16:30*m5zs7k quit (Ping timeout: 268 seconds)
21:17:30*m5zs7k joined #nim
21:21:24*rockcavera joined #nim
21:45:06*jjido joined #nim
21:55:12FromDiscord<bxiwbbd> Is there a full-featured js parser in nim? Like Acorn or Babel
22:59:12FromDiscord<user2m> In reply to @bxiwbbd "Is there a full-featured": maybe this? never used it but looks well written https://tapsterbot.github.io/burrito/
23:36:56*xtr00 quit (Read error: Connection reset by peer)
23:41:06*xtr00 joined #nim
23:55:01*xtr00 quit (Ping timeout: 248 seconds)
23:56:08*xtr00 joined #nim