| 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:28 | FromDiscord | <kiloneie> How do i, echo from a macro, at runtime ? |
| 07:43:51 | FromDiscord | <Robyn [She/Her]> In reply to @kiloneie "How do i, echo": emit an `echo` statement |
| 07:44:43 | Amun-Ra | https://play.nim-lang.org/#pasty=ZYAquoDI |
| 07:45:13 | FromDiscord | <kiloneie> Oh, i forgot about quote do |
| 07:45:16 | FromDiscord | <Robyn [She/Her]> ew quote do |
| 07:47:02 | FromDiscord | <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:49 | Amun-Ra | that depends |
| 07:48:40 | FromDiscord | <Robyn [She/Her]> https://play.nim-lang.org/#pasty=CegzyTCG brrrr (if you're emitting multiple stuff) |
| 07:48:46 | FromDiscord | <Robyn [She/Her]> In reply to @Amun-Ra "that depends": on what? |
| 07:49:16 | Amun-Ra | on what do you have inside the block |
| 07:49:53 | Amun-Ra | before I knew quote do exists I was creating nodes manually |
| 07:52:40 | FromDiscord | <Robyn [She/Her]> genAst looks cleaner than a quote do tho |
| 07:57:05 | FromDiscord | <kiloneie> I've literally showcased a simple use of `quote do` in a video, then forgot about it's existence xD. |
| 07:57:50 | FromDiscord | <kiloneie> Last time i played with macros, i used a lot of... dumpAstGen, and construct my stuff using that. |
| 08:09:13 | Amun-Ra | that's why my beginning looked like |
| 08:28:14 | FromDiscord | <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:53 | FromDiscord | <kiloneie> I've tried several combinations of newCall, astToStr, genAst, quote do... >.< |
| 08:44:04 | FromDiscord | <Robyn [She/Her]> try `newLit(val)`↵(@kiloneie) |
| 08:44:12 | FromDiscord | <Robyn [She/Her]> val being the value |
| 09:08:51 | FromDiscord | <kiloneie> Enough tinkering/combinations, until something worked. |
| 09:13:36 | FromDiscord | <kiloneie> How would i do this: `result = body.typeof.default` ? |
| 09:14:07 | FromDiscord | <kiloneie> I want other things to go in, before the body i am passing to it. |
| 09:19:04 | FromDiscord | <kiloneie> In reply to @kiloneie "How would i do": `result = newNimNode(NimNodeKind.nnkStmtList)` |
| 09:28:31 | * | beholders_eye joined #nim |
| 09:34:55 | Amun-Ra | newNimNode(NimNodeKind.nnkStmtList) == newStmtList() |
| 09:35:31 | FromDiscord | <kiloneie> In reply to @Amun-Ra "newNimNode(NimNodeKind.nnkStmtList) == newStmtList(": How long ago was this sent ? |
| 09:35:52 | FromDiscord | <Robyn [She/Her]> In reply to @kiloneie "`result = newNimNode(NimNodeKind.nnkStmtList)`": yea, this and then just `result.add NodeGoesHere` |
| 09:36:03 | Amun-Ra | just a few seconds ago |
| 09:36:57 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=OUKYLkhM |
| 09:37:18 | FromDiscord | <Robyn [She/Her]> Since `add` on `NimNode`s return the parent node |
| 09:37:51 | FromDiscord | <Robyn [She/Her]> https://nim-lang.org/docs/macros.html#add%2CNimNode%2CNimNode it returns the `father` |
| 09:42:57 | Amun-Ra | https://nim-lang.org/docs/macros.html#newStmtList%2Cvarargs%5BNimNode%5D |
| 09:47:02 | FromDiscord | <kiloneie> I've seen that in places before, yeah. |
| 09:47:49 | FromDiscord | <kiloneie> sent a code paste, see https://play.nim-lang.org/#pasty=FpLOubxX |
| 09:50:18 | FromDiscord | <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:03 | FromDiscord | <heysokam> sent a code paste, see https://play.nim-lang.org/#pasty=Lsjftmvt |
| 10:37:04 | FromDiscord | <heysokam> It triggers in both `uint` and `uint64` |
| 10:40:17 | Amun-Ra | https://play.nim-lang.org/#pasty=nlZMmRvk |
| 10:40:34 | Amun-Ra | \o/ |
| 10:45:15 | FromDiscord | <heysokam> 😅 |
| 11:03:11 | * | beholders_eye quit (Ping timeout: 256 seconds) |
| 11:43:34 | FromDiscord | <kapendev> sent a code paste, see https://play.nim-lang.org/#pasty=ZBFRVOVP |
| 11:45:54 | FromDiscord | <kapendev> system ok |
| 11:56:00 | FromDiscord | <demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=KvGSwzHd |
| 12:08:25 | FromDiscord | <kapendev> > opens documentation page↵> first thing is not the documentation section |
| 12:18:29 | FromDiscord | <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:46 | FromDiscord | <kiloneie> i kind of like calling system.quit(), instead of just, quit() |
| 12:19:28 | Amun-Ra | the same name and the same signature |
| 12:21:33 | FromDiscord | <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:53 | FromDiscord | <pmunch> In reply to @kapendev "> opens documentation page": Assuming all those emojis are languages, what's the elephant? |
| 12:22:07 | FromDiscord | <0xfab_10> php prob |
| 12:22:22 | FromDiscord | <pmunch> The others I guess are Rust, Python, D and Ocaml |
| 12:22:52 | FromDiscord | <pmunch> Oh yeah, PHP uses an elephant! |
| 12:23:53 | FromDiscord | <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:19 | FromDiscord | <pmunch> It's a bit old, so I don't think the devel and `gc:refc` parts are required any longer |
| 12:25:36 | FromDiscord | <pmunch> Okay, doesn't need devel, but still needs `gc:refc` |
| 12:28:08 | FromDiscord | <kapendev> If I made a lib like that, I would probably just use a different name like println or writeln. |
| 12:28:34 | FromDiscord | <pmunch> What do you mean? |
| 12:30:30 | FromDiscord | <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:08 | FromDiscord | <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:15 | FromDiscord | <nnsee> which is what this library does |
| 12:47:41 | FromDiscord | <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:11 | FromDiscord | <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:49 | FromDiscord | <systemblue2010> WordPress, Feather, Medium, Ghost, Wix? |
| 23:06:20 | FromDiscord | <systemblue2010> (edit) removed "Ghost," |
| 23:16:22 | FromDiscord | <0xfab_10> github pages |
| 23:18:53 | FromDiscord | <mitranim> GitHub Pages with a static website generated with whatever system you want (I just wrote my own Go thing) |
| 23:19:32 | FromDiscord | <mitranim> If you want comments, they can be done via an external embed such as Disqus or Disgus |
| 23:27:43 | FromDiscord | <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 |