00:33:36 | FromDiscord | <litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=SuaeOeUo |
00:34:21 | FromDiscord | <litlighilit> Add `nodecl` or `header: xxx` to the `importc`s. |
00:51:50 | FromDiscord | <heysokam> Is it not possible to give hooks to the `CThing` object directly? |
01:10:16 | FromDiscord | <leorize> the object is not real |
01:19:25 | * | disso-peach joined #nim |
01:22:44 | * | disso-peach quit (Client Quit) |
01:41:45 | * | rockcavera quit (Remote host closed the connection) |
02:28:50 | * | nils` quit (Ping timeout: 272 seconds) |
03:10:01 | FromDiscord | <litlighilit> sent a code paste, see https://play.nim-lang.org/#pasty=GeJDYsOG |
03:32:03 | FromDiscord | <litlighilit> If trying, you'll get a complaint from CC. That's, there's a compilation bug if you hook it.↵(@heysokam) |
03:46:14 | FromDiscord | <heysokam> ic |
03:52:00 | * | nils` joined #nim |
04:50:35 | * | derpydoo joined #nim |
05:01:54 | * | skippy8 joined #nim |
05:06:15 | * | SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev) |
05:29:34 | FromDiscord | <ajusa> Might be a silly question, but is there a nice way to scanf all matches in a string? The API doesn't seem to return the match location, so if there are multiple instances of my pattern I can't match it? |
05:47:45 | FromDiscord | <litlighilit> Er, really, no handy way imo.↵↵Maybe another way, using [`+E` of `scanp`](https://nim-lang.org/docs/strscans.html#the-scanp-macro) |
05:48:11 | FromDiscord | <litlighilit> Er, really, no handy way imo.↵↵Maybe another way, using `+E` of [scanp](https://nim-lang.org/docs/strscans.html#the-scanp-macro) |
06:06:29 | FromDiscord | <ajusa> In reply to @litlighilit "Er, really, no handy": Will dig into that, thanks! |
06:07:03 | * | SchweinDeBurg joined #nim |
06:09:17 | FromDiscord | <litlighilit> I think there shall be a new `$n` for `scanf`. You can create a `feature request` issue on github. |
06:09:43 | FromDiscord | <Elegantbeef> Can also write your own matcher |
07:53:47 | * | derpydoo quit (Quit: derpydoo) |
08:23:54 | * | beholders_eye joined #nim |
10:14:27 | * | skippy8 quit (Quit: WeeChat 4.6.3) |
11:55:29 | * | ntat joined #nim |
12:11:54 | * | nils` quit (Ping timeout: 260 seconds) |
12:32:38 | * | ntat quit (Quit: leaving) |
13:13:20 | * | beholders_eye quit (Quit: WeeChat 4.6.3) |
13:13:34 | * | beholders_eye joined #nim |
13:14:03 | * | pmp-p joined #nim |
13:31:20 | * | xet7 joined #nim |
14:04:55 | * | xet7 quit (Ping timeout: 252 seconds) |
14:05:31 | * | skippy8 joined #nim |
14:08:09 | FromDiscord | <sevatoxin> Hi, I want to learn Nim and have trouble installing a binding for another library I found. Where would be the best place to ask for help for that? |
14:08:17 | FromDiscord | <sevatoxin> (edit) "another" => "a" |
14:08:25 | FromDiscord | <sevatoxin> (edit) "help for that?" => "help?" |
14:11:23 | FromDiscord | <sevatoxin> Okay just figured it out. Though I would still like to know where I should ask questions in the future? 🙂 |
14:31:53 | * | nils` joined #nim |
14:46:49 | FromDiscord | <nnsee> In reply to @sevatoxin "Hi, I want to": feel free to ask here. What exactly are you having trouble with? |
15:23:03 | * | ntat joined #nim |
15:50:52 | * | ntat quit (Quit: leaving) |
16:00:17 | * | ntat joined #nim |
16:23:33 | * | skippy8 quit (Ping timeout: 276 seconds) |
16:46:37 | * | ntat quit (Quit: leaving) |
17:13:53 | * | ntat joined #nim |
17:26:37 | * | jjido joined #nim |
17:34:48 | FromDiscord | <ajusa> In reply to @Elegantbeef "Can also write your": Ended up just iterating over every line as my text happens to be line separated, but I think I'll explore that option next time |
18:10:23 | * | ntat quit (Ping timeout: 245 seconds) |
18:17:48 | * | jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…) |
18:38:04 | * | ntat joined #nim |
18:43:30 | * | syl quit (Quit: C-x C-c) |
18:58:53 | * | syl joined #nim |
19:06:25 | * | ntat quit (Ping timeout: 248 seconds) |
19:22:50 | * | jjido joined #nim |
19:23:16 | * | syl quit (Quit: C-x C-c) |
19:24:47 | * | syl joined #nim |
19:26:03 | * | NimBot joined #nim |
19:29:23 | * | syl quit (Client Quit) |
19:32:34 | * | syl joined #nim |
19:42:05 | * | syl quit (Quit: C-x C-c) |
19:51:16 | * | syl joined #nim |
19:57:24 | * | ntat quit (Ping timeout: 260 seconds) |
20:30:19 | * | ntat joined #nim |
20:34:09 | FromDiscord | <sevatoxin> In reply to @nnsee "feel free to ask": Sorry for the late answer. I had problems installing a shared library on my PC so that the nim compiler can find it. Am new to Linux so that was my fault there, not really a Nim thing. Though there will be more questions for sure! For now I'll just read the docs to get a feeling and learn about memory management as the library I wanna use needs that. |
21:01:01 | * | ntat quit (Quit: leaving) |
21:14:32 | FromDiscord | <godalming123> How do you create a variable that exists at compile time in nim? For example, a variable that stores the number of JS functions that have been code generated using nim macros so that, at compile time, a unique name can be assigned to all of the JS functions. |
21:20:42 | FromDiscord | <Robyn [She/Her]> In reply to @godalming123 "How do you create": Either use the `std/macrocache` or use the `{.compileTime.}` pragma |
21:21:02 | FromDiscord | <demotomohiro> In reply to @godalming123 "How do you create": How about to use this for making unique name?↵https://nim-lang.org/docs/macros.html#genSym%2CNimSymKind%2Cstring |
21:21:31 | FromDiscord | <Robyn [She/Her]> `genSym` is likely better for unique name generation tho yeah :p |
21:22:00 | FromDiscord | <godalming123> Thanks |
21:32:23 | * | rockcavera joined #nim |
22:39:33 | * | jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…) |
22:58:01 | FromDiscord | <sigmanificient> Hi! |
22:59:51 | FromDiscord | <sigmanificient> I am seeking help toward setting up the nim language server in neovim. I got a crash upon start: ↵"Client nim_langserver quit with exit code 0 and signal 11. Check log for errors: /home/sigmanificient/.local/state/nvim/lsp.log" |
23:00:29 | FromDiscord | <sigmanificient> sent a code paste, see https://play.nim-lang.org/#pasty=IHfaTVFB |
23:02:34 | * | beholders_eye quit (Ping timeout: 276 seconds) |