<< 21-05-2025 >>

00:05:55*tiorock joined #nim
00:05:55*rockcavera is now known as Guest8006
00:05:55*Guest8006 quit (Killed (molybdenum.libera.chat (Nickname regained by services)))
00:05:55*tiorock is now known as rockcavera
00:07:42*tiorock joined #nim
00:07:42*rockcavera quit (Killed (silver.libera.chat (Nickname regained by services)))
00:07:42*tiorock is now known as rockcavera
01:29:21*jinn6 quit (Ping timeout: 248 seconds)
01:47:42FromDiscord<litlighilit> I wanna declare a macro that can rewrite variable declaration, named `tonim`, which can transform\:↵● `a: Final = 1` -\@aintea)
01:47:55FromDiscord<litlighilit> sent a long message, see https://pasty.ee/ZvIvnEEq
01:49:43FromDiscord<litlighilit> so in this case `a` has to be of `untyped` where `Final` is `typed`
01:50:10FromDiscord<litlighilit> sent a long message, see https://pasty.ee/KzvKuTzI
01:53:09FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=LrDbFmrR
02:02:36FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=quDdpJdW
02:03:48FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=FOwJLbvG
02:05:15FromDiscord<demotomohiro> You can write a macro with untyped parameter that transform inputs and generates code that calls a macro with typed parameter.
02:07:55*tiorock joined #nim
02:07:55*tiorock quit (Changing host)
02:07:55*tiorock joined #nim
02:07:55*rockcavera quit (Killed (tungsten.libera.chat (Nickname regained by services)))
02:07:55*tiorock is now known as rockcavera
02:22:06*jinn6 joined #nim
02:23:02*redj joined #nim
02:35:36*thunder quit (Ping timeout: 264 seconds)
02:43:53*rockcavera quit (Remote host closed the connection)
02:53:14*switchy quit (Ping timeout: 252 seconds)
02:54:29*thunder joined #nim
03:03:54*switchy joined #nim
03:10:29*thunder quit (Quit: Leaving)
03:53:11*SchweinDeBurg joined #nim
03:56:34*jinn6 quit (Ping timeout: 260 seconds)
04:10:10*jinn6 joined #nim
05:22:07*SchweinDeBurg quit (Remote host closed the connection)
05:48:39Amun-Rawhether tryking to make nim to be another C++ is a different topic…
05:50:48Amun-Ratrying*
06:32:52*SchweinDeBurg joined #nim
06:37:38*Artea quit (Ping timeout: 252 seconds)
06:52:34*Artea joined #nim
07:27:57*nils` quit (Ping timeout: 276 seconds)
07:45:34FromDiscord<madonuko> https://github.com/FyraLabs/sweet/issues/3↵…!?
08:24:07*xet7 joined #nim
08:41:55*nils` joined #nim
08:47:59FromDiscord<janakali> In reply to @madonuko "https://github.com/FyraLabs/sweet/issues/3 …!?": looks like some guy from China that doesn't familiar with github, his only two repos is homework projects for CS class.
08:48:18FromDiscord<madonuko> yeah
08:48:27FromDiscord<madonuko> well
08:48:50FromDiscord<madonuko> the worst part is I don't understand his suggestion and the code is not exactly readable
08:57:51*Jhonny2x4 quit (Quit: Jhonny2x4)
08:58:12*Jhonny2x4 joined #nim
09:27:33*beholders_eye joined #nim
09:35:09*beholders_eye quit (Ping timeout: 268 seconds)
10:13:13*andy-turner joined #nim
10:36:31*beholders_eye joined #nim
11:05:48*beholders_eye quit (Ping timeout: 245 seconds)
11:12:11*beholders_eye joined #nim
11:20:09FromDiscord<zumi.dxy> In reply to @madonuko "https://github.com/FyraLabs/sweet/issues/3 …!?": watch people use this as justification for braces
12:40:48FromDiscord<aethrvmn> In reply to @madonuko "the worst part is": I think he wants to add <- as a way to instigate a forloop
12:41:13FromDiscord<madonuko> I kinda don't understand that part
12:41:16FromDiscord<aethrvmn> Cartesian product forloop
12:41:17FromDiscord<madonuko> examples?
13:04:16FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=gfFGEavX
13:38:27*xtr00 quit (Read error: Connection reset by peer)
13:41:06*xtr00 joined #nim
14:05:14*xet7 quit (Quit: Leaving)
15:57:33*beholders_eye quit (Ping timeout: 276 seconds)
16:00:02*madprops quit (Remote host closed the connection)
16:01:20*madprops joined #nim
16:01:20*madprops quit (Changing host)
16:01:20*madprops joined #nim
16:46:05*jjido joined #nim
16:51:48*SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev)
17:42:38FromDiscord<jseb> sent a code paste, see https://play.nim-lang.org/#pasty=tBPPEJiy
17:43:25FromDiscord<jseb> (edit) "https://play.nim-lang.org/#pasty=qYsauwUc" => "https://play.nim-lang.org/#pasty=PWuXWzIU"
17:43:39FromDiscord<Elegantbeef> You don't catch defects
17:43:52FromDiscord<Elegantbeef> Well atleast if you're not on devel you don't
17:44:06FromDiscord<jseb> ah you cannot catch every signal ?
17:44:29FromDiscord<Elegantbeef> signals?
17:44:32FromDiscord<Elegantbeef> We're talking defects
17:45:15FromDiscord<jseb> i mean « exceptions » sorry (luckily i didn't said « interruptions »)
17:46:04FromDiscord<Elegantbeef> Defects are not exceptions
17:46:26FromDiscord<Elegantbeef> Defects are supposed to be used to show logical errors
17:47:04FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=CXApltJF
17:47:55FromDiscord<jseb> yes i've done that at the end, i was curious about the exception not catched, but i've learnt it was a defect (never heard before…)
17:48:09FromDiscord<jseb> thank you , noted again
17:48:25FromDiscord<jseb> Nim, a surprise every day :)
17:50:13FromDiscord<Elegantbeef> In devel there is a new flag to make it so you can catch defects even with `--panics:on`
17:52:17FromDiscord<jseb> i've searched in the documentation, and it's written ( https://nim-lang.org/docs/system.html#Defect ) it's a sort sort of exception (understand this by « base class of exception ») but not catchable … good to know
17:53:20FromDiscord<jseb> i don't understand the end of the sentence: « they can also be mapped to a quit / trap / exit operation. »
17:53:44FromDiscord<jseb> (edit) "»" => "».↵(and i note i should read about those operations…)"
18:02:44*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
18:04:05*PMunch__ joined #nim
18:06:36*_________ quit (Ping timeout: 252 seconds)
18:07:05*PMunch_ quit (Ping timeout: 265 seconds)
18:08:37*_________ joined #nim
18:13:27*xet7 joined #nim
18:17:52*xtr00 quit (Ping timeout: 276 seconds)
18:19:51*jjido joined #nim
18:25:23*xtr00 joined #nim
19:22:27FromDiscord<darkarotte> sent a long message, see https://pasty.ee/apssUebE
19:23:07FromDiscord<darkarotte> (edit) "https://pasty.ee/ftKwBlkY" => "https://pasty.ee/RYfQeeYr"
19:39:14*beholders_eye joined #nim
20:18:13*andy-turner quit (Ping timeout: 252 seconds)
20:28:45FromDiscord<nervecenter> The simpler you keep things the better it is
20:35:31FromDiscord<nervecenter> Only use generics as a last resort, then templates as a last resort after that, then macros as a last resort after that
20:36:08FromDiscord<nervecenter> A lot of people reach for macros and start doing magic tricks first thing, but the compiler can't give you much error info about code that's only generated at compile time
20:36:15FromDiscord<nervecenter> KISS
20:54:04*beholders_eye quit (Ping timeout: 260 seconds)
21:10:14*xet7 quit (Remote host closed the connection)
21:35:39*jjido quit (Quit: Textual IRC Client: www.textualapp.com)
21:41:21*rockcavera joined #nim
21:42:18*tiorock joined #nim
21:42:18*rockcavera is now known as Guest6469
21:42:18*tiorock is now known as rockcavera
21:45:51*Guest6469 quit (Ping timeout: 252 seconds)
23:50:39*SchweinDeBurg joined #nim