<< 24-03-2025 >>

02:12:14*beholders_eye quit (Ping timeout: 260 seconds)
02:15:24*rockcavera quit (Remote host closed the connection)
07:10:19*ntat joined #nim
08:29:36*ntat quit (Quit: leaving)
09:50:07*ntat joined #nim
10:12:29*SchweinDeBurg joined #nim
10:24:09*ntat quit (Quit: leaving)
11:04:36Amun-Raand https://github.com/ading2210/linuxpdf
11:16:39*beholders_eye joined #nim
11:54:59*beholders_eye quit (Ping timeout: 260 seconds)
13:06:53*ntat joined #nim
17:06:31FromDiscord<rakgew> linux in a pdf? that is wild indeed!
17:45:26FromDiscord<anshmendiratta> hello, type narrowing?
17:51:00Amun-Rahttps://play.nim-lang.org/#pasty=sWbpoLAE
17:51:08*beholders_eye joined #nim
17:51:38*beholders_eye quit (Client Quit)
17:54:45FromDiscord<Elegantbeef> No there is no type narrowing
17:57:06Amun-Raso type narrowing is not what I thought it is
17:58:30FromDiscord<Elegantbeef> Correct, it's a compiler feature that converts a symbol inside of a scope based off conditional logic
17:58:49*ntat_ joined #nim
17:58:58FromDiscord<Elegantbeef> `if x of Y: ## x is now Y inside this scope`
17:59:23FromDiscord<Elegantbeef> Aside from OOP it also can be an alternative to pattern matching tagged unions with statically typed branches
17:59:23Amun-Raah, I see
18:26:24*ntat_ quit (Ping timeout: 260 seconds)
19:14:22FromDiscord<Robyn [She/Her]> In reply to @Amun-Ra "and https://github.com/ading2210/linuxpdf": impressive til you realise it's using JS
19:48:14FromDiscord<daltonjaxon> I am using Nim and I notice the intelisense data coming from the LSP can be slow is that normal?
19:48:20FromDiscord<daltonjaxon> And is there any way to make it better
19:49:02FromDiscord<daltonjaxon> (edit) "And is there any way to make it ... betterand" added "update" | "updatebetter ... " added "and not lag so much?"
20:05:48*ntat quit (Ping timeout: 252 seconds)
20:07:21*ntat joined #nim
20:11:14FromDiscord<explosiveend> In reply to @Elegantbeef "No there is no": do you know why not?
20:42:39FromDiscord<starkiller1493> Can Nimble packages have uppercase letters in them?
20:45:58FromDiscord<solitudesf> yes
20:51:27FromDiscord<starkiller1493> hmmm, does the file `src/PackageName.nim` that `nimble init` makes have to be the entry to the library or can just do `import PackageName/foo/bar`?
20:51:44FromDiscord<starkiller1493> (edit) "hmmm, does the file `src/PackageName.nim` that `nimble init` makes have to be the entry to the library or can ... just" added "I"
20:52:12FromDiscord<starkiller1493> (edit) "hmmm, does the file `src/PackageName.nim` that `nimble init` makes have to be the entry to the library or can I just ... do" added "delete it and"
20:59:38FromDiscord<starkiller1493> because I'm trying to a file like that from an installed package and compiler says it can open it even though the package is in nimble.paths
21:11:08FromDiscord<Elegantbeef> I feel like this is self explanatory, it's not a simple feature 😄↵(@explosiveend)
21:11:32*rockcavera joined #nim
21:20:09FromDiscord<explosiveend> fair enough, was just curious
21:20:39FromDiscord<explosiveend> idek how difficult it’d be to impl generally
21:21:57FromDiscord<Elegantbeef> It requires changing the typegraph inside of conditional logic then also tracking if there are changes
21:22:57*ntat quit (Quit: leaving)
21:23:07FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=NSXurMzL
22:21:03FromDiscord<nasuray> In reply to @starkiller1493 "because I'm trying to": this depends on the package layout itself. and whether or not the package uses `src` as the `srcDir`. If the layout in question is `src/foo/bar.nim` than the import is just `foo/bar`, but hard to say without more info about the file hierarchy/library in this case.
22:22:20FromDiscord<nasuray> you can structure a library with `src/PackageName/foo/bar.nim` of course if this is your goal, it doesn't need a specific "entrypoint"