<< 30-05-2025 >>

00:51:17*cm_ joined #nim
00:53:01*cm quit (Ping timeout: 276 seconds)
00:53:02*cm_ is now known as cm
00:53:22*cm quit (Client Quit)
00:58:24*cm joined #nim
01:20:28*cm quit (Quit: Bye.)
01:25:30*cm joined #nim
01:45:18*rockcavera quit (Remote host closed the connection)
03:09:38*skippy8 joined #nim
03:10:16*xet7 quit (Remote host closed the connection)
03:43:00*pbsds35 quit (Quit: The Lounge - https://thelounge.chat)
03:45:10*pbsds35 joined #nim
05:34:47*ntat joined #nim
06:38:45*tRICKARD joined #nim
07:13:42*tRICKARD quit (Ping timeout: 240 seconds)
07:54:54*tRICKARD joined #nim
07:55:39*tRICKARD quit (Client Quit)
08:02:31*tRICKARD joined #nim
08:06:18*tRICKARD quit (Client Quit)
08:11:56*amadaluzia joined #nim
08:16:41*skippy8 quit (Quit: WeeChat 4.5.2)
09:27:33*ntat quit (Quit: leaving)
09:46:45*ntat joined #nim
10:59:04*beholders_eye joined #nim
12:28:16*ntat quit (Quit: leaving)
12:30:24*beholders_eye quit (Ping timeout: 260 seconds)
12:56:43FromDiscord<enigma_von_cipher> would you like to recommend me one nim native GUI library or framework?
12:57:10FromDiscord<enigma_von_cipher> The GUI Framework or Library must fill this.
12:58:39*beholders_eye joined #nim
12:59:37FromDiscord<enigma_von_cipher> First, Must work on linux and AMD64, AArch64↵Second, Must support Wayland↵Third, Must be native↵Fourth, Fully writed with nim
13:01:52FromDiscord<enigma_von_cipher> and is there any channel for system programming such as system utils or operating system?
13:41:19FromDiscord<nnsee> In reply to @enigma_von_cipher "First, Must work on": requirement number four really eliminates your choices. i can only think of https://github.com/yglukhov/nimx off the top of my head
13:42:26FromDiscord<nnsee> if you didn't have requirement number four, you'd have more great choices like owlkettle
13:54:43*kenran joined #nim
14:59:03*amadaluzia quit (Read error: Connection reset by peer)
14:59:21*amadaluzia joined #nim
15:02:12*amadaluzia quit (Client Quit)
15:04:58*beholders_eye quit (Ping timeout: 245 seconds)
15:12:27FromDiscord<phobikinesis> hello i just started using nim but i was wondering how i could cross compile my nim program to windows thru clang?
15:14:36FromDiscord<phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=dByjtnVr
15:15:06FromDiscord<phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=eogaHofr
15:15:19FromDiscord<litlighilit> add flag `--os:windows`
15:16:01FromDiscord<phobikinesis> In reply to @litlighilit "add flag `--os:windows`": i tried this already but i get a lot of errors https://media.discordapp.net/attachments/371759389889003532/1378029186517696653/FB90DB63-6DB8-4805-B08D-34B748368B54.png?ex=683b1d30&is=6839cbb0&hm=ab13ea45dd62f18b62e7067d5053d3eac1ad6da33a6064088673da2ce1d87c29&
15:16:26FromDiscord<phobikinesis> https://media.discordapp.net/attachments/371759389889003532/1378029291480289301/message.txt?ex=683b1d49&is=6839cbc9&hm=1dd3b932c9cdc375162c6322120cebd38acf77d620bde12f1eb7cde22f680c1a&
15:23:36FromDiscord<litlighilit> Um, let me try
15:29:34FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=vtLHvoyv
15:32:05FromDiscord<anuke> Do nim seqs have a proc for deleting a range of indices as opposed to only one item? Say, removing everything from index `0` to `5`. I'm sure I could do this with multiple deletes, but that's multiple memory copies
15:32:49FromDiscord<Elegantbeef> https://nim-lang.org/docs/sequtils.html#delete%2Cseq%5BT%5D%2CSlice%5Bint%5D
15:33:30FromDiscord<phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=dFmtypMv
15:33:33FromDiscord<phobikinesis> same thing
15:40:55FromDiscord<anuke> In reply to @Elegantbeef "https://nim-lang.org/docs/sequtils.html#delete%2Cse": ~~why is this delete in sequtils while the others are in `system` aaaa~~
15:42:01FromDiscord<Elegantbeef> System only has primitive ops
15:48:31FromDiscord<litlighilit> I'm on the same error,↵but anyway these errors shall be of clang's↵(@phobikinesis)
15:51:01FromDiscord<phobikinesis> oh ok, ill try using gcc
15:51:05FromDiscord<phobikinesis> or mingw
15:51:09FromDiscord<litlighilit> \~I'm on the same error,↵but anyway these errors shall be of clang's\~↵↵I get to know, it's because of lack of --passL
15:51:22FromDiscord<janakali> In reply to @phobikinesis "im using these flags:": you're missing `switch("passL", "--target=x86_64-w64-mingw32")`↵and also, I believe you need to have windows headers on your system
15:52:22FromDiscord<janakali> yeah gcc-mingw is easier, you can also try cross-compiling with zig, it's basically clang compiler with all setup dumbed down
15:53:27FromDiscord<litlighilit> ops! true↵(@janakali)
15:53:59Amun-Ramingw may not even require winheaders, depending on what you import
15:55:10FromDiscord<anuke> In reply to @Elegantbeef "System only has primitive": I understand the general premise of "basic operations go in system", but it's often unclear what is 'primitive' or where I should search for a specific function. There are at least 3 modules, and the distinction is vague. I wish the documentation listed everything I could do with a `seq` without hopping across multiple pages.
15:55:47FromDiscord<litlighilit> In short,↵↵add the --passL...↵and --os\:windows
15:56:15*kenran quit (Remote host closed the connection)
15:57:03*kenran joined #nim
15:57:14*amadaluzia joined #nim
15:58:03FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=wdqXqTRx
15:58:38FromDiscord<phobikinesis> https://media.discordapp.net/attachments/371759389889003532/1378039913580335336/message.txt?ex=683b272e&is=6839d5ae&hm=a43d2e2463ccbfe122a88480902e07a29307d60059956114061a2245ea1f153c&
15:58:53FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=hyUCzCPK
15:59:02FromDiscord<phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=yVgWSmoi
16:00:06FromDiscord<phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=ytzuymuD
16:00:17FromDiscord<phobikinesis> added the verbose tag
16:00:24FromDiscord<phobikinesis> just to see if something would appear
16:02:20FromDiscord<phobikinesis> https://media.discordapp.net/attachments/371759389889003532/1378040838529224824/message.txt?ex=683b280a&is=6839d68a&hm=b59aa6734e75e0a2ed16f6c79af2f79891f3bc3b37c5c67adc6268c9507b36b0&
16:04:16FromDiscord<litlighilit> It seems your clang invokes gcc-mingw's ld
16:10:53FromDiscord<phobikinesis> In reply to @litlighilit "It seems your clang": i tried using `-fuse-ld=lld` in passC but it keeps telling me im missing windows.h even though i know for sure i have it
16:15:55FromDiscord<litlighilit> Then things go simple, a bit↵(@phobikinesis)
16:16:05FromDiscord<litlighilit> No more but a `-d:mingw` is required
16:17:03FromDiscord<litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=dBDdaDGv
16:26:47FromDiscord<alpeng.> @everyone Steam gift 50$ - [steamcommunity.com/gift-card/pay/50](https://u.to/vRpIIg )
16:30:19FromDiscord<demotomohiro> <@&371760044473319454>
16:31:44FromDiscord<Elegantbeef> Home grown discord spam
16:32:03*amadaluzia quit (Ping timeout: 245 seconds)
17:10:18*amadaluzia joined #nim
17:21:39*beholders_eye joined #nim
18:37:14*kenran quit (Remote host closed the connection)
19:37:41FromDiscord<litlighilit> a way to mark a method `abstract`?
19:38:47FromDiscord<leorize> this is the wrong language for that
19:41:22*fabricio joined #nim
20:12:25*fabricio quit (Ping timeout: 244 seconds)
20:18:09FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=QixIiJLa
20:18:11FromDiscord<Elegantbeef> Close enough 😛
20:22:36FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=dBJJOMlc
21:15:00*fabricio joined #nim
21:17:42*amadaluzia quit (Ping timeout: 276 seconds)
21:34:00*amadaluzia joined #nim
21:35:23*amadaluzia quit (Client Quit)
21:46:33*kasimir_ quit (Remote host closed the connection)
21:46:42*kasimir_ joined #nim
21:47:03*SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev)
22:24:19*SchweinDeBurg joined #nim
22:39:25FromDiscord<aintea> How do I get rid of a "recursive dependency" ? I have a recursive macro
22:40:33FromDiscord<Elegantbeef> Don't have a recursive macro
22:41:09FromDiscord<aintea> I need to
22:41:20FromDiscord<aintea> I have a tree like structure that requires me to have a macro
22:41:31FromDiscord<Elegantbeef> You likely do not need to
22:42:12FromDiscord<aintea> sent a code paste, see https://play.nim-lang.org/#pasty=wSmlREoH
22:42:41FromDiscord<Elegantbeef> Where is recursion required?
22:42:45FromDiscord<aintea> I have one macro `initParser` and another `initParserAux` to parse a `Command(<args_here>...): body`
22:42:54FromDiscord<aintea> initParserAux is the recursive one
22:43:01*beholders_eye quit (Ping timeout: 248 seconds)
22:43:04FromDiscord<aintea> an argument has 0 or more childs
22:43:08FromDiscord<Elegantbeef> `initParserAux` is a proc
22:43:15FromDiscord<aintea> no, a macro
22:43:15FromDiscord<Elegantbeef> Surely it's a proc
22:43:21FromDiscord<Elegantbeef> Make it a proc
22:43:34FromDiscord<aintea> how do I parse the commands then
22:43:43FromDiscord<aintea> with the string representation ?
22:43:44FromDiscord<Elegantbeef> There we go we did it
22:43:47FromDiscord<Elegantbeef> The same way you did inside the macro
22:44:01FromDiscord<aintea> WAIT I CAN USE NIMNODES IN A MACRO
22:44:03FromDiscord<aintea> I'M SO STUPID
22:44:11FromDiscord<aintea> I completely forgot
22:44:15FromDiscord<aintea> thank you very much
22:44:17FromDiscord<Elegantbeef> You can use Nimnodes in a proc you mean
22:44:24FromDiscord<aintea> yes in a proc
22:44:25FromDiscord<aintea> my bad
22:48:46*kasimir_ quit (Remote host closed the connection)
22:48:54*kasimir_ joined #nim
22:53:27FromDiscord<nasuray> In reply to @aintea "yes in a proc": I have a similar CLI library which is basically one macro over a boatload of procs on Nim nodes
22:54:26FromDiscord<aintea> yeah but I think I have way simpler
22:54:36FromDiscord<aintea> one case statement, one recursive call and magic
22:57:17*kasimir_ quit (Remote host closed the connection)
22:57:25*kasimir_ joined #nim
23:14:06*fabricio quit (Quit: WeeChat 3.5)
23:22:20FromDiscord<aintea> it's working
23:22:26FromDiscord<aintea> thanks elegantbeef for your help
23:22:43FromDiscord<aintea> I can finally make the very project I made this whole CLI argument parser for
23:22:54FromDiscord<aintea> a CLI todo list app
23:23:11FromDiscord<aintea> (the library is 12x the size of the todo list app)