<< 10-03-2022 >>

00:03:58*jjido quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
00:18:31*wyrd quit (Remote host closed the connection)
00:23:18*wyrd joined #nim
00:27:34*jmdaemon quit (Ping timeout: 272 seconds)
00:35:13*jmdaemon joined #nim
00:35:27nrds<Prestige99> https://play.nim-lang.org/#ix=3ROL I have code in `body` that refers to the `this` variable, I thought injecting is what I needed here. But I am still getting `undeclared identifier 'this'` - What am I doing wrong here?
00:39:37FromDiscord<ynfle> In reply to @nrds "<Prestige> https://play.nim-lang.org/#ix=3ROL I hav": Try `expandMacros`
00:42:29FromDiscord<ynfle> In reply to @nrds "<Prestige> https://play.nim-lang.org/#ix=3ROL I hav": You have conflictirng references to `this`
00:42:51nrds<Prestige99> Even if I change one to have another name, I get the same error
00:44:19FromDiscord<ynfle> True
00:47:07FromDiscord<ynfle> Prestige, I don't think it applies to proc params.
00:47:44FromDiscord<ynfle> Never mind, you need to put it also before the comma
00:50:51FromDiscord<ynfle> Not sure why it acts like this, but you can declare a `this` variable outside the scope as an annoying work around
00:51:07nrds<Prestige99> hm that may work, I suppose
00:52:22nrds<Prestige99> Here's a runnable smaller example https://play.nim-lang.org/#ix=3ROO
01:20:29FromDiscord<Elegantbeef> Do not reuse template parameter names in side templates!
01:20:59FromDiscord<Patitotective> sent a code paste, see https://play.nim-lang.org/#ix=3ROW
01:23:31FromDiscord<Patitotective> https://github.com/Patitotective/niprefs
01:25:24*jmdaemon quit (Ping timeout: 240 seconds)
01:38:39FromDiscord<dangbinghoo> hi, what's the preferred library for building cross-platform GUI app in Nim?
01:45:08NimEventerNew thread by Mardiyah: Help show all advantageous differences among inline procedure, template, macros, see https://forum.nim-lang.org/t/8993
01:48:46nrds<Prestige99> @Elegantbeef in the example I posted, I am not. Right?
01:59:10NimEventerNew thread by Kaushalmodi: How to fetch value pointed by a C++ std::list iterator?, see https://forum.nim-lang.org/t/8994
02:00:50*Gustavo6046_ joined #nim
02:01:37*Gustavo6046 is now known as Guest8247
02:01:37*Guest8247 quit (Killed (tungsten.libera.chat (Nickname regained by services)))
02:01:37*Gustavo6046_ is now known as Gustavo6046
02:04:28FromDiscord<Elegantbeef> You are not now
02:04:39FromDiscord<Elegantbeef> You still need `{.inject.}` though
02:04:53FromDiscord<Elegantbeef> Or atleast should
02:08:21FromDiscord<dangbinghoo> seems gintro is ok.
02:14:35*jmdaemon joined #nim
02:16:40FromDiscord<Jonah> sad! https://media.discordapp.net/attachments/371759389889003532/951302540337774602/unknown.png
02:28:22NimEventerNew post on r/nim by deadkonsumer: Help with scenes, see https://reddit.com/r/nim/comments/tao86j/help_with_scenes/
02:35:34FromDiscord<Elegantbeef> Yea it sucks, many antivirus flag nim as malware↵(@Jonah)
02:40:10FromDiscord<congusbongus> can you please submit a false positive report to chrome, every bit helps
02:47:41*neurocyte0917090 quit (Ping timeout: 256 seconds)
02:59:24NimEventerNew Nimble package! nofi - Nim wrapper for rofi, open fabrics interface; provides distributed computing interface for high performance computing (HPC) environments, see https://github.com/ct-clmsn/nofi/
02:59:24NimEventerNew Nimble package! sos - Nim wrapper for Sandia OpenSHMEM, a high performance computing (HPC), distributed shared symmetric memory library, see https://github.com/ct-clmsn/nim-sos/
03:14:00FromDiscord<ajusa> In reply to @Jonah "sad!": First time I've seen Chrome block it though
03:16:55*krux02 quit (Remote host closed the connection)
03:28:55*rockcavera joined #nim
03:28:55*rockcavera quit (Changing host)
03:28:55*rockcavera joined #nim
03:52:30*rockcavera quit (Remote host closed the connection)
04:06:02*supakeen quit (Quit: WeeChat 3.4)
04:06:32*supakeen joined #nim
04:12:06FromDiscord<evil> So I have mac compilation running through a github workflow, but it compiles out as a unix binary (no extension executable). How would I go about compiling as a .app?
04:13:54FromDiscord<Elegantbeef> `--out:YourProgram.app` or does mac extension matter?
04:15:45FromDiscord<evil> I don't think it matters, It runs fine after a chmod +x and a terminal run, but that gets annoying. I'll try that out
04:17:57FromDiscord<Elegantbeef> Well how are you shipping it?
04:20:22*jmdaemon quit (Ping timeout: 256 seconds)
04:23:06FromDiscord<evil> just as a github release, nothing fancy
04:23:39FromDiscord<Elegantbeef> So are you posting a file or using an archive?
04:24:13FromDiscord<evil> .zip
04:24:18FromDiscord<evil> so archive
04:24:26FromDiscord<Elegantbeef> Well zip doesnt keep permissions
04:24:32FromDiscord<Elegantbeef> Use a tarball
04:24:43FromDiscord<evil> lame, thanks for the tip
04:59:31NimEventerNew Nimble package! remizstd - Nim bindings for the ZStandard compression library. Context-based and stream-based APIs available. Based on the zstd.cr Crystal bindings., see https://chiselapp.com/user/MistressRemilia/repository/RemiZstd/home
05:10:38*jmdaemon joined #nim
05:57:56*slowButPresent quit (Quit: leaving)
06:02:38*blackbeard420_ joined #nim
06:02:49*blackbeard420 quit (Read error: Connection reset by peer)
06:04:02*meowray quit (Ping timeout: 252 seconds)
06:04:12*meowray joined #nim
06:12:34*ltriant quit (Ping timeout: 256 seconds)
06:47:51NimEventerNew thread by Aquilao: How to get process owner by pid?, see https://forum.nim-lang.org/t/8995
06:56:15*ltriant joined #nim
07:01:00*ltriant quit (Ping timeout: 240 seconds)
07:33:15*jjido joined #nim
07:47:45*neurocyte0917090 joined #nim
07:58:59*ltriant joined #nim
08:03:37*ltriant quit (Ping timeout: 240 seconds)
08:43:53*jjido quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
09:03:17FromDiscord<baalajimaestro> Hi, I have a script on nim that requests 3 apis, of which im asked to move 2 to a run only at a specific time, and the other 1 runs every minute
09:04:04FromDiscord<Elegantbeef> Using async or sync?
09:04:26FromDiscord<baalajimaestro> Earlier it was being handled fully under systemd, but i am not sure if i can do this easily with that. Would it be wiser to decouple them or just put them as such with some args of some sort?↵↵It is sync
09:04:55*Gustavo6046_ joined #nim
09:05:06FromDiscord<baalajimaestro> I am also considering running that forever and managing the time part fully inside the script itself
09:06:31*Gustavo6046_ quit (Client Quit)
09:06:50*Gustavo6046 quit (Ping timeout: 260 seconds)
10:00:35*ltriant joined #nim
10:05:28*ltriant quit (Ping timeout: 256 seconds)
10:32:09*ltriant joined #nim
10:42:39NimEventerNew thread by Hamidrb80: Iterrr: extensible iterator library, see https://forum.nim-lang.org/t/8996
11:03:18FromDiscord<System64 ~ Flandre Scarlet> https://github.com/system64MC/sdl2/edit/master/src/sdl2/mixer.nim↵Which tool was used for that? C2Nim?
11:16:31FromDiscord<hmmm> hey bros if I have a seq of objects and want take one of them, change it and have the changes mirrored in the original seq, should I use the ref keyword thingy?
11:17:00Amun-RaSystem64 ~ Flandre Scarlet: I guess c2nim + edits by hand
11:30:33FromDiscord<System64 ~ Flandre Scarlet> Ah I see
11:31:39*supakeen_test quit (Quit: Reconnecting)
11:31:48*supakeen_test joined #nim
11:35:26FromDiscord<hmmm> sent a code paste, see https://paste.rs/toJ
11:44:34FromDiscord<mratsim> In reply to @hmmm "hey bros if I": Why have things mirrored when you can just share the same seq
11:44:44FromDiscord<mratsim> just use a `ref seq[T]`
11:45:04FromDiscord<mratsim> or use an object with `{.shallow.}` pragma
11:49:37FromDiscord<hmmm> hmm, right now my setup is that I have a currentNodeSeq[] and a currentNode that gets passed around on various procs. If the procs change something in the currentNode I'd like the changes to be mirrored in currentNodeSeq[]
11:58:36FromDiscord<elaykph> is it possible to have a procedure without stating the type of its arguments
12:01:33FromDiscord<Rika> Only if you can determine the type at compile time
12:05:03*xet7 quit (Ping timeout: 256 seconds)
12:05:50FromDiscord<Tanguy> sent a code paste, see https://play.nim-lang.org/#ix=3RR8
12:06:01*supakeen quit (Quit: WeeChat 3.4)
12:06:31*supakeen joined #nim
12:06:51FromDiscord<Tanguy> (I don't care about how the end-name look, I just want something unique)
12:07:38FromDiscord<Tanguy> (edit) "https://play.nim-lang.org/#ix=3RR8" => "https://play.nim-lang.org/#ix=3RR9"
12:07:46*xet7 joined #nim
12:16:03FromDiscord<demotomohiro> Maybe `macros.owner` can be used to create an unique type name.
12:16:04FromDiscord<demotomohiro> https://nim-lang.org/docs/macros.html#owner,NimNode
12:18:09FromDiscord<demotomohiro> In reply to @elaykph "is it possible to": Generics or Type classes can do: https://nim-lang.org/docs/manual.html#generics
12:19:36FromDiscord<Tanguy> Thanks, should do the trick
12:23:53FromDiscord<hmmm> sent a code paste, see https://play.nim-lang.org/#ix=3RRb
12:28:45FromDiscord<Rika> That works
12:28:57FromDiscord<Tanguy> No, but note that it will do some memory allocation for each Thingy, which depending on the amount can be heavy
12:55:25FromDiscord<fbpyr> thanks to this room member's help, the amazing free chapter to ffi in the 'nim in action book' and PMunch video series on the keyboard controller C-wrapping, I could make some nice progress on the interaction with an external C++. 😌 ↵I can now call methods of c++ classes when I pass the class in from c++ and wrap the methods in nim. 🎉
12:57:33FromDiscord<fbpyr> ..but\: when strings are returned or needed as args, it is currently not working. e.g.\:↵`error: cannot convert 'const character' {aka 'const wchar_t'} to 'NCSTRING' {aka 'char'}`↵when I try to turn their stringType into cstring.. 🙁↵someone has a pointer where I can read up on this specific c++ string input/return topic?
13:00:35FromDiscord<fbpyr> or is there a simple convert proc I may have overlooked that can handle this `const character` to `cstring` or `string`?
13:01:25FromDiscord<auxym> is that a 2-byte character?
13:03:37FromDiscord<auxym> seems like it. Maybe you do something like `type wchar {.importc: "wchar_t".} = uint16`
13:04:01FromDiscord<auxym> and `type wcstring = UncheckedArray[wchar]`
13:05:22FromDiscord<fbpyr> it supposedly should be a file name in the end.
13:07:31FromDiscord<fbpyr> hmm.. 🤔 maybe you are right - there is also a narrowData() method - will try that as well.↵thank you @auxym
13:08:51FromDiscord<fbpyr> whohoo thank you so much - this worked!! 😀
13:21:47FromDiscord<Rika> nim has wchars in `widestrs` module
13:23:25*rockcavera joined #nim
13:23:25*rockcavera quit (Changing host)
13:23:25*rockcavera joined #nim
13:31:18*slowButPresent joined #nim
13:42:18FromDiscord<fbpyr> ah? will have a look - thx for the hint @Rika
13:46:40*blackbeard420_ quit (Quit: ZNC 1.8.2 - https://znc.in)
13:46:51*blackbeard420 joined #nim
13:48:06*supakeen_test quit (Quit: Bridge terminating on SIGTERM)
13:49:58*supakeen_test joined #nim
13:59:03*supakeen_test quit (Quit: Bridge terminating on SIGTERM)
14:01:35*supakeen_test joined #nim
14:22:30FromDiscord<Hamid_Bluri> sent a code paste, see https://play.nim-lang.org/#ix=3RRL
14:22:43FromDiscord<Hamid_Bluri> (edit) "https://paste.rs/qZA" => "https://paste.rs/sCF"
14:22:52FromDiscord<enthus1ast> you must to\:↵ref object
14:23:08FromDiscord<enthus1ast> do
14:24:20FromDiscord<enthus1ast> https://play.nim-lang.org/#ix=3RRO
14:24:22FromDiscord<Rika> no?
14:24:25FromDiscord<Rika> this works as is
14:25:18FromDiscord<enthus1ast> yes you're right
14:25:36FromDiscord<Rika> how does it resolve is not really something i (or most people) know sorry
14:26:35FromDiscord<mratsim> In reply to @hamidb80 "hey does anyone know": well if they are in the same type section
14:29:45FromDiscord<Hamid_Bluri> In reply to @Rika "how does it resolve": i couldn't find anything in generated `.c` files
14:29:54FromDiscord<Hamid_Bluri> (edit) "In reply to @Rika "how does it resolve": i couldn't find anything ... in" added "related"
14:30:21FromDiscord<Rika> well i assume its just forward declaration there actually
14:30:54*arkurious joined #nim
14:31:26FromDiscord<ynfle> In reply to @hamidb80 "i couldn't find anything": The resolution of the types would be done in the compiler
14:31:42FromDiscord<ynfle> In reply to @hamidb80 "hey does anyone know": What do you mean by "how it is resolved"?
14:32:22FromDiscord<Hamid_Bluri> In reply to @ynfle "What do you mean": how it "works"↵you get code suggestion or↵how even this program compiles
14:32:35FromDiscord<Hamid_Bluri> i think i found something but it's not readable
14:32:49FromDiscord<ynfle> I'm not really sure what you are asking
14:35:55FromDiscord<ynfle> Why would you think this would be an issue?
14:36:53FromDiscord<Hamid_Bluri> sent a code paste, see https://play.nim-lang.org/#ix=3RRS
14:37:12FromDiscord<ynfle> So you wanted to know how it's translated to C
14:37:19FromDiscord<Hamid_Bluri> yeah
14:37:21FromDiscord<ynfle> Not how the compiler does it
14:41:43FromDiscord<auxym> In reply to @Rika "nim has wchars in": til about widestrs. does nim have anything native to eg translate ucs2 widechars into utf8?
14:43:39FromDiscord<Rika> idk
14:43:45FromDiscord<Rika> prolly something in winim though
14:47:21*dtomato quit (Quit: The Lounge - https://thelounge.chat)
14:47:56*dtomato joined #nim
14:51:40FromDiscord<fbpyr> sent a code paste, see https://paste.rs/wHA
14:59:09FromDiscord<Rika> your binding is wrong then
14:59:34FromDiscord<Rika> i assume create already makes a ptr point
14:59:48FromDiscord<System64 ~ Flandre Scarlet> How can I do RWOpen on NimSDL please?
15:00:05*toulene quit (Quit: The Lounge - https://thelounge.chat)
15:02:17FromDiscord<fbpyr> @Rika\: yes that might be it, when I `pt2.repr =ptr 000001ad85003e60`I already have a pointer.. 🤔
15:02:46FromDiscord<huantian> In reply to @Rika "i assume create already": It does
15:02:48FromDiscord<fbpyr> but then why would it complain without the addr?
15:03:09FromDiscord<federico3> @dom96\: you want a TLS abstraction layer as part of https://github.com/nim-lang/Nim/issues/19604 ?
15:03:31FromDiscord<fbpyr> @Rika\: as there I get\: error cannot convert `'CwAPI3D::vector3D' to 'CwAPI3D::vector3D'`
15:03:52FromDiscord<fbpyr> which l thought would mean, that it is not a ptr?
15:05:21*def- quit (Quit: -)
15:05:32*def- joined #nim
15:05:48*jmdaemon quit (Ping timeout: 240 seconds)
15:05:52FromDiscord<Rika> it wants a non-pointer
15:06:02FromDiscord<Rika> it cannot convert a v3D to a v3D
15:06:11FromDiscord<Rika> so it cant convert a pointer into a non-pointer
15:06:21FromDiscord<Rika> idk why it would say that other than the code expected a non-pointer
15:06:35FromDiscord<Rika> since if it did expect a pointer then it could just dereference it
15:06:41FromDiscord<Rika> i dont have a clue really
15:12:51FromDiscord<fbpyr> I see. @Rika thanks for thoughts!
15:35:50FromDiscord<dom96> In reply to @federico3 "<@132595483838251008>\: you want a": not necessarily. Sorry, I guess I shouldn't have commented that on your issue, it's a bit off-topic.
16:29:01*xet7 quit (Remote host closed the connection)
16:31:25*xet7 joined #nim
16:31:34FromDiscord<DMI-1407> uhm which threading model is behind nim ?
16:31:43FromDiscord<DMI-1407> (edit) "uhm ... which" added "im a little bit confused,"
16:31:48FromDiscord<DMI-1407> (edit) "uhm" => "uhm,"
16:32:16FromDiscord<Rika> ?
16:32:21FromDiscord<Rika> os threads
16:32:25FromDiscord<Rika> i believe
16:32:26FromDiscord<DMI-1407> not really
16:32:27FromDiscord<Rika> not sure
16:32:59FromDiscord<DMI-1407> i installed clang on windows (10), now clang tells me its using posix
16:33:10FromDiscord<DMI-1407> but MS dropped posix support
16:33:16FromDiscord<DMI-1407> (edit) "but MS dropped posix support ... " added "in win7"
16:33:28FromDiscord<DMI-1407> thats why i ask
16:33:40FromDiscord<DMI-1407> i mean nim does use a c compiler right ?
16:34:36*tiorock joined #nim
16:34:36*tiorock quit (Changing host)
16:34:36*tiorock joined #nim
16:34:36*rockcavera quit (Killed (tantalum.libera.chat (Nickname regained by services)))
16:34:36*tiorock is now known as rockcavera
16:38:59*rockcavera quit (Ping timeout: 256 seconds)
16:41:35*toulene joined #nim
17:07:39*jjido joined #nim
17:48:07*jjido quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
18:02:23FromDiscord<auxym> yes. pretty sure it uses native threads for whatever os it's compiling for
18:20:39*jjido joined #nim
18:22:25FromDiscord<hmmm> sent a code paste, see https://play.nim-lang.org/#ix=3RT1
18:22:29FromDiscord<hmmm> where x is a seq
18:26:23FromDiscord<exelotl> you could do `x.del(x.high)`
18:26:40FromDiscord<ynfle> https://nim-lang.org/docs/system.html#delete%2Cseq%5BT%5D%2CNatural
18:26:47FromDiscord<hmmm> that seems more right, if I'm not going to use the popped value why pop lol
18:27:09FromDiscord<ynfle> In reply to @exelotl "you could do `x.del(x.high)`": This doesn't delete the item, it just sets it to int.high
18:28:31FromDiscord<exelotl> https://play.nim-lang.org/#ix=3RT5
18:28:43FromDiscord<hmmm> yea x.delete(x.high) did the trick
18:29:09FromDiscord<hmmm> why x.delete(^1) doesn't work?
18:29:51FromDiscord<exelotl> because `^1` only works between `[]` I think
18:30:02FromDiscord<hmmm> sounds right
18:31:15FromDiscord<Generic> x.setLen(x-1) works as well
18:31:17FromDiscord<Waldecir Santos> for reference @hmmm https://nim-lang.org/docs/system.html#..%5E.t%2Cuntyped%2Cuntyped
18:31:22FromDiscord<Generic> (edit) "x.setLen(x-1)" => "x.setLen(x.len-1)"
18:34:11FromDiscord<Waldecir Santos> also https://nim-lang.org/docs/theindex.html#%60%5E%60 @hmmm
18:34:22FromDiscord<Waldecir Santos> This nim index page is a god send.
18:36:08FromDiscord<Waldecir Santos> https://nim-lang.org/docs/system.html#^.t%2Cint
19:04:53FromDiscord<hmmm> sent a code paste, see https://play.nim-lang.org/#ix=3RTg
19:06:58NimEventerNew thread by HiPhish: Bug in PEG or my fault?, see https://forum.nim-lang.org/t/8998
19:08:14FromDiscord<System64 ~ Flandre Scarlet> I have a question↵↵I want to manage the music playback in another thread, how can I achieve that please?
19:12:59FromDiscord<ynfle> In reply to @hmmm "anyone ever seen something": Yes. You delete or add an element to a seq while iterating over it
19:13:19FromDiscord<Waldecir Santos> In reply to @System64 "I have a question": maybe use channels for communication ?
19:13:23FromDiscord<Waldecir Santos> https://nim-lang.org/docs/channels_builtin.html
19:16:59FromDiscord<System64 ~ Flandre Scarlet> In reply to @Waldecir Santos "maybe use channels for": Wow seems a bit complex↵But I guess I need to manage the music in another module?
19:17:52FromDiscord<Waldecir Santos> It can be on the same module you just need to have it in a separated thread
19:18:08FromDiscord<System64 ~ Flandre Scarlet> ah alright
19:18:28FromDiscord<System64 ~ Flandre Scarlet> and it will run in another core?
19:20:09FromDiscord<Rika> Probably but not necessarily?
19:20:35FromDiscord<System64 ~ Flandre Scarlet> I'm thinking of using one core for the game logic and another one for the music playback
19:20:37FromDiscord<hmmm> In reply to @ynfle "Yes. You delete or": upon further inspection that's exactly what I was doing lol 😅
19:22:23FromDiscord<ynfle> 👍
19:25:11FromDiscord<System64 ~ Flandre Scarlet> eh, doesn't seems to work https://media.discordapp.net/attachments/371759389889003532/951561376487342100/unknown.png
19:26:25nrds<Prestige99> Have it imported?
19:26:36FromDiscord<Waldecir Santos> I'd start with the example on that page, play with it a little, and then port for your case
19:26:49FromDiscord<Rika> --threads:on
19:26:52FromDiscord<Waldecir Santos> you also need to import `std/os` like @nrds said
19:27:05FromDiscord<Waldecir Santos> In reply to @Rika "--threads:on": That too lol
19:27:05FromDiscord<Rika> OS is not needed for channels
19:27:14FromDiscord<Waldecir Santos> Oh TIL thank you.
19:28:11FromDiscord<System64 ~ Flandre Scarlet> In reply to @Waldecir Santos "you also need to": I imported it
19:28:18FromDiscord<System64 ~ Flandre Scarlet> but still have the error
19:28:22FromDiscord<Waldecir Santos> sent a code paste, see https://play.nim-lang.org/#ix=3RTp
19:28:55FromDiscord<Waldecir Santos> In reply to @System64 "but still have the": Check Rika message.
19:29:56FromDiscord<System64 ~ Flandre Scarlet> ah yeah, it works with that
19:30:39FromDiscord<System64 ~ Flandre Scarlet> But I can send only one type I guess?
19:37:19FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://play.nim-lang.org/#ix=3RTw
19:39:40FromDiscord<auxym> create some sort of "MusicControlEvent" object type, possibly variant. Can contain fields like action (start, stop, pause), filename, format params, etc
19:40:50FromDiscord<System64 ~ Flandre Scarlet> Oh alright, thanks for the advice↵Woaaaw, once you enter the Multithread land, it becomes suddently way more complex
19:41:44FromDiscord<System64 ~ Flandre Scarlet> and I pass this MusicControlEvent to the channel, right?
19:44:17FromDiscord<Waldecir Santos> In reply to @System64 "and I pass this": Correct
19:49:53FromDiscord<auxym> and yes, multithreading becomes complex fast, use it only if you really need it (eg also consider async)
19:50:16FromDiscord<System64 ~ Flandre Scarlet> In reply to @Waldecir Santos "Correct": so something like myChannel.playSong(myMusicController)
19:50:19FromDiscord<System64 ~ Flandre Scarlet> (edit) "In reply to @Waldecir Santos "Correct": so something like myChannel.playSong(myMusicController) ... " added "?"
19:50:28FromDiscord<System64 ~ Flandre Scarlet> In reply to @auxym "and yes, multithreading becomes": I only use it for Audio
19:50:49FromDiscord<Waldecir Santos> In reply to @System64 "so something like myChannel.playSong(myMusicControl": I think so, I never used channels myself, tho.
19:52:28*rockcavera joined #nim
19:52:28*rockcavera quit (Changing host)
19:52:28*rockcavera joined #nim
20:10:55*blackbeard420 quit (Quit: ZNC 1.8.2 - https://znc.in)
20:16:41*blackbeard420 joined #nim
20:25:30*neurocyte0917090 quit (Ping timeout: 250 seconds)
20:45:37FromDiscord<Waldecir Santos> I'm de-referencing an object by the type seems different, when I print type it echos `Person:ObjectType` instead of `Person` this is weird
20:47:50FromDiscord<System64 ~ Flandre Scarlet> Did you overided the method?
20:48:21FromDiscord<Waldecir Santos> No Im just doing `T()[]` to get it, but the type "seems" different
20:48:27FromDiscord<System64 ~ Flandre Scarlet> Ah I see, weird
20:49:02FromDiscord<Waldecir Santos> I'm not sure what the added `:ObjectType` means or do
20:53:48*Gustavo6046 joined #nim
20:56:43*supakeen quit (Quit: WeeChat 3.4)
20:57:08*supakeen_test is now known as supakeen
21:04:47FromDiscord<Elegantbeef> Nim creates an internal struct which is what you're seeing
21:05:14FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3RTZ
21:06:12FromDiscord<Elegantbeef> @Waldecir Santos\: ^
21:11:54FromDiscord<System64 ~ Flandre Scarlet> sent a code paste, see https://paste.rs/3zf
21:13:20*jmdaemon joined #nim
21:16:31FromDiscord<Waldecir Santos> sent a code paste, see https://play.nim-lang.org/#ix=3RU4
21:20:05FromDiscord<Waldecir Santos> @ElegantBeef just to give a little more context, I'm creating a function that uses `fieldPairs` but if that function receives a ref I need to deref it, I want to make this function work for both
21:31:05FromDiscord<Waldecir Santos> sent a code paste, see https://paste.rs/nlX
21:41:35*wyrd quit (Ping timeout: 240 seconds)
21:47:18*perro quit (Quit: WeeChat 3.3)
21:48:48*wyrd joined #nim
22:37:04*jjido quit (Quit: My MacBook Air has gone to sleep. ZZZzzz…)
22:40:42FromDiscord<SivadNai> pardon me, but in the nim forum we have to use rst styling. What's the best HowTo for that on the web, any recommendation
22:47:38FromDiscord<Waldecir Santos> In reply to @SivadNai "pardon me, but in": what exactly are you asking for ?
22:48:21FromDiscord<SivadNai> Just that I don't know spit about RST and everytime i post some code i wonder if it should look beter
22:49:11FromDiscord<ynfle> In the text area on the forum there is a link to a rst guide
22:50:00FromDiscord<Waldecir Santos> https://forum.nim-lang.org/about/rst @SivadNai
22:50:56FromDiscord<SivadNai> ah, got it. thx
23:00:54FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3RUr
23:01:03FromDiscord<Elegantbeef> You can also do `doThing[T: ref object or object]` and dispatch internally
23:03:50FromDiscord<Waldecir Santos> @ElegantBeef what do you mean by `dispatch internally` ? you mean calling a proc ? also on your example both uses `[]` is that right ?
23:04:23FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=3RUt
23:05:33FromDiscord<Waldecir Santos> Got it I was able to make it work with what you explained but I had to duplicate some code, ty.
23:05:47FromDiscord<Waldecir Santos> I''stick with only ref for now since I need inheritance
23:17:10FromDiscord<Ayy Lmao> Are there any gnarly nim emscripten `EM_ASM` macros out there?
23:23:10*tiorock joined #nim
23:23:10*tiorock quit (Changing host)
23:23:10*tiorock joined #nim
23:23:10*rockcavera quit (Killed (tantalum.libera.chat (Nickname regained by services)))
23:23:10*tiorock is now known as rockcavera
23:30:30*krux02 joined #nim
23:58:42*jmdaemon quit (Ping timeout: 250 seconds)