01:29:49 | * | neurocyte0132889 quit (Ping timeout: 252 seconds) |
01:40:48 | * | Gustavo6046_ joined #nim |
01:41:21 | * | Gustavo6046 quit (Ping timeout: 245 seconds) |
01:43:35 | * | Gustavo6046_ is now known as Gustavo6046 |
02:10:12 | * | arkurious quit (Quit: Leaving) |
02:22:48 | * | nisstyre quit (Quit: WeeChat 3.1) |
02:23:09 | NimEventer | New Nimble package! boxy - 2D GPU rendering with a tiling atlas., see https://github.com/treeform/boxy |
02:23:11 | nrds | <R2D299> itHub: 7"2D GPU rendering with a tiling atlas." |
02:24:53 | * | nisstyre joined #nim |
02:43:07 | FromDiscord | <retkid> for asyncsockets |
02:43:17 | FromDiscord | <retkid> what the default address because i cant figure out how to connect |
02:43:23 | FromDiscord | <retkid> im not getting any connection from 127.0.0.1 |
03:44:56 | * | Gustavo6046 quit (Quit: ZNC 1.8.2 - https://znc.in) |
03:45:16 | * | Gustavo6046 joined #nim |
04:06:01 | * | supakeen quit (Quit: WeeChat 3.3) |
04:06:31 | * | supakeen joined #nim |
04:19:27 | * | Gustavo6046 quit (Read error: Connection reset by peer) |
04:19:40 | * | Gustavo6046 joined #nim |
04:28:41 | * | rockcavera quit (Remote host closed the connection) |
04:39:29 | * | Gustavo6046 quit (Remote host closed the connection) |
04:39:55 | * | Gustavo6046 joined #nim |
04:44:30 | FromDiscord | <Tristan> When compiling with `--app:lib` on Windows, is there a way to retrieve the parameters that are passed to the `DllMain` function that the compiler generates?↵↵I've seen workarounds by means of exporting your own `DllMain` and manually calling `NimMain`, but I just wanted to check in and see if there was a better way. |
05:22:25 | FromDiscord | <Elegantbeef> @impbox [ftsf]\: so looking into it now, it's indeed the nimvm that's the culprit it has a range defect when used in emscripten and possibly 32bit(clearly i dont have this hardware to test this hypothesis, nor want to throw it in a VM) |
05:23:01 | FromDiscord | <impbox [ftsf]> Very interesting! |
05:23:51 | FromDiscord | <Elegantbeef> Currently doing laboriously putting echoes in the VM, so quite possibly the 32bit vm might be smarter 😀 |
05:31:15 | FromDiscord | <Elegantbeef> Also you can build a nim debug program if you copy the flags that you were using for emscripten release/danger |
05:31:18 | FromDiscord | <Elegantbeef> Guess in this case you could just build with assertions enabled |
05:36:08 | FromDiscord | <NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3BfU |
05:36:27 | FromDiscord | <Elegantbeef> seems to be a space at the sart |
05:37:57 | FromDiscord | <NullCode> hmm |
05:37:59 | FromDiscord | <NullCode> aight ill come back after stripping the space |
05:39:14 | FromDiscord | <Elegantbeef> Do yourself a favour and checkout parseutils 😀 |
05:40:05 | FromDiscord | <NullCode> well strutils did the job well |
05:40:12 | FromDiscord | <NullCode> thanks for pointing out the space |
05:40:24 | FromDiscord | <NullCode> ill still check out parseutils lmao |
05:42:19 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3BfV |
05:48:29 | * | weirdweirdhuh joined #nim |
05:49:27 | weirdweirdhuh | is it good practice to edit macro argument nodes and return them back? im assuming they are copied before being passed to the macro, and it is the simplest way by far for my macro to work |
05:53:35 | FromDiscord | <Elegantbeef> If it's an untyped node yea that's fine i generally do `result = arg` then modify result, if it's typed you'll want to copy it before mutation |
05:55:12 | weirdweirdhuh | yeah it was an untyped node thanks, i do remember needing to copy typed nodes before |
05:55:59 | FromDiscord | <Elegantbeef> So impbox if you're still around it just seems there are a few things in the compiler that except to be ran on an actual PC causing issues with emscripten, so ... fun! |
06:07:24 | * | weirdweirdhuh quit (Quit: Client closed) |
06:17:55 | FromDiscord | <retkid> Error: unhandled exception: No handles or timers registered in dispatcher. [ValueError] |
06:17:59 | FromDiscord | <retkid> this specific error |
06:18:11 | FromDiscord | <retkid> (edit) "error" => "error, in run forever" |
06:18:24 | FromDiscord | <retkid> how do i add a timer to the dispatcher |
06:18:33 | FromDiscord | <retkid> (edit) "run forever" => "runForever" |
06:23:52 | FromDiscord | <Rika> that just means youre not running any async procs |
06:25:11 | FromDiscord | <NullCode> because of the space prolly |
06:25:14 | FromDiscord | <NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3Bg0 |
06:28:01 | FromDiscord | <Rika> it should have |
06:28:47 | FromDiscord | <Elegantbeef> That parseint variant takes in a startpos |
06:30:54 | FromDiscord | <Elegantbeef> https://play.nim-lang.org/#ix=3Bg3 |
06:40:51 | FromDiscord | <impbox [ftsf]> In reply to @Elegantbeef "So impbox if you're": Awesome! |
07:15:46 | * | max22- joined #nim |
07:19:33 | NimEventer | New thread by Alexeypetrushin: Why both @ and toSeq?, see https://forum.nim-lang.org/t/8488 |
07:40:50 | FromDiscord | <Rika> Deleted so fast |
07:48:39 | FromDiscord | <NullCode> yikes |
08:06:16 | FromDiscord | <Yardanico> In reply to @Rika "Deleted so fast": typical :) |
08:06:30 | FromDiscord | <Rika> Really? Okay |
08:06:56 | FromDiscord | <Yardanico> yes, this is far from the first time |
08:08:07 | FromDiscord | <Rika> Well of course it’s not the first time |
08:08:24 | FromDiscord | <Rika> Atypical doesn’t mean “extremely rare” |
08:09:07 | FromDiscord | <Yardanico> i said "typical" which is a synonym for "common" |
08:09:42 | FromDiscord | <Rika> “Far from the first time” made me assume you thought I thought it was very rare |
08:10:03 | FromDiscord | <Yardanico> oh ok, i meant that it has happened quite a lot of times |
08:10:58 | FromDiscord | <Rika> English hard |
08:12:24 | FromDiscord | <gnu+linux user> 🫂 |
09:15:43 | * | Gustavo6046 quit (Ping timeout: 252 seconds) |
09:17:34 | * | Gustavo6046 joined #nim |
10:28:35 | NimEventer | New thread by Kiloneie: Looking for feedback on Metaprogramming in Nim #1 Introduction and Generic Procedures, see https://forum.nim-lang.org/t/8490 |
10:36:48 | * | tschaei joined #nim |
11:19:25 | * | max22- quit (Ping timeout: 265 seconds) |
11:44:36 | * | PMunch joined #nim |
12:06:01 | * | supakeen quit (Quit: WeeChat 3.3) |
12:06:31 | * | supakeen joined #nim |
12:14:15 | FromDiscord | <NullCode> yikes |
12:15:28 | FromDiscord | <Rika> ? Yikes at what |
12:19:51 | FromDiscord | <NullCode> the english going on |
12:20:09 | FromDiscord | <Rika> You’re yikes |
12:20:11 | FromDiscord | <NullCode> (edit) "the english ... going" added "that was previously" |
12:20:28 | FromDiscord | <NullCode> no you're yikes |
12:24:11 | FromDiscord | <Rika> Weak retort, yikes |
12:33:37 | NimEventer | New post on r/nim by _aachh: Pancake — a toy stack-based language interpreter, proudly written in Nim!, see https://reddit.com/r/nim/comments/q4keyi/pancake_a_toy_stackbased_language_interpreter/ |
12:33:57 | FromDiscord | <juan_carlos> Can you do `koch temp` with JS codegen ON ?. |
12:47:45 | FromDiscord | <xflywind> In reply to @juan_carlos "Can you do `koch": `koch temp js -r yournimfile.nim` |
12:49:38 | FromDiscord | <xflywind> or just use `koch boot` or `nim c -r -o:nim_test compiler/nim.nim` |
12:55:49 | FromDiscord | <juan_carlos> `koch temp` by default builds with `leanCompiler` I think, used `koch boot` and works. |
12:56:53 | FromDiscord | <NullCode> In reply to @Rika "Weak retort, yikes": yikes |
13:00:12 | FromDiscord | <xflywind> In reply to @juan_carlos "`koch temp` by default": yeah, if you add js option, `-d:leancompiler` should be removed. |
13:00:14 | FromDiscord | <xflywind> https://media.discordapp.net/attachments/371759389889003532/896381540584550410/unknown.png |
13:05:53 | * | tschaei quit (Quit: leaving) |
13:13:31 | * | arkurious joined #nim |
13:15:53 | FromDiscord | <skyhawk172> Anyone know how to use the asyncjs module? I'm using it to call some async JS methods. But the nim compiler complains: Error: undeclared identifier: 'await' |
13:16:29 | FromDiscord | <skyhawk172> should asyncjs module provide `await` ?? |
13:17:11 | FromDiscord | <skyhawk172> Compiling to JS by the way and running JS in browser |
13:25:25 | FromDiscord | <Rika> yes it should |
13:25:31 | FromDiscord | <Rika> can we have a code sample |
13:25:49 | FromDiscord | <skyhawk172> sure, one sec |
13:30:14 | FromDiscord | <skyhawk172> https://gist.github.com/martin-c/023b70c4296cbe415348d0150df99207#file-nim_asyncjs-nim |
13:31:08 | FromDiscord | <skyhawk172> using nim version 1.4.8 |
13:34:40 | FromDiscord | <Rika> main missing {.async.} |
13:35:06 | FromDiscord | <Rika> getDevices is not an async proc either? |
13:38:18 | * | max22- joined #nim |
13:38:59 | FromDiscord | <skyhawk172> ok, that helps. So `await` i only available inside `{.async.}` proc. Makes sense |
13:42:49 | FromDiscord | <samthecoy> Is there a mod here? Dattebayo#9370 is sending me a steam account scam (can DM evidence) |
13:48:20 | FromDiscord | <vieru> same here |
13:48:25 | FromDiscord | <vieru> lol |
13:48:48 | FromDiscord | <vieru> and ChrisC |
13:48:55 | FromDiscord | <vieru> idk if he s on this server |
13:49:12 | FromDiscord | <NullCode> @Gumber help these peeps out |
13:49:41 | FromDiscord | <Gumber> In reply to @samthecoy "Is there a mod": Please DM me a screenshot |
13:49:49 | FromDiscord | <Gumber> In reply to @vieru "and ChrisC": same please |
13:50:01 | FromDiscord | <vieru> well i reported him and i cant send screenshots |
13:50:04 | FromDiscord | <vieru> but its legit |
13:50:08 | FromDiscord | <vieru> its this scam |
13:50:25 | FromDiscord | <vieru> https://blog.malwarebytes.com/scams/2021/03/steam-users-dont-fall-for-the-i-accidentally-reported-you-scam/ |
13:50:35 | FromDiscord | <vieru> he said he accidentally reported me |
13:50:47 | FromDiscord | <vieru> for item fraud and shit |
13:50:49 | FromDiscord | <Rika> you have to provide evidence though |
13:51:05 | NimEventer | New thread by Kalbhairab: Make android app, see https://forum.nim-lang.org/t/8491 |
13:51:17 | FromDiscord | <vieru> well do you know how can i see the dm's of someone i reported ? |
13:51:19 | FromDiscord | <Gumber> In reply to @samthecoy "Is there a mod": Or just post the screenshot here for all I care... |
13:51:48 | FromDiscord | <Rika> a screenshot of the DM is what he means |
13:51:59 | FromDiscord | <samthecoy> https://media.discordapp.net/attachments/371759389889003532/896394566482149396/Screenshot_2021-10-09-14-51-24-58_572064f74bd5f9fa804b05334aa4f912.jpg |
13:52:30 | FromDiscord | <Gumber> banned |
13:52:33 | FromDiscord | <vieru> yup that's how he approached me too |
13:52:36 | FromDiscord | <samthecoy> (he blocked me before the last message. He hadn't got to the scam but I've seen this a few dozen times) |
13:53:01 | FromDiscord | <vieru> thanks |
13:53:02 | FromDiscord | <Gumber> There's not even a ChrisC user in here |
13:53:34 | FromDiscord | <vieru> In reply to @vieru "idk if he s": ^ |
13:54:09 | FromDiscord | <Gumber> I'm not like a global discord mod |
13:54:40 | FromDiscord | <Gumber> anywho - I'm going back to ignoring discord 🙂 |
14:02:25 | * | LaughuingTiger joined #nim |
14:23:07 | FromDiscord | <NullCode> In reply to @Gumber "I'm not like a": lmfao imagine having the power to ban users off the platform |
14:23:19 | FromDiscord | <NullCode> ULTIMATE power trip |
14:27:47 | FromDiscord | <Rika> lol |
14:33:21 | * | Guest34 joined #nim |
14:34:08 | * | Guest34 quit (Client Quit) |
14:35:06 | * | Gustavo6046 quit (Ping timeout: 245 seconds) |
14:36:40 | * | Gustavo6046 joined #nim |
15:46:23 | * | PMunch quit (Quit: leaving) |
16:06:34 | * | Gustavo6046 quit (Ping timeout: 252 seconds) |
16:22:00 | * | Gustavo6046 joined #nim |
16:51:06 | * | LaughuingTiger quit (Quit: Client closed) |
18:31:05 | * | max22- quit (Ping timeout: 268 seconds) |
18:42:52 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
18:44:29 | * | nrds quit (Ping timeout: 245 seconds) |
18:46:01 | * | Lord_Nightmare joined #nim |
18:58:25 | * | max22- joined #nim |
19:16:28 | * | jjido joined #nim |
19:23:32 | * | kobi7 joined #nim |
19:30:07 | Mister_Magister | I want to use some c++ library in nim, do you have some examples or docs? do i need to write some sort of wrapper? |
19:30:56 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-importcpp-pragma yes you need to make a wrapper |
19:31:31 | FromDiscord | <Elegantbeef> May want to use https://github.com/nim-lang/c2nim as it understands some C++ |
19:32:18 | Mister_Magister | Thanks |
19:32:31 | Mister_Magister | so if wrapper then i will try to copy this https://github.com/ThomasTJdev/nim_wiringPiNim/ as it's super simple |
19:32:54 | Mister_Magister | wiringPi is deprecated and broken so i'm making wrapper for another lib :P |
19:33:01 | Mister_Magister | maybe it will be good enoguh for nimble |
19:43:44 | * | kobi7 quit (Quit: Leaving) |
19:46:05 | Mister_Magister | hmm im getting undefined reference :/ |
19:49:29 | * | supakeen quit (Ping timeout: 245 seconds) |
19:50:48 | * | supakeen joined #nim |
20:03:53 | Mister_Magister | https://github.com/Michal-Szczepaniak/nim_pigpio here's code, can you help me with undefined reference? |
20:08:49 | Mister_Magister | hmm |
20:08:56 | Mister_Magister | .c file works but .cpp file doesn't |
20:10:50 | Mister_Magister | .c will work fine anyway i think |
20:48:43 | * | Gustavo6046 quit (Ping timeout: 252 seconds) |
20:48:48 | * | Gustavo6046_ joined #nim |
20:51:46 | * | Gustavo6046_ is now known as Gustavo6046 |
20:57:05 | * | nrds joined #nim |
20:58:18 | * | Gustavo6046 quit (Read error: Connection reset by peer) |
21:01:31 | * | Gustavo6046 joined #nim |
21:09:31 | Mister_Magister | can you use importc to import define? |
21:13:51 | * | Gustavo6046 quit (Ping timeout: 245 seconds) |
21:15:13 | * | Gustavo6046 joined #nim |
21:26:36 | * | Gustavo6046 quit (Read error: Connection reset by peer) |
21:29:10 | Mister_Magister | if i cannot import it how can i achieve same effect as #define in nim? can't use const from another file for some reason |
21:36:33 | * | Gustavo6046 joined #nim |
21:38:36 | Mister_Magister | ahh i needed to do const var* = to export it |
22:15:42 | FromDiscord | <retkid> In reply to @Rika "that just means youre": ah so i gotta keep running async procs or it'll raise an exception |
22:23:02 | FromDiscord | <zidsal> I'm writing a sparse set which means I need a sequence of N where N is the largest number I'm planning on putting in the set. How can I dynamically grow a sequence? or do I need to instantiate a larger sequence, & copy the old 1 over. i.e I want to be able to do https://play.nim-lang.org/#ix=3BjE |
22:23:30 | FromDiscord | <Elegantbeef> `setLen`? |
22:24:11 | FromDiscord | <zidsal> perfect thanks Elegant, finding all the sequence methods in https://nim-lang.org/docs/system.htm is a pain, I missed that 1! |
22:28:06 | FromDiscord | <impbox [ftsf]> Aye, I wish there was a nice way to see all the procs for a type together in the docs. |
22:28:08 | * | Gustavo6046 quit (Read error: Connection reset by peer) |
22:29:48 | FromDiscord | <zidsal> or at least make search, search arguments of proc as well so searching for seq would return all procs that take seq as an argument, makes it easier to find the procs for the type atleast |
22:31:12 | * | Gustavo6046 joined #nim |
22:46:10 | * | jjido quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…) |
22:54:16 | * | Gustavo6046 quit (Ping timeout: 245 seconds) |
22:59:43 | * | Gustavo6046 joined #nim |
23:20:42 | nrds | <Prestige99> hm can I not have a dot in a proc name like proc `velocity.y=` ? |
23:21:00 | nrds | <Prestige99> I suppose that didn't escape well on discord |
23:22:57 | FromDiscord | <Elegantbeef> I mean you can but you'll need to call it using accquotes |
23:23:09 | nrds | <Prestige99> ah I see |
23:23:14 | FromDiscord | <juan_carlos> https://play.nim-lang.org/#ix=3BjL |
23:23:43 | FromDiscord | <Elegantbeef> Consider looking https://nim-lang.org/docs/manual_experimental.html#special-operators-dot-operators |
23:33:58 | * | max22- quit (Remote host closed the connection) |