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:43 | FromDiscord | <enigma_von_cipher> would you like to recommend me one nim native GUI library or framework? |
12:57:10 | FromDiscord | <enigma_von_cipher> The GUI Framework or Library must fill this. |
12:58:39 | * | beholders_eye joined #nim |
12:59:37 | FromDiscord | <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:52 | FromDiscord | <enigma_von_cipher> and is there any channel for system programming such as system utils or operating system? |
13:41:19 | FromDiscord | <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:26 | FromDiscord | <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:27 | FromDiscord | <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:36 | FromDiscord | <phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=dByjtnVr |
15:15:06 | FromDiscord | <phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=eogaHofr |
15:15:19 | FromDiscord | <litlighilit> add flag `--os:windows` |
15:16:01 | FromDiscord | <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:26 | FromDiscord | <phobikinesis> https://media.discordapp.net/attachments/371759389889003532/1378029291480289301/message.txt?ex=683b1d49&is=6839cbc9&hm=1dd3b932c9cdc375162c6322120cebd38acf77d620bde12f1eb7cde22f680c1a& |
15:23:36 | FromDiscord | <litlighilit> Um, let me try |
15:29:34 | FromDiscord | <litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=vtLHvoyv |
15:32:05 | FromDiscord | <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:49 | FromDiscord | <Elegantbeef> https://nim-lang.org/docs/sequtils.html#delete%2Cseq%5BT%5D%2CSlice%5Bint%5D |
15:33:30 | FromDiscord | <phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=dFmtypMv |
15:33:33 | FromDiscord | <phobikinesis> same thing |
15:40:55 | FromDiscord | <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:01 | FromDiscord | <Elegantbeef> System only has primitive ops |
15:48:31 | FromDiscord | <litlighilit> I'm on the same error,↵but anyway these errors shall be of clang's↵(@phobikinesis) |
15:51:01 | FromDiscord | <phobikinesis> oh ok, ill try using gcc |
15:51:05 | FromDiscord | <phobikinesis> or mingw |
15:51:09 | FromDiscord | <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:22 | FromDiscord | <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:22 | FromDiscord | <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:27 | FromDiscord | <litlighilit> ops! true↵(@janakali) |
15:53:59 | Amun-Ra | mingw may not even require winheaders, depending on what you import |
15:55:10 | FromDiscord | <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:47 | FromDiscord | <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:03 | FromDiscord | <litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=wdqXqTRx |
15:58:38 | FromDiscord | <phobikinesis> https://media.discordapp.net/attachments/371759389889003532/1378039913580335336/message.txt?ex=683b272e&is=6839d5ae&hm=a43d2e2463ccbfe122a88480902e07a29307d60059956114061a2245ea1f153c& |
15:58:53 | FromDiscord | <litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=hyUCzCPK |
15:59:02 | FromDiscord | <phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=yVgWSmoi |
16:00:06 | FromDiscord | <phobikinesis> sent a code paste, see https://play.nim-lang.org/#pasty=ytzuymuD |
16:00:17 | FromDiscord | <phobikinesis> added the verbose tag |
16:00:24 | FromDiscord | <phobikinesis> just to see if something would appear |
16:02:20 | FromDiscord | <phobikinesis> https://media.discordapp.net/attachments/371759389889003532/1378040838529224824/message.txt?ex=683b280a&is=6839d68a&hm=b59aa6734e75e0a2ed16f6c79af2f79891f3bc3b37c5c67adc6268c9507b36b0& |
16:04:16 | FromDiscord | <litlighilit> It seems your clang invokes gcc-mingw's ld |
16:10:53 | FromDiscord | <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:55 | FromDiscord | <litlighilit> Then things go simple, a bit↵(@phobikinesis) |
16:16:05 | FromDiscord | <litlighilit> No more but a `-d:mingw` is required |
16:17:03 | FromDiscord | <litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=dBDdaDGv |
16:26:47 | FromDiscord | <alpeng.> @everyone Steam gift 50$ - [steamcommunity.com/gift-card/pay/50](https://u.to/vRpIIg ) |
16:30:19 | FromDiscord | <demotomohiro> <@&371760044473319454> |
16:31:44 | FromDiscord | <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:41 | FromDiscord | <litlighilit> a way to mark a method `abstract`? |
19:38:47 | FromDiscord | <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:09 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=QixIiJLa |
20:18:11 | FromDiscord | <Elegantbeef> Close enough 😛 |
20:22:36 | FromDiscord | <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:25 | FromDiscord | <aintea> How do I get rid of a "recursive dependency" ? I have a recursive macro |
22:40:33 | FromDiscord | <Elegantbeef> Don't have a recursive macro |
22:41:09 | FromDiscord | <aintea> I need to |
22:41:20 | FromDiscord | <aintea> I have a tree like structure that requires me to have a macro |
22:41:31 | FromDiscord | <Elegantbeef> You likely do not need to |
22:42:12 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=wSmlREoH |
22:42:41 | FromDiscord | <Elegantbeef> Where is recursion required? |
22:42:45 | FromDiscord | <aintea> I have one macro `initParser` and another `initParserAux` to parse a `Command(<args_here>...): body` |
22:42:54 | FromDiscord | <aintea> initParserAux is the recursive one |
22:43:01 | * | beholders_eye quit (Ping timeout: 248 seconds) |
22:43:04 | FromDiscord | <aintea> an argument has 0 or more childs |
22:43:08 | FromDiscord | <Elegantbeef> `initParserAux` is a proc |
22:43:15 | FromDiscord | <aintea> no, a macro |
22:43:15 | FromDiscord | <Elegantbeef> Surely it's a proc |
22:43:21 | FromDiscord | <Elegantbeef> Make it a proc |
22:43:34 | FromDiscord | <aintea> how do I parse the commands then |
22:43:43 | FromDiscord | <aintea> with the string representation ? |
22:43:44 | FromDiscord | <Elegantbeef> There we go we did it |
22:43:47 | FromDiscord | <Elegantbeef> The same way you did inside the macro |
22:44:01 | FromDiscord | <aintea> WAIT I CAN USE NIMNODES IN A MACRO |
22:44:03 | FromDiscord | <aintea> I'M SO STUPID |
22:44:11 | FromDiscord | <aintea> I completely forgot |
22:44:15 | FromDiscord | <aintea> thank you very much |
22:44:17 | FromDiscord | <Elegantbeef> You can use Nimnodes in a proc you mean |
22:44:24 | FromDiscord | <aintea> yes in a proc |
22:44:25 | FromDiscord | <aintea> my bad |
22:48:46 | * | kasimir_ quit (Remote host closed the connection) |
22:48:54 | * | kasimir_ joined #nim |
22:53:27 | FromDiscord | <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:26 | FromDiscord | <aintea> yeah but I think I have way simpler |
22:54:36 | FromDiscord | <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:20 | FromDiscord | <aintea> it's working |
23:22:26 | FromDiscord | <aintea> thanks elegantbeef for your help |
23:22:43 | FromDiscord | <aintea> I can finally make the very project I made this whole CLI argument parser for |
23:22:54 | FromDiscord | <aintea> a CLI todo list app |
23:23:11 | FromDiscord | <aintea> (the library is 12x the size of the todo list app) |