<< 15-10-2025 >>

02:28:45*SchweinDeBurg quit (Quit: WeeChat 4.8.0-dev)
02:29:15*SchweinDeBurg joined #nim
02:51:32*xet7 joined #nim
02:56:44*xet7 quit (Remote host closed the connection)
02:59:33*xet7 joined #nim
07:22:18*tokyovigilante quit (Remote host closed the connection)
07:38:28FromDiscord<kiloneie> How do i, echo from a macro, at runtime ?
07:43:51FromDiscord<Robyn [She/Her]> In reply to @kiloneie "How do i, echo": emit an `echo` statement
07:44:43Amun-Rahttps://play.nim-lang.org/#pasty=ZYAquoDI
07:45:13FromDiscord<kiloneie> Oh, i forgot about quote do
07:45:16FromDiscord<Robyn [She/Her]> ew quote do
07:47:02FromDiscord<Robyn [She/Her]> https://play.nim-lang.org/#pasty=kvfFPOSC genasts looks cleaner and captures variables and stuff too, imo looks cleaner than using backticks
07:47:49Amun-Rathat depends
07:48:40FromDiscord<Robyn [She/Her]> https://play.nim-lang.org/#pasty=CegzyTCG brrrr (if you're emitting multiple stuff)
07:48:46FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "that depends": on what?
07:49:16Amun-Raon what do you have inside the block
07:49:53Amun-Rabefore I knew quote do exists I was creating nodes manually
07:52:40FromDiscord<Robyn [She/Her]> genAst looks cleaner than a quote do tho
07:57:05FromDiscord<kiloneie> I've literally showcased a simple use of `quote do` in a video, then forgot about it's existence xD.
07:57:50FromDiscord<kiloneie> Last time i played with macros, i used a lot of... dumpAstGen, and construct my stuff using that.
08:09:13Amun-Rathat's why my beginning looked like
08:28:14FromDiscord<kiloneie> I can't figure it out, how do i extract the name: untyped to echo it's actual value at runtime ? All i am getting is, the name of the field... if i try to make it into a string before, it will error.
08:32:53FromDiscord<kiloneie> I've tried several combinations of newCall, astToStr, genAst, quote do... >.<
08:44:04FromDiscord<Robyn [She/Her]> try `newLit(val)`↵(@kiloneie)
08:44:12FromDiscord<Robyn [She/Her]> val being the value
09:08:51FromDiscord<kiloneie> Enough tinkering/combinations, until something worked.
09:13:36FromDiscord<kiloneie> How would i do this: `result = body.typeof.default` ?
09:14:07FromDiscord<kiloneie> I want other things to go in, before the body i am passing to it.
09:19:04FromDiscord<kiloneie> In reply to @kiloneie "How would i do": `result = newNimNode(NimNodeKind.nnkStmtList)`
09:28:31*beholders_eye joined #nim
09:34:55Amun-RanewNimNode(NimNodeKind.nnkStmtList) == newStmtList()
09:35:31FromDiscord<kiloneie> In reply to @Amun-Ra "newNimNode(NimNodeKind.nnkStmtList) == newStmtList(": How long ago was this sent ?
09:35:52FromDiscord<Robyn [She/Her]> In reply to @kiloneie "`result = newNimNode(NimNodeKind.nnkStmtList)`": yea, this and then just `result.add NodeGoesHere`
09:36:03Amun-Rajust a few seconds ago
09:36:57FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=OUKYLkhM
09:37:18FromDiscord<Robyn [She/Her]> Since `add` on `NimNode`s return the parent node
09:37:51FromDiscord<Robyn [She/Her]> https://nim-lang.org/docs/macros.html#add%2CNimNode%2CNimNode it returns the `father`
09:42:57Amun-Rahttps://nim-lang.org/docs/macros.html#newStmtList%2Cvarargs%5BNimNode%5D
09:47:02FromDiscord<kiloneie> I've seen that in places before, yeah.
09:47:49FromDiscord<kiloneie> sent a code paste, see https://play.nim-lang.org/#pasty=FpLOubxX
09:50:18FromDiscord<mitranim> backquotes escape a symbol, like `|` in Lisp
10:01:27*Jhonny2x4 quit (Quit: Jhonny2x4)
10:01:49*Jhonny2x4 joined #nim
10:18:51*xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1+deb12u1 - https://znc.in)
10:22:05*xutaxkamay joined #nim
10:36:03FromDiscord<heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=Lsjftmvt
10:37:04FromDiscord<heysokam> It triggers in both `uint` and `uint64`
10:40:17Amun-Rahttps://play.nim-lang.org/#pasty=nlZMmRvk
10:40:34Amun-Ra\o/
10:45:15FromDiscord<heysokam> 😅
11:03:11*beholders_eye quit (Ping timeout: 256 seconds)
11:43:34FromDiscord<kapendev> sent a code paste, see https://play.nim-lang.org/#pasty=ZBFRVOVP
11:45:54FromDiscord<kapendev> system ok
11:56:00FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=KvGSwzHd
12:08:25FromDiscord<kapendev> > opens documentation page↵> first thing is not the documentation section
12:18:29FromDiscord<kiloneie> The moment you have a routine of the same name as else where, you have to be explicit on which you are calling, or don't import the other.
12:18:46FromDiscord<kiloneie> i kind of like calling system.quit(), instead of just, quit()
12:19:28Amun-Rathe same name and the same signature
12:21:33FromDiscord<pmunch> Hmm, any HTTP server libraries which allow me to keep the connection open and continue to stream data slowly over a HTTP connection?
12:21:53FromDiscord<pmunch> In reply to @kapendev "> opens documentation page": Assuming all those emojis are languages, what's the elephant?
12:22:07FromDiscord<0xfab_10> php prob
12:22:22FromDiscord<pmunch> The others I guess are Rust, Python, D and Ocaml
12:22:52FromDiscord<pmunch> Oh yeah, PHP uses an elephant!
12:23:53FromDiscord<pmunch> By the way @kapendev, if you want to override echo you might want to look at this: https://github.com/PMunch/echooverride
12:24:19FromDiscord<pmunch> It's a bit old, so I don't think the devel and `gc:refc` parts are required any longer
12:25:36FromDiscord<pmunch> Okay, doesn't need devel, but still needs `gc:refc`
12:28:08FromDiscord<kapendev> If I made a lib like that, I would probably just use a different name like println or writeln.
12:28:34FromDiscord<pmunch> What do you mean?
12:30:30FromDiscord<kapendev> Not sure what this lib is, but I'm saying that I would use a different name if I wanted to make something like echo. I'm just testing how overload resolution works.
12:40:08FromDiscord<nnsee> In reply to @kapendev "Not sure what this": the point of overriding echo specifically is that if another library uses echo (and doesn't know anything about your own println or writeln), you've overwritten it to do whatever you want (like send over serial or whatever)
12:40:15FromDiscord<nnsee> which is what this library does
12:47:41FromDiscord<kapendev> Yeah, I kinda get the idea.
13:26:23*Mister_Magister_ joined #nim
13:32:22*cm quit (*.net *.split)
13:32:22*bgupta quit (*.net *.split)
13:32:22*Mister_Magister quit (*.net *.split)
13:32:23*mronetwo quit (*.net *.split)
13:32:23*switchy quit (*.net *.split)
13:32:23*Mister_Magister_ is now known as Mister_Magister
13:33:07*cm joined #nim
13:33:07*bgupta joined #nim
13:33:07*mronetwo joined #nim
13:35:42*_th3r00t joined #nim
13:36:39*th3r00t quit (Ping timeout: 256 seconds)
13:36:49*Ekho quit (Ping timeout: 256 seconds)
13:38:38*switchy joined #nim
13:46:10*Ekho joined #nim
19:22:09*przmk quit (Ping timeout: 244 seconds)
19:22:18*dv^_^1 joined #nim
19:22:27*kasimir__ joined #nim
19:23:54*przmk joined #nim
19:28:47*xtr00_ joined #nim
19:28:58*dv^_^ quit (Ping timeout: 244 seconds)
19:28:58*kasimir_ quit (Ping timeout: 244 seconds)
19:28:59*xtr00 quit (Ping timeout: 244 seconds)
19:28:59*yeti quit (Ping timeout: 244 seconds)
19:28:59*kasimir__ is now known as kasimir_
19:28:59*dv^_^1 is now known as dv^_^
19:29:47*yeti joined #nim
21:07:47*FromDiscord quit (Remote host closed the connection)
21:08:00*FromDiscord joined #nim
21:38:27*rockcavera joined #nim
22:01:14*xtr00 joined #nim
22:04:32*yeti quit (Ping timeout: 256 seconds)
22:04:32*xtr00_ quit (Ping timeout: 256 seconds)
22:04:32*Ekho quit (Ping timeout: 256 seconds)
22:04:33*hygo quit (Ping timeout: 256 seconds)
22:04:41*hygo joined #nim
22:12:08*yeti joined #nim
22:12:24*tiorock joined #nim
22:12:24*tiorock quit (Changing host)
22:12:24*tiorock joined #nim
22:12:24*rockcavera quit (Killed (copper.libera.chat (Nickname regained by services)))
22:12:24*tiorock is now known as rockcavera
22:17:36*xtr00 quit (*.net *.split)
22:17:36*FromDiscord quit (*.net *.split)
22:17:36*Goodbye_Vincent1 quit (*.net *.split)
22:18:29*syl quit (Ping timeout: 246 seconds)
22:18:45*syl joined #nim
22:19:07*xtr00 joined #nim
22:21:50*tiorock joined #nim
22:21:50*tiorock quit (Changing host)
22:21:50*tiorock joined #nim
22:21:50*rockcavera quit (Killed (erbium.libera.chat (Nickname regained by services)))
22:21:50*tiorock is now known as rockcavera
22:22:42*FromDiscord joined #nim
22:24:21*xtr00 quit (Ping timeout: 256 seconds)
22:24:40*xtr00_ joined #nim
22:28:57*Ekho joined #nim
23:04:11FromDiscord<systemblue2010> hey ↵I have plan to start Nim blog but↵I don't know which platform does global developers use to read and write blog
23:04:49FromDiscord<systemblue2010> WordPress, Feather, Medium, Ghost, Wix?
23:06:20FromDiscord<systemblue2010> (edit) removed "Ghost,"
23:16:22FromDiscord<0xfab_10> github pages
23:18:53FromDiscord<mitranim> GitHub Pages with a static website generated with whatever system you want (I just wrote my own Go thing)
23:19:32FromDiscord<mitranim> If you want comments, they can be done via an external embed such as Disqus or Disgus
23:27:43FromDiscord<mitranim> "Platforms" such as Medium can be useful for publicity via reposting, but this should never be your "canonical" posting solution for a whole load of reasons