00:00:01 | * | marcus quit (Remote host closed the connection) |
00:00:38 | * | marcus joined #nim |
00:41:00 | * | mustang joined #nim |
00:41:45 | * | mustang quit (Remote host closed the connection) |
00:42:34 | * | scmutalisk joined #nim |
00:50:10 | * | scmutalisk left #nim (ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)) |
00:59:25 | * | scmutalisk joined #nim |
01:03:40 | * | derpydoo joined #nim |
01:18:36 | * | scmutalisk quit (Quit: ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)) |
01:25:48 | FromDiscord | <Elegantbeef> Why not just use an array↵(@TӨMΛ ☠) |
01:26:17 | FromDiscord | <Elegantbeef> @emmathemartian insert ramblings about wasm as a scripting VM |
01:27:10 | FromDiscord | <Elegantbeef> I really think wasm is a nifty for scripting though it means you have to bring your own compiler for a 'builtin' language |
01:44:44 | FromDiscord | <emmathemartian> Hmm |
01:45:01 | FromDiscord | <emmathemartian> Wasm isn't a half bad idea in all honesty |
01:55:43 | * | m5zs7k quit (Quit: m5zs7k) |
01:56:17 | * | m5zs7k joined #nim |
01:59:40 | * | beholders_eye quit (Ping timeout: 260 seconds) |
02:18:19 | * | derpydoo quit (Quit: derpydoo) |
03:56:48 | * | tiorock joined #nim |
03:56:48 | * | rockcavera is now known as Guest2584 |
03:56:48 | * | Guest2584 quit (Killed (tantalum.libera.chat (Nickname regained by services))) |
03:56:48 | * | tiorock is now known as rockcavera |
03:58:51 | * | tiorock joined #nim |
03:58:51 | * | rockcavera is now known as Guest4863 |
03:58:51 | * | tiorock is now known as rockcavera |
04:01:50 | * | Guest4863 quit (Ping timeout: 252 seconds) |
05:11:07 | FromDiscord | <eightbit_dboy> I'm trying to use walkRecDir, but the nim compiler is telling me it's an undeclared identifier, despite me having imported `os`. |
05:11:40 | FromDiscord | <Elegantbeef> Are you sure |
05:11:56 | FromDiscord | <eightbit_dboy> Yes. |
05:12:07 | FromDiscord | <eightbit_dboy> sent a code paste, see https://play.nim-lang.org/#pasty=jpjNILTy |
05:28:54 | FromDiscord | <nasuray> The compiler is not wrong, you probably mean walkDirRec though https://nim-lang.org/docs/theindex.html#walkDirRec |
05:35:53 | FromDiscord | <lainlaylie> sent a code paste, see https://play.nim-lang.org/#pasty=pMQvuyHb |
05:39:17 | FromDiscord | <odexine> Edit distance can be very wrong sometimes |
05:57:12 | * | alexdaguy joined #nim |
06:52:56 | * | ntat joined #nim |
07:19:20 | * | GnuYawk673 quit (Quit: The Lounge - https://thelounge.chat) |
07:20:01 | * | GnuYawk6733 joined #nim |
07:20:57 | FromDiscord | <morgan (ping with reply)> so for some reason i decided to write my own vector2 and vector3 code and it was a great idea to use macros, i have 4 (plus a currently unused one) so far for generating procs. latest one i wrote was one for generating all the procs needed to do swizzling, fairly simple modification from another macro. the rest just make one proc each but that makes 27 each for vec3, for each of the three types (float int bool) |
07:46:09 | FromDiscord | <TӨMΛ ☠> In reply to @Elegantbeef "Why not just use": It was more of a general type question about syntax sugar, but fair point, here array would fit just well |
07:49:29 | FromDiscord | <Elegantbeef> Well you can make an overload for `` for `typedesc, static int` |
07:50:51 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=PePnBKYt |
07:57:59 | FromDiscord | <albassort> beef, question |
07:58:37 | FromDiscord | <Elegantbeef> Alba, possible answer |
07:59:31 | FromDiscord | <albassort> how can i get the parameters of a function. Also, how I make a macro that takes vargers[proc(a : void | tuple) : string) |
07:59:50 | FromDiscord | <albassort> i think theres is params in std/macros but im not sure how this works and ntohing is o nthe nimfourms about it |
08:01:56 | FromDiscord | <Elegantbeef> If you want to have a varadic generic procedure use a tuple instead of varargs |
08:01:56 | FromDiscord | <Elegantbeef> https://github.com/beef331/micros/blob/master/src/micros/introspection.nim |
08:06:33 | FromDiscord | <albassort> im implementing functions in handlebars like this:↵↵theres a macro which creates an indirect threading object which has 2 tabkes, string to proc pointer, and string to a tuple of the params. Then we can cast[] to the correct proc type, and invoke it |
08:06:49 | FromDiscord | <albassort> also the proc needs to return a string, the params dont matter i guess |
08:06:57 | FromDiscord | <albassort> so i think just proc wont work |
08:10:44 | FromDiscord | <Elegantbeef> Well you could use a concept to match the proc, but the tuple requires emitting a thunk that calls their proc |
08:12:43 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=BVagIOkr |
08:12:59 | FromDiscord | <Elegantbeef> Whoops should be `: string` on both, but you get the idea |
08:56:08 | * | tokyovigilante quit (Read error: Connection reset by peer) |
08:56:22 | * | tokyovigilante joined #nim |
08:59:15 | * | tiorock joined #nim |
08:59:16 | * | tiorock quit (Changing host) |
08:59:16 | * | tiorock joined #nim |
08:59:16 | * | rockcavera is now known as Guest3433 |
08:59:16 | * | Guest3433 quit (Killed (calcium.libera.chat (Nickname regained by services))) |
08:59:16 | * | tiorock is now known as rockcavera |
09:01:20 | * | tiorock joined #nim |
09:01:21 | * | tiorock quit (Changing host) |
09:01:21 | * | tiorock joined #nim |
09:01:21 | * | rockcavera is now known as Guest290 |
09:01:21 | * | tiorock is now known as rockcavera |
09:03:45 | * | Guest290 quit (Ping timeout: 248 seconds) |
10:06:32 | * | alexdaguy quit (Read error: Connection reset by peer) |
10:38:01 | * | rockcavera is now known as Guest1981 |
10:38:01 | * | tiorock joined #nim |
10:38:01 | * | Guest1981 quit (Killed (copper.libera.chat (Nickname regained by services))) |
10:38:01 | * | tiorock is now known as rockcavera |
11:09:00 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=wZKzpyce |
11:09:42 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=fAlpfTQS |
11:16:30 | FromDiscord | <lainlaylie> how about just ref ConsoleLogger? |
11:18:14 | FromDiscord | <albassort> im thinking about implementing my html algorithm using cstring pages, idk why i wanna optimize it so much |
11:39:37 | FromDiscord | <lainlaylie> "Consider using a <ref var ConsoleLogger>" is incorrect advice and seems to have been fixed in 2.2.2 to suggest "<ref T>" instead |
11:40:44 | * | beholders_eye joined #nim |
12:37:06 | FromDiscord | <aintea> thanks |
12:37:23 | FromDiscord | <aintea> Yep that was it |
12:43:58 | * | beholders_eye quit (Ping timeout: 252 seconds) |
13:07:30 | * | coldfeet joined #nim |
16:58:22 | * | coldfeet quit (Quit: Lost terminal) |
16:58:46 | * | beholders_eye joined #nim |
17:33:34 | * | coldfeet joined #nim |
17:44:29 | * | beholders_eye quit (Ping timeout: 260 seconds) |
17:54:45 | FromDiscord | <jseb> for localization, is it possible to use https://nim-lang.org/docs/parsecfg.html ? |
17:56:05 | FromDiscord | <jseb> i mean, it should work with differents languages as section name ( [en], [fr] … ) and text as key,value . But may be it doesn't work very well with thousands of entries for each section |
18:16:10 | * | scmutalisk joined #nim |
18:22:56 | * | ensyde joined #nim |
18:26:55 | * | coldfeet quit (Quit: Lost terminal) |
18:29:00 | * | scmutalisk left #nim (ERC 5.5.0.29.1 (IRC client for GNU Emacs 29.4)) |
18:41:31 | FromDiscord | <jseb> sent a long message, see https://pasty.ee/JAKMlGXG |
18:41:55 | FromDiscord | <jseb> (edit) "long message," => "code paste," | "https://pasty.ee/qYWUrllq" => "https://play.nim-lang.org/#pasty=xcxdbMgw" |
18:44:06 | FromDiscord | <Elegantbeef> @jseb use `strutils.%` |
18:45:31 | FromDiscord | <jseb> sent a code paste, see https://play.nim-lang.org/#pasty=EtdrSeIn |
18:47:14 | FromDiscord | <jseb> sent a code paste, see https://play.nim-lang.org/#pasty=QeOAmFSC |
18:48:00 | FromDiscord | <jseb> (i hope i just didn't understood strutils.% 😇 ) |
18:48:03 | FromDiscord | <Elegantbeef> pass them all 😄 |
18:48:22 | FromDiscord | <jseb> 🙂 |
18:48:27 | FromDiscord | <Elegantbeef> You cannot use strformat with a runtime without iterating the locals and doing a replace |
18:49:33 | FromDiscord | <jseb> ok, i think i will have to cheat a bit, then. Thank you for the hints |
19:08:42 | FromDiscord | <aintea> @jseb you can do a tricky stuff |
19:09:27 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=xGdsIpwb |
19:09:40 | FromDiscord | <aintea> You just need to code your own `replaceAll` function which isn't that hard |
19:10:25 | FromDiscord | <Elegantbeef> Right but that's just `yourString % ["$user": "user1"]` |
19:34:16 | * | tiorock joined #nim |
19:34:17 | * | tiorock quit (Changing host) |
19:34:17 | * | tiorock joined #nim |
19:34:17 | * | rockcavera quit (Killed (calcium.libera.chat (Nickname regained by services))) |
19:34:17 | * | tiorock is now known as rockcavera |
19:36:24 | * | tiorock joined #nim |
19:36:25 | * | tiorock quit (Changing host) |
19:36:25 | * | tiorock joined #nim |
19:36:25 | * | rockcavera is now known as Guest8581 |
19:36:25 | * | tiorock is now known as rockcavera |
19:39:29 | * | Guest8581 quit (Ping timeout: 248 seconds) |
19:56:32 | FromDiscord | <jseb> All this deserves thinking… |
19:57:05 | FromDiscord | <Elegantbeef> Doesn't really seem like it does |
19:57:28 | FromDiscord | <Elegantbeef> Make a big sequence of `(string, string)` for all your parameters then do `str % seq` |
20:00:13 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=XQlhsasH |
20:00:13 | FromDiscord | <Elegantbeef> Works just fine |
20:20:02 | * | LuxuryMode joined #nim |
20:35:35 | * | beholders_eye joined #nim |
20:42:57 | * | beholders_eye quit (Ping timeout: 248 seconds) |
21:06:29 | FromDiscord | <TӨMΛ ☠> sent a code paste, see https://play.nim-lang.org/#pasty=tYQEBAOV |
21:10:44 | * | xet7 joined #nim |
21:18:21 | * | ntat quit (Quit: Leaving) |
21:18:43 | * | beholders_eye joined #nim |
22:37:58 | * | xet7 quit (Ping timeout: 244 seconds) |
22:50:11 | * | xet7 joined #nim |
22:55:05 | FromDiscord | <nixfreak> how can I get rid of the .0 when printing a float? https://play.nim-lang.org/#pasty=sGZcVFpb |
23:25:20 | FromDiscord | <that_dude.> Hey Elegantbeef, did something happen to your website? https://jasonbeetham.com/writeups.html I thought this is yours |
23:29:40 | * | LuxuryMode quit (Quit: Connection closed for inactivity) |
23:49:54 | * | xet7 quit (Ping timeout: 246 seconds) |