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:13 | FromDiscord | <madonuko> futhark is actually… magic https://media.discordapp.net/attachments/371759389889003532/1389893414799151134/image.png?ex=6866469d&is=6864f51d&hm=6657817705fcf1e6bc7bb4c7694a47dfc4c227440180abf726f6d2682c0c6aec& |
09:00:25 | FromDiscord | <madonuko> https://media.discordapp.net/attachments/371759389889003532/1389893463461466172/image.png?ex=686646a8&is=6864f528&hm=56639e0a65fb8cb7118dca73c03efccd4e7c774a01ce0e8860e83b7f6bdef842& |
09:00:29 | FromDiscord | <madonuko> this is purely magic… |
09:02:33 | FromDiscord | <madonuko> the person who made this should obtain a nobel price |
09:02:42 | FromDiscord | <madonuko> (edit) "price" => "prize" |
09:24:34 | Amun-Ra | /lib64/glib-2.0/include? what system is that? |
09:30:22 | FromDiscord | <madonuko> fedora? |
09:30:39 | FromDiscord | <madonuko> it's the same as `/usr/lib64/glib-2.0/include` |
09:31:05 | FromDiscord | <madonuko> I figured /lib64/ would be a bit more universal so |
09:32:14 | FromDiscord | <leorize> you want /usr/lib64 |
09:32:57 | FromDiscord | <leorize> /lib paths are legacy and on unmerged-usr systems they contains only the bare minimum |
09:34:04 | Amun-Ra | pretty weird |
09:35:18 | FromDiscord | <leorize> glib is kinda weird |
09:36:01 | FromDiscord | <leorize> though I'd say if you want to use stuff with gobject-introspection support, gintro package might be a lot better |
09:36:58 | FromDiscord | <leorize> which extracts data from gobject-introspection and provides high quality bindings |
09:38:37 | FromDiscord | <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:18 | FromDiscord | <DetermiedNim1> Hi chat |
12:35:52 | FromDiscord | <DetermiedNim1> sent a code paste, see https://play.nim-lang.org/#pasty=LKcGcPpj |
12:36:15 | FromDiscord | <DetermiedNim1> (edit) "https://play.nim-lang.org/#pasty=SbFlCpHa" => "https://play.nim-lang.org/#pasty=xyHnYjys" |
12:38:25 | FromDiscord | <janakali> `"i = " & $i` |
12:39:51 | FromDiscord | <DetermiedNim1> Well |
12:39:56 | FromDiscord | <DetermiedNim1> yeah |
12:40:01 | FromDiscord | <DetermiedNim1> That was a typo |
12:40:50 | FromDiscord | <madonuko> how does it fail? |
12:40:56 | FromDiscord | <madonuko> which target? |
12:41:22 | FromDiscord | <DetermiedNim1> Compilation target? |
12:41:27 | FromDiscord | <madonuko> yeah |
12:41:33 | FromDiscord | <madonuko> what's the error |
12:41:37 | Amun-Ra | and what's uartWriteLine |
12:42:06 | FromDiscord | <DetermiedNim1> it just writes the string to this uart thing↵That works |
12:42:11 | FromDiscord | <DetermiedNim1> I have tested it a lot |
12:43:03 | FromDiscord | <DetermiedNim1> https://github.com/object-Object/mlogv32/tree/main↵This is the processor↵Riscv32 |
12:43:30 | Amun-Ra | so the question remains, what's the error |
12:44:21 | FromDiscord | <DetermiedNim1> uh ill have to come back in a bit for that cause I don't have my laptop available rn |
12:44:51 | FromDiscord | <DetermiedNim1> compilation succeeds tho |
12:45:36 | Amun-Ra | what happens if you send a constant string to the uart |
12:45:42 | FromDiscord | <DetermiedNim1> It works |
12:46:31 | FromDiscord | <DetermiedNim1> It just writes each byte then \n |
12:47:13 | Amun-Ra | in the same loop? |
12:50:31 | FromDiscord | <DetermiedNim1> sent a code paste, see https://play.nim-lang.org/#pasty=GPLZXWyr |
12:51:53 | FromDiscord | <madonuko> eh let's just wait for the diagnostics |
12:52:17 | FromDiscord | <DetermiedNim1> I know the issue isn't printing because↵`let str = "a" & "b"`↵`discard "a" & "b"`↵both don't work |
12:52:26 | FromDiscord | <DetermiedNim1> (edit) ""b"`↵`discard" => ""b"` and↵`discard" |
12:53:09 | FromDiscord | <DetermiedNim1> In reply to @madonuko "eh let's just wait": Yeah I should be able to get it in a bit |
13:06:43 | FromDiscord | <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:51 | FromDiscord | <DetermiedNim1> Ah |
13:10:56 | FromDiscord | <demotomohiro> iirc, Raspbery pi pico sdk provides malloc. |
13:13:41 | FromDiscord | <DetermiedNim1> In reply to @determiedmech1 "uh ill have to": It just says "Control transferred to 0xfffffff0 (default mtvec), halting." |
13:14:07 | FromDiscord | <DetermiedNim1> but yeah I think providing my own malloc might be the solution |
13:16:06 | FromDiscord | <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:49 | FromDiscord | <DetermiedNim1> "port memory manager to your platform" |
13:18:31 | FromDiscord | <DetermiedNim1> In reply to @demotomohiro "iirc, Raspbery pi pico": I'll take a look at this |
13:19:12 | FromDiscord | <demotomohiro> Sorry, not `-d:malloc` but `-d:useMalloc`. |
13:20:19 | FromDiscord | <DetermiedNim1> It compiles |
13:20:23 | FromDiscord | <DetermiedNim1> But doesn't run |
13:22:17 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=DZlrOwQU |
13:23:18 | FromDiscord | <demotomohiro> (You need to implement `proc intToHexStr(x: int): array[16, char]` that probably not so hard). |
13:25:28 | FromDiscord | <DetermiedNim1> why hex string? |
13:28:39 | FromDiscord | <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:31 | FromDiscord | <madonuko> sent a code paste, see https://play.nim-lang.org/#pasty=aQjFbiay |
14:02:02 | FromDiscord | <madonuko> is chronicles broken |
14:02:31 | FromDiscord | <madonuko> actually should try devel |
14:05:45 | FromDiscord | <madonuko> nope, still fails |
14:05:48 | FromDiscord | <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:47 | FromDiscord | <madonuko> I'm very very confusion |
15:01:59 | FromDiscord | <madonuko> ah |
15:02:02 | FromDiscord | <madonuko> ah ha |
15:02:17 | FromDiscord | <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:10 | strogon14 | the ptr_math code references this snippet: https://forum.nim-lang.org/t/1188#7366 |
17:10:10 | strogon14 | I just copied what I needed from that thread into my project. |
17:11:21 | FromDiscord | <madonuko> I just ended up not importing them in the same file |
17:28:19 | FromDiscord | <DetermiedNim1> Are there any resources that explain the process of implementing a custom allocator |
17:39:53 | * | jjido joined #nim |
17:52:00 | FromDiscord | <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:11 | FromDiscord | <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:58 | Amun-Ra | because of enum holes |
19:43:03 | Amun-Ra | (I suspect) |
19:45:37 | FromDiscord | <TӨMΛ ☠> Oooh |
19:45:39 | FromDiscord | <TӨMΛ ☠> That makes sense |
19:52:14 | FromDiscord | <TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=LLijJYDB |
19:54:33 | * | xtr00 joined #nim |
19:55:26 | FromDiscord | <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:03 | Amun-Ra | what's the code? |
19:59:18 | FromDiscord | <TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=SiQyvmtQ |
19:59:49 | FromDiscord | <TӨMΛ ☠> (the identation is correct in .nim file, just copy-paste broke it) |
20:01:33 | Amun-Ra | I usually make flags using distinct types |
20:02:36 | Amun-Ra | hmm, there should be no difference |
20:34:39 | FromDiscord | <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:21 | FromDiscord | <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:12 | FromDiscord | <bxiwbbd> Is there a full-featured js parser in nim? Like Acorn or Babel |
22:59:12 | FromDiscord | <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 |