01:33:35 | * | fallback joined #nim |
01:38:11 | * | rockcavera quit (Remote host closed the connection) |
01:50:48 | * | xtr00 quit (Ping timeout: 244 seconds) |
01:53:07 | * | xtr00 joined #nim |
03:23:02 | FromDiscord | <dddeserttt> sent a long message, see https://pasty.ee/cYMlMwze |
03:23:51 | FromDiscord | <dddeserttt> I have no clue where to go after this |
03:24:46 | FromDiscord | <dddeserttt> I’m using this example. |
03:24:49 | FromDiscord | <dddeserttt> sent a long message, see https://pasty.ee/CuVLQqsT |
03:47:25 | FromDiscord | <janakali> sent a code paste, see https://play.nim-lang.org/#pasty=xziXhTSd |
03:48:41 | FromDiscord | <dddeserttt> In reply to @janakali "<@663921522066325525> I assume you": Lemme try rq |
03:49:48 | FromDiscord | <dddeserttt> Well shit. Thank you! |
03:52:52 | FromDiscord | <dddeserttt> Okay now I’m getting container is empty |
06:43:05 | * | om3ga joined #nim |
06:51:53 | * | ntat joined #nim |
06:59:54 | * | nils` quit (Ping timeout: 260 seconds) |
07:28:29 | * | ntat quit (Quit: leaving) |
07:54:32 | * | maytha8 joined #nim |
07:54:57 | * | maytham quit (Read error: Connection reset by peer) |
08:00:49 | * | ntat joined #nim |
08:04:21 | * | def- quit (Ping timeout: 244 seconds) |
08:06:06 | * | def- joined #nim |
08:38:44 | * | beholders_eye joined #nim |
08:41:43 | * | ntat quit (Read error: Connection reset by peer) |
08:50:41 | * | nils` joined #nim |
09:09:32 | * | ntat joined #nim |
09:17:14 | * | ntat quit (Read error: Connection reset by peer) |
09:45:56 | * | ntat joined #nim |
10:03:47 | * | ntat quit (Read error: Connection reset by peer) |
10:18:00 | * | ntat joined #nim |
10:19:53 | FromDiscord | <bubbly_avocado_86424> hey, since looking into building an app with UI (one or more of GUI/TUI/WUI) i'm looking at webUI but also considering use of Tauri since this covers a lot of ground already. ↵↵Is there a good resource on working Nim + Tauri outside of what is on the Tauri website ? |
10:26:52 | * | ntat quit (Read error: Connection reset by peer) |
11:13:03 | * | amadaluzia joined #nim |
11:23:34 | * | amadaluzia quit (Ping timeout: 260 seconds) |
11:25:27 | * | amadaluzia joined #nim |
11:35:33 | * | przmk quit (Quit: The Lounge - https://thelounge.chat) |
11:35:33 | * | przmk_ is now known as przmk |
11:35:33 | * | przmk quit (Remote host closed the connection) |
11:36:02 | * | przmk joined #nim |
11:36:26 | * | przmk8 joined #nim |
13:42:28 | * | przmk4 joined #nim |
13:44:31 | * | przmk8 quit (Ping timeout: 252 seconds) |
13:44:32 | * | amadaluzia quit (Quit: ZNC 1.9.1 - https://znc.in) |
13:45:31 | * | amadaluzia joined #nim |
13:47:25 | FromDiscord | <entropydev> I want to serialize and deserialize an object from JSON and I have some properties on the object I can serialize to a base 64 string. How do I tell the `to` function to parse the string using some custom logic? |
13:52:03 | * | przmk4 quit (Quit: The Lounge - https://thelounge.chat) |
13:52:03 | * | przmk quit (Remote host closed the connection) |
13:52:29 | * | przmk joined #nim |
13:52:32 | * | przmk4 joined #nim |
14:00:07 | * | przmk quit (Remote host closed the connection) |
14:00:07 | * | przmk4 quit (Quit: The Lounge - https://thelounge.chat) |
14:00:34 | * | przmk joined #nim |
14:00:36 | * | przmk4 joined #nim |
14:02:26 | * | ntat joined #nim |
14:02:53 | * | amadaluzia quit (Quit: ZNC 1.9.1 - https://znc.in) |
14:03:53 | * | amadaluzia joined #nim |
14:03:54 | * | przmk quit (Remote host closed the connection) |
14:03:54 | * | przmk4 quit (Client Quit) |
14:04:22 | * | przmk4 joined #nim |
14:06:19 | * | przmk joined #nim |
15:01:35 | FromDiscord | <bubbly_avocado_86424> In reply to @sharpcdf "https://codeberg.org/sharpcdf/tauri-nim finished my": gave this a quick test, fails to build with nim 2.2.4↵ 1. downloaded + extracted↵ 2. change tauri-nim↵ 3. nimble dev |
15:06:07 | * | przmk4 quit (Quit: The Lounge - https://thelounge.chat) |
15:06:07 | * | przmk quit (Remote host closed the connection) |
15:12:56 | * | przmk joined #nim |
15:12:57 | * | przmk4 joined #nim |
16:57:13 | FromDiscord | <nervecenter> In reply to @entropydev "I want to serialize": `std/jsonutils` might have some of what you're looking for; otherwise, just wrap your `.to()` call in a custom proc, with a step that transforms the JSON string. If it doesn't match the type signature if the final object, you of course might need some kind of intermediate type, but putting the extra steps in a nice container proc keeps things clean. |
16:57:16 | FromDiscord | <nervecenter> https://nim-lang.org/docs/jsonutils.html |
16:57:29 | FromDiscord | <nervecenter> (edit) "JSON" => "base64" |
16:57:39 | FromDiscord | <nervecenter> (edit) "In reply to @entropydev "I want to serialize": `std/jsonutils` might have some of what you're looking for; otherwise, just wrap your `.to()` call in a custom proc, with a step that ... transforms" added "decodes and" |
16:58:12 | FromDiscord | <nervecenter> Very similar to wrapping a call to a C library in a nice clean Nim proc that does all the conversions in a contained scope |
17:03:02 | FromDiscord | <entropydev> In reply to @nervecenter "`std/jsonutils` might have some": I came across jsonutils, but I couldn't find an example of providing a deserialization function for a custom type |
17:14:04 | FromDiscord | <nervecenter> sent a long message, see https://pasty.ee/eKJSOBIV |
17:25:18 | FromDiscord | <pmunch> Maybe time to remove this? `Warning: Deprecated since v0.20, use 'toHashSet'; toSet is deprecated` |
17:25:20 | * | przmk4 quit (Quit: Ping timeout (120 seconds)) |
17:25:40 | FromDiscord | <pmunch> Has apparently been deprecated for two major versions now 😛 |
17:25:43 | * | przmk4 joined #nim |
17:32:11 | * | xet7 quit (Quit: Leaving) |
17:46:04 | * | beholders_eye quit (Ping timeout: 260 seconds) |
18:28:56 | FromDiscord | <aintea> sent a code paste, see https://play.nim-lang.org/#pasty=tPUmMAAT |
18:29:42 | FromDiscord | <aintea> (edit) "https://play.nim-lang.org/#pasty=sSYzPkUJ" => "https://play.nim-lang.org/#pasty=ClfuVrtp" |
18:34:26 | * | skippy8 joined #nim |
18:34:46 | FromDiscord | <pmunch> @aintea, taking inspiration from proposed Go error handling? |
18:34:54 | FromDiscord | <aintea> absolutely |
18:38:08 | FromDiscord | <aintea> I love macros that simplify life |
18:38:57 | FromDiscord | <Elegantbeef> Except a macro isn't needed so stop using it |
18:49:34 | FromDiscord | <kapendev> I remember when I made something similar to copy Rust's `?`. Was a bad idea, but fun. |
18:50:05 | * | przmk quit (Remote host closed the connection) |
18:53:43 | FromDiscord | <heysokam> In reply to @entropydev "I want to serialize": https://github.com/heysokam/ngltf/blob/6d03c80b4f80a4a7610f3bd1078ddf8e145e208d/src/ngltf/load/texture.nim#L37 |
18:54:00 | FromDiscord | <heysokam> That might help |
18:57:33 | FromDiscord | <heysokam> In reply to @aintea "I love macros that": this idea/statement should be perfectly fine and awesome while you work alone and with a small project↵I don't see this scaling well at all↵the goal of macros is not to simplify life, but rather to make otherwise impossible things possible, imo |
19:10:00 | FromDiscord | <Elegantbeef> Well like I said this is just a template so snooze |
19:30:40 | FromDiscord | <Phil> In reply to @heysokam "this idea/statement should be": I agree with your take here.↵Complex macros are hard to maintain even medium term.↵They must be worth the long-term effort they introduce. |
19:35:30 | FromDiscord | <pmunch> In reply to @heysokam "this idea/statement should be": Some life-simplification can certainly be the case though. As long as it's clear what's going on |
19:37:25 | FromDiscord | <pmunch> I've implemented a `retryable` macro which creates a `retry` template that restarts a loop for example. Should be pretty obvious when you read that what's going on, and the code is only a couple of lines so not much of a maintenance burden |
19:48:52 | FromDiscord | <pmunch> Damn it, I've created beautiful spam filtering thing for the forums. Works great in my test environment, but when I tried to integrate the check into the forum it just fails.. |
19:49:17 | FromDiscord | <Elegantbeef> Was it you that fixed the logo being wrong? |
19:49:26 | FromDiscord | <pmunch> Yeah |
19:49:33 | FromDiscord | <nnsee> In reply to @pmunch "Damn it, I've created": how does it work/fail? |
19:49:39 | FromDiscord | <pmunch> It was also me who made the logo wrong in the first place 😅 |
19:49:53 | FromDiscord | <pmunch> Because the Table I create to hold my word -> score mapping is global and the forum is multi-threaded.. |
19:50:37 | FromDiscord | <pmunch> Err, well not multi-threaded, but stuff is required to be GC-safe |
19:50:57 | FromDiscord | <pmunch> Oh wait, it is actually multi-threaded |
19:56:21 | FromDiscord | <pmunch> What's interesting is that it just immediately fails |
19:56:34 | FromDiscord | <pmunch> https://pasty.ee/NblaThwr |
19:57:10 | FromDiscord | <pmunch> It finds the word list, reads it into a Table, then starts Jester which just immediately crashes from some random ORC thing |
19:57:21 | FromDiscord | <pmunch> No lookup in the Table is ever triggered |
20:03:10 | FromDiscord | <pmunch> Hmm, seems to have been completely unrelated |
20:03:17 | FromDiscord | <pmunch> I was jut derping with how I ran the forum |
20:37:53 | FromDiscord | <Robyn [She/Her]> In reply to @pmunch "It finds the word": compile with refc time? |
20:38:33 | FromDiscord | <Robyn [She/Her]> tho iirc there's a 'modern' fork of jester that may work |
20:58:03 | * | ntat quit (Quit: leaving) |
21:19:42 | * | andy-turner joined #nim |
21:21:03 | FromDiscord | <pmunch> There is? |
21:21:09 | FromDiscord | <pmunch> But it turned out to not be the issue |
21:31:47 | FromDiscord | <Robyn [She/Her]> ah |
21:32:14 | FromDiscord | <pmunch> Testing the new forum live now, should be no more spam in the RSS feed 🙂 |
21:33:05 | FromDiscord | <pmunch> And a lot less moderation work for the moderators (not that anyone else notices this, but the forums typically get multiple spam topics every day) |
21:34:41 | * | andy-turner quit (Quit: Leaving) |
21:34:57 | * | andy-turner joined #nim |
21:35:23 | * | andy-turner quit (Remote host closed the connection) |
21:37:05 | * | rockcavera joined #nim |
22:04:52 | * | jjido joined #nim |
22:10:19 | * | amadaluzia quit (Ping timeout: 260 seconds) |
22:28:07 | * | skippy8 quit (Quit: WeeChat 4.6.3) |
22:45:07 | * | rockcavera quit (Remote host closed the connection) |
23:02:41 | * | rockcavera joined #nim |
23:23:27 | * | amadaluzia joined #nim |
23:31:20 | * | amadaluzia quit (Quit: ZNC 1.9.1 - https://znc.in) |
23:32:44 | * | amadaluzia joined #nim |
23:39:33 | * | amadaluzia quit (Ping timeout: 252 seconds) |
23:53:52 | * | amadaluzia joined #nim |
23:54:19 | * | amadaluzia quit (Remote host closed the connection) |
23:55:36 | * | amadaluzia joined #nim |