<< 08-02-2024 >>

00:00:06FromDiscord<Robyn [She/Her]> Also a good point xDD
00:03:41FromDiscord<odexine> well if youre determined enough you could try adding anti-debug but we're getting closer and closer to malware/invasive anticheat (same thing) territory
00:04:10FromDiscord<Elegantbeef> I really love the fact that DRM in video games gets bypassed day one, but people feel the need to obfuscate their strings
00:05:34FromDiscord<odexine> stuff like denuvo is incredibly complex and prolly herculean to replicate yet gets bypassed or broken through after a few weeks
00:05:43FromDiscord<odexine> or on day one too sometimes
00:06:00FromDiscord<odexine> sometimes even before the game releases
00:09:44FromDiscord<Robyn [She/Her]> It's pretty funny xD
00:10:27FromDiscord<Robyn [She/Her]> In reply to @NimEventer "New Nimble package! serde": Oh yeah this looks interesting but eh
00:10:56FromDiscord<Robyn [She/Her]> What if I use traitor to design an equivalent /j
00:11:04FromDiscord<odexine> go
00:11:34FromDiscord<Robyn [She/Her]> Huh?
00:11:39FromDiscord<odexine> go ahead and do it
00:11:50FromDiscord<odexine> why does it have to be a joke xd
00:12:40FromDiscord<Elegantbeef> Cause it's written by me!
00:12:59FromDiscord<Elegantbeef> Using traitor + frosty would be cool
00:15:52FromDiscord<Robyn [She/Her]> What's frosty again?
00:16:00FromDiscord<Robyn [She/Her]> In reply to @odexine "why does it have": Because I'm lazy xD
00:16:01FromDiscord<Elegantbeef> Disruptek's serde
00:16:05FromDiscord<Robyn [She/Her]> Though it might actually be a good thing
00:16:09FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "Disruptek's serde": Oooh
00:19:40FromDiscord<Robyn [She/Her]> Frosty doesn't support C++? Huh
00:19:58FromDiscord<Elegantbeef> Oh noes!
00:20:03FromDiscord<Elegantbeef> The backend 2 people and a dog use
00:20:33FromDiscord<Robyn [She/Her]> :P
00:22:12FromDiscord<Elegantbeef> Frosty also hasn't been touched in some time so that might now just be a incorrect statement
00:25:20FromDiscord<Robyn [She/Her]> Why would that be incorrect?
00:29:16FromDiscord<Robyn [She/Her]> What would've changed to fix it? :p
00:33:08FromDiscord<Elegantbeef> Assuming it's a code gen issue quite a lot has changed in 3 years
00:37:54FromDiscord<Robyn [She/Her]> Fair
01:07:37*xet7 quit (Ping timeout: 264 seconds)
01:25:47*derpydoo quit (Ping timeout: 264 seconds)
01:26:12*jmdaemon joined #nim
01:55:59FromDiscord<gogolxdong666> Chinese lunar new year is coming, happy new year to everybody!
02:33:51*_________ quit (Ping timeout: 260 seconds)
04:23:17*rockcavera quit (Remote host closed the connection)
04:31:08*SchweinDeBurg joined #nim
05:20:19NimEventerNew thread by xioren: The power of a good standard library, see https://forum.nim-lang.org/t/10964
05:20:26*azimut quit (*.net *.split)
05:20:41*azimut joined #nim
05:21:46*fallback quit (*.net *.split)
05:21:47*GreaseMonkey quit (*.net *.split)
05:21:47*oisota quit (*.net *.split)
05:21:48*robertmeta quit (*.net *.split)
05:21:49*LyndsySimon quit (*.net *.split)
05:22:21*fallback joined #nim
05:22:21*GreaseMonkey joined #nim
05:22:21*oisota joined #nim
05:22:21*robertmeta joined #nim
05:22:21*LyndsySimon joined #nim
05:23:09*casaca quit (Ping timeout: 256 seconds)
05:23:15*noeontheend quit (Ping timeout: 260 seconds)
05:23:26*adigitoleo quit (Ping timeout: 258 seconds)
05:24:03*jmdaemon quit (*.net *.split)
05:24:04*Lord_Nightmare quit (*.net *.split)
05:24:04*redj quit (*.net *.split)
05:24:04*pmp-p quit (*.net *.split)
05:24:04*oprypin quit (*.net *.split)
05:24:04*deadmarshal_ quit (*.net *.split)
05:24:05*arkanoid quit (*.net *.split)
05:24:05*mahlon quit (*.net *.split)
05:24:06*ttkap quit (*.net *.split)
05:24:06*void09 quit (*.net *.split)
05:24:06*syl quit (*.net *.split)
05:24:10*mronetwo quit (Ping timeout: 276 seconds)
05:24:13*KhazAkar quit (*.net *.split)
05:24:13*termer quit (*.net *.split)
05:24:15*lumidify quit (*.net *.split)
05:24:15*bcksl quit (*.net *.split)
05:24:15*dv^_^ quit (*.net *.split)
05:24:16*enyc quit (*.net *.split)
05:24:16*blackbeard420 quit (*.net *.split)
05:24:16*acidsys quit (*.net *.split)
05:24:22*jmdaemon joined #nim
05:24:22*Lord_Nightmare joined #nim
05:24:22*redj joined #nim
05:24:22*pmp-p joined #nim
05:24:22*oprypin joined #nim
05:24:22*deadmarshal_ joined #nim
05:24:22*arkanoid joined #nim
05:24:22*mahlon joined #nim
05:24:22*ttkap joined #nim
05:24:22*void09 joined #nim
05:24:22*syl joined #nim
05:24:26FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=tmptZRCWWvJg
05:24:35*KhazAkar joined #nim
05:24:35*termer joined #nim
05:24:35*lumidify joined #nim
05:24:35*bcksl joined #nim
05:24:35*dv^_^ joined #nim
05:24:35*enyc joined #nim
05:24:35*blackbeard420 joined #nim
05:24:35*acidsys joined #nim
05:24:36*mronetwo joined #nim
05:24:52*noeontheend joined #nim
05:24:54*enyc quit (Max SendQ exceeded)
05:24:57*adigitoleo joined #nim
05:28:07*adium quit (*.net *.split)
05:28:07*dza quit (*.net *.split)
05:28:07*gooba quit (*.net *.split)
05:28:08*oddish quit (*.net *.split)
05:28:09*computerquip quit (*.net *.split)
05:28:28*cm quit (*.net *.split)
05:28:29*G3ngh1s_ quit (*.net *.split)
05:28:29*gshumway_ quit (*.net *.split)
05:28:29*alice quit (*.net *.split)
05:28:44*xutaxkamay quit (*.net *.split)
05:28:44*Mister_Magister quit (*.net *.split)
05:28:44*pbsds quit (*.net *.split)
05:28:45*Batzy quit (*.net *.split)
05:28:46*om3ga quit (*.net *.split)
05:28:48*cm joined #nim
05:28:48*G3ngh1s_ joined #nim
05:28:48*gshumway_ joined #nim
05:28:48*alice joined #nim
05:28:58*Goodbye_Vincent quit (*.net *.split)
05:28:58*mal`` quit (*.net *.split)
05:28:59*marcus quit (*.net *.split)
05:29:00*Onionhammer quit (*.net *.split)
05:29:00*tanami quit (*.net *.split)
05:29:00*anddam quit (*.net *.split)
05:29:00*via quit (*.net *.split)
05:30:24FromDiscord<Elegantbeef> Macros do not get instantiation info
05:30:29FromDiscord<Elegantbeef> make a template forward it
05:30:32*enyc joined #nim
05:30:48*Mister_Magister joined #nim
05:31:01*Goodbye_Vincent joined #nim
05:31:01*mal`` joined #nim
05:31:01*marcus joined #nim
05:31:01*anddam joined #nim
05:31:01*Onionhammer joined #nim
05:31:01*tanami joined #nim
05:31:01*via joined #nim
05:31:06FromDiscord<Elegantbeef> https://github.com/beef331/traitor/blob/master/traitor.nim#L309-L313 something like
05:31:11*adium joined #nim
05:31:11*dza joined #nim
05:31:11*gooba joined #nim
05:31:11*oddish joined #nim
05:31:11*computerquip joined #nim
05:33:41*xutaxkamay joined #nim
05:33:41*pbsds joined #nim
05:33:41*Batzy joined #nim
05:33:41*om3ga joined #nim
05:34:37*jkl quit (*.net *.split)
05:34:38*nazgulsenpai quit (*.net *.split)
05:34:39*systemdsucks quit (*.net *.split)
05:34:40*Amun-Ra quit (*.net *.split)
05:34:40*hexeme quit (*.net *.split)
05:34:40*lain quit (*.net *.split)
05:36:06*jkl joined #nim
05:36:06*nazgulsenpai joined #nim
05:36:06*systemdsucks joined #nim
05:36:06*Amun-Ra joined #nim
05:36:06*hexeme joined #nim
05:36:06*lain joined #nim
05:42:48*jkl quit (*.net *.split)
05:42:49*nazgulsenpai quit (*.net *.split)
05:42:50*systemdsucks quit (*.net *.split)
05:42:51*Amun-Ra quit (*.net *.split)
05:42:51*hexeme quit (*.net *.split)
05:42:51*lain quit (*.net *.split)
05:42:51*adigitoleo quit (*.net *.split)
05:42:52*enyc quit (*.net *.split)
05:42:54*cornfeedhobo quit (*.net *.split)
05:42:54*ehmry_ quit (*.net *.split)
05:42:54*hernan quit (*.net *.split)
05:42:54*nomn quit (*.net *.split)
05:42:56*SchweinDeBurg quit (*.net *.split)
05:42:56*def- quit (*.net *.split)
05:42:57*eery quit (*.net *.split)
05:42:57*antranigv quit (*.net *.split)
05:43:10*lain joined #nim
05:43:10*hexeme joined #nim
05:43:10*Amun-Ra joined #nim
05:43:10*systemdsucks joined #nim
05:43:10*nazgulsenpai joined #nim
05:43:10*jkl joined #nim
05:43:10*enyc joined #nim
05:43:10*adigitoleo joined #nim
05:43:10*SchweinDeBurg joined #nim
05:43:10*def- joined #nim
05:43:10*eery joined #nim
05:43:10*antranigv joined #nim
05:43:10*nomn joined #nim
05:43:10*cornfeedhobo joined #nim
05:43:10*ehmry_ joined #nim
05:43:10*hernan joined #nim
05:45:29*enyc quit (Max SendQ exceeded)
05:50:48*enyc joined #nim
05:50:57FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=wBgYCLYtDFMF
05:51:27FromDiscord<Elegantbeef> Make a template call a macro
05:51:39FromDiscord<Elegantbeef> In the template get the instantiation info and pass it to the macro
05:56:14*enyc quit (*.net *.split)
05:56:16*cornfeedhobo quit (*.net *.split)
05:56:16*ehmry_ quit (*.net *.split)
05:56:16*hernan quit (*.net *.split)
05:56:17*nomn quit (*.net *.split)
06:01:02*enyc joined #nim
06:01:02*nomn joined #nim
06:01:02*cornfeedhobo joined #nim
06:01:02*ehmry_ joined #nim
06:01:02*hernan joined #nim
06:01:06*enyc quit (Max SendQ exceeded)
06:04:32FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=ZyjDIyLEVYuo
06:05:22FromDiscord<Elegantbeef> Like I said forward to a macro
06:06:14*enyc joined #nim
06:11:41FromDiscord<user2m> sent a code paste, see https://play.nim-lang.org/#pasty=NckNPjaeljbu
06:14:44FromDiscord<ajodo50> "I'll help anyone interested on how to earn 100k in just 24hours from the crypto market. But you will have to pay me my commission! when you receive your profit! if interested click on the group link and send me a direct message ↵by asking me HOW↵https://t.me/EDWARDJAMES_0
06:15:12FromDiscord<Elegantbeef> @user2m well I'd do something more like https://play.nim-lang.org/#pasty=lXrJPNxwOrKf
06:15:14FromDiscord<Elegantbeef> But to each their own
06:17:27FromDiscord<user2m> In reply to @Elegantbeef "<@419925691832991754> well I'd do": yeah that looks good too!
06:37:53*advesperacit joined #nim
07:22:07*PMunch joined #nim
07:47:07*redj quit (Remote host closed the connection)
07:48:30*redj joined #nim
08:11:19*mronetwo quit (Write error: Connection reset by peer)
08:11:19*adigitoleo quit (Remote host closed the connection)
08:11:20*noeontheend quit (Write error: Broken pipe)
08:11:43FromDiscord<whisperecean> I have noticed that by default the official Nim extension sets 4 spaces indentation?
08:12:39*mronetwo joined #nim
08:12:40*noeontheend joined #nim
08:12:51*adigitoleo joined #nim
08:12:53FromDiscord<nnsee> you already asked this before and i already answered, lol
08:12:55FromDiscord<nnsee> https://discord.com/channels/371759389889003530/371759389889003532/1202946232163639307
08:13:06Amun-Raofficial nim extension?
08:13:09FromDiscord<Elegantbeef> Maybe it's changed since then! 😛
08:13:17*adigitoleo quit (Remote host closed the connection)
08:13:27*mronetwo quit (Remote host closed the connection)
08:13:43*noeontheend quit (Remote host closed the connection)
08:14:28FromDiscord<nnsee> i assume they're talking about the vscode extension
08:14:45Amun-Rahmm
08:20:27*mronetwo joined #nim
08:20:38*adigitoleo joined #nim
08:20:43*noeontheend joined #nim
08:28:23FromDiscord<whisperecean> In reply to @nnsee "you already asked this": Thanks. Sorry I did not come back to the chat and you did no highlight me so missed it
08:31:11FromDiscord<nnsee> i mean, you asked another question 30 seconds after i had responded :p
08:35:53Amun-RaI always install editorconfig plugin
10:09:06Amun-RaI have a module that's just a table of x11 color names to my color object (r, g, b, a: byte): https://play.nim-lang.org/#pasty=qoFwArJUVQgs
10:09:30Amun-Raand the nim doc output looks like: https://retro.rocks/tmp/htmldocs/
10:09:43Amun-Raare these (0, "", (r: 0'u, g: 0'u, b: 0'u, a: 0'u) normal?
10:10:27FromDiscord<Elegantbeef> You're using a table so yes
10:10:32FromDiscord<Elegantbeef> Since it's printing the internal representation
10:10:49PMunchThose are just empty spots in the table
10:10:51Amun-Raright, but there are a lot of these empty rows
10:10:55Amun-Raah, I see
10:10:58PMunchOf course
10:11:06PMunchOtherwise you'd get a bunch of hash collisions
10:11:23PMunchI think Nim by default starts with 32 buckets
10:11:38PMunchI made a PR once to make it configurable, but I think it got rejected..
10:11:50Amun-Rahmm, I've to read std/tables source someday
10:11:59Amun-Rathank you both, it makes sense
10:12:33FromDiscord<Elegantbeef> Consider an `array[enum, color]` 😄
10:12:38FromDiscord<Elegantbeef> But that's between you and your API
10:12:59Amun-RaI have to do lookups by name
10:13:24FromDiscord<Elegantbeef> Playing around with fish prompts and wrote a nice fish prompt for atlas `[jason@jason-desktop:~/D/locker]─[03:12:06]─[G:master] (♁:/home/jason/Documents/locker)`
10:13:36Amun-RaXPM file format uses either hex rgb values or x11 color names
10:13:37FromDiscord<nnsee> so much information
10:13:59FromDiscord<Elegantbeef> Yea used the fish nim prompt cause shit and giggles
10:14:06Amun-Ra♁ - how this terminal knows you're male? ;)
10:14:08FromDiscord<Elegantbeef> It was name nim so I thought I'd try it to be silly
10:14:21FromDiscord<Elegantbeef> That's the symbol for earth
10:14:27FromDiscord<Elegantbeef> Atlas and earth are close enough
10:14:43Amun-Ra
10:14:50Amun-Raargh, wrong direction
10:15:40PMunchhttps://github.com/nim-lang/Nim/pull/13620
10:17:02FromDiscord<nnsee> my prompt is as minimal as possible and only shows bits of information when it's relevant (apart from the cwd, whihc is always displayed)
10:17:03FromDiscord<nnsee> https://media.discordapp.net/attachments/371759389889003532/1205094939344642048/image.png?ex=65d71f1f&is=65c4aa1f&hm=b6b7a0ec265c87aa0f0d36b79c4881f0b58ff708097d1a351a30b7e22f14ce31&
10:17:32PMunchMine shows username (not really something I need), and the cwd
10:17:37FromDiscord<nnsee> sent a long message, see https://pasty.ee/xjBMGHICSjMd
10:17:44PMunchBut when I'm in a git repo it shows the branch and some more status
10:18:08PMunchOh yeah, I also show error code
10:18:22FromDiscord<nnsee> it shows the hostname only when the session is an ssh session https://media.discordapp.net/attachments/371759389889003532/1205095270652579860/image.png?ex=65d71f6e&is=65c4aa6e&hm=37d36867967427bd6df090ea425e2f921445bc0fb1b17f4dfcf8c81c3514008e&
10:18:36FromDiscord<nnsee> it also maybe optionally shows an username if it isn't xx (which I use everywhere)
10:18:47FromDiscord<nnsee> if I'm root, the dollar turns into a red `#` to indicate i'm root
10:18:54PMunchDitto
10:19:05PMunchWell, my entire line turns red I think
10:19:28Amun-RaI used red 💀 for root but I reverted to #
10:20:46FromDiscord<Elegantbeef> I havent changed the default fish shell but it shows CWD user and git status
10:21:07FromDiscord<nnsee> also that git information is async and only shows up on the right side once `git` is done processing the repo status, so it doesn't choke my entire prompt in large repos
10:21:36FromDiscord<Elegantbeef> `jason@jason-desktop ~/D/locker (master)> ` is what the prompt normally looks like
10:22:30FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=PveCNIaoYGAc
10:22:32Amun-Rannsee: that's a good idea
10:23:18FromDiscord<Elegantbeef> "large repos" couldn't be me
10:24:10FromDiscord<nnsee> i frequently work on the linux kernel, which is
10:24:10FromDiscord<nnsee> uh
10:24:13FromDiscord<nnsee> larger than most
10:25:22FromDiscord<nnsee> https://media.discordapp.net/attachments/371759389889003532/1205097031954075648/image.png?ex=65d72112&is=65c4ac12&hm=a448a8c49440f18a6dc0b2c417ec56de7fa57d5ebd71a46b903486fb03879f5f&
10:25:25FromDiscord<nnsee> a few commits
10:25:37FromDiscord<Elegantbeef> Time to shallow clone
10:30:11FromDiscord<zumi.dxy> man, if-expressions spoil me↵feels like i want it in python now↵does mojo have it?
10:30:42FromDiscord<Elegantbeef> Mojo seems to be taking a lot of rust inspiration, so if it wasn't expressionful i'd be odd
10:32:49FromDiscord<Elegantbeef> it'd be odd aswell
11:32:33*jmdaemon quit (Ping timeout: 260 seconds)
12:27:04*rockcavera joined #nim
12:38:39*PMunch quit (Quit: Leaving)
13:33:11FromDiscord<nikita> sent a code paste, see https://play.nim-lang.org/#pasty=arXhLFsKyUdv
13:33:46FromDiscord<nikita> sent a code paste, see https://play.nim-lang.org/#pasty=XUtUptduLwcZ
13:38:59FromDiscord<Robyn [She/Her]> In reply to @Elegantbeef "Mojo seems to be": You are odd!
13:39:13FromDiscord<Robyn [She/Her]> In reply to @nikita "hi, does anyone have": You can't do that
13:39:21FromDiscord<Robyn [She/Her]> You have to manually convert the string to a tuple
13:39:30FromDiscord<Robyn [She/Her]> Really, you should avoid using casts whenever possible
13:42:41FromDiscord<nikita> I'd like to avoid a loop and copying items one-by-one when I already have necessary piece of memory
13:44:44FromDiscord<nikita> I can use `pixels.len / sizeof Pixel`, but I thought `len` returns items count, not size of seq
13:45:12FromDiscord<demotomohiro> How about to use `https://nim-lang.org/docs/system.html#toOpenArrayByte%2Cstring%2Cint%2Cint` to get `openArray[byte]` or fork nimPNG and change code to return type you want.
13:49:03FromDiscord<nikita> I'm not trying to solve this particular problem, I'm trying to understand how cast works. `openArray[byte]` is not what I'm trying to achieve. I'm trying to use existing piece of memory like it's a different type↵(@demotomohiro)
13:52:58*casaca joined #nim
13:53:04FromDiscord<odexine> strings and tuples have differing underlying representations. you cannot cast them
13:53:37FromDiscord<anuke> If the data is string and you want to move it to a seq of pixels, you can try creating a newSeq of the correct length based on string size, then doing copyMem from addr data[0] to addr pixels[0]
13:54:00FromDiscord<nikita> but I can and I can use it, I'm getting valid data after casting, only the len is invalid↵(@odexine)
13:54:01FromDiscord<demotomohiro> sent a code paste, see https://play.nim-lang.org/#pasty=qUOxtTjCsLPJ
13:55:04FromDiscord<odexine> pixie Image.data is seq[ColorRGBX], i dont know why you say it is string?
13:55:17FromDiscord<nikita> nimPNG↵(@odexine)
13:55:24FromDiscord<odexine> ah, misread. okay
13:56:31FromDiscord<anuke> You can't cast it to a seq directly, but you can copy over the data as mentioned in my message above
13:56:33FromDiscord<odexine> in such case i believe it is not safe to cast from one seq to another if the lengths do not match (ie if the element sizes are different)
13:56:57FromDiscord<nikita> I understand that it can be unsafe↵(@odexine)
13:57:35FromDiscord<demotomohiro> Even if `string` and `seq` have idential data structure and cast looks like works, its own heap memory is freed twice.
13:58:21FromDiscord<odexine> you can probably do an "unsafe, but will work" cast from `seq[T]` to `ptr UncheckedArray[U]` by `cast[ptr UncheckedArray[Pixel](img.data[0])` but you naturally lose the encoded length and capacity
13:58:54FromDiscord<odexine> this also requires that the casted seq lives longer than you would use the unchecked array for, and nim will not guarantee this automatically
14:00:07FromDiscord<nikita> thanks. I'll probably just switch to pixie or use raw array then
14:00:12FromDiscord<odexine> In reply to @odexine "you can probably do": i am missing one ] `cast[ptr UncheckedArray[Pixel]](img.data[0])`
14:00:53FromDiscord<nikita> thanks. I'll probably just switch to pixie or use raw `string` then
14:01:39FromDiscord<jviega> if you just want u8's, `cast[uint8](s[n])` is free.
14:02:53FromDiscord<odexine> i think you can convert chars to uint8s without cast? i dont recall too well
14:03:35FromDiscord<jviega> Either way, it's all static, and the compiler is almost always better at micro-level optimizations than people are anyway
14:07:50FromDiscord<Robyn [She/Her]> In reply to @odexine "i think you can": You can yeah
14:14:24FromDiscord<Robyn [She/Her]> How do I spawn an async function on another thread with status-im/taskpools :/
14:14:46FromDiscord<Robyn [She/Her]> I want to have all my networking code running on a thread so the main thread is free, so
14:15:11FromDiscord<Robyn [She/Her]> But for some reason `taskpool.spawn waitFor(myCode)` doesn't work, let me copy the error
14:15:39FromDiscord<Robyn [She/Her]> sent a code paste, see https://play.nim-lang.org/#pasty=WdBJXTVTlMqZ
14:16:12FromDiscord<Robyn [She/Her]> `/home/chronos/.nimble/pkgs2/taskpools-0.0.4-e43c5170d4e9ef1b27dd0956ffa0db46f992f9a6/taskpools/taskpools.nim(467, 16) Error: undeclared identifier: 'T'` is the specific line
14:16:23*enyc quit (Ping timeout: 256 seconds)
14:59:20*_________ joined #nim
15:39:51*derpydoo joined #nim
16:06:41*eagledot joined #nim
16:41:35*SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev)
18:00:25*xutaxkamay quit (Quit: ZNC 1.8.2+deb3.1 - https://znc.in)
18:02:53*xutaxkamay joined #nim
18:04:00*tc424 joined #nim
18:18:47*jmdaemon joined #nim
18:50:25*jmdaemon quit (Ping timeout: 255 seconds)
19:31:22*rockcavera quit (Ping timeout: 256 seconds)
19:42:01*rockcavera joined #nim
19:42:01*rockcavera quit (Changing host)
19:42:01*rockcavera joined #nim
19:43:07*jmdaemon joined #nim
19:43:44FromDiscord<Elegantbeef> @Robyn [She/Her] call the procedure
19:59:49FromDiscord<penguinite> I am unsure how I should detect if a database is open with db_postgres. I tried dereferencing the pointer and checking dbName but that results in a storage access error and I see no other ways.
20:06:29*azimut quit (Ping timeout: 255 seconds)
20:10:05FromDiscord<spacelucy> would it be possible to run a command silently and check if the output includes a specific string
20:10:26FromDiscord<spacelucy> i can't figure out how to run execCmd silently
20:11:41FromDiscord<spacelucy> oh, just found execCmdEx, this seems to be what i need
20:11:55Amun-Rahttps://nim-lang.org/docs/osproc.html#execCmdEx%2Cstring%2Cset%5BProcessOption%5D%2CStringTableRef%2Cstring%2Cstring
20:12:00Amun-Rayes
20:14:45FromDiscord<spacelucy> cool, that works
20:15:33*jmdaemon quit (Ping timeout: 272 seconds)
20:17:49FromDiscord<spacelucy> wow, this is infinitely easier than trying to extract the arch linux repository files
20:17:51FromDiscord<spacelucy> pacman -Sl
20:18:12FromDiscord<nikita> sent a code paste, see https://play.nim-lang.org/#pasty=tlMLZZUJaMgo
20:18:38FromDiscord<Elegantbeef> `import pixie as nil`
20:18:46FromDiscord<Elegantbeef> Is what you expect
20:19:06FromDiscord<Elegantbeef> `import pixie except Path` probably is what you want
20:20:51FromDiscord<Elegantbeef> Alternatively you could do `paths.Path(...)`
20:25:24FromDiscord<nikita> thank you very much\:)
20:31:40FromDiscord<Robyn [She/Her]> Beef, this is the line of code: `taskpool.spawn waitFor(networkHandler())`
20:31:46FromDiscord<Robyn [She/Her]> That's what causes the error :p
20:35:13FromDiscord<Elegantbeef> @Robyn [She/Her] is it a generic?
20:36:36FromDiscord<Robyn [She/Her]> `waitFor` is
21:11:31*jmdaemon joined #nim
21:42:29*eagledot quit (Ping timeout: 240 seconds)
23:08:48*advesperacit quit ()
23:10:34FromDiscord<that_dude.> sent a code paste, see https://play.nim-lang.org/#pasty=GGkIATwMizym
23:13:37FromDiscord<that_dude.> The rest of the project is written in c++ and will be compiled as such. I just want to try to write my part to work with the rest of it
23:16:36FromDiscord<Elegantbeef> `exportc, dynlib`
23:16:39FromDiscord<Elegantbeef> Or just exportc I guess
23:17:04FromDiscord<Elegantbeef> Fairly certain codegendecl only has two `$#`s
23:19:16FromDiscord<that_dude.> The issue is that I need the last argument to be const
23:20:44FromDiscord<that_dude.> Ah it looks like I missread the manual
23:23:05FromDiscord<Elegantbeef> Yea I don't think there is a way to import that
23:23:12FromDiscord<Elegantbeef> Best thing to do would be to emit a C++ proc that calls your Nim proc
23:25:26FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=dorIqvIyCzhW
23:33:08FromDiscord<that_dude.> I'm trying to understand it, do you have a typo in `int pnm_write_pixel(int x, int y, const float rgb []){ pnm_write_pixel(x, y, rgb);}`?
23:33:12FromDiscord<that_dude.> Am I just stupid?
23:34:01FromDiscord<kiloneie> where is excl() for sets defined ? or more like, exclImpl ?↵https://nim-lang.org/docs/sets.html#excl%2CHashSet%5BA%5D%2CA↵↵source view just has discard exclImpl(s, key)
23:34:31FromDiscord<kiloneie> (edit) "discard" => "`discard" | "key)" => "key)`"
23:35:15FromDiscord<Elegantbeef> should be `_impl` yes dude
23:35:30FromDiscord<kiloneie> Never mind, found it
23:36:18FromDiscord<Elegantbeef> Don't delete questions once you find the answer
23:36:25FromDiscord<Elegantbeef> That's the worst behaviour known to man
23:36:25FromDiscord<kiloneie> Sorry D:
23:36:35*derpydoo quit (Ping timeout: 264 seconds)
23:36:56FromDiscord<kiloneie> Was looking for exclImpl() definition, found it here: https://github.com/nim-lang/Nim/blob/version-2-0/lib/pure/collections/setimpl.nim
23:37:10FromDiscord<kiloneie> and o,o, im overloading that ? okay...
23:37:13FromDiscord<Elegantbeef> To reference firefly there's a special place in hell for pedophiles and people that delete questions after finding the answer 😄
23:37:49FromDiscord<Elegantbeef> Overloadding what?
23:38:20FromDiscord<kiloneie> well i made a fake Table with hashSets, and now im trying to do some operations
23:38:39FromDiscord<kiloneie> since it's a fake Table, it has tuples in it
23:38:49FromDiscord<kiloneie> and i don't wanna type the whole tuple everytime
23:38:56FromDiscord<Elegantbeef> Why do you have to overload the `execImpl`?
23:39:01FromDiscord<Elegantbeef> Implement `hash` and `==` for your types
23:39:18FromDiscord<kiloneie> hash is done, [] is done
23:39:55FromDiscord<Elegantbeef> > and i don't wanna type the whole tuple everytime↵So make a type alias?
23:39:57FromDiscord<Elegantbeef> Use the 'using statement'
23:40:07FromDiscord<kiloneie> Hmm
23:41:15FromDiscord<Elegantbeef> I have no idea what you're doing but there are a multitude of ways to reduce typing
23:42:37FromDiscord<kiloneie> well i am trying to make this: `echo keyValue.missingOrExcl(("Key 1", 101))` into this: `echo keyValue.missingOrExcl("Key 1")`
23:43:21FromDiscord<kiloneie> how do you make text be on it's own line ? i made terrible formatting above
23:44:10FromDiscord<Elegantbeef> `"keyValue"`?
23:44:20FromDiscord<Elegantbeef> Ostensibly this is a `Hashset[(string, int)]`
23:44:47FromDiscord<kiloneie> HashSet[KeyValue], KeyValue is a generic tuple
23:45:00FromDiscord<Elegantbeef> I don't get why this isn't a `Table[string, int]` if you're doing what you're doing, but just iterate and remove when the key matches
23:45:25FromDiscord<kiloneie> it's a fake table 😛
23:45:50FromDiscord<Elegantbeef> Why?
23:46:08FromDiscord<kiloneie> someone told me it was a good idea, so i made it, idk.
23:46:58FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=vEBPirIJIDHc
23:47:03FromDiscord<Elegantbeef> Ah the worst idea to write a data type
23:47:11FromDiscord<Elegantbeef> "Someone told me it was a good idea"
23:48:29FromDiscord<kiloneie> I don't want to say the name :P. But it was some experience.
23:48:40FromDiscord<kiloneie> Also thanks for the help 🙂
23:54:39*SchweinDeBurg joined #nim