00:14:59 | * | befa7 joined #nim |
00:24:10 | * | befa7 quit (Ping timeout: 252 seconds) |
00:44:32 | * | njoseph quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.) |
00:44:53 | * | njoseph joined #nim |
00:52:23 | kinkinkijkin | im still confused by this, what exactly is the difference between functions and procs? documentation I've found describing it has gone over it with a single sentence of jargon i don't know seemingly referring to memory magicks |
00:55:26 | * | nphg1 joined #nim |
00:57:04 | * | nphg quit (Ping timeout: 245 seconds) |
00:58:13 | FromDiscord | <ElegantBeef> `func` is just a procedure with no side effect which means it is not allow to mutate anything that isnt passed to it as mutable(except `ref T`, but dont worry about that) |
00:58:35 | kinkinkijkin | ah |
00:58:51 | FromDiscord | <ElegantBeef> It's a functional programming "pure" function |
00:59:02 | kinkinkijkin | yeah understood |
00:59:22 | FromDiscord | <ElegantBeef> Though currently in Nim the default `func` isnt really pure due to being able to mutate `ref T` without `var`, but `strictFuncs` in experimental features forces that |
00:59:26 | kinkinkijkin | most explanations stop at "func is a procedure with no side effect" |
01:00:29 | FromDiscord | <ElegantBeef> Ah guess someone needs a PR to expand the definition 😄 |
01:18:31 | FromDiscord | <garett> Is `uint` in Nim like `size_t` in C? |
01:22:43 | FromDiscord | <garett> I think I found my answer:↵int {...}↵Default integer type; bitwidth depends on architecture, but is always the same as a pointer. |
01:34:44 | * | clyybber quit (Quit: WeeChat 3.1) |
02:13:07 | * | abm quit (Quit: Leaving) |
02:43:51 | * | Gustavo6046 quit (Quit: ZNC 1.8.2 - https://znc.in) |
02:44:21 | * | Gustavo6046 joined #nim |
03:02:20 | * | Tlangir joined #nim |
03:02:45 | FromDiscord | <Rika> In reply to @Avatarfighter "you are not able": You must raise CatchableError or whatever it’s called |
03:36:20 | * | spiderstew joined #nim |
03:37:46 | * | spiderstew_ quit (Ping timeout: 252 seconds) |
04:08:26 | ForumUpdaterBot | New thread by Takekikuchi: How do I use EPOLLPRI with selectors?, see https://forum.nim-lang.org/t/7982 |
04:17:54 | * | thomasross quit (Ping timeout: 245 seconds) |
05:28:26 | * | aerona quit (Quit: Leaving) |
06:04:48 | * | Tlangir quit (Remote host closed the connection) |
06:07:33 | * | narimiran joined #nim |
06:46:19 | * | pbb quit (Ping timeout: 260 seconds) |
06:47:15 | * | pbb joined #nim |
07:01:25 | ForumUpdaterBot | New thread by Araq: Nim 2.0 -- thoughts, see https://forum.nim-lang.org/t/7983 |
07:04:28 | * | Vladar joined #nim |
07:07:26 | ForumUpdaterBot | New thread by Moigagoo: Onivim2: A surprisingly good working with Nim editor, see https://forum.nim-lang.org/t/7984 |
07:09:34 | * | narimiran quit (Ping timeout: 245 seconds) |
07:35:29 | ForumUpdaterBot | New thread by B3liever: User feedback needed about synchronization primitive call once, see https://forum.nim-lang.org/t/7985 |
07:45:39 | * | letto quit (Quit: Konversation terminated!) |
07:47:34 | * | letto joined #nim |
08:03:06 | * | Vladar quit (Quit: Leaving) |
08:06:55 | * | kenran joined #nim |
09:00:15 | * | neceve quit (Quit: Idle for 30+ days) |
09:10:19 | * | Vladar joined #nim |
09:31:55 | FromGitter | <bung87> is there a way get all exported proc signature of imported one module? |
09:35:57 | * | clyybber joined #nim |
09:47:35 | * | kenran quit (Remote host closed the connection) |
10:31:34 | * | NimBot joined #nim |
10:33:00 | * | narimiran joined #nim |
10:38:33 | narimiran | Two more days to register for NimConf 2021! More details here: https://forum.nim-lang.org/t/7863 |
10:49:07 | federico3 | narimiran: when is NimConf tho? |
10:56:31 | narimiran | "The exact date of the conference hasn't been decided yet, but you can expect it to be at the end of June or start of July (plenty of time to prepare your talk)." |
11:14:31 | * | FromGitter quit (Ping timeout: 276 seconds) |
11:15:49 | * | oprypin quit (Ping timeout: 276 seconds) |
11:18:20 | * | tane joined #nim |
11:22:16 | * | oprypin joined #nim |
11:22:25 | * | FromGitter joined #nim |
11:26:46 | * | FromGitter quit (Remote host closed the connection) |
11:26:47 | * | oprypin quit (Client Quit) |
11:41:29 | * | oprypin joined #nim |
11:41:44 | * | FromGitter joined #nim |
11:45:54 | * | FromGitter quit (Remote host closed the connection) |
11:45:55 | * | oprypin quit (Client Quit) |
11:46:11 | * | oprypin joined #nim |
11:46:21 | * | FromGitter joined #nim |
12:02:43 | FromDiscord | <carpal> checking for dividing by zero at compile time? |
12:02:57 | FromDiscord | <carpal> it seems not to throw any error <https://play.nim-lang.org/#ix=3mSr> |
12:06:04 | * | narimiran quit (Quit: leaving) |
12:09:57 | FromDiscord | <IDF(ardek66)> !eval echo 1 / 0 |
12:10:00 | NimBot | inf |
12:14:23 | FromDiscord | <Rika> !eval import fenv; echo 1/0 |
12:14:27 | NimBot | inf |
12:14:59 | FromDiscord | <Rika> eh idk how fenv works |
12:15:28 | FromDiscord | <IDF(ardek66)> https://play.nim-lang.org/#ix=3mSy↵you can use this but it only works with floats |
12:16:23 | FromDiscord | <IDF(ardek66)> and `div` for integers already checks for division by 0 |
12:17:16 | FromDiscord | <IDF(ardek66)> !eval let x = 1; let y = 0; echo x div y |
12:17:18 | NimBot | /usercode/in.nim(1) in↵/playground/nim/lib/system/fatal.nim(49) sysFatal↵Error: unhandled exception: division by zero [DivByZeroDefect] |
12:19:09 | * | casaca quit (Ping timeout: 252 seconds) |
12:35:08 | Oddmonger | is it possible to define an enum which will be used with the « cint » type |
12:35:16 | Oddmonger | maybe i'm asking much |
12:35:43 | FromDiscord | <Rika> wdym |
12:35:58 | FromGitter | <bung87> you first filed a = 1.cint |
12:36:02 | Oddmonger | i have : type pads = pad1,pad2,pad3,pad4 |
12:36:42 | Oddmonger | i mean : type pads = enum pad1,pad2,pad3,pad4 |
12:36:54 | Oddmonger | but the function awaits for a cint |
12:37:14 | Oddmonger | so it's ok when i write pad1.cint, of course but it's ugly |
12:37:26 | FromGitter | <bung87> type pads = enum pad1 =0.cint,pad3,pad4 |
12:37:28 | Oddmonger | maybe a const cint for this one |
12:37:34 | Oddmonger | ohhh |
12:38:03 | * | a_chou joined #nim |
12:38:05 | Oddmonger | nice! didn't hope i could give the type to an enum (which by definition has no type) |
12:38:12 | FromGitter | <bung87> convert padsconvert(p: pads): cint = cint(p) |
12:39:03 | FromGitter | <bung87> well in enum field could have any type , no like in others language just int |
12:42:06 | FromDiscord | <rb3> Hey guys, I just found out that there is a kind of return type overloading for converters, which is pretty cool. So this works: https://play.nim-lang.org/#ix=3mSF. Is that supposed to work like that? I ask because if you remove the `lent` from the return type of `toObject` it doesn't compile, which seems inconsistent. |
12:45:49 | * | Gustavo6046 quit (Ping timeout: 245 seconds) |
13:03:42 | * | a_chou quit (Quit: a_chou) |
13:10:21 | * | MineBill joined #nim |
13:14:48 | * | MineBill quit (Client Quit) |
13:20:33 | * | xet7 quit (Quit: Leaving) |
13:50:46 | ForumUpdaterBot | New question by Dilawar: How to split a `cstring` in nim, see https://stackoverflow.com/questions/67547395/how-to-split-a-cstring-in-nim |
14:11:50 | FromDiscord | <zae.> i am the rightful leader of this server, praise me |
14:14:10 | voidpi | praise oh lord of that moronic service |
14:16:06 | * | casaca joined #nim |
14:24:40 | * | kenran joined #nim |
14:27:29 | Oddmonger | can i declare an identifier in a if defined(…) block, and use it outside ? (if i have an «else» for covering all cases) |
14:30:01 | nphg1 | Oddmonger: No, an `if`starts a new scope. But I think `when defined(…)` will work |
14:30:59 | Oddmonger | true, thank you nphg1 |
14:52:49 | * | leorize quit (Quit: WeeChat 3.0) |
14:54:27 | FromGitter | <bung87> how to wrap c macro, see https://play.nim-lang.org/#ix=3mTd |
14:55:07 | FromGitter | <bung87> env,exports not available compile time |
14:55:16 | FromDiscord | <zetashift> Huh Nim just got to #2 of HN... |
14:57:49 | FromDiscord | <Rika> what why |
14:58:52 | FromDiscord | <haxscramper> nim 2.0 post |
15:03:33 | FromDiscord | <zetashift> It's such a clickbaity title too haha |
15:04:08 | FromDiscord | <haxscramper> yes, `Nim 2.0 -- thoughts` converted to `Nim 2.0` is too much |
15:04:54 | FromDiscord | <haxscramper> It is not really wrong, but considering this is not even an announcement but more like a focused discussion prompt |
15:11:49 | FromDiscord | <zetashift> I wonder why even submit it, but hey more exposure is great |
15:11:56 | FromDiscord | <zetashift> it got like 1k views in 30 minutes |
15:17:25 | * | spiderstew quit (Quit: ZNC 1.7.2+deb3 - https://znc.in) |
15:18:14 | * | spiderstew joined #nim |
15:18:29 | * | Koti joined #nim |
15:18:59 | * | Koti quit (Remote host closed the connection) |
15:19:53 | * | xet7 joined #nim |
15:21:15 | FromDiscord | <ajusa> #1 post for me now, the title is so misleading |
15:21:34 | FromDiscord | <brainproxy> In reply to @haxscramper "yes, `Nim 2.0 --": I don't know why it got edited out, and of course not sure if it was dang or another editor. |
15:21:43 | FromDiscord | <ajusa> Especially since the domain shows as nim-lang.com rather than forum.nim-lang.com |
15:22:03 | FromDiscord | <ajusa> (edit) "nim-lang.com" => "nim-lang.org" | "forum.nim-lang.com" => "forum.nim-lang.org" |
15:22:10 | FromDiscord | <brainproxy> yeah, that makes it worse |
15:22:16 | FromDiscord | <brainproxy> In reply to @ajusa "Especially since the domain": yeah, that makes it worse |
15:24:41 | FromDiscord | <brainproxy> In reply to @zetashift "It's such a clickbaity": I submitted it as `Nim 2.0 – thoughts`; it then appeared in the new page as `Nim 2.0 – Thoughts` (I think the capitalization was automatic). Then later an HN editor changed, for an unknown reason. |
15:25:05 | FromDiscord | <brainproxy> (edit) "changed," => "changed it," |
15:25:13 | FromDiscord | <ajusa> Ah yeah, that's not your fault that's an HN editor maybe not reading through the actual link |
15:28:24 | FromDiscord | <zetashift> In reply to @brainproxy "I submitted it as": Yea no worries I saw your comment too, I wonder why it was edited like that. Thank you for posting tho, more eyes on Nim! |
15:39:37 | * | tane quit (Quit: Leaving) |
15:39:55 | FromGitter | <BracketMaster> Pretty cool Nim's on top of HN - for now... ⏎ Always felt like Rust was hogging the spotlight |
15:43:30 | FromDiscord | <Rika> why do you think most people call it a rust cesspool or w/e |
15:45:19 | FromGitter | <BracketMaster> Never heard "rust cesspool before' |
15:45:33 | FromGitter | <BracketMaster> also what's "w/e"? |
15:47:06 | FromDiscord | <zetashift> In reply to @BracketMaster "Never heard "rust cesspool": I wouldn't call it a cesspool now, there are people genuinely happy about the new stuff that Rust brings, but for a Rust post to rank high on HN it takes surprisingly little effort |
15:48:04 | * | sixtyten joined #nim |
15:48:09 | FromDiscord | <brainproxy> Zig seems to be popular with HNers too |
15:48:13 | FromDiscord | <zetashift> It couldn't be a Nim thread on HN/reddit/wherever without case and style-insensitivity bikeshedding |
15:48:16 | FromDiscord | <brainproxy> Nim definitely gets less spotlight |
15:48:28 | FromDiscord | <brainproxy> but is frequently mentioned in HN posts discussing pro langs |
15:48:34 | FromDiscord | <brainproxy> (edit) "pro" => "prog" |
15:49:01 | FromDiscord | <zetashift> it is, Zig gets attention because it tries to keep things "minimal" which is the new hot thing to do these days |
15:49:18 | FromDiscord | <zetashift> comptime is coolt ho |
15:52:04 | FromDiscord | <dom96> oh cool, Nim forum on HN front page |
15:52:29 | FromDiscord | <dom96> Doing pretty well for a sqlite forum 🙂 |
15:54:40 | FromDiscord | <zetashift> the thread got like 3k views in an hour jeez |
15:54:52 | FromDiscord | <zetashift> In reply to @dom96 "Doing pretty well for": Discourse better watch out |
15:55:42 | FromDiscord | <dom96> indeed, the idea was always to compete with Discourse |
15:55:57 | FromDiscord | <dom96> I think we need some commercial offering for this though |
15:56:08 | FromDiscord | <dom96> and a cooler name than "nimfroum" 😛 |
15:56:45 | FromDiscord | <dom96> (edit) ""nimfroum"" => ""nimforum"" |
16:02:52 | FromDiscord | <brainproxy> when Status' Communities feature comes out of beta and the desktop client gets a bit more pleasant and better-performing, maybe this server can be bridged to an Nim community on that network, might even be a replacement one day. |
16:04:01 | FromDiscord | <zetashift> That would be very cool |
16:04:02 | FromDiscord | <dom96> https://media.discordapp.net/attachments/371759389889003532/843156778116186153/unknown.png |
16:04:18 | FromDiscord | <brainproxy> Communities is basically discord/slack-like features for Status: moderation can be performed by by community admins, and within a community you can have different channels. |
16:04:25 | FromDiscord | <dom96> I think there is actually more, Google Analytics seems to be failing a little |
16:04:52 | FromDiscord | <dom96> now at 35 |
16:05:34 | FromDiscord | <exelotl> does google analytics register at hit at all if someone visits with ublock or tracking protection enabled? |
16:05:43 | FromDiscord | <exelotl> (edit) "at" => "a" |
16:05:47 | FromDiscord | <dom96> nope, with ublock it won't see anything |
16:05:59 | FromDiscord | <dom96> so yeah, there is likely to be much more requests coming through |
16:06:07 | FromDiscord | <dom96> but GA is now showing 50 |
16:06:46 | FromDiscord | <haxscramper> `> It feels like a better Rust than Rust, and a better Go than Go` |
16:07:36 | FromDiscord | <exelotl> <:dabio_world:590671276251545608> |
16:07:41 | FromDiscord | <dom96> I wonder if one of the HN mods is a big fan and decided to remove the "thoughts" to hype up Nim more lol |
16:08:48 | FromDiscord | <Rika> In reply to @haxscramper "`> It feels like": LMAO |
16:09:07 | FromDiscord | <dom96> RuGo++ |
16:09:39 | FromDiscord | <zetashift> In reply to @haxscramper "`> It feels like": facts |
16:11:36 | FromDiscord | <exelotl> if I have a const string, is it possible to turn that into an ident without having to write a helper macro? |
16:11:53 | FromDiscord | <zetashift> https://github.com/sergiotapia/nimlings oh now this is cool |
16:14:18 | FromDiscord | <exelotl> sent a code paste, see https://play.nim-lang.org/#ix=3mU0 |
16:15:02 | FromDiscord | <exelotl> (assuming there's a variable called Title in scope, therefore this will compile) |
16:32:21 | * | Q-Master quit (Quit: Ушел) |
16:36:10 | * | Q-Master joined #nim |
16:38:47 | * | Q-Master quit (Client Quit) |
16:39:09 | * | Q-Master joined #nim |
16:45:50 | * | kenran quit (Quit: leaving) |
16:58:31 | FromDiscord | <Goat> Is there a way to evaluate code in a string like python's `eval()`? |
17:00:03 | FromDiscord | <haxscramper> https://stackoverflow.com/questions/65354096/how-to-evaluate-an-expression-in-nim |
17:00:13 | FromDiscord | <haxscramper> tldr - no |
17:00:19 | FromDiscord | <haxscramper> unless you want to use compiler API |
17:00:30 | FromDiscord | <haxscramper> in that case you can evaluate everything nimscript can run |
17:05:30 | FromGitter | <bung87> how to call c macro? |
17:06:07 | FromGitter | <bung87> ```NAPI_MODULE_INIT() { ⏎ return create_addon(`env`,`exports`) ⏎ }``` [https://gitter.im/nim-lang/Nim?at=609fff7f17d35f3d9fcb4646] |
17:10:51 | FromDiscord | <haxscramper> You can `{.emit.}` procedure body |
17:11:08 | FromDiscord | <haxscramper> And directly write C code inside emit |
17:11:14 | FromGitter | <bung87> I tried but it says cant find env exports |
17:12:02 | FromGitter | <bung87> `error: use of undeclared identifier 'env'` |
17:13:19 | FromGitter | <haxscramper> `NAPI_MODULE_INIT` declares `env` *on C side*? |
17:16:24 | FromGitter | <bung87> it calls `NAPI_MODULE_INITIALIZER(napi_env env, napi_value exports); ` inside it |
17:22:10 | FromGitter | <haxscramper> You can use variables declared on C side with emit. No need to use backticks. `{.emit: "return create_addon(env, exports)".}` should put *this exact string* in the generated C code |
17:22:25 | FromGitter | <haxscramper> When backticks are used `env` is interpolated from surrounding nim environment |
17:23:04 | FromGitter | <haxscramper> If you need to port the semantics of `NAPI_MODULE_INIT` from C to nim I guess it can't be done |
17:24:26 | FromGitter | <bung87> use this can emit exactly same code as c but I still got `error: use of undeclared identifier 'env'` |
17:26:58 | FromGitter | <haxscramper> Then I don't know. If you've put ```NAPI_MODULE_INIT() { return create_addon(env,exports) }``` in `.emit.` and it resulted in error then I guess something is wrong elsewhere |
17:33:52 | FromGitter | <bung87> any way, Thanks ! no idea now. |
17:36:53 | FromGitter | <haxscramper> TBH I'm not sure if I understood correctly what you are trying to do. Regular macros can be called with `.emit.` easily, but if you are supposed to use the macro *in C function head* this mostly depends on how you expect to use it in nim. |
17:47:16 | FromGitter | <bung87> am trying to compile nim to js napi , it will not call from nim , js will call dlopen use this lib. |
17:54:15 | FromDiscord | <PressF> https://www.youtube.com/watch?v=kHomZLUE6As↵@impbox [ftsf] is this you?↵This video is awesome. |
18:18:42 | FromDiscord | <Hi02Hi> hey, im dipping my toes into macros, is there a way to do `result.add quote do:` ? |
18:18:59 | FromDiscord | <Hi02Hi> instead of `result = quote do:` |
18:23:48 | FromDiscord | <Rika> have you tried it |
18:25:05 | FromDiscord | <Hi02Hi> it gave me Error: cannot add to node kind: nnkEmpty |
18:25:19 | FromDiscord | <exelotl> ah, you need to initialise result first |
18:25:54 | FromDiscord | <exelotl> sent a code paste, see https://play.nim-lang.org/#ix=3mUG |
18:25:57 | FromDiscord | <Hi02Hi> thx |
18:26:38 | FromDiscord | <Hi02Hi> i was thinking of initing, but i didn't know newStmtList() |
18:27:22 | ForumUpdaterBot | New post on r/nim by WrongJudgment6: Learn the Nim programming language by fixing tiny broken programs., see https://reddit.com/r/nim/comments/nd57it/learn_the_nim_programming_language_by_fixing_tiny/ |
18:34:08 | FromDiscord | <exelotl> sent a code paste, see https://play.nim-lang.org/#ix=3mUI |
18:34:49 | FromDiscord | <exelotl> sent a code paste, see https://play.nim-lang.org/#ix=3mUK |
18:43:56 | * | Gustavo6046 joined #nim |
19:08:17 | * | sixtyten quit (Quit: Leaving) |
19:08:59 | FromDiscord | <willyboar> nim 2.0 thoughts hits 10k views on one day |
19:09:35 | FromDiscord | <willyboar> basically in 12 hours |
19:10:34 | FromDiscord | <ElegantBeef> Was posted on hackernews and is front paged ;D |
19:11:51 | FromDiscord | <willyboar> this is cool |
19:12:04 | FromDiscord | <willyboar> i hope to reach 20k |
19:18:34 | * | xet7 quit (Read error: Connection reset by peer) |
19:19:56 | * | xet7 joined #nim |
19:23:19 | FromDiscord | <PressF> Hey people how does one convert an int to a string?↵like str(i) in python |
19:23:57 | FromDiscord | <dom96> !echo $42 |
19:24:08 | FromDiscord | <dom96> !eval echo $42 |
19:24:10 | NimBot | 42 |
19:24:19 | FromDiscord | <PressF> but doesn't that print it? |
19:24:27 | FromDiscord | <PressF> I just want to convert it |
19:24:28 | FromDiscord | <dom96> it's the `$` |
19:24:34 | FromDiscord | <PressF> ok thx |
19:25:34 | FromDiscord | <ElegantBeef> `$` is standard stringification operator |
20:12:25 | FromDiscord | <zidsal> I need to loop over a sequence, however if the sequence is empty I still need to loop once, in other languages I'd use a do while to solve this, is there a decent way to solve this in nim? |
20:14:17 | FromDiscord | <ajusa> In reply to @zidsal "I need to loop": https://rosettacode.org/wiki/Loops/Do-while#Nim |
20:14:27 | FromDiscord | <ajusa> Rosetta code has a lot of good examples for Nim |
20:14:47 | FromDiscord | <zidsal> thanks ajusa |
21:26:04 | * | azed joined #nim |
21:34:10 | ForumUpdaterBot | New thread by Adnan: Is it possible to call an iterator?, see https://forum.nim-lang.org/t/7986 |
21:37:00 | FromDiscord | <rk> Hello guys |
21:38:01 | FromDiscord | <ElegantBeef> Hello |
21:38:42 | FromDiscord | <rk> Is it possible to configure `emacs` in a sensible way to write in `nim`? |
21:38:57 | FromDiscord | <rk> I don't know if this is the right place for this question |
21:40:09 | FromDiscord | <ElegantBeef> I know some people use emacs, i dont know how the configure it, there is a LSP and also an emacs major mode |
21:40:13 | FromDiscord | <ElegantBeef> (edit) "the" => "they" |
21:41:06 | FromDiscord | <rk> I know it is https://github.com/PMunch/nimlsp |
21:41:12 | FromDiscord | <haxscramper> There is a nim-mode for emacs, https://github.com/nim-lang/nim-mode, but I personally haven't made any additional configurations on top of this. nimsuggest has some issues |
21:41:30 | FromDiscord | <haxscramper> that interact badly with emacs |
21:42:04 | FromDiscord | <rk> but I can't get it to work with `flycheck` |
21:42:51 | FromDiscord | <rk> Unfortunately, whatever I use, it does not show me any errors and I only find out during compilation ; ( |
21:43:11 | FromDiscord | <rk> for example, type errors |
21:43:18 | FromDiscord | <ElegantBeef> https://forum.nim-lang.org/t/7716#48967 might help |
21:44:16 | FromDiscord | <rk> Thanks, I'll check it out. |
21:45:03 | FromDiscord | <ElegantBeef> I've been trying out onivim2 and it's pretty snazzy(i know i know, Vim != Emacs) 😄 |
21:47:00 | FromDiscord | <rk> actually, i use evil anyway, i.e. vim inside emacs, but i would still prefer to stay inside emacs |
21:47:58 | FromDiscord | <haxscramper> I tried doom once, and it has everything working with zero configuration |
21:48:21 | FromDiscord | <haxscramper> Still haven't switched, but flycheck worked, code runner executed with no problem etc. |
21:53:42 | FromDiscord | <rk> I have now played the vscode, maybe I am asking too much? As I can see, it doesn't highlight type errors either. |
21:55:31 | FromDiscord | <ElegantBeef> It should |
21:56:27 | FromDiscord | <ElegantBeef> Presently you have to save the file for the linting to kick in |
21:56:51 | FromDiscord | <ElegantBeef> But with the package errorlens https://media.discordapp.net/attachments/371759389889003532/843245565700734976/unknown.png |
21:57:28 | FromDiscord | <ElegantBeef> error lens + nimsaem's nim package |
22:00:15 | FromDiscord | <rk> well, it doesn't look that way to me, and I wish it did. |
22:00:36 | FromDiscord | <ElegantBeef> Well get the nimsaem extension and the errorlens extension |
22:01:12 | FromDiscord | <rk> https://media.discordapp.net/attachments/371759389889003532/843246660528111637/2021-05-16-000109_grim.png |
22:01:25 | FromDiscord | <ElegantBeef> What nim extension do you have? |
22:01:42 | FromDiscord | <ElegantBeef> Also it seems you didnt open the folder |
22:01:52 | FromDiscord | <rk> `@ext:nimsaem.nimvscode` |
22:02:01 | FromDiscord | <ElegantBeef> open the `nim` folder using vscode |
22:02:05 | FromDiscord | <zetashift> In reply to @rk "actually, i use evil": https://github.com/hlissner/doom-emacs/tree/develop/modules/lang/nim might have some hints |
22:02:08 | FromDiscord | <ElegantBeef> Vscode doesnt play overly well when opening single files |
22:02:08 | FromDiscord | <zetashift> it worked fine for me |
22:02:20 | * | Vladar quit (Quit: Leaving) |
22:02:24 | FromDiscord | <zetashift> it's still not as nice as vscode tho |
22:02:36 | FromDiscord | <ElegantBeef> It's zeta! Side note can you repoduce that autocomplete thing with onivim? |
22:02:42 | FromDiscord | <ElegantBeef> (edit) "repoduce" => "reproduce" |
22:02:51 | * | JStoker quit (Ping timeout: 260 seconds) |
22:02:58 | FromDiscord | <ElegantBeef> the `let a = ope` turing into `let a = oopen` |
22:03:05 | FromDiscord | <zetashift> Imma try now |
22:03:08 | FromDiscord | <rk> https://media.discordapp.net/attachments/371759389889003532/843247145146646578/2021-05-16-000301_grim.png |
22:03:12 | FromDiscord | <zetashift> Haven't used oni in a while 😛 |
22:03:24 | FromDiscord | <rk> after opening folder it works ; ) |
22:03:30 | FromDiscord | <ElegantBeef> nice |
22:03:53 | FromDiscord | <ElegantBeef> I had issues building it aswell zeta, but eventually got it working |
22:04:44 | FromDiscord | <rk> @zetashift I just use doom-emacs on a daily basis, but the "nim" configuration is either outdated or I've messed something up because it doesn't work for me |
22:05:36 | FromDiscord | <zetashift> In reply to @ElegantBeef "I had issues building": I swear OCaml/ReasonML build system is so hard compared to nimble |
22:05:50 | FromDiscord | <rk> autocomplete or go to definition works, but linter does not |
22:05:50 | FromDiscord | <zetashift> it has become an amalgamation of npm and dune |
22:05:54 | FromDiscord | <ElegantBeef> I mean relying on NPM is just.... ugh |
22:06:10 | FromDiscord | <ElegantBeef> In reply to @rk "autocomplete or go to": Enable autosaving and it should work |
22:06:21 | FromDiscord | <ElegantBeef> Presently it doesnt send the dirty buffer in, it sends the saved file |
22:06:45 | FromDiscord | <zetashift> In reply to @rk "autocomplete or go to": I wish I could help, I don't use Doom anymore :(, and the nim module always worked "just enough" |
22:07:22 | FromDiscord | <rk> Thanks for your willingness, I'll probably figure it out somehow. |
22:09:47 | FromDiscord | <zetashift> In reply to @ElegantBeef "the `let a =": can reproduce yes, but it's a bit finnicky? |
22:10:10 | FromDiscord | <zetashift> as in if I type `open` backspace 1 letter and still autocomplete on open it works? |
22:10:18 | FromDiscord | <ElegantBeef> It's pretty much any case where you had the popup before and you ignore it you can get the issue |
22:10:45 | FromDiscord | <ElegantBeef> but yea it's the easiest repro i found |
22:11:13 | FromDiscord | <ElegantBeef> Devs know about it so let's hope fix it soon, i was impressed with the disabling tab on autocomplete |
22:11:40 | FromDiscord | <ElegantBeef> Complained about it, got pinged with a PR then was merged by the time i seen the PR 😛 |
22:12:07 | FromDiscord | <zetashift> you don't use tab for scrolling through autocomplete? |
22:12:17 | FromDiscord | <ElegantBeef> Nope |
22:12:17 | * | JStoker joined #nim |
22:12:37 | FromDiscord | <ElegantBeef> i use enter for autocomplete and arrows to select, any otherway means autocomplete is in my way |
22:13:29 | FromDiscord | <zetashift> well gotta give it to bryphe |
22:13:37 | FromDiscord | <zetashift> he is doing awesome work and the UI is super snappy |
22:13:43 | FromDiscord | <ElegantBeef> Indeed |
22:14:13 | FromDiscord | <zetashift> but damn I wish it was easier to contribute cause it's mostly him |
22:18:35 | FromDiscord | <zetashift> but once markdown renders probably I'm switching full time to oni haha |
22:18:59 | FromDiscord | <ElegantBeef> The terminal not functioning properly is a big issue for me |
22:19:14 | FromDiscord | <ElegantBeef> Writing macros and only seeing have the proper AST or not seeing an error message |
22:19:25 | FromDiscord | <ElegantBeef> (edit) "have" => "half" |
22:20:01 | FromDiscord | <ElegantBeef> https://github.com/onivim/oni2/issues/2406#issuecomment-841716594 If curious what that looks like |
22:20:23 | FromDiscord | <zetashift> heeeyyy regolith user, mah man |
22:20:57 | FromDiscord | <ElegantBeef> Yea i've shilled it a bit and got some other users since they like i3wm but dont like setting it up 😄 |
22:22:10 | FromDiscord | <zetashift> only reason why I used it too :P, really can't be bothered anymore with setting things up |
22:23:28 | FromDiscord | <ElegantBeef> Yea it's got nice defaults, no intrusive notifications and ships with rofi |
22:25:07 | FromDiscord | <zetashift> I've switched over to Pop_Os and it's tiling mode for now, because godot engine because regolith broke some things, but I'll probably get back to it on my next pc |
22:30:39 | * | whitefly quit (Remote host closed the connection) |
22:41:46 | FromDiscord | <zetashift> treeform mentions in the 2.0 thread `Have the language create an automatic constructor based on the members of the object. Most of my constructors just copy the order and set the members.` it reminds me of your `constructor` lib ElegantBeef, I'm wondering if it might be a good idea for an RFC |
22:42:21 | FromDiscord | <zetashift> mhmhm maybe it's just fine the current way |
22:49:23 | * | gmaggior joined #nim |
22:51:22 | FromDiscord | <ElegantBeef> I think `defaults` is a fine macro that could see it's way into the stdlib |
22:51:46 | FromDiscord | <ElegantBeef> Or even become a language feature |
22:52:05 | FromDiscord | <ElegantBeef> If havent seen https://github.com/beef331/constructor#defaults |
22:52:38 | FromDiscord | <ElegantBeef> It's idiomatic and reads easily, just need it to override default constructors |
22:53:42 | FromDiscord | <zetashift> oooohh sweet |
23:02:35 | FromDiscord | <impbox [ftsf]> In reply to @PressF "https://www.youtube.com/watch?v=kHomZLUE6As <@!3099": Yep |
23:04:52 | FromDiscord | <ElegantBeef> Have you thought about doing a rewrite with the imgui, or is it used there? |
23:21:39 | * | gmaggior quit (Quit: Leaving) |