00:00:10 | FromDiscord | <Robyn [She/Her]> Aaah |
01:18:24 | * | Mister_Magister quit (Quit: bye) |
03:08:28 | * | krux02_ quit (Remote host closed the connection) |
04:54:01 | * | sintheta left #nim (#nim) |
06:53:44 | * | advesperacit joined #nim |
06:54:42 | * | ntat joined #nim |
07:48:36 | FromDiscord | <yoyojambo> are the "db_" packages part of the stdlib? |
07:48:57 | FromDiscord | <Elegantbeef> They are now a nimble package |
07:49:26 | FromDiscord | <yoyojambo> are the docs in nim-lang.org the only ones for them? |
07:50:05 | FromDiscord | <yoyojambo> They seem rather forgotten, thought it was weird |
07:56:28 | NimEventer | New Nimble package! sweet - 🍬 General syntactic sugar, see https://github.com/FyraLabs/sweet |
08:13:57 | FromDiscord | <Robyn [She/Her]> !1 == false |
08:14:21 | FromDiscord | <Robyn [She/Her]> `!""` 😭 |
08:14:40 | FromDiscord | <Elegantbeef> Just a little bit of truthiness |
08:15:40 | FromDiscord | <Robyn [She/Her]> Pain |
09:00:26 | FromDiscord | <demotomohiro> https://nim-lang.org/blog/2021/11/15/zen-of-nim.html↵> Copying bad design is not good design.↵But that new nimble package seems copying bad design from other language. |
09:02:14 | FromDiscord | <Elegantbeef> We'll pretend it's just for learning and carry on with our lives 😄 |
09:02:20 | FromDiscord | <ieltan> ># unfortunately we cannot fully mimic JavaScript↵you dont say lol |
09:02:24 | FromDiscord | <ieltan> (edit) ">#" => "> #" |
09:02:29 | FromDiscord | <ieltan> (edit) "#" => "" |
09:07:45 | FromDiscord | <Robyn [She/Her]> In reply to @ieltan "> unfortunately we": ~~Termer has DynVal which does what sweet does and more, by running type safety!~~ |
09:14:18 | advesperacit | "provides syntactic sugar, so it's easier to write code, especially if you come from another programming language" - why not just learn the language properly so you have a chance to write better code? |
09:19:35 | FromDiscord | <solitudesf> In reply to @demotomohiro "https://nim-lang.org/blog/2021/11/15/zen-of-nim.htm": "write cursed shit to confuse everyone" is another unwritten rule of nim |
09:26:36 | FromDiscord | <Elegantbeef> Put fire on the flame of "see Nim is bad" 😄 |
09:28:15 | FromDiscord | <odexine> In reply to @NimEventer "New Nimble package! sweet": I thought this would be a cool package until I saw y’all’s comments |
09:29:08 | FromDiscord | <griffith1deadly> In reply to @advesperacit ""provides syntactic sugar, so": when you full worked on another language, and just use nim as hobby project — why not? |
09:29:50 | FromDiscord | <nnsee> In reply to @odexine "I thought this would": yeeeees, join the hive mind. leave your personal opinions at the door |
09:34:19 | FromDiscord | <odexine> In reply to @nnsee "yeeeees, join the hive": lol |
09:34:44 | FromDiscord | <odexine> I meant more of “cool package from the title” as in I hadn’t looked at the thing |
09:34:58 | FromDiscord | <odexine> I would have had the same opinion had I actually looked lol |
09:45:53 | * | Mister_Magister joined #nim |
09:47:32 | FromDiscord | <klx8158> Teen Porn and Onlyfan Leaks here :peach: :pizza: https://discord.gg/hotteens @everyone |
10:37:49 | FromDiscord | <Robyn [She/Her]> In reply to @odexine "I thought this would": XD |
10:39:40 | FromDiscord | <zumi.dxy> > ~~un~~fortunately we cannot fully mimic javascript |
10:41:40 | FromDiscord | <Robyn [She/Her]> In reply to @zumi.dxy "> ~~un~~fortunately we cannot": Time for macros /j |
10:42:04 | FromDiscord | <Robyn [She/Her]> ...I don't know how term rewriting macros work exactly but could that make it so you could do `x instanceof y`? |
10:52:09 | * | Jhonny2x4 quit (Quit: Jhonny2x4) |
10:52:30 | * | Jhonny2x4 joined #nim |
11:04:37 | FromDiscord | <_nenc> In reply to @chronos.vitaqua "...I don't know how": I did it |
11:04:40 | FromDiscord | <_nenc> sent a code paste, see https://play.nim-lang.org/#pasty=AMNPwZUOhoad |
11:06:28 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=CwIEQJYVGvPk |
11:07:12 | FromDiscord | <_nenc> we were talking about a nimble package for sugars that mimic other languages |
11:07:18 | FromDiscord | <sOkam! 🫐> oh |
11:08:02 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=WWclLtdHGHzz |
11:08:11 | FromDiscord | <Robyn [She/Her]> You should submit that as a PR request /j |
11:15:00 | FromDiscord | <1234789> Hello. is there any way to have something like rust enum(values of different types in different enum variants)? |
11:15:04 | FromDiscord | <_nenc> sent a code paste, see https://play.nim-lang.org/#pasty=cfaCJUlbAHil |
11:15:30 | FromDiscord | <solitudesf> In reply to @1234789 "Hello. is there any": https://nim-lang.org/docs/manual.html#types-object-variants |
11:15:42 | FromDiscord | <_nenc> In reply to @1234789 "Hello. is there any": you can use a lib such as patty https://github.com/andreaferretti/patty , which is based on object variants |
11:16:12 | FromDiscord | <1234789> Thank you! |
11:27:38 | NimEventer | New thread by scippie: How do you handle incomplete nimble packages?, see https://forum.nim-lang.org/t/11293 |
12:31:51 | * | redj joined #nim |
12:57:15 | * | SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev) |
12:57:38 | * | SchweinDeBurg joined #nim |
12:57:48 | FromDiscord | <Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=PebDtCbanFLP |
12:57:54 | FromDiscord | <Robyn [She/Her]> (edit) "https://play.nim-lang.org/#pasty=YlzGnCdRgbQb" => "https://play.nim-lang.org/#pasty=dqwoZHCCLlMs" |
13:01:21 | NimEventer | New thread by sls1005: List of GC'ed types, see https://forum.nim-lang.org/t/11294 |
13:37:34 | * | krux02 joined #nim |
15:41:48 | * | advesperacit quit (Ping timeout: 256 seconds) |
16:24:09 | * | xet7 quit (Remote host closed the connection) |
17:36:54 | FromDiscord | <nervecenter> In reply to @1234789 "Thank you!": The language creator is also actively working on a cleaner syntax since, as with other languages, sum types are a common use case.↵https://github.com/nim-lang/RFCs/issues/548 |
17:38:59 | * | mronetwo_ joined #nim |
17:39:01 | * | ursa-major_ joined #nim |
17:41:20 | * | robertmeta_ joined #nim |
17:46:54 | * | marcus quit (*.net *.split) |
17:46:54 | * | casaca quit (*.net *.split) |
17:46:55 | * | robertmeta quit (*.net *.split) |
17:46:55 | * | ursa-major quit (*.net *.split) |
17:46:56 | * | mronetwo quit (*.net *.split) |
17:46:56 | * | robertmeta_ is now known as robertmeta |
17:47:00 | * | ursa-major_ is now known as ursa-major |
17:47:42 | FromDiscord | <MDuardo> Common Araq W |
17:53:17 | * | marcus joined #nim |
18:17:46 | * | krux02_ joined #nim |
18:20:32 | * | krux02 quit (Ping timeout: 260 seconds) |
18:21:02 | * | fallback quit (Ping timeout: 256 seconds) |
18:34:46 | * | advesperacit joined #nim |
18:46:40 | * | modev joined #nim |
18:47:31 | * | modev quit (Client Quit) |
19:02:39 | * | fallback joined #nim |
19:09:57 | * | advesperacit quit () |
19:27:20 | * | fallback quit (Ping timeout: 255 seconds) |
19:36:44 | * | fallback joined #nim |
19:44:33 | * | ntat quit (Quit: Leaving) |
19:56:25 | * | rockcavera joined #nim |
19:59:29 | * | casaca joined #nim |
21:09:30 | anddam | can I "package" resources in a single nim executable? namely I am thinking about a minimal webserver (jester or the like) and bundle a few templates in a single executable |
21:19:27 | FromDiscord | <Robyn [She/Her]> In reply to @anddam "can I "package" resources": `staticRead` is what you want, I believe |
21:19:58 | FromDiscord | <Robyn [She/Her]> Reads a file in the directory at compile time into a constant |
21:21:54 | FromDiscord | <ezquerra> Is there way to tell that we are in "docgen mode"? That is, that nim has been called with the `docgen` command? For example, is it possible to do `when defined(docgen)` or something like that? |
21:22:25 | FromDiscord | <ezquerra> The reason I'm asking is that in arraymancer we need to import some stuff that is only necessary to make docgen work. That causes warnings when doing a regular compilation |
21:23:04 | FromDiscord | <ezquerra> I'd like to wrap those imports that are only needed to make docgen work insde a "when in_docgen_mode" block |
21:35:57 | FromDiscord | <zumi.dxy> `when defined(nimdoc)`? |
21:38:49 | FromDiscord | <ezquerra> Does that work? |
21:39:47 | FromDiscord | <ezquerra> It does! Thanks! |
22:17:38 | anddam | Robyn: thx |
22:18:00 | anddam | I cannot really autocomplete bridged nicks from IRC |
22:27:24 | * | fallback quit (Ping timeout: 260 seconds) |
22:37:55 | * | fallback joined #nim |
22:54:00 | * | fallback quit (Ping timeout: 260 seconds) |
23:14:26 | * | fallback joined #nim |
23:36:30 | anddam | ok, I stumbled onto an old jester webapp sample and got breakage due non GC-safety in accessing global vars https://www.eoleary.me/blog/create-a-webapp/ |
23:36:48 | anddam | but I was able to actually read the error, find a solution and make it work. I am impressed at the clarity of all of this |
23:37:45 | anddam | namely I used threadvar for the vars and just inited those into a init_vars() function |
23:37:55 | anddam | beautiful |
23:46:40 | anddam | can I define a procedure with no return value type? |
23:50:26 | rockcavera | anddam yes, `proc name() = discard` |
23:51:08 | rockcavera | it is the same as: `proc name(): void = discard` |
23:58:51 | anddam | thx |
23:59:13 | anddam | I used {.discardable.} but was returning a dummy value |