<< 18-11-2025 >>

00:19:20FromDiscord<nasuray> In reply to @helgas_0t "Is there anyone looking": We have #jobs for that but something tells me you aren't asking about a position using Nim
00:35:28FromDiscord<nervecenter> In reply to @.somechump "Any recommendation for building": GUI is generally a mess on desktop everywhere, but there are several really neat Nim projects. Check #appdev
00:36:09FromDiscord<nervecenter> Note that they tend to be macro-heavy and use DSLs instead of compiling any kind of markup files
00:36:33FromDiscord<nervecenter> (edit) "Note that they tend to be macro-heavy and use ... DSLs" added "macro"
01:52:09FromDiscord<.somechump> Why continue to learn Nim if it's still in such infancy? I want to, I'm just asking why for anyone else.
01:54:07*beholders_eye quit (Ping timeout: 250 seconds)
02:30:00FromDiscord<janakali> In reply to @.somechump "Why continue to learn": if you take time to learn any language - you'll discover that it sucks↵↵They are all flawed. Some less, some more.↵You can hop from one to the other in search of the one "perfect language" (that probably doesn't exist) or you can try to settle on one and try to improve it.
02:31:07FromDiscord<janakali> Nim is not in its infancy, though. The second iteration (Nim 2) is a lot better than the first, and Nim 3 is just around the corner.
03:13:19*rockcavera quit (Remote host closed the connection)
04:39:54FromDiscord<lainlaylie> learn nim because it's fun
05:06:55FromDiscord<enbugger> Is hot reloading broken on latest stable on Windows? I get segfault when do the official example project with sdl2…
05:15:39FromDiscord<Elegantbeef> @enbugger It's untested and likely broken
07:55:41FromDiscord<systemblue_2010> is there any Nim unit translate library?
07:55:51FromDiscord<systemblue_2010> I mean length, weight, time etc...
07:57:23FromDiscord<systemblue_2010> and is there any time library?
08:00:46FromDiscord<systemblue_2010> I found some unit library but it is not what I
08:00:49FromDiscord<systemblue_2010> 'm thinking
08:01:07FromDiscord<systemblue_2010> and there's no time library
08:01:13FromDiscord<systemblue_2010> nim needs utils
08:40:03FromDiscord<janakali> In reply to @systemblue_2010 "is there any Nim": https://github.com/SciNim/unchained↵https://github.com/energy-nim/measures↵more: https://nimpkgs.dayl.in/?query=units#/search
08:44:35FromDiscord<systemblue_2010> I found it but I want a library with form of ↵proc and template
08:44:54FromDiscord<systemblue_2010> sent a code paste, see https://play.nim-lang.org/#pasty=sSBbggDQ
08:46:31Amun-Rastd/times?
08:46:50FromDiscord<systemblue_2010> nono I mean timer, wordtime, alarm, stopwatch
08:49:10FromDiscord<systemblue_2010> std/time is os level time not user level high level time library
09:15:41*xtr00 quit (Ping timeout: 250 seconds)
09:17:24FromDiscord<Trayambak> As in?↵(@systemblue_2010)
09:17:34*xtr00 joined #nim
09:17:40FromDiscord<Trayambak> std/times exists and it's very batteries included imo \:^)
09:47:45*xet7 joined #nim
10:16:20FromDiscord<ieltan> those templates do nothing lol
10:59:58*beholders_eye joined #nim
11:13:13*beholders_eye quit (Ping timeout: 246 seconds)
11:52:02*beholders_eye joined #nim
11:58:24FromDiscord<destroyer_.xs> the website that's off?
12:03:22FromDiscord<nnsee> In reply to @destroyer_.xs "the website that's off?": cloudflare's side, not ours
12:03:32FromDiscord<nnsee> many cloudflare sites are having issues at the moment
12:04:10FromDiscord<nnsee> if you look at the error page, it says that the host itself is OK, but cloudflare gets an internal 500 error somewhere
12:05:03FromDiscord<nnsee> sigh... https://media.discordapp.net/attachments/371759389889003532/1440311844156870758/image.png?ex=691db26f&is=691c60ef&hm=30f18a2a11d0cf8a1e3f2f491fb9d913bd3e9b887ec2c0e815e5d6314677b0f2&
12:05:41FromDiscord<enbugger> In reply to @Elegantbeef "<@286536380803186688> It's untested and": Alpha quality stuff tbh
12:37:17FromDiscord<destroyer_.xs> In reply to @nnsee "cloudflare's side, not ours": 😭
12:40:12*beholders_eye quit (Ping timeout: 252 seconds)
12:42:33FromDiscord<destroyer_.xs> In reply to @nnsee "cloudflare's side, not ours": can send me a nim download?
12:42:35FromDiscord<destroyer_.xs> for linux
12:45:26FromDiscord<ringabout> You can download from nightlies releases https://github.com/nim-lang/nightlies/releases
13:04:17FromDiscord<aethrvmn> The nim std lib is very rich idk what you mean. Plus if you want to make units of measurement it shouldn't be that difficult. There is a SciNim package about ISO measurements↵(@systemblue_2010)
13:49:46*beholders_eye joined #nim
14:04:31FromDiscord<pmunch> Is there a built-in way in Nim's json module to access a dotted key?
14:04:46FromDiscord<pmunch> e.g. `myObject["this.is.my.key"]`
14:26:06*beholders_eye quit (Ping timeout: 265 seconds)
15:08:25*redj quit (*.net *.split)
15:08:25*fallback quit (*.net *.split)
15:08:25*Lord_Nightmare quit (*.net *.split)
15:08:25*cm quit (*.net *.split)
15:08:25*bgupta quit (*.net *.split)
15:11:02*beholders_eye joined #nim
15:11:02*redj joined #nim
15:11:02*fallback joined #nim
15:11:02*Lord_Nightmare joined #nim
15:11:02*cm joined #nim
15:11:02*bgupta joined #nim
15:25:22FromDiscord<enthus1ast.> @systemblue_2010 also https://github.com/treeform/chrono
15:26:50FromDiscord<enthus1ast.> It's easier to serialize than stdlib timestamps
15:47:36FromDiscord<janakali> sent a code paste, see https://play.nim-lang.org/#pasty=sOkcrEwv
16:43:07FromDiscord<mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=pnLBdoug
16:44:17FromDiscord<mjsdev> Attempting to use the AttrFilterHook on the 2nd example, yields Error: internal error: environment misses: tmpl
16:45:06FromDiscord<mjsdev> Attempt to use the DelegateHook on the 1st, yields: Error: expected: ')', but got: 'keyword for'
16:45:37FromDiscord<mjsdev> It should also be noted the DelegateHook => (...) syntax macro is working in other contexts, as is teh AttrFilterHook working in the 3rd element in this context.
16:48:07FromDiscord<mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=zMgxvtRQ
16:48:44FromDiscord<mjsdev> it is being used _inside the body of another macro_ (though that seems to work usually?)
16:50:57FromDiscord<mjsdev> sent a code paste, see https://play.nim-lang.org/#pasty=zAaHBFKp
17:07:14FromDiscord<_nenc> i think a proc type can't be generic
17:10:33FromDiscord<mjsdev> But they all work in some contexts?
17:11:48FromDiscord<pmunch> sent a code paste, see https://play.nim-lang.org/#pasty=lyzVaoPS
17:23:42*hygo quit (Ping timeout: 256 seconds)
17:44:39FromDiscord<mjsdev> Also, the resulting callback is not generic, as the `shape` is replaced.
19:05:54*beholders_eye quit (Quit: WeeChat 4.6.3)
19:21:39FromDiscord<_bluecapybara> In reply to @.somechump "Any recommendation for building": You can try [WebUI](https://webui.me/), it's like electron, but instead of packaging an entire browser and using NodeJS for the logic, it uses the available webview or browser in your system and your language (in this case Nim) for the logic
19:22:46FromDiscord<_bluecapybara> In reply to @_bluecapybara "You can try [WebUI](https://webui.me/),": You could also use [Karax](https://github.com/karaxnim/karax) to make a PWA with Nim
19:58:58*FromDiscord quit (Remote host closed the connection)
19:59:11*FromDiscord joined #nim
20:09:32FromDiscord<TFed> yeah i'm from C. I reverted my changes and merged everything into one library. I think i was doing this because i was trying to code without IDE, but now i use VSCodium that helps me a lot to find bugs. So i no longer need actually libraries that are similar to headers in C.
20:15:08FromDiscord<TFed> Also i never use methods, i use procs. In that example i was just trying them when tried to split library into two parts.
20:20:43FromDiscord<TFed> oh, i have different libraries that do depend on each other, and there was an issue that i got imports in a loop, which is insane and obviously wont compile.so this is why i tried to split library into the header and a library with implementation. I was just panicking.
20:20:55FromDiscord<TFed> at the end i fixed this issue, but library dependencies are still hard to me. In C for example i can declare a Macro for a library and make that library includable only once
20:22:30FromDiscord<TFed> [Edit](https://discord.com/channels/371759389889003530/371759389889003532/1440436582371819602): oh, i have different libraries that do depend on each other, and there was an issue that i got imports in a loop, which is insane and obviously wont compile. So this is why i tried to split library into the header and a library with implementation. I was just panicking.
21:26:41FromDiscord<nervecenter> In reply to @TFed "[Edit](https://discord.com/channels/371759389889003": Don't overcomplicate it, the default behavior is simple. Files are modules, modules declare symbols, `` exports symbols, anything that calls `import` on that module can see the exported symbols, modules cannot be imported cyclically (for now). Exceptions to these defaults are edge cases and you should have a justification for doing them.
21:29:40FromDiscord<nervecenter> Most libraries have a core file that imports and re-exports everything in the project, but that behavior should only really apply to libraries, and only if they have a small API surface. Once it gets large, I personally think it's justified to have multiple library modules for users to `import`.
21:30:53FromDiscord<nervecenter> (edit) "Most" => "Some"
22:20:52*rockcavera joined #nim
22:33:01*hygo joined #nim