00:02:06 | * | mahlon quit (Ping timeout: 272 seconds) |
00:03:33 | * | ftajhii quit (Ping timeout: 248 seconds) |
00:11:08 | * | mahlon joined #nim |
00:24:57 | * | beholders_eye quit (Ping timeout: 252 seconds) |
01:46:32 | FromDiscord | <explosiveend> sent a code paste, see https://play.nim-lang.org/#pasty=rVEVDOPX |
01:46:50 | FromDiscord | <explosiveend> keeps fighting me |
01:50:45 | FromDiscord | <Elegantbeef> I'd say just use a block and a while loop it's certain to work that way |
02:01:05 | * | blackbeard420 quit (Ping timeout: 252 seconds) |
02:03:16 | * | blackbeard420 joined #nim |
02:48:12 | * | rockcavera quit (Remote host closed the connection) |
04:14:10 | * | SchweinDeBurg quit (Read error: Connection reset by peer) |
04:19:30 | * | SchweinDeBurg joined #nim |
04:51:25 | FromDiscord | <litlighilit> You mean `--app:staticLib`?↵(@heysokam) |
04:52:41 | FromDiscord | <litlighilit> You mean `--app:staticLib`? @heysokam |
05:28:53 | * | ntat joined #nim |
05:52:58 | * | tRICKARD joined #nim |
06:07:44 | * | andy-turner joined #nim |
06:09:32 | * | andy-turner quit (Remote host closed the connection) |
06:11:50 | * | andy-turner joined #nim |
06:22:28 | * | tRICKARD quit (Quit: Client closed) |
07:01:47 | * | SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev) |
07:28:35 | * | SchweinDeBurg joined #nim |
08:12:15 | * | redj quit (Remote host closed the connection) |
08:13:37 | * | redj joined #nim |
08:22:26 | FromDiscord | <heysokam> yep |
08:54:44 | FromDiscord | <litlighilit> Add `{.exportc.}` to functions/globals, compile with`--app:staticLib`, then the biggest problem left is hand-written C declarations (`.h`) \:/ |
09:23:48 | FromDiscord | <litlighilit> Assign those objects to new symbols within non-async proc and outside async proc, to remain references, so that they won't be cleaned up till the non-async proc finishs↵(@entropydev) |
09:31:43 | * | beholders_eye joined #nim |
09:35:33 | * | andy-turner quit (Quit: Leaving) |
09:39:10 | * | andy-turner joined #nim |
09:40:29 | * | andy-turner quit (Remote host closed the connection) |
09:53:45 | * | fabricio joined #nim |
10:20:03 | * | beholders_eye quit (Ping timeout: 252 seconds) |
10:20:17 | FromDiscord | <nivviv> sent a long message, see https://pasty.ee/MikSIIfV |
11:22:27 | FromDiscord | <heysokam> In reply to @nivviv "twimc: i have been": have you looked into https://github.com/heysokam/confy yet?↵it uses zigcc for everything |
11:23:34 | * | fabricio quit (Quit: WeeChat 3.5) |
11:26:43 | FromDiscord | <heysokam> from what I see in you `build-single.sh` script, you are basically solving exactly what confy was made for |
11:48:29 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=IRepXLjV |
11:48:34 | FromDiscord | <aintea> is that somehow possible ? |
11:58:38 | FromDiscord | <heysokam> In reply to @aintea "In Nim 2.0 I": did you try with `body: untyped` yet?↵don't know the answer, but just in case that helps |
12:00:10 | FromDiscord | <aintea> still errors |
12:25:38 | FromDiscord | <Robyn [She/Her]> In reply to @aintea "In Nim 2.0 I": issue is that it's passed as one parameter |
12:25:59 | FromDiscord | <Robyn [She/Her]> what you'll prolly wanna do is accept a body |
12:27:34 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=hjDHpIri |
12:32:41 | FromDiscord | <janakali> sent a long message, see https://pasty.ee/VLxOnUdt |
12:33:38 | FromDiscord | <janakali> (edit) "https://pasty.ee/LecZJhTD" => "https://pasty.ee/xdqTeYRW" |
12:34:21 | FromDiscord | <janakali> still not sure how, though |
12:36:19 | FromDiscord | <ally.lara> Which web framework for Nim would you guys recommend for a simple frontend, I was looking at Prologue. Just want to use something that's well-maintained |
12:37:51 | FromDiscord | <janakali> most well maintained is probably HappyX: https://hapticx.github.io/happyx/#/ |
12:41:39 | FromDiscord | <ally.lara> Thank you, this looks great. |
13:05:24 | * | beholders_eye joined #nim |
13:16:27 | * | alexdaguy joined #nim |
13:33:41 | * | beholders_eye quit (Ping timeout: 248 seconds) |
13:42:23 | * | beholders_eye joined #nim |
14:25:07 | * | kenran joined #nim |
14:37:54 | FromDiscord | <madonuko> how can I tell the nim compiler to add `-I/usr/include/glib-2.0/` to the arguments to the C compiler? |
14:40:30 | FromDiscord | <heysokam> In reply to @madonuko "how can I tell": `--passC:theflag` and `{.passC: "theflag".}` do exactly that |
14:40:41 | FromDiscord | <madonuko> thanks |
14:41:15 | FromDiscord | <heysokam> `passL` for linker step flags, same idea |
14:41:24 | FromDiscord | <heysokam> (edit) "step" => "stage" |
14:42:09 | * | beholders_eye quit (Ping timeout: 260 seconds) |
14:43:44 | * | beholders_eye joined #nim |
15:13:21 | * | amadaluzia joined #nim |
15:16:46 | * | amadaluzia quit (Read error: Connection reset by peer) |
15:17:03 | * | amadaluzia joined #nim |
15:27:43 | * | amadaluzia quit (Quit: ZNC 1.9.1 - https://znc.in) |
15:28:07 | * | amadaluzia joined #nim |
15:29:13 | * | kenran quit (Ping timeout: 252 seconds) |
15:52:06 | * | beholders_eye quit (Ping timeout: 272 seconds) |
15:59:33 | * | amadaluzia_ joined #nim |
16:00:25 | * | amadaluzia quit (Read error: Connection reset by peer) |
16:08:41 | * | alexdaguy quit (Quit: w) |
16:23:30 | * | amadaluzia_ quit (Quit: ZNC 1.9.1 - https://znc.in) |
16:24:26 | * | amadaluzia joined #nim |
16:25:44 | * | przmk quit (Remote host closed the connection) |
16:27:41 | * | przmk joined #nim |
16:50:22 | * | amadaluzia quit (Ping timeout: 272 seconds) |
16:50:58 | * | amadaluzia joined #nim |
17:10:18 | * | beholders_eye joined #nim |
17:37:35 | * | kenran joined #nim |
18:28:00 | * | kenran quit (Remote host closed the connection) |
18:47:50 | * | ntat quit (Quit: leaving) |
18:48:54 | * | amadaluzia quit (Quit: ZNC 1.9.1 - https://znc.in) |
18:49:51 | * | amadaluzia joined #nim |
18:59:08 | * | skippy8 joined #nim |
19:09:00 | * | andy-turner joined #nim |
19:17:03 | * | beholders_eye quit (Ping timeout: 276 seconds) |
19:32:08 | * | amadaluzia_ joined #nim |
19:32:18 | * | amadaluzia quit (Read error: Connection reset by peer) |
20:49:18 | * | skippy8 quit (Quit: WeeChat 4.5.2) |
21:09:03 | * | andy-turner quit (Quit: Leaving) |
21:16:04 | FromDiscord | <tsoj> For some reason when using a nimble script (e.g. "MyApplication.nimble" and running `nimble tasks`) the last line is not shown in the terminal (but it shows up when redirecting into a file). Is this a known problem? |
21:18:18 | * | rockcavera joined #nim |
21:21:18 | Amun-Ra | I don't know whether it's a known problem but I can confirm nimble tasks don't display the last task in nimble file |
21:40:25 | * | amadaluzia_ quit (Quit: ZNC 1.9.1 - https://znc.in) |
21:55:01 | FromDiscord | <nasuray> This is fixed in master |
21:56:01 | FromDiscord | <nasuray> (edit) "This is fixed in master ... " added "see https://github.com/nim-lang/nimble/issues/1381" |
23:21:49 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=NovEDlCg |
23:26:36 | FromDiscord | <Elegantbeef> Instead of making a list of flags as optional just take in a `static set[ParserFlag]` and have a `DefaultFlags = {....}` |
23:26:48 | FromDiscord | <Elegantbeef> then it's just `newParser(description, DefaultFlags): ....` |
23:27:01 | FromDiscord | <aintea> It's not a list of flags |
23:27:05 | FromDiscord | <aintea> It's actual values |
23:27:20 | FromDiscord | <aintea> some are booleans, other are objects, I just have constants for simplicity |
23:27:21 | FromDiscord | <Elegantbeef> `DEFAULT_HELP_SETTINGS` is not a boolean? |
23:27:25 | FromDiscord | <aintea> no |
23:27:31 | FromDiscord | <aintea> it's a `HelpSettings` object |
23:27:39 | FromDiscord | <Elegantbeef> Which is what? |
23:27:45 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=JPzOffuo |
23:28:14 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=RibtfYKO |
23:28:53 | FromDiscord | <Elegantbeef> uh huh |
23:29:08 | FromDiscord | <aintea> not the exact same |
23:29:10 | FromDiscord | <aintea> let me redo it |
23:29:37 | FromDiscord | <Elegantbeef> Use an object instead where each field defaults to the default options for that field |
23:30:07 | FromDiscord | <aintea> (edit) "https://play.nim-lang.org/#pasty=tFLLrnFp" => "https://play.nim-lang.org/#pasty=xltxJbSB" |
23:30:50 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=LiZQBEmW |
23:30:54 | FromDiscord | <aintea> why didn't I think of this |
23:31:05 | FromDiscord | <Elegantbeef> Also don't use a tuple for objects, thanks |
23:31:22 | FromDiscord | <aintea> yes but I needed it defined as a constant and I didn't want to define types before my constants |
23:31:43 | FromDiscord | <aintea> no reason whatsoever I just don't like it |
23:31:46 | FromDiscord | <Elegantbeef> That's a bad reason, but you do you |
23:32:11 | FromDiscord | <aintea> I know it's a bad reason lmao I tried it but my eyes can't 🤣 |
23:32:19 | FromDiscord | <aintea> thanks for the tips |
23:32:29 | FromDiscord | <Elegantbeef> The issue with the tuple is that you now have a type that is hard for a user to make |
23:32:50 | FromDiscord | <Elegantbeef> Especially since you can have defaults all the way down |
23:33:10 | FromDiscord | <Elegantbeef> So then you can do `ParserSettings(help: HelpSettings(separator: "BLEH"))` and not have to make the entire object tree |
23:33:15 | FromDiscord | <aintea> well I only use the tuple for storing in a const |
23:33:21 | FromDiscord | <aintea> the user can actually use the type defined |
23:33:32 | FromDiscord | <Elegantbeef> So the tuple is pointless, got it |
23:33:43 | FromDiscord | <aintea> yes |
23:34:04 | FromDiscord | <aintea> wait there actually is no HelpSettings type |
23:34:10 | FromDiscord | <aintea> uh ho |
23:34:20 | FromDiscord | <Elegantbeef> Time to make one |
23:34:24 | FromDiscord | <aintea> totally |
23:53:18 | * | xet7 joined #nim |