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:24 | FromDiscord | <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:40 | FromDiscord | <zectbumo> huh, why wouldn't setutils be available in nimscript? |
06:05:22 | FromDiscord | <zectbumo> because of a single macro? |
06:05:34 | FromDiscord | <Elegantbeef> Why would a macro prevent it from working in nimscript? |
06:06:10 | FromDiscord | <zectbumo> ?? i'm just guessing. I don't see macro module available in https://nim-lang.org/docs/nims.html |
06:06:23 | FromDiscord | <Elegantbeef> That's not an exhaustive list |
06:06:31 | FromDiscord | <Elegantbeef> > At least |
06:06:36 | FromDiscord | <zectbumo> oh, it's actually the first on the list. oops |
06:07:23 | FromDiscord | <zectbumo> that modules list really should be sorted 😅 |
06:07:35 | FromDiscord | <Elegantbeef> "PRs welcome" |
06:08:52 | FromDiscord | <zectbumo> not a bad idea. so why wouldn't setutils be available then in nimscript? |
06:09:07 | FromDiscord | <Elegantbeef> Who said it's not? |
06:09:35 | FromDiscord | <zectbumo> nim did `Error: cannot open file: setutils` |
06:09:44 | FromDiscord | <Elegantbeef> `import std/setutils` |
06:10:10 | FromDiscord | <zectbumo> right... I really should stop leaving std off |
06:11:59 | FromDiscord | <Elegantbeef> Once you get it, you can never stop |
06:14:04 | FromDiscord | <zectbumo> omg all the aids |
06:14:16 | FromDiscord | <zectbumo> thanks for the aid btw |
06:16:19 | * | wikipedia quit (Read error: Connection reset by peer) |
06:17:35 | FromDiscord | <Elegantbeef> Remember to share! |
06:20:02 | * | wikipedia joined #nim |
06:22:17 | FromDiscord | <zectbumo> sent a code paste, see https://play.nim-lang.org/#pasty=xcuhHkpb |
06:25:30 | FromDiscord | <Elegantbeef> would need a `template toSet(iter: untyped, destType: typedesc[set])` |
06:37:39 | * | PMunch joined #nim |
06:45:29 | FromDiscord | <zectbumo> is it possible to get a signature like `toSet[set['a'..'z']]()? |
06:49:37 | FromDiscord | <Elegantbeef> Sure but then that breaks the present toset |
06:50:16 | FromDiscord | <zectbumo> I see |
06:51:01 | FromDiscord | <zectbumo> unless I make it specific to set['a'..'z'] perhaps? |
06:51:18 | FromDiscord | <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:46 | FromDiscord | <zectbumo> that did the trick. beef, I'm giving you a hug next time I see you |
07:02:20 | FromDiscord | <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:01 | FromDiscord | <zectbumo> https://tenor.com/view/brooklyn-nine-nine-andy-samberg-mace-pepper-spray-fight-gif-3854670 |
07:11:12 | FromDiscord | <zectbumo> gn |
07:36:43 | FromDiscord | <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:56 | FromDiscord | <enthus1ast.> For complex test cenarios you could have a look at https://nim-lang.org/docs/testament.html |
08:50:54 | FromDiscord | <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:33 | FromDiscord | <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:45 | FromDiscord | <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:58 | Amun-Ra | testing resulting binary? hmm, you could mock it some other way |
15:22:37 | * | ntat joined #nim |
15:48:11 | FromDiscord | <bostonboston> Does anyone know if winim has a way to create an object by guid rather than progid |
15:51:14 | FromDiscord | <bostonboston> Com object that is |
16:35:56 | FromDiscord | <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:15 | FromDiscord | <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:00 | FromDiscord | <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:57 | FromDiscord | <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:39 | FromDiscord | <morgan (ping with reply)> is there a version of system swap for seq indices? |
18:35:23 | FromDiscord | <morgan (ping with reply)> or maybe i can just use swap on a seq with the two values indexed from it |
18:40:08 | FromDiscord | <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) |