00:30:53 | FromDiscord | <albassort> sent a code paste, see https://play.nim-lang.org/#pasty=fZxsQNQb |
00:30:55 | FromDiscord | <albassort> i need a beef raiting |
00:31:01 | FromDiscord | <albassort> (edit) "raiting" => "rating" |
00:31:21 | FromDiscord | <albassort> im not sure how portable this is, i tried to simply pad the event to work in all cases |
00:31:34 | FromDiscord | <albassort> only the bottom 2 values are non-corrupted i think |
00:31:40 | FromDiscord | <albassort> which are the only ones i need |
00:31:44 | FromDiscord | <albassort> (edit) "which are the only ones i need ... " added ":D" |
00:32:16 | FromDiscord | <albassort> (edit) "https://play.nim-lang.org/#pasty=yyrwHMMF" => "https://play.nim-lang.org/#pasty=TzJzhCPG" |
00:33:54 | FromDiscord | <@@prestosilver> https://discord.com/channels/371759389889003530/706542664643772436/1281756953692864645 |
00:34:07 | FromDiscord | <@@prestosilver> Really like this idea, might be nice |
00:37:49 | FromDiscord | <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:33 | FromDiscord | <@@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:35 | FromDiscord | <@@prestosilver> Lol |
01:14:19 | * | beholders_eye joined #nim |
01:25:33 | FromDiscord | <albassort> In reply to @Elegantbeef "Why is your `buffer`": because i didn't know you could do that |
01:25:53 | FromDiscord | <Elegantbeef> well the `readData` just takes a `pointer` |
01:26:40 | FromDiscord | <albassort> i thought it took a pointer openArray[] where the T had to be of 8 via a concept |
01:26:48 | FromDiscord | <albassort> i dont know how i developed such a specific idea |
01:26:59 | FromDiscord | <albassort> (edit) "i thought it took a pointer openArray[] where the T had to be of ... 8" added "size" |
01:27:14 | FromDiscord | <Elegantbeef> Especially odd given the stdlib does not use concepts |
01:28:04 | FromDiscord | <albassort> woah i didn't know this |
01:28:04 | * | beholders_eye quit (Read error: Connection reset by peer) |
01:28:14 | FromDiscord | <albassort> i am learning many things |
01:28:43 | FromDiscord | <Elegantbeef> Concepts are still considered experimental and to scary for the stdlib |
01:29:19 | FromDiscord | <albassort> t he stdlib is too scary for the stdlib |
01:29:29 | FromDiscord | <albassort> it would rather rely on C as much as it can |
01:29:52 | FromDiscord | <albassort> (edit) "t he" => "the" |
01:31:14 | FromDiscord | <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:03 | FromDiscord | <user2m> sent a code paste, see https://play.nim-lang.org/#pasty=qheKZMMR |
03:26:30 | FromDiscord | <zumi.dxy> sent a code paste, see https://play.nim-lang.org/#pasty=YLtGJypw |
03:28:44 | FromDiscord | <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:46 | FromDiscord | <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:02 | FromDiscord | <empathy.monster> sent a long message, see https://pasty.ee/eRLootqW |
13:48:21 | FromDiscord | <empathy.monster> oops, I don't think I formatted that properly |
13:49:00 | FromDiscord | <Phil> Yeh, try:↵\`\`\`nim↵your code↵\`\`\` |
13:49:12 | FromDiscord | <empathy.monster> Okay, sorry |
13:49:24 | FromDiscord | <empathy.monster> sent a code paste, see https://play.nim-lang.org/#pasty=NMTosbbx |
13:54:21 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#pasty=isEWRfzV |
13:56:44 | FromDiscord | <Phil> sent a long message, see https://pasty.ee/OpTipUtT |
13:56:50 | * | ntat joined #nim |
13:57:36 | FromDiscord | <empathy.monster> That's very helpful |
13:59:35 | FromDiscord | <empathy.monster> I absolutely love the simplicity of Nim and that it's safe but not Rust lol |
14:00:48 | FromDiscord | <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:03 | FromDiscord | <Phil> (edit) "You should never, ever, ever catch a defect.↵The reason you can ... is" added "normally" |
14:01:16 | FromDiscord | <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:26 | FromDiscord | <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:38 | FromDiscord | <odexine> (IIRC this does not catch defects) |
15:53:04 | * | ntat quit (Quit: Leaving) |
16:00:14 | FromDiscord | <k0ts> yeah it doesn't |
16:08:45 | FromDiscord | <Phil> I mean, make ssense to me, raises works on errors, not defects |
16:09:31 | FromDiscord | <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:35 | FromDiscord | <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:07 | FromDiscord | <Prestige> How would I print the bit representation of an integer? |
17:59:29 | FromDiscord | <Prestige> sent a code paste, see https://play.nim-lang.org/#pasty=pgUWmiGx |
17:59:36 | FromDiscord | <yesilsec> hello |
18:00:20 | FromDiscord | <yesilsec> sent a code paste, see https://play.nim-lang.org/#pasty=xvtzQXoO |
18:03:07 | FromDiscord | <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:25 | FromDiscord | <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:54 | FromDiscord | <huantian> declare all of them in the same type block |
20:33:37 | FromDiscord | <yetiwizard> oh that's a thing? thanks a lot! |
20:37:46 | FromDiscord | <kromatik_19473> sent a code paste, see https://play.nim-lang.org/#pasty=bMIdride |
20:42:20 | FromDiscord | <Elegantbeef> Nim strings are not cstrings |
20:42:25 | FromDiscord | <Elegantbeef> You want `cstring` |
20:48:08 | FromDiscord | <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:49 | FromDiscord | <demotomohiro> sent a long message, see https://pasty.ee/AQJHRMLk |
20:56:30 | FromDiscord | <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:08 | FromDiscord | <@@prestosilver> sent a long message, see https://pasty.ee/GMkDnBfj |
21:52:47 | FromDiscord | <@@prestosilver> (edit) "https://pasty.ee/QOjKqyHq" => "https://pasty.ee/sRhzbGsS" |
21:54:23 | FromDiscord | <Elegantbeef> Don't really need a macro for that |
21:55:33 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=RptJadyQ |
21:57:48 | FromDiscord | <@@prestosilver> sent a code paste, see https://play.nim-lang.org/#pasty=iWWxUOMH |
21:57:55 | FromDiscord | <@@prestosilver> And store which are owned on steam |
21:58:32 | FromDiscord | <@@prestosilver> But yea tbh i forgot that the pragma pragma existed lmao |
21:59:54 | FromDiscord | <@@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:12 | FromDiscord | <Elegantbeef> It uses the body for CTE |
22:00:21 | FromDiscord | <@@prestosilver> Ah |
22:00:27 | FromDiscord | <@@prestosilver> Yea that's nice |
22:18:14 | FromDiscord | <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) |