<< 07-09-2024 >>

00:30:53FromDiscord<albassort> sent a code paste, see https://play.nim-lang.org/#pasty=fZxsQNQb
00:30:55FromDiscord<albassort> i need a beef raiting
00:31:01FromDiscord<albassort> (edit) "raiting" => "rating"
00:31:21FromDiscord<albassort> im not sure how portable this is, i tried to simply pad the event to work in all cases
00:31:34FromDiscord<albassort> only the bottom 2 values are non-corrupted i think
00:31:40FromDiscord<albassort> which are the only ones i need
00:31:44FromDiscord<albassort> (edit) "which are the only ones i need ... " added ":D"
00:32:16FromDiscord<albassort> (edit) "https://play.nim-lang.org/#pasty=yyrwHMMF" => "https://play.nim-lang.org/#pasty=TzJzhCPG"
00:33:54FromDiscord<@@prestosilver> https://discord.com/channels/371759389889003530/706542664643772436/1281756953692864645
00:34:07FromDiscord<@@prestosilver> Really like this idea, might be nice
00:37:49FromDiscord<Elegantbeef> Why is your `buffer` not just `: InputEvent`?
00:44:58*beholders_eye quit (Read error: Connection reset by peer)
00:50:59*beholders_eye joined #nim
01:07:37*krux02 quit (Remote host closed the connection)
01:08:33FromDiscord<@@prestosilver> Tbh didn't know nim has sizeof, makes sense if I just never tried it
01:08:33*beholders_eye quit (Read error: Connection reset by peer)
01:08:35FromDiscord<@@prestosilver> Lol
01:14:19*beholders_eye joined #nim
01:25:33FromDiscord<albassort> In reply to @Elegantbeef "Why is your `buffer`": because i didn't know you could do that
01:25:53FromDiscord<Elegantbeef> well the `readData` just takes a `pointer`
01:26:40FromDiscord<albassort> i thought it took a pointer openArray[] where the T had to be of 8 via a concept
01:26:48FromDiscord<albassort> i dont know how i developed such a specific idea
01:26:59FromDiscord<albassort> (edit) "i thought it took a pointer openArray[] where the T had to be of ... 8" added "size"
01:27:14FromDiscord<Elegantbeef> Especially odd given the stdlib does not use concepts
01:28:04FromDiscord<albassort> woah i didn't know this
01:28:04*beholders_eye quit (Read error: Connection reset by peer)
01:28:14FromDiscord<albassort> i am learning many things
01:28:43FromDiscord<Elegantbeef> Concepts are still considered experimental and to scary for the stdlib
01:29:19FromDiscord<albassort> t he stdlib is too scary for the stdlib
01:29:29FromDiscord<albassort> it would rather rely on C as much as it can
01:29:52FromDiscord<albassort> (edit) "t he" => "the"
01:31:14FromDiscord<Elegantbeef> Well you're silly so that's fine
01:33:39*beholders_eye joined #nim
01:37:26*beholders_eye quit (Read error: Connection reset by peer)
01:42:59*beholders_eye joined #nim
02:06:48*beholders_eye quit (Read error: Connection reset by peer)
02:12:19*beholders_eye joined #nim
02:37:54*beholders_eye quit (Read error: Connection reset by peer)
02:43:39*beholders_eye joined #nim
02:50:49*beholders_eye quit (Read error: Connection reset by peer)
02:56:59*beholders_eye joined #nim
03:14:50*beholders_eye quit (Read error: Connection reset by peer)
03:20:19*beholders_eye joined #nim
03:23:03FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=qheKZMMR
03:26:30FromDiscord<zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=YLtGJypw
03:28:44FromDiscord<user2m> beautiful
03:29:27*beholders_eye quit (Ping timeout: 246 seconds)
03:42:09*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
03:46:49*SchweinDeBurg joined #nim
04:50:55*coldfeet joined #nim
05:24:59*alexdaguy joined #nim
05:53:19*ntat joined #nim
09:11:52*coldfeet quit (Remote host closed the connection)
09:23:55*Artea joined #nim
09:36:27*m5zs7k_ joined #nim
09:38:21*pmp-p_ joined #nim
09:38:21*pmp-p quit (Killed (NickServ (GHOST command used by pmp-p_)))
09:40:04*SchweinD1 joined #nim
09:40:21*alexdaguy1 joined #nim
09:44:28*alexdaguy quit (*.net *.split)
09:44:28*SchweinDeBurg quit (*.net *.split)
09:44:28*Artea quit (*.net *.split)
09:44:29*m5zs7k quit (*.net *.split)
09:44:30*FromDiscord quit (*.net *.split)
09:44:53*m5zs7k_ is now known as m5zs7k
09:45:09*FromDiscord joined #nim
09:49:34*Artea_ joined #nim
09:59:00*Artea_ quit (Remote host closed the connection)
10:11:31*Artea joined #nim
10:26:27*def- quit (Quit: -)
10:46:48*def- joined #nim
11:44:47*xet7 joined #nim
11:58:10*ntat quit (Ping timeout: 272 seconds)
12:11:56*ntat joined #nim
12:21:39*coldfeet joined #nim
12:22:11*coldfeet quit (Client Quit)
12:40:45*alexdaguy1 quit (Quit: WeeChat 4.4.1)
12:41:05*coldfeet joined #nim
12:45:47*coldfeet quit (Remote host closed the connection)
12:47:06*ntat_ joined #nim
12:48:13*ntat quit (Read error: Connection reset by peer)
12:51:56*ntat_ quit (Client Quit)
12:52:14*ntat joined #nim
13:28:47*ntat quit (Quit: Leaving)
13:32:55*disso-peach joined #nim
13:47:23*coldfeet joined #nim
13:47:46FromDiscord<empathy.monster> Hello. I'm working on some functions for user input and I'm wondering if someone could please tell me if I'm handling errors properly
13:48:02FromDiscord<empathy.monster> sent a long message, see https://pasty.ee/eRLootqW
13:48:21FromDiscord<empathy.monster> oops, I don't think I formatted that properly
13:49:00FromDiscord<Phil> Yeh, try:↵\`\`\`nim↵your code↵\`\`\`
13:49:12FromDiscord<empathy.monster> Okay, sorry
13:49:24FromDiscord<empathy.monster> sent a code paste, see https://play.nim-lang.org/#pasty=NMTosbbx
13:54:21FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#pasty=isEWRfzV
13:56:44FromDiscord<Phil> sent a long message, see https://pasty.ee/OpTipUtT
13:56:50*ntat joined #nim
13:57:36FromDiscord<empathy.monster> That's very helpful
13:59:35FromDiscord<empathy.monster> I absolutely love the simplicity of Nim and that it's safe but not Rust lol
14:00:48FromDiscord<Phil> You should never, ever, ever catch a defect.↵The reason you can is a mystery to me.↵You can enable the behavior a defect actually should have with↵`--panics:on` I believe (take that with a grain of salt, I forget about the specific name of that flag regularly)
14:01:03FromDiscord<Phil> (edit) "You should never, ever, ever catch a defect.↵The reason you can ... is" added "normally"
14:01:16FromDiscord<empathy.monster> okay, thank you. I'll go over that in the stdlib docs
14:12:14*ryuukk quit (Remote host closed the connection)
14:14:46*ryuukk joined #nim
14:56:26FromDiscord<k0ts> you can slap {.raises: [].} on those procs to make sure no exceptions escape
15:00:15*albe joined #nim
15:02:17*albe quit (Client Quit)
15:02:36*albe joined #nim
15:03:17*albe quit (Changing host)
15:03:17*albe joined #nim
15:04:09*ryuukk quit (Ping timeout: 245 seconds)
15:04:58*ryuukk joined #nim
15:27:38FromDiscord<odexine> (IIRC this does not catch defects)
15:53:04*ntat quit (Quit: Leaving)
16:00:14FromDiscord<k0ts> yeah it doesn't
16:08:45FromDiscord<Phil> I mean, make ssense to me, raises works on errors, not defects
16:09:31FromDiscord<Phil> At least my expectation would've been for it to only work on errors (the type of stuff you're supposed to be able to deal with at runtime) and not on defects (which should be unrecoverable))
16:09:35FromDiscord<Phil> (edit) "unrecoverable))" => "unrecoverable)"
16:23:30*ryuukk quit (Remote host closed the connection)
16:26:19*ryuukk joined #nim
17:37:54*ntat joined #nim
17:56:07FromDiscord<Prestige> How would I print the bit representation of an integer?
17:59:29FromDiscord<Prestige> sent a code paste, see https://play.nim-lang.org/#pasty=pgUWmiGx
17:59:36FromDiscord<yesilsec> hello
18:00:20FromDiscord<yesilsec> sent a code paste, see https://play.nim-lang.org/#pasty=xvtzQXoO
18:03:07FromDiscord<Prestige> ty
18:45:42*beholders_eye joined #nim
19:46:22*Goodbye_Vincent quit (Remote host closed the connection)
19:47:06*Goodbye_Vincent1 joined #nim
20:19:46*gr0zz joined #nim
20:24:25FromDiscord<yetiwizard> What do I do in a situation where I have three types and each type has a member of another type? So I end up with some kind of cycle and since there is no forward declaration for types, the first type is going to complain about an undefined type.
20:30:54FromDiscord<huantian> declare all of them in the same type block
20:33:37FromDiscord<yetiwizard> oh that's a thing? thanks a lot!
20:37:46FromDiscord<kromatik_19473> sent a code paste, see https://play.nim-lang.org/#pasty=bMIdride
20:42:20FromDiscord<Elegantbeef> Nim strings are not cstrings
20:42:25FromDiscord<Elegantbeef> You want `cstring`
20:48:08FromDiscord<demotomohiro> Are you sure LoadlibraryA function on windows search dll on current directory?↵https://learn.microsoft.com/en-us/windows/win32/api/libloaderapi/nf-libloaderapi-loadlibrarya
20:49:49FromDiscord<demotomohiro> sent a long message, see https://pasty.ee/AQJHRMLk
20:56:30FromDiscord<demotomohiro> You probably can use this proc to get more details about the error: https://nim-lang.org/docs/oserrors.html#osLastError
21:01:46*coldfeet quit (Remote host closed the connection)
21:02:08*ntat quit (Quit: Leaving)
21:09:00*disso-peach quit (Quit: Leaving)
21:16:16*gr0zz left #nim (Leaving)
21:52:08FromDiscord<@@prestosilver> sent a long message, see https://pasty.ee/GMkDnBfj
21:52:47FromDiscord<@@prestosilver> (edit) "https://pasty.ee/QOjKqyHq" => "https://pasty.ee/sRhzbGsS"
21:54:23FromDiscord<Elegantbeef> Don't really need a macro for that
21:55:33FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=RptJadyQ
21:57:48FromDiscord<@@prestosilver> sent a code paste, see https://play.nim-lang.org/#pasty=iWWxUOMH
21:57:55FromDiscord<@@prestosilver> And store which are owned on steam
21:58:32FromDiscord<@@prestosilver> But yea tbh i forgot that the pragma pragma existed lmao
21:59:54FromDiscord<@@prestosilver> Also wait if you do an importc in a proc definition it will drop the code? I've never tried that but it would make sense ig
22:00:12FromDiscord<Elegantbeef> It uses the body for CTE
22:00:21FromDiscord<@@prestosilver> Ah
22:00:27FromDiscord<@@prestosilver> Yea that's nice
22:18:14FromDiscord<pelumiola60> sent a long message, see https://pasty.ee/TKjQwtYa
23:38:53*lucasta joined #nim
23:54:59*beholders_eye quit (Read error: Connection reset by peer)