<< 25-03-2024 >>

00:00:10FromDiscord<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:36FromDiscord<yoyojambo> are the "db_" packages part of the stdlib?
07:48:57FromDiscord<Elegantbeef> They are now a nimble package
07:49:26FromDiscord<yoyojambo> are the docs in nim-lang.org the only ones for them?
07:50:05FromDiscord<yoyojambo> They seem rather forgotten, thought it was weird
07:56:28NimEventerNew Nimble package! sweet - 🍬 General syntactic sugar, see https://github.com/FyraLabs/sweet
08:13:57FromDiscord<Robyn [She/Her]> !1 == false
08:14:21FromDiscord<Robyn [She/Her]> `!""` 😭
08:14:40FromDiscord<Elegantbeef> Just a little bit of truthiness
08:15:40FromDiscord<Robyn [She/Her]> Pain
09:00:26FromDiscord<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:14FromDiscord<Elegantbeef> We'll pretend it's just for learning and carry on with our lives 😄
09:02:20FromDiscord<ieltan> ># unfortunately we cannot fully mimic JavaScript↵you dont say lol
09:02:24FromDiscord<ieltan> (edit) ">#" => "> #"
09:02:29FromDiscord<ieltan> (edit) "#" => ""
09:07:45FromDiscord<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:18advesperacit"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:35FromDiscord<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:36FromDiscord<Elegantbeef> Put fire on the flame of "see Nim is bad" 😄
09:28:15FromDiscord<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:08FromDiscord<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:50FromDiscord<nnsee> In reply to @odexine "I thought this would": yeeeees, join the hive mind. leave your personal opinions at the door
09:34:19FromDiscord<odexine> In reply to @nnsee "yeeeees, join the hive": lol
09:34:44FromDiscord<odexine> I meant more of “cool package from the title” as in I hadn’t looked at the thing
09:34:58FromDiscord<odexine> I would have had the same opinion had I actually looked lol
09:45:53*Mister_Magister joined #nim
09:47:32FromDiscord<klx8158> Teen Porn and Onlyfan Leaks here :peach: :pizza: https://discord.gg/hotteens @everyone
10:37:49FromDiscord<Robyn [She/Her]> In reply to @odexine "I thought this would": XD
10:39:40FromDiscord<zumi.dxy> > ~~un~~fortunately we cannot fully mimic javascript
10:41:40FromDiscord<Robyn [She/Her]> In reply to @zumi.dxy "> ~~un~~fortunately we cannot": Time for macros /j
10:42:04FromDiscord<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:37FromDiscord<_nenc> In reply to @chronos.vitaqua "...I don't know how": I did it
11:04:40FromDiscord<_nenc> sent a code paste, see https://play.nim-lang.org/#pasty=AMNPwZUOhoad
11:06:28FromDiscord<sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=CwIEQJYVGvPk
11:07:12FromDiscord<_nenc> we were talking about a nimble package for sugars that mimic other languages
11:07:18FromDiscord<sOkam! 🫐> oh
11:08:02FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=WWclLtdHGHzz
11:08:11FromDiscord<Robyn [She/Her]> You should submit that as a PR request /j
11:15:00FromDiscord<1234789> Hello. is there any way to have something like rust enum(values of different types in different enum variants)?
11:15:04FromDiscord<_nenc> sent a code paste, see https://play.nim-lang.org/#pasty=cfaCJUlbAHil
11:15:30FromDiscord<solitudesf> In reply to @1234789 "Hello. is there any": https://nim-lang.org/docs/manual.html#types-object-variants
11:15:42FromDiscord<_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:12FromDiscord<1234789> Thank you!
11:27:38NimEventerNew 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:48FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=PebDtCbanFLP
12:57:54FromDiscord<Robyn [She/Her]> (edit) "https://play.nim-lang.org/#pasty=YlzGnCdRgbQb" => "https://play.nim-lang.org/#pasty=dqwoZHCCLlMs"
13:01:21NimEventerNew 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:54FromDiscord<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:42FromDiscord<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:30anddamcan 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:27FromDiscord<Robyn [She/Her]> In reply to @anddam "can I "package" resources": `staticRead` is what you want, I believe
21:19:58FromDiscord<Robyn [She/Her]> Reads a file in the directory at compile time into a constant
21:21:54FromDiscord<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:25FromDiscord<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:04FromDiscord<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:57FromDiscord<zumi.dxy> `when defined(nimdoc)`?
21:38:49FromDiscord<ezquerra> Does that work?
21:39:47FromDiscord<ezquerra> It does! Thanks!
22:17:38anddamRobyn: thx
22:18:00anddamI 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:30anddamok, 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:48anddambut 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:45anddamnamely I used threadvar for the vars and just inited those into a init_vars() function
23:37:55anddambeautiful
23:46:40anddamcan I define a procedure with no return value type?
23:50:26rockcaveraanddam yes, `proc name() = discard`
23:51:08rockcaverait is the same as: `proc name(): void = discard`
23:58:51anddamthx
23:59:13anddamI used {.discardable.} but was returning a dummy value