<< 15-05-2021 >>

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:23kinkinkijkinim 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:13FromDiscord<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:35kinkinkijkinah
00:58:51FromDiscord<ElegantBeef> It's a functional programming "pure" function
00:59:02kinkinkijkinyeah understood
00:59:22FromDiscord<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:26kinkinkijkinmost explanations stop at "func is a procedure with no side effect"
01:00:29FromDiscord<ElegantBeef> Ah guess someone needs a PR to expand the definition 😄
01:18:31FromDiscord<garett> Is `uint` in Nim like `size_t` in C?
01:22:43FromDiscord<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:45FromDiscord<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:26ForumUpdaterBotNew 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:25ForumUpdaterBotNew thread by Araq: Nim 2.0 -- thoughts, see https://forum.nim-lang.org/t/7983
07:04:28*Vladar joined #nim
07:07:26ForumUpdaterBotNew 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:29ForumUpdaterBotNew 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:55FromGitter<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:33narimiranTwo more days to register for NimConf 2021! More details here: https://forum.nim-lang.org/t/7863
10:49:07federico3narimiran: when is NimConf tho?
10:56:31narimiran"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:43FromDiscord<carpal> checking for dividing by zero at compile time?
12:02:57FromDiscord<carpal> it seems not to throw any error <https://play.nim-lang.org/#ix=3mSr>
12:06:04*narimiran quit (Quit: leaving)
12:09:57FromDiscord<IDF(ardek66)> !eval echo 1 / 0
12:10:00NimBotinf
12:14:23FromDiscord<Rika> !eval import fenv; echo 1/0
12:14:27NimBotinf
12:14:59FromDiscord<Rika> eh idk how fenv works
12:15:28FromDiscord<IDF(ardek66)> https://play.nim-lang.org/#ix=3mSy↵you can use this but it only works with floats
12:16:23FromDiscord<IDF(ardek66)> and `div` for integers already checks for division by 0
12:17:16FromDiscord<IDF(ardek66)> !eval let x = 1; let y = 0; echo x div y
12:17:18NimBot/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:08Oddmongeris it possible to define an enum which will be used with the « cint » type
12:35:16Oddmongermaybe i'm asking much
12:35:43FromDiscord<Rika> wdym
12:35:58FromGitter<bung87> you first filed a = 1.cint
12:36:02Oddmongeri have : type pads = pad1,pad2,pad3,pad4
12:36:42Oddmongeri mean : type pads = enum pad1,pad2,pad3,pad4
12:36:54Oddmongerbut the function awaits for a cint
12:37:14Oddmongerso it's ok when i write pad1.cint, of course but it's ugly
12:37:26FromGitter<bung87> type pads = enum pad1 =0.cint,pad3,pad4
12:37:28Oddmongermaybe a const cint for this one
12:37:34Oddmongerohhh
12:38:03*a_chou joined #nim
12:38:05Oddmongernice! didn't hope i could give the type to an enum (which by definition has no type)
12:38:12FromGitter<bung87> convert padsconvert(p: pads): cint = cint(p)
12:39:03FromGitter<bung87> well in enum field could have any type , no like in others language just int
12:42:06FromDiscord<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:46ForumUpdaterBotNew 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:50FromDiscord<zae.> i am the rightful leader of this server, praise me
14:14:10voidpipraise oh lord of that moronic service
14:16:06*casaca joined #nim
14:24:40*kenran joined #nim
14:27:29Oddmongercan i declare an identifier in a if defined(…) block, and use it outside ? (if i have an «else» for covering all cases)
14:30:01nphg1Oddmonger: No, an `if`starts a new scope. But I think `when defined(…)` will work
14:30:59Oddmongertrue, thank you nphg1
14:52:49*leorize quit (Quit: WeeChat 3.0)
14:54:27FromGitter<bung87> how to wrap c macro, see https://play.nim-lang.org/#ix=3mTd
14:55:07FromGitter<bung87> env,exports not available compile time
14:55:16FromDiscord<zetashift> Huh Nim just got to #2 of HN...
14:57:49FromDiscord<Rika> what why
14:58:52FromDiscord<haxscramper> nim 2.0 post
15:03:33FromDiscord<zetashift> It's such a clickbaity title too haha
15:04:08FromDiscord<haxscramper> yes, `Nim 2.0 -- thoughts` converted to `Nim 2.0` is too much
15:04:54FromDiscord<haxscramper> It is not really wrong, but considering this is not even an announcement but more like a focused discussion prompt
15:11:49FromDiscord<zetashift> I wonder why even submit it, but hey more exposure is great
15:11:56FromDiscord<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:15FromDiscord<ajusa> #1 post for me now, the title is so misleading
15:21:34FromDiscord<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:43FromDiscord<ajusa> Especially since the domain shows as nim-lang.com rather than forum.nim-lang.com
15:22:03FromDiscord<ajusa> (edit) "nim-lang.com" => "nim-lang.org" | "forum.nim-lang.com" => "forum.nim-lang.org"
15:22:10FromDiscord<brainproxy> yeah, that makes it worse
15:22:16FromDiscord<brainproxy> In reply to @ajusa "Especially since the domain": yeah, that makes it worse
15:24:41FromDiscord<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:05FromDiscord<brainproxy> (edit) "changed," => "changed it,"
15:25:13FromDiscord<ajusa> Ah yeah, that's not your fault that's an HN editor maybe not reading through the actual link
15:28:24FromDiscord<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:55FromGitter<BracketMaster> Pretty cool Nim's on top of HN - for now... ⏎ Always felt like Rust was hogging the spotlight
15:43:30FromDiscord<Rika> why do you think most people call it a rust cesspool or w/e
15:45:19FromGitter<BracketMaster> Never heard "rust cesspool before'
15:45:33FromGitter<BracketMaster> also what's "w/e"?
15:47:06FromDiscord<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:09FromDiscord<brainproxy> Zig seems to be popular with HNers too
15:48:13FromDiscord<zetashift> It couldn't be a Nim thread on HN/reddit/wherever without case and style-insensitivity bikeshedding
15:48:16FromDiscord<brainproxy> Nim definitely gets less spotlight
15:48:28FromDiscord<brainproxy> but is frequently mentioned in HN posts discussing pro langs
15:48:34FromDiscord<brainproxy> (edit) "pro" => "prog"
15:49:01FromDiscord<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:18FromDiscord<zetashift> comptime is coolt ho
15:52:04FromDiscord<dom96> oh cool, Nim forum on HN front page
15:52:29FromDiscord<dom96> Doing pretty well for a sqlite forum 🙂
15:54:40FromDiscord<zetashift> the thread got like 3k views in an hour jeez
15:54:52FromDiscord<zetashift> In reply to @dom96 "Doing pretty well for": Discourse better watch out
15:55:42FromDiscord<dom96> indeed, the idea was always to compete with Discourse
15:55:57FromDiscord<dom96> I think we need some commercial offering for this though
15:56:08FromDiscord<dom96> and a cooler name than "nimfroum" 😛
15:56:45FromDiscord<dom96> (edit) ""nimfroum"" => ""nimforum""
16:02:52FromDiscord<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:01FromDiscord<zetashift> That would be very cool
16:04:02FromDiscord<dom96> https://media.discordapp.net/attachments/371759389889003532/843156778116186153/unknown.png
16:04:18FromDiscord<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:25FromDiscord<dom96> I think there is actually more, Google Analytics seems to be failing a little
16:04:52FromDiscord<dom96> now at 35
16:05:34FromDiscord<exelotl> does google analytics register at hit at all if someone visits with ublock or tracking protection enabled?
16:05:43FromDiscord<exelotl> (edit) "at" => "a"
16:05:47FromDiscord<dom96> nope, with ublock it won't see anything
16:05:59FromDiscord<dom96> so yeah, there is likely to be much more requests coming through
16:06:07FromDiscord<dom96> but GA is now showing 50
16:06:46FromDiscord<haxscramper> `> It feels like a better Rust than Rust, and a better Go than Go`
16:07:36FromDiscord<exelotl> <:dabio_world:590671276251545608>
16:07:41FromDiscord<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:48FromDiscord<Rika> In reply to @haxscramper "`> It feels like": LMAO
16:09:07FromDiscord<dom96> RuGo++
16:09:39FromDiscord<zetashift> In reply to @haxscramper "`> It feels like": facts
16:11:36FromDiscord<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:53FromDiscord<zetashift> https://github.com/sergiotapia/nimlings oh now this is cool
16:14:18FromDiscord<exelotl> sent a code paste, see https://play.nim-lang.org/#ix=3mU0
16:15:02FromDiscord<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:31FromDiscord<Goat> Is there a way to evaluate code in a string like python's `eval()`?
17:00:03FromDiscord<haxscramper> https://stackoverflow.com/questions/65354096/how-to-evaluate-an-expression-in-nim
17:00:13FromDiscord<haxscramper> tldr - no
17:00:19FromDiscord<haxscramper> unless you want to use compiler API
17:00:30FromDiscord<haxscramper> in that case you can evaluate everything nimscript can run
17:05:30FromGitter<bung87> how to call c macro?
17:06:07FromGitter<bung87> ```NAPI_MODULE_INIT() { ⏎ return create_addon(`env`,`exports`) ⏎ }``` [https://gitter.im/nim-lang/Nim?at=609fff7f17d35f3d9fcb4646]
17:10:51FromDiscord<haxscramper> You can `{.emit.}` procedure body
17:11:08FromDiscord<haxscramper> And directly write C code inside emit
17:11:14FromGitter<bung87> I tried but it says cant find env exports
17:12:02FromGitter<bung87> `error: use of undeclared identifier 'env'`
17:13:19FromGitter<haxscramper> `NAPI_MODULE_INIT` declares `env` *on C side*?
17:16:24FromGitter<bung87> it calls `NAPI_MODULE_INITIALIZER(napi_env env, napi_value exports); ` inside it
17:22:10FromGitter<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:25FromGitter<haxscramper> When backticks are used `env` is interpolated from surrounding nim environment
17:23:04FromGitter<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:26FromGitter<bung87> use this can emit exactly same code as c but I still got `error: use of undeclared identifier 'env'`
17:26:58FromGitter<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:52FromGitter<bung87> any way, Thanks ! no idea now.
17:36:53FromGitter<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:16FromGitter<bung87> am trying to compile nim to js napi , it will not call from nim , js will call dlopen use this lib.
17:54:15FromDiscord<PressF> https://www.youtube.com/watch?v=kHomZLUE6As↵@impbox [ftsf] is this you?↵This video is awesome.
18:18:42FromDiscord<Hi02Hi> hey, im dipping my toes into macros, is there a way to do `result.add quote do:` ?
18:18:59FromDiscord<Hi02Hi> instead of `result = quote do:`
18:23:48FromDiscord<Rika> have you tried it
18:25:05FromDiscord<Hi02Hi> it gave me Error: cannot add to node kind: nnkEmpty
18:25:19FromDiscord<exelotl> ah, you need to initialise result first
18:25:54FromDiscord<exelotl> sent a code paste, see https://play.nim-lang.org/#ix=3mUG
18:25:57FromDiscord<Hi02Hi> thx
18:26:38FromDiscord<Hi02Hi> i was thinking of initing, but i didn't know newStmtList()
18:27:22ForumUpdaterBotNew 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:08FromDiscord<exelotl> sent a code paste, see https://play.nim-lang.org/#ix=3mUI
18:34:49FromDiscord<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:59FromDiscord<willyboar> nim 2.0 thoughts hits 10k views on one day
19:09:35FromDiscord<willyboar> basically in 12 hours
19:10:34FromDiscord<ElegantBeef> Was posted on hackernews and is front paged ;D
19:11:51FromDiscord<willyboar> this is cool
19:12:04FromDiscord<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:19FromDiscord<PressF> Hey people how does one convert an int to a string?↵like str(i) in python
19:23:57FromDiscord<dom96> !echo $42
19:24:08FromDiscord<dom96> !eval echo $42
19:24:10NimBot42
19:24:19FromDiscord<PressF> but doesn't that print it?
19:24:27FromDiscord<PressF> I just want to convert it
19:24:28FromDiscord<dom96> it's the `$`
19:24:34FromDiscord<PressF> ok thx
19:25:34FromDiscord<ElegantBeef> `$` is standard stringification operator
20:12:25FromDiscord<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:17FromDiscord<ajusa> In reply to @zidsal "I need to loop": https://rosettacode.org/wiki/Loops/Do-while#Nim
20:14:27FromDiscord<ajusa> Rosetta code has a lot of good examples for Nim
20:14:47FromDiscord<zidsal> thanks ajusa
21:26:04*azed joined #nim
21:34:10ForumUpdaterBotNew thread by Adnan: Is it possible to call an iterator?, see https://forum.nim-lang.org/t/7986
21:37:00FromDiscord<rk> Hello guys
21:38:01FromDiscord<ElegantBeef> Hello
21:38:42FromDiscord<rk> Is it possible to configure `emacs` in a sensible way to write in `nim`?
21:38:57FromDiscord<rk> I don't know if this is the right place for this question
21:40:09FromDiscord<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:13FromDiscord<ElegantBeef> (edit) "the" => "they"
21:41:06FromDiscord<rk> I know it is https://github.com/PMunch/nimlsp
21:41:12FromDiscord<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:30FromDiscord<haxscramper> that interact badly with emacs
21:42:04FromDiscord<rk> but I can't get it to work with `flycheck`
21:42:51FromDiscord<rk> Unfortunately, whatever I use, it does not show me any errors and I only find out during compilation ; (
21:43:11FromDiscord<rk> for example, type errors
21:43:18FromDiscord<ElegantBeef> https://forum.nim-lang.org/t/7716#48967 might help
21:44:16FromDiscord<rk> Thanks, I'll check it out.
21:45:03FromDiscord<ElegantBeef> I've been trying out onivim2 and it's pretty snazzy(i know i know, Vim != Emacs) 😄
21:47:00FromDiscord<rk> actually, i use evil anyway, i.e. vim inside emacs, but i would still prefer to stay inside emacs
21:47:58FromDiscord<haxscramper> I tried doom once, and it has everything working with zero configuration
21:48:21FromDiscord<haxscramper> Still haven't switched, but flycheck worked, code runner executed with no problem etc.
21:53:42FromDiscord<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:31FromDiscord<ElegantBeef> It should
21:56:27FromDiscord<ElegantBeef> Presently you have to save the file for the linting to kick in
21:56:51FromDiscord<ElegantBeef> But with the package errorlens https://media.discordapp.net/attachments/371759389889003532/843245565700734976/unknown.png
21:57:28FromDiscord<ElegantBeef> error lens + nimsaem's nim package
22:00:15FromDiscord<rk> well, it doesn't look that way to me, and I wish it did.
22:00:36FromDiscord<ElegantBeef> Well get the nimsaem extension and the errorlens extension
22:01:12FromDiscord<rk> https://media.discordapp.net/attachments/371759389889003532/843246660528111637/2021-05-16-000109_grim.png
22:01:25FromDiscord<ElegantBeef> What nim extension do you have?
22:01:42FromDiscord<ElegantBeef> Also it seems you didnt open the folder
22:01:52FromDiscord<rk> `@ext:nimsaem.nimvscode`
22:02:01FromDiscord<ElegantBeef> open the `nim` folder using vscode
22:02:05FromDiscord<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:08FromDiscord<ElegantBeef> Vscode doesnt play overly well when opening single files
22:02:08FromDiscord<zetashift> it worked fine for me
22:02:20*Vladar quit (Quit: Leaving)
22:02:24FromDiscord<zetashift> it's still not as nice as vscode tho
22:02:36FromDiscord<ElegantBeef> It's zeta! Side note can you repoduce that autocomplete thing with onivim?
22:02:42FromDiscord<ElegantBeef> (edit) "repoduce" => "reproduce"
22:02:51*JStoker quit (Ping timeout: 260 seconds)
22:02:58FromDiscord<ElegantBeef> the `let a = ope` turing into `let a = oopen`
22:03:05FromDiscord<zetashift> Imma try now
22:03:08FromDiscord<rk> https://media.discordapp.net/attachments/371759389889003532/843247145146646578/2021-05-16-000301_grim.png
22:03:12FromDiscord<zetashift> Haven't used oni in a while 😛
22:03:24FromDiscord<rk> after opening folder it works ; )
22:03:30FromDiscord<ElegantBeef> nice
22:03:53FromDiscord<ElegantBeef> I had issues building it aswell zeta, but eventually got it working
22:04:44FromDiscord<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:36FromDiscord<zetashift> In reply to @ElegantBeef "I had issues building": I swear OCaml/ReasonML build system is so hard compared to nimble
22:05:50FromDiscord<rk> autocomplete or go to definition works, but linter does not
22:05:50FromDiscord<zetashift> it has become an amalgamation of npm and dune
22:05:54FromDiscord<ElegantBeef> I mean relying on NPM is just.... ugh
22:06:10FromDiscord<ElegantBeef> In reply to @rk "autocomplete or go to": Enable autosaving and it should work
22:06:21FromDiscord<ElegantBeef> Presently it doesnt send the dirty buffer in, it sends the saved file
22:06:45FromDiscord<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:22FromDiscord<rk> Thanks for your willingness, I'll probably figure it out somehow.
22:09:47FromDiscord<zetashift> In reply to @ElegantBeef "the `let a =": can reproduce yes, but it's a bit finnicky?
22:10:10FromDiscord<zetashift> as in if I type `open` backspace 1 letter and still autocomplete on open it works?
22:10:18FromDiscord<ElegantBeef> It's pretty much any case where you had the popup before and you ignore it you can get the issue
22:10:45FromDiscord<ElegantBeef> but yea it's the easiest repro i found
22:11:13FromDiscord<ElegantBeef> Devs know about it so let's hope fix it soon, i was impressed with the disabling tab on autocomplete
22:11:40FromDiscord<ElegantBeef> Complained about it, got pinged with a PR then was merged by the time i seen the PR 😛
22:12:07FromDiscord<zetashift> you don't use tab for scrolling through autocomplete?
22:12:17FromDiscord<ElegantBeef> Nope
22:12:17*JStoker joined #nim
22:12:37FromDiscord<ElegantBeef> i use enter for autocomplete and arrows to select, any otherway means autocomplete is in my way
22:13:29FromDiscord<zetashift> well gotta give it to bryphe
22:13:37FromDiscord<zetashift> he is doing awesome work and the UI is super snappy
22:13:43FromDiscord<ElegantBeef> Indeed
22:14:13FromDiscord<zetashift> but damn I wish it was easier to contribute cause it's mostly him
22:18:35FromDiscord<zetashift> but once markdown renders probably I'm switching full time to oni haha
22:18:59FromDiscord<ElegantBeef> The terminal not functioning properly is a big issue for me
22:19:14FromDiscord<ElegantBeef> Writing macros and only seeing have the proper AST or not seeing an error message
22:19:25FromDiscord<ElegantBeef> (edit) "have" => "half"
22:20:01FromDiscord<ElegantBeef> https://github.com/onivim/oni2/issues/2406#issuecomment-841716594 If curious what that looks like
22:20:23FromDiscord<zetashift> heeeyyy regolith user, mah man
22:20:57FromDiscord<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:10FromDiscord<zetashift> only reason why I used it too :P, really can't be bothered anymore with setting things up
22:23:28FromDiscord<ElegantBeef> Yea it's got nice defaults, no intrusive notifications and ships with rofi
22:25:07FromDiscord<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:46FromDiscord<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:21FromDiscord<zetashift> mhmhm maybe it's just fine the current way
22:49:23*gmaggior joined #nim
22:51:22FromDiscord<ElegantBeef> I think `defaults` is a fine macro that could see it's way into the stdlib
22:51:46FromDiscord<ElegantBeef> Or even become a language feature
22:52:05FromDiscord<ElegantBeef> If havent seen https://github.com/beef331/constructor#defaults
22:52:38FromDiscord<ElegantBeef> It's idiomatic and reads easily, just need it to override default constructors
22:53:42FromDiscord<zetashift> oooohh sweet
23:02:35FromDiscord<impbox [ftsf]> In reply to @PressF "https://www.youtube.com/watch?v=kHomZLUE6As <@!3099": Yep
23:04:52FromDiscord<ElegantBeef> Have you thought about doing a rewrite with the imgui, or is it used there?
23:21:39*gmaggior quit (Quit: Leaving)