<< 24-09-2024 >>

00:09:02*beholders_eye quit (Read error: Connection reset by peer)
00:14:48*beholders_eye joined #nim
00:22:57*beholders_eye quit (Ping timeout: 246 seconds)
00:58:03FromDiscord<arathanis> Setting the verbosity hides compiler issues, specfically `--hintAsError:XDeclaredButNotUsed:on`
00:58:23FromDiscord<arathanis> It fails as you would expect unless you do `--verbosity:N` where N can be any valid value, doesn't matter which
02:09:42*Jhonny2x4 quit (Ping timeout: 244 seconds)
02:11:51*Jhonny2x4 joined #nim
02:43:38FromDiscord<Nlits (Ping on reply)> I currently have a linear search through a array of booleans, looking for the position of the first false. Idk why but it seems like there would be a more efficient method than a linear search in this situation. Is there one and can it be applied in nin?
02:56:21FromDiscord<Elegantbeef> Nope but you could use simd
03:29:51*Onionhammer quit (Ping timeout: 272 seconds)
03:50:41FromDiscord<treeform> You could pack your booleans into a bit array. Searching would be faster, but I found updating is slower. I ended up using a normal seq[bool] in the end. simd could probably make it faster.
03:51:11FromDiscord<Elegantbeef> You also could use bit ops with int64s to pretend simd
03:53:33FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=AtDwcIwf
03:53:36FromDiscord<Elegantbeef> Whoops
03:53:59FromDiscord<Elegantbeef> should be `0..8` forgot we did not bitpack it
03:54:07FromDiscord<Elegantbeef> well `<8`
03:54:31FromDiscord<Elegantbeef> \Which of course it means it should be `shr 8`
03:55:49*SchweinDeBurg joined #nim
04:38:09*SchweinDeBurg quit (Ping timeout: 252 seconds)
04:40:02*SchweinDeBurg joined #nim
05:30:45*ntat joined #nim
05:33:58FromDiscord<basilajith> sent a code paste, see https://play.nim-lang.org/#pasty=QDcYGesU
05:34:24FromDiscord<Elegantbeef> `replace`
05:35:09FromDiscord<basilajith> I can chain for replacing right?↵↵`strip(arg1, arg2...).replace(arg1, arg2...)`
05:35:56FromDiscord<basilajith> Btw, is my code correct in passing the tab character?
05:36:26FromDiscord<Elegantbeef> No clue I did not look up the symbol i'd just use `\t`
05:37:01FromDiscord<basilajith> Oh, okay.
05:37:15FromDiscord<Elegantbeef> You can just do `stmt.replace("\t")` if you do not want any tabs
05:37:34FromDiscord<basilajith> 👎🏼
05:37:44FromDiscord<basilajith> 👍🏼
05:37:55FromDiscord<Elegantbeef> Otherwise you can use `strip` for just removing the front or ending
05:38:24FromDiscord<basilajith> Oh, okay. Got it!
06:35:30*PMunch joined #nim
06:38:42*ntat quit (Quit: Leaving)
06:56:39*ntat joined #nim
07:17:15*coldfeet joined #nim
07:50:33*mfg joined #nim
07:56:42*mfg quit (Quit: Lost terminal)
08:43:34*ntat quit (Quit: Leaving)
10:01:42FromDiscord<blashyrk> sent a code paste, see https://play.nim-lang.org/#pasty=ybEwncID
10:02:23FromDiscord<Robyn [She/Her]> add a \`discard\` to the body and you should be fine↵(@blashyrk)
10:05:13FromDiscord<blashyrk> Doesn't work 😦 I still get "implementation of 'my_generated_template' is not allowed"
10:11:30FromDiscord<blashyrk> sent a code paste, see https://play.nim-lang.org/#pasty=JHznoyHy
10:12:00*xet7 quit (Ping timeout: 272 seconds)
10:13:36FromDiscord<Robyn [She/Her]> ah glad you got it working then
10:16:57Deadm0thHave nim some good extension for vsc ?
10:18:29FromDiscord<nnsee> In reply to @Deadm0th "Have nim some good": the official one is acceptable
10:18:43FromDiscord<nnsee> maybe calling it "good" would be a bit of a stretch but it works
10:18:46FromDiscord<nnsee> ... mostly
10:24:17*xet7 joined #nim
10:30:01FromDiscord<ieltan> Only thing that works reliably for me is syntax highlighting and build on save. The rest sorta works for like 5 seconds and then nimsuggest or langserver crashes
10:32:56FromDiscord<Phil> Yeeeeeh nimsuggest tends to have odd edgecases here and there.↵Ironically, typescript doesn't work much better for me lately. Ever since I started react native I had to constantly restart the damn lang server because it shows wrong shit so much.↵So I guess nimsuggest isn't that much worse then state-of-the-art stuff
10:33:13FromDiscord<Phil> (edit) "there.↵Ironically," => "there, which is why I rely on compilation errors more than nimsuggest errors.↵Ironically,"
10:37:56*beholders_eye joined #nim
11:04:46FromDiscord<nnsee> speak of the devil
11:04:47FromDiscord<nnsee> https://forum.nim-lang.org/t/12525#77083
11:34:20*beholders_eye quit (Ping timeout: 252 seconds)
11:36:26FromDiscord<enthus1ast.> In a webapp, a user can change a timestamp (DateTime) via the browser.↵What is your opinion on Timezones. I would like to store the Timestamp in UTC in the servers database, then have a timezone entry in the users table, then who should be responsible for displaying the local time, either the server transforms all the timestamps to the users localtime, or the browser
11:36:55FromDiscord<enthus1ast.> so where should i do the translation to localtime
11:39:03FromDiscord<enthus1ast.> i think it has a reason that the DateTime html input is only datetime-local, not utc any more
12:24:49FromDiscord<enthus1ast.> or is store them as a timestamp (as float) and use for example treeform/chrono to transform them in the browser
12:46:37*ntat joined #nim
13:01:29*ntat quit (Quit: Leaving)
13:05:15*xet7 quit (Remote host closed the connection)
13:33:31*lucasta joined #nim
13:37:54*lumidify quit (Ping timeout: 252 seconds)
13:38:10*lumidify joined #nim
13:45:28FromDiscord<majortrips1763> @jviega there is apparently an open request for an expect lib: https://github.com/nim-lang/needed-libraries/issues/111
13:46:42FromDiscord<jviega> Hadn't seen that, thanks!
14:07:39*PMunch quit (Quit: Leaving)
14:16:19*beholders_eye joined #nim
14:21:05*mahlon quit (Ping timeout: 248 seconds)
14:29:36*mahlon joined #nim
14:33:50*coldfeet quit (Remote host closed the connection)
14:36:14*jjido joined #nim
14:42:05*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
14:42:50*ryuukk quit (Remote host closed the connection)
14:44:29*ryuukk joined #nim
14:48:53*ryuukk quit (Ping timeout: 248 seconds)
14:49:14*ryuukk joined #nim
15:28:25*ntat joined #nim
16:12:09*lucasta quit (Quit: Leaving)
16:41:14*coldfeet joined #nim
16:51:40*ryuukk_ joined #nim
16:53:42*ryuukk quit (Ping timeout: 252 seconds)
17:13:34*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
17:13:45*jjido joined #nim
17:26:25*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
17:27:34*ntat quit (Quit: Leaving)
18:19:02*ryuukk_ quit (Ping timeout: 255 seconds)
18:19:16*ryuukk joined #nim
18:19:25*xet7 joined #nim
18:28:57*coldfeet quit (Remote host closed the connection)
19:10:24*coldfeet joined #nim
19:25:41*jjido joined #nim
19:53:36*krux02 joined #nim
20:21:40*coldfeet quit (Remote host closed the connection)
20:32:06*disso-peach joined #nim
21:14:32*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
21:21:36*Onionhammer joined #nim
21:23:54*Onionhammer quit (Client Quit)
21:29:40*rockcavera joined #nim
21:41:55*beholders_eye quit (Read error: Connection reset by peer)
21:47:58*beholders_eye joined #nim
22:06:07*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
22:08:19*beholders_eye quit (Ping timeout: 260 seconds)
22:09:35*Lord_Nightmare joined #nim
23:03:12*nyeaa49284230101 quit (Quit: The Lounge - https://thelounge.chat)