<< 09-10-2021 >>

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:09NimEventerNew Nimble package! boxy - 2D GPU rendering with a tiling atlas., see https://github.com/treeform/boxy
02:23:11nrds<R2D299> itHub: 7"2D GPU rendering with a tiling atlas."
02:24:53*nisstyre joined #nim
02:43:07FromDiscord<retkid> for asyncsockets
02:43:17FromDiscord<retkid> what the default address because i cant figure out how to connect
02:43:23FromDiscord<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:30FromDiscord<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:25FromDiscord<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:01FromDiscord<impbox [ftsf]> Very interesting!
05:23:51FromDiscord<Elegantbeef> Currently doing laboriously putting echoes in the VM, so quite possibly the 32bit vm might be smarter 😀
05:31:15FromDiscord<Elegantbeef> Also you can build a nim debug program if you copy the flags that you were using for emscripten release/danger
05:31:18FromDiscord<Elegantbeef> Guess in this case you could just build with assertions enabled
05:36:08FromDiscord<NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3BfU
05:36:27FromDiscord<Elegantbeef> seems to be a space at the sart
05:37:57FromDiscord<NullCode> hmm
05:37:59FromDiscord<NullCode> aight ill come back after stripping the space
05:39:14FromDiscord<Elegantbeef> Do yourself a favour and checkout parseutils 😀
05:40:05FromDiscord<NullCode> well strutils did the job well
05:40:12FromDiscord<NullCode> thanks for pointing out the space
05:40:24FromDiscord<NullCode> ill still check out parseutils lmao
05:42:19FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3BfV
05:48:29*weirdweirdhuh joined #nim
05:49:27weirdweirdhuhis 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:35FromDiscord<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:12weirdweirdhuhyeah it was an untyped node thanks, i do remember needing to copy typed nodes before
05:55:59FromDiscord<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:55FromDiscord<retkid> Error: unhandled exception: No handles or timers registered in dispatcher. [ValueError]
06:17:59FromDiscord<retkid> this specific error
06:18:11FromDiscord<retkid> (edit) "error" => "error, in run forever"
06:18:24FromDiscord<retkid> how do i add a timer to the dispatcher
06:18:33FromDiscord<retkid> (edit) "run forever" => "runForever"
06:23:52FromDiscord<Rika> that just means youre not running any async procs
06:25:11FromDiscord<NullCode> because of the space prolly
06:25:14FromDiscord<NullCode> sent a code paste, see https://play.nim-lang.org/#ix=3Bg0
06:28:01FromDiscord<Rika> it should have
06:28:47FromDiscord<Elegantbeef> That parseint variant takes in a startpos
06:30:54FromDiscord<Elegantbeef> https://play.nim-lang.org/#ix=3Bg3
06:40:51FromDiscord<impbox [ftsf]> In reply to @Elegantbeef "So impbox if you're": Awesome!
07:15:46*max22- joined #nim
07:19:33NimEventerNew thread by Alexeypetrushin: Why both @ and toSeq?, see https://forum.nim-lang.org/t/8488
07:40:50FromDiscord<Rika> Deleted so fast
07:48:39FromDiscord<NullCode> yikes
08:06:16FromDiscord<Yardanico> In reply to @Rika "Deleted so fast": typical :)
08:06:30FromDiscord<Rika> Really? Okay
08:06:56FromDiscord<Yardanico> yes, this is far from the first time
08:08:07FromDiscord<Rika> Well of course it’s not the first time
08:08:24FromDiscord<Rika> Atypical doesn’t mean “extremely rare”
08:09:07FromDiscord<Yardanico> i said "typical" which is a synonym for "common"
08:09:42FromDiscord<Rika> “Far from the first time” made me assume you thought I thought it was very rare
08:10:03FromDiscord<Yardanico> oh ok, i meant that it has happened quite a lot of times
08:10:58FromDiscord<Rika> English hard
08:12:24FromDiscord<gnu+linux user> 🫂
09:15:43*Gustavo6046 quit (Ping timeout: 252 seconds)
09:17:34*Gustavo6046 joined #nim
10:28:35NimEventerNew 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:15FromDiscord<NullCode> yikes
12:15:28FromDiscord<Rika> ? Yikes at what
12:19:51FromDiscord<NullCode> the english going on
12:20:09FromDiscord<Rika> You’re yikes
12:20:11FromDiscord<NullCode> (edit) "the english ... going" added "that was previously"
12:20:28FromDiscord<NullCode> no you're yikes
12:24:11FromDiscord<Rika> Weak retort, yikes
12:33:37NimEventerNew 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:57FromDiscord<juan_carlos> Can you do `koch temp` with JS codegen ON ?.
12:47:45FromDiscord<xflywind> In reply to @juan_carlos "Can you do `koch": `koch temp js -r yournimfile.nim`
12:49:38FromDiscord<xflywind> or just use `koch boot` or `nim c -r -o:nim_test compiler/nim.nim`
12:55:49FromDiscord<juan_carlos> `koch temp` by default builds with `leanCompiler` I think, used `koch boot` and works.
12:56:53FromDiscord<NullCode> In reply to @Rika "Weak retort, yikes": yikes
13:00:12FromDiscord<xflywind> In reply to @juan_carlos "`koch temp` by default": yeah, if you add js option, `-d:leancompiler` should be removed.
13:00:14FromDiscord<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:53FromDiscord<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:29FromDiscord<skyhawk172> should asyncjs module provide `await` ??
13:17:11FromDiscord<skyhawk172> Compiling to JS by the way and running JS in browser
13:25:25FromDiscord<Rika> yes it should
13:25:31FromDiscord<Rika> can we have a code sample
13:25:49FromDiscord<skyhawk172> sure, one sec
13:30:14FromDiscord<skyhawk172> https://gist.github.com/martin-c/023b70c4296cbe415348d0150df99207#file-nim_asyncjs-nim
13:31:08FromDiscord<skyhawk172> using nim version 1.4.8
13:34:40FromDiscord<Rika> main missing {.async.}
13:35:06FromDiscord<Rika> getDevices is not an async proc either?
13:38:18*max22- joined #nim
13:38:59FromDiscord<skyhawk172> ok, that helps. So `await` i only available inside `{.async.}` proc. Makes sense
13:42:49FromDiscord<samthecoy> Is there a mod here? Dattebayo#9370 is sending me a steam account scam (can DM evidence)
13:48:20FromDiscord<vieru> same here
13:48:25FromDiscord<vieru> lol
13:48:48FromDiscord<vieru> and ChrisC
13:48:55FromDiscord<vieru> idk if he s on this server
13:49:12FromDiscord<NullCode> @Gumber help these peeps out
13:49:41FromDiscord<Gumber> In reply to @samthecoy "Is there a mod": Please DM me a screenshot
13:49:49FromDiscord<Gumber> In reply to @vieru "and ChrisC": same please
13:50:01FromDiscord<vieru> well i reported him and i cant send screenshots
13:50:04FromDiscord<vieru> but its legit
13:50:08FromDiscord<vieru> its this scam
13:50:25FromDiscord<vieru> https://blog.malwarebytes.com/scams/2021/03/steam-users-dont-fall-for-the-i-accidentally-reported-you-scam/
13:50:35FromDiscord<vieru> he said he accidentally reported me
13:50:47FromDiscord<vieru> for item fraud and shit
13:50:49FromDiscord<Rika> you have to provide evidence though
13:51:05NimEventerNew thread by Kalbhairab: Make android app, see https://forum.nim-lang.org/t/8491
13:51:17FromDiscord<vieru> well do you know how can i see the dm's of someone i reported ?
13:51:19FromDiscord<Gumber> In reply to @samthecoy "Is there a mod": Or just post the screenshot here for all I care...
13:51:48FromDiscord<Rika> a screenshot of the DM is what he means
13:51:59FromDiscord<samthecoy> https://media.discordapp.net/attachments/371759389889003532/896394566482149396/Screenshot_2021-10-09-14-51-24-58_572064f74bd5f9fa804b05334aa4f912.jpg
13:52:30FromDiscord<Gumber> banned
13:52:33FromDiscord<vieru> yup that's how he approached me too
13:52:36FromDiscord<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:01FromDiscord<vieru> thanks
13:53:02FromDiscord<Gumber> There's not even a ChrisC user in here
13:53:34FromDiscord<vieru> In reply to @vieru "idk if he s": ^
13:54:09FromDiscord<Gumber> I'm not like a global discord mod
13:54:40FromDiscord<Gumber> anywho - I'm going back to ignoring discord 🙂
14:02:25*LaughuingTiger joined #nim
14:23:07FromDiscord<NullCode> In reply to @Gumber "I'm not like a": lmfao imagine having the power to ban users off the platform
14:23:19FromDiscord<NullCode> ULTIMATE power trip
14:27:47FromDiscord<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:07Mister_MagisterI 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:56FromDiscord<Elegantbeef> https://nim-lang.org/docs/manual.html#implementation-specific-pragmas-importcpp-pragma yes you need to make a wrapper
19:31:31FromDiscord<Elegantbeef> May want to use https://github.com/nim-lang/c2nim as it understands some C++
19:32:18Mister_MagisterThanks
19:32:31Mister_Magisterso if wrapper then i will try to copy this https://github.com/ThomasTJdev/nim_wiringPiNim/ as it's super simple
19:32:54Mister_MagisterwiringPi is deprecated and broken so i'm making wrapper for another lib :P
19:33:01Mister_Magistermaybe it will be good enoguh for nimble
19:43:44*kobi7 quit (Quit: Leaving)
19:46:05Mister_Magisterhmm im getting undefined reference :/
19:49:29*supakeen quit (Ping timeout: 245 seconds)
19:50:48*supakeen joined #nim
20:03:53Mister_Magisterhttps://github.com/Michal-Szczepaniak/nim_pigpio here's code, can you help me with undefined reference?
20:08:49Mister_Magisterhmm
20:08:56Mister_Magister.c file works but .cpp file doesn't
20:10:50Mister_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:31Mister_Magistercan 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:10Mister_Magisterif 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:36Mister_Magisterahh i needed to do const var* = to export it
22:15:42FromDiscord<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:02FromDiscord<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:30FromDiscord<Elegantbeef> `setLen`?
22:24:11FromDiscord<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:06FromDiscord<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:48FromDiscord<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:42nrds<Prestige99> hm can I not have a dot in a proc name like proc `velocity.y=` ?
23:21:00nrds<Prestige99> I suppose that didn't escape well on discord
23:22:57FromDiscord<Elegantbeef> I mean you can but you'll need to call it using accquotes
23:23:09nrds<Prestige99> ah I see
23:23:14FromDiscord<juan_carlos> https://play.nim-lang.org/#ix=3BjL
23:23:43FromDiscord<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)