00:10:45 | FromDiscord | <goerge_lsd> newer than 2.2.0 ? |
01:18:43 | * | lucasta quit (Remote host closed the connection) |
01:50:07 | FromDiscord | <morgan (ping with reply)> lol https://media.discordapp.net/attachments/371759389889003532/1303899253034192906/image.png?ex=672d6e4f&is=672c1ccf&hm=32064dddda866cd1ebd7ef3ef6d1845fb25f10729ac8f2155982d798165077ac& |
02:02:40 | * | Jjp137 quit (Ping timeout: 260 seconds) |
02:35:38 | FromDiscord | <k0ts> 2.2.0 should already include a bunch of -Wincompatible-pointer-types fixes |
02:35:43 | FromDiscord | <k0ts> Need full error to say anything further |
03:16:08 | * | rockcavera quit (Remote host closed the connection) |
03:34:36 | * | def- quit (Ping timeout: 276 seconds) |
03:44:14 | * | def- joined #nim |
04:10:31 | * | Jjp137 joined #nim |
04:16:52 | FromDiscord | <k0ts> It's a bug in nimclipboard. type clipboard_c needs to be importc'd |
04:33:31 | * | marcus quit (Ping timeout: 252 seconds) |
04:47:31 | * | marcus joined #nim |
06:14:56 | * | SchweinDeBurg quit (Quit: WeeChat 4.5.0-dev) |
06:19:13 | * | SchweinDeBurg joined #nim |
07:34:23 | * | cm_ joined #nim |
07:35:45 | * | cm quit (Ping timeout: 260 seconds) |
07:35:45 | * | cm_ is now known as cm |
08:27:46 | FromDiscord | <.tokyovigilante> Is there anything like Swift's protocols in nim? ie defining an interface that an object or module can then implement? I am assuming no given the limited OOP support but thought I'd ask |
08:43:23 | FromDiscord | <k0ts> Have you looked at concepts? |
08:53:10 | FromDiscord | <.tokyovigilante> Not yet, thanks for the heads up |
08:54:02 | FromDiscord | <k0ts> https://nim-lang.org/docs/manual_experimental.html#concepts↵https://github.com/nim-lang/RFCs/issues/168 |
10:27:25 | * | PMunch joined #nim |
10:28:19 | PMunch | How do you copy a ref object? |
10:52:11 | FromDiscord | <k0ts> I usually `let b = (ref Thing)(); b[] = a[]` |
10:52:17 | FromDiscord | <k0ts> Interested to know if there's a better way |
11:02:15 | Amun-Ra | but that's a shallow copy |
11:02:55 | FromDiscord | <k0ts> It sure is |
11:05:32 | Amun-Ra | there's a deepCopy in system |
11:22:13 | PMunch | Yeah there is deepCopy, which is what I've been using |
11:22:34 | PMunch | But it requires --deepCopy:on and its a simple object so I don't need it |
11:22:48 | PMunch | Simple as in a string and a couple integers |
11:22:59 | PMunch | The string doesn't change, so it doesn't have to be copied |
11:33:14 | Amun-Ra | PMunch: hmm, make your own `=copy`? |
11:33:23 | PMunch | Ugh |
11:33:27 | PMunch | That's no fun |
11:33:52 | Amun-Ra | but it'll be best tailored for the case |
11:34:33 | PMunch | And @k0ts, it is defined as `ref object`, not sure if I can do `[]` on those |
11:34:48 | PMunch | Of course it will, but I just want something quick and dirty that works |
11:48:37 | * | xet7 quit (Ping timeout: 252 seconds) |
11:51:41 | FromDiscord | <k0ts> I'm pretty sure you can, I'm only writing it as ref Thing to show that it's a ref type |
12:01:35 | * | xet7 joined #nim |
12:03:28 | PMunch | I see, might have to try that out |
13:11:17 | FromDiscord | <spotlightkid> Is the bridge down again? Last msg I see her is from 09\:58 and on IRC the last one is from 13\:03. |
13:11:26 | FromDiscord | <spotlightkid> Is the bridge down again? Last msg I see here is from 09\:58 and on IRC the last one is from 13\:03. |
13:12:00 | strogon14 | Hmm, works at least in the direction matrix->IRC |
13:12:24 | FromDiscord | <nnsee> i see your messages here as well |
13:12:32 | FromDiscord | <nnsee> on discord, that is |
13:12:57 | strogon14 | Now, I see the messages until 13:03 as well. Just took a while to load them I guess. I reloaded at least three times... |
13:14:22 | strogon14 | no, sorry, I got confused ;-/ Not seeing them on matrix. |
13:15:58 | strogon14 | PMunch: copying ref objects seems to work as expected: https://play.nim-lang.org/#pasty=zSklEpPU |
13:17:22 | PMunch | Ooh, nice |
13:18:12 | FromDiscord | <pmunch> Hmm, seems so |
13:18:23 | FromDiscord | <pmunch> But only one way, very strange |
13:24:21 | * | PMunch quit (Remote host closed the connection) |
13:24:35 | * | PMunch joined #nim |
13:33:34 | * | lucasta joined #nim |
13:59:32 | * | ntat joined #nim |
14:47:38 | PMunch | q |
15:24:42 | * | beholders_eye joined #nim |
16:57:11 | FromDiscord | <nervecenter> Is there a canonical way to check a string's UTF-8 validity and only convert the runes that need it? |
16:57:17 | FromDiscord | <nervecenter> I don't want to reinvent the wheel here |
17:39:37 | * | GnuYawk quit (Quit: The Lounge - https://thelounge.chat) |
17:39:45 | FromDiscord | <mtriplet> Hello I wanna know if it is possible to configure helix by using nim languages? |
17:39:58 | * | GnuYawk joined #nim |
17:48:02 | * | lucasta quit (Quit: Leaving) |
17:52:17 | * | GnuYawk quit (Quit: The Lounge - https://thelounge.chat) |
17:53:07 | * | GnuYawk joined #nim |
18:19:34 | * | beholders_eye quit (Ping timeout: 260 seconds) |
19:29:02 | FromDiscord | <michaelb.eth> In reply to @nervecenter "Is there a canonical": what do you mean by "convert only the runes that need it?" |
19:31:25 | FromDiscord | <nervecenter> I've been informed that apparently a UTF-8 string can potentially be double-encoded if you run encoding across it twice, possibly due to some kind of first-byte collision for some runes? |
19:32:02 | FromDiscord | <nervecenter> I'm dealing with strings that are only partially UTF-8 encoded (JSON data that has sporadic and inconsistent data encoding), and I need the WHOLE thing in valid UTF-8 |
19:32:25 | * | lucasta joined #nim |
19:32:45 | * | xutaxkamay_ joined #nim |
19:33:18 | FromDiscord | <nervecenter> `std/encodings.convert()` does not appear to work |
19:33:34 | * | xutaxkamay quit (Ping timeout: 252 seconds) |
19:33:40 | * | xutaxkamay_ is now known as xutaxkamay |
19:33:50 | FromDiscord | <nervecenter> Meanwhile forcing UTF-8 conversion in Sublime DOES |
19:48:57 | * | beholders_eye joined #nim |
19:56:12 | * | ntat quit (Quit: Leaving) |
20:01:39 | * | beholders_eye quit (Ping timeout: 260 seconds) |
20:30:23 | FromDiscord | <michaelb.eth> hmm, not sure I understand↵will try to ask some more question when I get back to the computer later |
20:41:49 | FromDiscord | <ninovanhooff> sent a code paste, see https://play.nim-lang.org/#pasty=EoHwVCkL |
20:42:41 | FromDiscord | <morgan (ping with reply)> yeah unfortunately you can't reuse names |
20:43:08 | FromDiscord | <morgan (ping with reply)> it would be nice, the compiler could enforce that it's the same type and then if needed under the hood, prefix each |
20:43:32 | FromDiscord | <morgan (ping with reply)> you could also have multiple cases |
20:44:01 | FromDiscord | <morgan (ping with reply)> one that has levelpath if it is game or levelselect, and another to add other stuff to the others |
20:44:34 | FromDiscord | <morgan (ping with reply)> afaik you can have any number of cases in a variant object, i think i've used 3 in one before |
20:44:37 | FromDiscord | <morgan (ping with reply)> @ninovanhooff |
20:47:47 | FromDiscord | <ninovanhooff> Thanks morgan. Not that in my example, the types also differ |
20:48:33 | FromDiscord | <ninovanhooff> (edit) "differ" => "differ. But its no trouble using a different name. It has the benefit to avoid confusion" |
20:50:13 | FromDiscord | <Elegantbeef> This is all cause Nim does not have statically typed branches if anyone wants the internal issues |
20:53:37 | FromDiscord | <Elegantbeef> You have to do the Rust-like where `Parent` has to be converted to `Child` to access fields to allow names to be shared https://github.com/beef331/fungus if one wants a macro for this |
21:17:38 | * | rockcavera joined #nim |
22:41:24 | * | lucasta quit (Quit: Leaving) |
23:57:52 | FromDiscord | <umi_l> is there a specific channel to ask for help or do I just ask here? |