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:36 | Amun-Ra | and 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:31 | FromDiscord | <rakgew> linux in a pdf? that is wild indeed! |
17:45:26 | FromDiscord | <anshmendiratta> hello, type narrowing? |
17:51:00 | Amun-Ra | https://play.nim-lang.org/#pasty=sWbpoLAE |
17:51:08 | * | beholders_eye joined #nim |
17:51:38 | * | beholders_eye quit (Client Quit) |
17:54:45 | FromDiscord | <Elegantbeef> No there is no type narrowing |
17:57:06 | Amun-Ra | so type narrowing is not what I thought it is |
17:58:30 | FromDiscord | <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:58 | FromDiscord | <Elegantbeef> `if x of Y: ## x is now Y inside this scope` |
17:59:23 | FromDiscord | <Elegantbeef> Aside from OOP it also can be an alternative to pattern matching tagged unions with statically typed branches |
17:59:23 | Amun-Ra | ah, I see |
18:26:24 | * | ntat_ quit (Ping timeout: 260 seconds) |
19:14:22 | FromDiscord | <Robyn [She/Her]> In reply to @Amun-Ra "and https://github.com/ading2210/linuxpdf": impressive til you realise it's using JS |
19:48:14 | FromDiscord | <daltonjaxon> I am using Nim and I notice the intelisense data coming from the LSP can be slow is that normal? |
19:48:20 | FromDiscord | <daltonjaxon> And is there any way to make it better |
19:49:02 | FromDiscord | <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:14 | FromDiscord | <explosiveend> In reply to @Elegantbeef "No there is no": do you know why not? |
20:42:39 | FromDiscord | <starkiller1493> Can Nimble packages have uppercase letters in them? |
20:45:58 | FromDiscord | <solitudesf> yes |
20:51:27 | FromDiscord | <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:44 | FromDiscord | <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:12 | FromDiscord | <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:38 | FromDiscord | <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:08 | FromDiscord | <Elegantbeef> I feel like this is self explanatory, it's not a simple feature 😄↵(@explosiveend) |
21:11:32 | * | rockcavera joined #nim |
21:20:09 | FromDiscord | <explosiveend> fair enough, was just curious |
21:20:39 | FromDiscord | <explosiveend> idek how difficult it’d be to impl generally |
21:21:57 | FromDiscord | <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:07 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=NSXurMzL |
22:21:03 | FromDiscord | <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:20 | FromDiscord | <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" |