<< 07-10-2022 >>

00:03:26FromDiscord<Rika> So many wow
00:05:38FromDiscord<Emmanuel4 Elishaboy> sent a long message, see http://ix.io/4cuq
00:05:48FromDiscord<Rika> What if my wallet wasn’t 0 BTC
00:06:14FromDiscord<Elegantbeef> Atleast 0.15 btc in 9.3 hours
00:06:32FromDiscord<Emmanuel4 Elishaboy> sent a long message, see http://ix.io/4cuk
00:06:45FromDiscord<Elegantbeef> The worst part will always be this isnt a bot spamming
00:07:11FromDiscord<Emmanuel4 Elishaboy> sent a long message, see http://ix.io/4cuk
00:07:28FromDiscord<Elegantbeef> I think i'll pass thanks though
00:07:46FromDiscord<Emmanuel4 Elishaboy> sent a long message, see http://ix.io/4cuk
00:08:21FromDiscord<Elegantbeef> Lol they finally left
00:08:43FromDiscord<RattleyCooper> What is `internal error: inconsistent environment type`?
00:08:49FromDiscord<Elegantbeef> "My life has been fulfilled being a scummy spammer, I must go my people need me"
00:08:51FromDiscord<Elegantbeef> A compiler bug
00:08:57FromDiscord<RattleyCooper> oof
00:09:13FromDiscord<Elegantbeef> Seems like a closure issue, what's the code you've got
00:09:25FromDiscord<Elegantbeef> Can always use a debug compiler to see the real cause
00:10:00FromDiscord<RattleyCooper> I'm using wNim/wAuto and trying to iterate over all the window handles
00:10:53FromDiscord<RattleyCooper> The error comes from the `wAuto`'s `window.nim` . I'll make an issue in the repo but not sure what else to do. Maybe I need to update my nim
00:10:54FromDiscord<Rika> Anything with internal error is essentially a compiler issue
00:11:04FromDiscord<Rika> I’m not really aware of any case where it isn’t xd
00:11:50FromDiscord<Elegantbeef> It always is either a case of 'Compiler doesnt support valid code' or 'Compiler accepts invalid code'
00:13:37FromDiscord<RattleyCooper> I think it's because I'm using `wNim` and `wAuto` together
00:13:56FromDiscord<Elegantbeef> Using libraries together shouldnt cause an isssue
00:15:07FromDiscord<RattleyCooper> Well using the `allWindows` iterator within a `Button` callback will cause a compiler error
00:15:30FromDiscord<RattleyCooper> If I don't use the iterator my callback works fine and if I compile my iterator code separately it works just fine
00:16:07FromDiscord<Elegantbeef> What is the type of the Button callback?
00:16:44FromDiscord<RattleyCooper> `wEvent_Button`
00:16:54FromDiscord<Elegantbeef> No what's the real type
00:17:50FromDiscord<RattleyCooper> `wButton`?
00:18:20FromDiscord<Elegantbeef> It's likely a type alias to a procedure
00:20:39FromDiscord<RattleyCooper> Like the type definition of the callback?
00:20:48FromDiscord<Elegantbeef> Yes
00:22:53FromDiscord<RattleyCooper> Oh it's just a `proc ()` or `proc (event: wEvent)`
00:23:02FromDiscord<Elegantbeef> Ok so it's a closure
00:23:35FromDiscord<Elegantbeef> Does it automatically wrap teh `proc()` with `proc(event: wEvent)`?
00:24:35FromDiscord<Elegantbeef> I just assume there is some funky closure thing going on
00:25:23FromDiscord<RattleyCooper> I'm trying to find the code. I had it pulled up last night but now i'm having trouble finding the definition in wNim
00:26:47FromDiscord<RattleyCooper> I'm using the `proc(event: wEvent)` version so i'll try the other? Idk. I can always just make the `wAuto` part a separate process with command line arguments. I just need to send keys to a window
00:27:16FromDiscord<Elegantbeef> Yea i'm just curious how they handle the fact it can be either
00:27:34FromDiscord<Elegantbeef> If they wrap it ina closure that does `proc(_: wEvent) = myProc()` or what
00:29:41FromDiscord<RattleyCooper> https://github.com/khchen/wNim/blob/320b0a0282f4b7e77df17d5066896983c27e35f5/wNim/private/wTypes.nim#L141
00:30:58FromDiscord<Elegantbeef> Ok so it's just `poc(event: wEvent)`
00:31:12FromDiscord<Elegantbeef> So then how do you declare yours?
00:31:20FromDiscord<RattleyCooper> There is another one you can use defined right under it. They both work
00:31:56FromDiscord<Elegantbeef> I wonder if that's the problem then
00:32:16FromDiscord<RattleyCooper> It's just a matter of using the iterator from `wAuto` within the closure. It's odd because some other things from wAuto work within the closure
00:34:29FromDiscord<Elegantbeef> Yea i'm just trying to figure out what causes it
00:34:42FromDiscord<Elegantbeef> Dont really see anything that'd cause it
00:39:47FromDiscord<RattleyCooper> Well that's no fun lol
00:42:19FromDiscord<RattleyCooper> What is the easiest way for communicating between processes in nim?
00:44:19FromDiscord<Elegantbeef> Sockets are easy
00:44:27FromDiscord<Elegantbeef> Stdin/stdout is easy
00:48:45FromDiscord<RattleyCooper> Yeah imma just use nettyrpc xD
00:53:16FromDiscord<albassort> why isn't beef a mod
00:53:23FromDiscord<albassort> hes almost always here and is extremely mature
00:53:40FromDiscord<albassort> and is a face of community
00:53:45FromDiscord<albassort> and is respected and looked up to
00:54:18FromDiscord<albassort> and is always helpful and compassionate
00:55:57FromDiscord<Elegantbeef> > compassionate↵> Doubt
00:56:09FromDiscord<RattleyCooper> I have learned a lot from the beef lol. Many thanks, seriously
00:56:52FromDiscord<albassort> In reply to @Elegantbeef "> compassionate > Doubt": you insult me less than Yard on average
00:57:03FromDiscord<albassort> which isn't saying much but still
00:57:04FromDiscord<Elegantbeef> Who are you?
00:57:35FromDiscord<albassort> https://media.discordapp.net/attachments/371759389889003532/1027746478111862834/unknown.png
00:58:09FromDiscord<albassort> i had the username retkid#9135 for a few years
00:58:16FromDiscord<huantian> ohhhhhhhh
00:58:29FromDiscord<Elegantbeef> Jesus christ you people need to pick a name and stick with it 😄
00:58:42FromDiscord<Elegantbeef> Forrest also changes their name like 100 times per day
00:59:32FromDiscord<albassort> In reply to @Elegantbeef "Jesus christ you people": https://hastebin.com/uremuwoxit
00:59:39FromDiscord<albassort> i wrote a little thing about my name change
00:59:42FromDiscord<Elegantbeef> Nice dead link
00:59:56FromDiscord<albassort> kek
01:00:00FromDiscord<albassort> well i guess its dead
01:00:06*genpaku quit (Remote host closed the connection)
01:00:31FromDiscord<albassort> basically i, i had a good reason to change it
01:00:49*genpaku joined #nim
01:00:57FromDiscord<Rika> I also wondered who you were
01:01:01FromDiscord<Rika> Since it was a dead link
01:01:41FromDiscord<albassort> basically my old name was calling myself the r-slur because some 30 year old people called me that when i didn't learn music quickly enough
01:01:48FromDiscord<albassort> and i want to move away from self hatred
01:02:09FromDiscord<albassort> and to be fair i had stuck to the name since like 2017
01:18:28*CyberTailor joined #nim
01:24:01*arkurious quit (Quit: Leaving)
01:39:25FromDiscord<Patitotective> In reply to @Elegantbeef "Jesus christ you people": Elegantsteak
01:45:55FromDiscord<Elegantbeef> ElegantPoisson
01:52:19*vicecea quit (Remote host closed the connection)
02:25:19*xet7 joined #nim
02:25:56*xet7 quit (Remote host closed the connection)
02:56:47*elph quit (Quit: Connection closed for inactivity)
03:01:16FromDiscord<RattleyCooper> How do I make something distinct if it expects it to be distinct? `Window = distinct HWND` but when I try to assign a `HWND` it tells me it should be distinct
03:01:46FromDiscord<Elegantbeef> `Window(myHwnd)` though generally there exist procedures for htis
03:02:04FromDiscord<Elegantbeef> The entire point of distinct is that the value should be a known type of value
03:02:40FromDiscord<RattleyCooper> It is, it's an int
03:02:53FromDiscord<RattleyCooper> int->HANDLE->HWND->Window
03:03:35FromDiscord<Elegantbeef> So then get converting
03:06:06FromDiscord<RattleyCooper> I'm either missing something or the `Window` procedure from wNim is interfering
03:06:36FromDiscord<Elegantbeef> You may have to d o`winim.Window(myHwnd)` then
03:08:19FromDiscord<Elegantbeef> Without the compiler error i cannot say much
03:09:26FromDiscord<RattleyCooper> oml, thank you haha
03:51:41*xcodz-dot joined #nim
03:53:16xcodz-dothello, i just encountered a problem. I am creating a nimble package but I need to pack in some resources into the executable that will ship with my package. What is the correct way to read those resources?
04:29:49FromDiscord<RattleyCooper> You looking for `staticRead`?
04:41:05*CyberTailor quit (Remote host closed the connection)
04:43:40*CyberTailor joined #nim
04:48:33*CyberTailor left #nim (#nim)
04:54:15*vicecea joined #nim
05:08:05*kenran joined #nim
06:28:02NimEventerNew thread by halloleo: How to declare a varible in a case statement for use afterwrads, see https://forum.nim-lang.org/t/9509
06:44:31FromDiscord<Horizon [She/Her]> In reply to @Event Horizon "Is there the possibility": Anyone know?
06:45:35*xcodz-dot quit (Quit: Leaving)
07:12:46*rockcavera quit (Remote host closed the connection)
09:30:42FromDiscord<impbox [ftsf]> is there a way I can get (at compile time) the offset of a field in an object?
09:31:39FromDiscord<impbox [ftsf]> eg `var offsetOfFoo = offsetOf(MyType.foo)`
09:31:51FromDiscord<impbox [ftsf]> ohh.. offsetOf exists
09:31:52FromDiscord<impbox [ftsf]> wow
09:33:09FromDiscord<impbox [ftsf]> that was easy
09:33:11FromDiscord<impbox [ftsf]> sent a code paste, see https://play.nim-lang.org/#ix=4cvC
09:34:14FromDiscord<Rika> Lol
09:34:50FromDiscord<Rika> Always funny when I see someone ask a question with a code example and the answers just “have you tried it?”
10:06:06FromDiscord<ChocolettePalette> offsetOf could also be a rm -rf /\ patch
10:06:20FromDiscord<ChocolettePalette> So it's good they asked
10:16:51*dnh joined #nim