<< 25-09-2024 >>

00:12:37*Lord_Nightmare quit (Quit: ZNC - http://znc.in)
00:25:53*Lord_Nightmare joined #nim
01:47:21*rockcavera quit (Remote host closed the connection)
02:36:29*wikipedia joined #nim
03:41:24FromDiscord<zectbumo> sent a code paste, see https://play.nim-lang.org/#pasty=KGNapRJa
04:04:32*SchweinDeBurg joined #nim
04:31:55*SchweinDeBurg quit (Ping timeout: 264 seconds)
04:33:44*SchweinDeBurg joined #nim
04:48:36*xet7 quit (Quit: Leaving)
04:50:57*SchweinDeBurg quit (Ping timeout: 246 seconds)
04:52:57*SchweinDeBurg joined #nim
05:38:05*derpydoo joined #nim
06:04:40FromDiscord<zectbumo> huh, why wouldn't setutils be available in nimscript?
06:05:22FromDiscord<zectbumo> because of a single macro?
06:05:34FromDiscord<Elegantbeef> Why would a macro prevent it from working in nimscript?
06:06:10FromDiscord<zectbumo> ?? i'm just guessing. I don't see macro module available in https://nim-lang.org/docs/nims.html
06:06:23FromDiscord<Elegantbeef> That's not an exhaustive list
06:06:31FromDiscord<Elegantbeef> > At least
06:06:36FromDiscord<zectbumo> oh, it's actually the first on the list. oops
06:07:23FromDiscord<zectbumo> that modules list really should be sorted 😅
06:07:35FromDiscord<Elegantbeef> "PRs welcome"
06:08:52FromDiscord<zectbumo> not a bad idea. so why wouldn't setutils be available then in nimscript?
06:09:07FromDiscord<Elegantbeef> Who said it's not?
06:09:35FromDiscord<zectbumo> nim did `Error: cannot open file: setutils`
06:09:44FromDiscord<Elegantbeef> `import std/setutils`
06:10:10FromDiscord<zectbumo> right... I really should stop leaving std off
06:11:59FromDiscord<Elegantbeef> Once you get it, you can never stop
06:14:04FromDiscord<zectbumo> omg all the aids
06:14:16FromDiscord<zectbumo> thanks for the aid btw
06:16:19*wikipedia quit (Read error: Connection reset by peer)
06:17:35FromDiscord<Elegantbeef> Remember to share!
06:20:02*wikipedia joined #nim
06:22:17FromDiscord<zectbumo> sent a code paste, see https://play.nim-lang.org/#pasty=xcuhHkpb
06:25:30FromDiscord<Elegantbeef> would need a `template toSet(iter: untyped, destType: typedesc[set])`
06:37:39*PMunch joined #nim
06:45:29FromDiscord<zectbumo> is it possible to get a signature like `toSet[set['a'..'z']]()?
06:49:37FromDiscord<Elegantbeef> Sure but then that breaks the present toset
06:50:16FromDiscord<zectbumo> I see
06:51:01FromDiscord<zectbumo> unless I make it specific to set['a'..'z'] perhaps?
06:51:18FromDiscord<zectbumo> nevermind. it's getting late
06:53:51*derpydoo quit (Ping timeout: 276 seconds)
06:58:53*PMunch_ joined #nim
07:01:26*PMunch quit (Ping timeout: 252 seconds)
07:01:46FromDiscord<zectbumo> that did the trick. beef, I'm giving you a hug next time I see you
07:02:20FromDiscord<Elegantbeef> For some reason I need to add bearspray to my shopping list, I don't even hike
07:07:20*coldfeet joined #nim
07:11:01FromDiscord<zectbumo> https://tenor.com/view/brooklyn-nine-nine-andy-samberg-mace-pepper-spray-fight-gif-3854670
07:11:12FromDiscord<zectbumo> gn
07:36:43FromDiscord<spotlightkid> sent a code paste, see https://play.nim-lang.org/#pasty=dvVPYqOv
07:54:43*krux02 joined #nim
08:41:00*krux02 quit (Remote host closed the connection)
08:49:56FromDiscord<enthus1ast.> For complex test cenarios you could have a look at https://nim-lang.org/docs/testament.html
08:50:54FromDiscord<enthus1ast.> And in addition in the Test itself you could use the unittest library
09:02:00*wikipedia quit (Read error: Connection reset by peer)
09:05:45*wikipedia joined #nim
09:08:00*wikipedia quit (Read error: Connection reset by peer)
09:08:33FromDiscord<spotlightkid> Thanks for the hints, but my question wasn't about the tests themselves, but about the structure and features of the nimscript in `.nimble` files.↵I'm actually already using the unittest module in my tests, but I want to specifically test the executable built by `nimble build`.
09:09:15*wikipedia joined #nim
10:37:18*beholders_eye joined #nim
10:52:55*wikipedia quit (Read error: Connection reset by peer)
12:20:16*beholders_eye quit (Read error: Connection reset by peer)
12:25:44*beholders_eye joined #nim
12:36:27*beholders_eye quit (Read error: Connection reset by peer)
12:42:04*beholders_eye joined #nim
12:58:58*xet7 joined #nim
13:28:02*wikipedia joined #nim
13:31:45FromDiscord<nasuray> In the past I've written logic to compile it using the setup template within suite from unit tests... For passing params you can capture the commandline params and add them to your exec call manually
13:44:39*PMunch_ quit (Quit: Leaving)
14:42:04*xet7 quit (Remote host closed the connection)
14:51:46*coldfeet quit (Remote host closed the connection)
14:55:58Amun-Ratesting resulting binary? hmm, you could mock it some other way
15:22:37*ntat joined #nim
15:48:11FromDiscord<bostonboston> Does anyone know if winim has a way to create an object by guid rather than progid
15:51:14FromDiscord<bostonboston> Com object that is
16:35:56FromDiscord<m4ul3r> In reply to @bostonboston "Does anyone know if": Looking at the docs, doesn’t seem like it. But you could probably ffi the CLSIDFromString function and get the progid from it?
16:55:15FromDiscord<bostonboston> When I looked at the source `CreateObject` checks if the first character is { and then calls the appropriate ole32 function, so turns out createobject is the right one
16:58:00FromDiscord<bostonboston> I was bamboozled by this application that uses com objects that are not registered, I love com so much
17:14:16*SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev)
17:21:57FromDiscord<m4ul3r> In reply to @bostonboston "When I looked at": Oh that’s cool, actually looking at the code it looks like com is pretty manual written, where most of winim is ffi and autogenerated
17:26:23*xet7 joined #nim
17:26:47*jjido joined #nim
18:34:39FromDiscord<morgan (ping with reply)> is there a version of system swap for seq indices?
18:35:23FromDiscord<morgan (ping with reply)> or maybe i can just use swap on a seq with the two values indexed from it
18:40:08FromDiscord<morgan (ping with reply)> oh nice it works
19:16:47*ntat quit (Quit: Leaving)
20:07:19*disso-peach quit (Quit: Leaving)
20:53:51*jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…)
21:14:42*krux02 joined #nim
21:39:37*lucasta joined #nim
21:53:39*lucasta quit (Remote host closed the connection)
21:58:36*rockcavera joined #nim
22:06:08*pbsds37 joined #nim
22:08:09*pbsds3 quit (Ping timeout: 265 seconds)
22:08:10*pbsds37 is now known as pbsds3
22:23:48*beholders_eye quit (Read error: Connection reset by peer)
22:29:38*beholders_eye joined #nim
22:48:17*wikipedia quit (Read error: Connection reset by peer)
23:04:10*beholders_eye quit (Ping timeout: 260 seconds)