00:43:54 | * | rockcavera is now known as Guest7148 |
00:43:54 | * | tiorock joined #nim |
00:43:54 | * | Guest7148 quit (Killed (molybdenum.libera.chat (Nickname regained by services))) |
00:43:54 | * | tiorock is now known as rockcavera |
00:45:59 | * | tiorock joined #nim |
00:45:59 | * | tiorock quit (Changing host) |
00:45:59 | * | tiorock joined #nim |
00:45:59 | * | rockcavera quit (Killed (iridium.libera.chat (Nickname regained by services))) |
00:45:59 | * | tiorock is now known as rockcavera |
01:33:54 | * | bcksl quit (Ping timeout: 260 seconds) |
01:34:10 | * | end quit (Ping timeout: 248 seconds) |
01:54:38 | * | bcksl joined #nim |
01:58:58 | * | rockcavera is now known as Guest2234 |
01:58:58 | * | tiorock joined #nim |
01:58:58 | * | Guest2234 quit (Killed (tantalum.libera.chat (Nickname regained by services))) |
01:58:58 | * | tiorock is now known as rockcavera |
02:01:46 | * | end joined #nim |
02:19:16 | * | jn_ joined #nim |
02:19:16 | * | jn_ quit (Changing host) |
02:19:16 | * | jn_ joined #nim |
02:19:33 | * | jn quit (Ping timeout: 276 seconds) |
02:27:03 | * | rockcavera quit (Remote host closed the connection) |
02:30:34 | * | amadaluzia joined #nim |
02:39:20 | * | lx12ucy joined #nim |
05:05:23 | FromDiscord | <litlighilit> std/strformat↵(@krisp0) |
05:17:02 | FromDiscord | <litlighilit> sent a long message, see https://pasty.ee/zlpcPUWv |
05:41:04 | * | redj quit (Ping timeout: 260 seconds) |
05:41:26 | * | redj joined #nim |
05:53:02 | * | bcksl quit (Ping timeout: 252 seconds) |
05:53:46 | * | end quit (Ping timeout: 252 seconds) |
05:59:48 | * | skippy8 joined #nim |
06:11:55 | * | bcksl joined #nim |
06:16:56 | * | end joined #nim |
07:20:17 | * | SchweinDeBurg quit (Quit: WeeChat 4.7.0-dev) |
07:20:30 | * | fallback quit (Read error: Connection reset by peer) |
07:38:55 | * | fallback joined #nim |
07:41:03 | FromDiscord | <TӨMΛ ☠> Is there a proc in Nim to do `assert ("-" 5) == "-----"`? |
07:42:19 | * | SchweinDeBurg joined #nim |
09:40:02 | * | bcksl quit (Ping timeout: 248 seconds) |
09:40:59 | * | end quit (Ping timeout: 260 seconds) |
10:11:59 | * | bcksl joined #nim |
10:17:01 | * | end joined #nim |
11:11:24 | * | shrikant quit (Ping timeout: 260 seconds) |
11:19:14 | * | jjido joined #nim |
11:42:01 | * | beholders_eye joined #nim |
12:46:19 | * | nils` quit (Ping timeout: 260 seconds) |
13:03:55 | * | jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…) |
13:04:16 | * | amadaluzia quit (Quit: ZNC 1.10.0 - https://znc.in) |
13:04:31 | * | amadaluzia joined #nim |
13:31:05 | * | nils` joined #nim |
13:31:41 | * | jjido joined #nim |
13:32:49 | * | jjido quit (Client Quit) |
14:05:03 | FromDiscord | <krissh.wtf> hello is it possible to format the json from the `%` operator when writing to a file only using the standard library |
14:05:20 | FromDiscord | <krissh.wtf> since its written in one line |
14:11:48 | FromDiscord | <nasuray> In reply to @krissh.wtf "hello is it possible": Yep! `pretty(someJson)` (https://nim-lang.org/docs/json.html#pretty%2CJsonNode%2Cint) |
14:14:54 | FromDiscord | <krissh.wtf> oh thank you! |
15:24:03 | * | skippy8 quit (Quit: WeeChat 4.6.3) |
15:26:38 | * | jjido joined #nim |
15:32:53 | * | jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…) |
15:57:47 | * | jjido joined #nim |
16:02:42 | FromDiscord | <__sxp__> This might be a long-shot, but does anyone know if there were any experiments with using Nim on 16-bit (real-mode) x86 target? |
16:03:14 | FromDiscord | <__sxp__> Might be useful for OSDev where you don't really want to build an assembly stuff to put you into protected mode or long mode |
16:03:27 | * | jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…) |
16:03:29 | FromDiscord | <__sxp__> also, for DOS programs without using extenders |
16:04:02 | FromDiscord | <__sxp__> gcc-ia16 and openwatcom does support such targets so IT MIGHT WORK in theory, but I wonder how Nim would work with segmented memory layout |
16:47:29 | FromDiscord | <sOkam (alt)> In reply to @__sxp__ "gcc-ia16 and openwatcom does": should be doable with arc and good compile flags for gcc. or using the compiler you mentioned↵haven't done unusual targets myself, but I've seen people do embedded around here before↵it's a matter of figuring out the build flags I'd say |
17:22:30 | FromDiscord | <__sxp__> I had some great success with Amiga but I think that was already covered |
17:22:45 | FromDiscord | <__sxp__> And you have rather simple system with linear memory there |
17:23:17 | FromDiscord | <__sxp__> On DOS it’s more like a jungle with interrupts and ports and that memory layout I mentioned |
17:31:23 | FromDiscord | <tauruuuuuus> In reply to @__sxp__ "This might be a": I use it routinely on AVR which is 8bit, 16-bit addressable/program memory |
17:32:00 | FromDiscord | <__sxp__> But AVR doesn’t use weird paging/window stuff in memory layout? |
17:32:24 | FromDiscord | <__sxp__> Aside of that it’s pretty interesting, could you tell me more? |
17:32:52 | FromDiscord | <__sxp__> I assume it’s something more elaborate than atmega328p on a stick? |
17:33:12 | FromDiscord | <__sxp__> (However, I wouldn’t mind running nim on that, too :D) |
17:47:53 | * | jjido joined #nim |
18:42:28 | FromDiscord | <blashyrk> Is Nim's `ptr` type completely unmanaged? Meaning if I store a `ptr` to some `ref object` does it become dangling if the pointee gets deallocated/moved? |
18:48:34 | * | beholders_eye quit (Ping timeout: 260 seconds) |
19:08:35 | * | andy-turner joined #nim |
19:11:36 | * | syl quit (Quit: C-x C-c) |
19:16:17 | * | syl joined #nim |
19:21:19 | FromDiscord | <blashyrk> Also, there seems to be no weak reference type in Nim at all? Or at least I cannot find it. The problem I'm having is having a bunch of refcount increases/decreases in short lived objects in a hot loop (parallelized across many threads). If I change the data in the short lived object to `ptr MyRef` instead of just `MyRef` I get 8x speedup, but this is obviously unsafe |
19:25:02 | * | xet7 joined #nim |
19:28:11 | * | andy-turner quit (Quit: Leaving) |
19:33:17 | FromDiscord | <lainlaylie> In reply to @blashyrk "Is Nim's `ptr` type": yes |
19:35:25 | * | skippy8 joined #nim |
19:41:39 | * | jjido quit (Quit: My laptop has gone to sleep. ZZZzzz…) |
20:57:31 | FromDiscord | <morgan (ping with reply)> sent a code paste, see https://play.nim-lang.org/#pasty=QGPZjkLK |
20:59:13 | FromDiscord | <morgan (ping with reply)> otherwise for now i'll just comment out the JS tests and put a warning in the readme of my fork |
21:06:11 | FromDiscord | <kentrid> In reply to @__sxp__ "This might be a": You can try using https://github.com/nim-lang/Nim/pull/19742, the PR changes are minimal so you can apply them locally |
21:08:16 | FromDiscord | <__sxp__> sent a long message, see https://pasty.ee/MxgHhpAr |
21:09:02 | FromDiscord | <__sxp__> but I know saying that out loud will actually make Araq remove support for Amiga / Atari ST |
21:23:58 | * | rockcavera joined #nim |
21:28:36 | * | Guest80 joined #nim |
21:33:29 | * | Guest80 quit (Ping timeout: 272 seconds) |
21:38:39 | * | xet7 quit (Ping timeout: 252 seconds) |
21:51:03 | * | xet7 joined #nim |
22:27:52 | FromDiscord | <morgan (ping with reply)> uhh so int on js is 32 bit, silently??? i get a new different error elsewhere making that int64 |
22:30:00 | * | amadaluzia quit (Quit: ZNC 1.10.0 - https://znc.in) |
22:30:12 | FromDiscord | <Elegantbeef> It's a JS number isn't it |
22:30:58 | FromDiscord | <morgan (ping with reply)> i guess |
22:31:20 | FromDiscord | <morgan (ping with reply)> i was hoping nim would just do whatever to make it behave the same |
22:31:36 | FromDiscord | <Elegantbeef> Which means it's valid for like 2^53..(2^53)-1 |
22:31:43 | FromDiscord | <Elegantbeef> There is a flag to make int's ints |
22:33:02 | FromDiscord | <morgan (ping with reply)> oh is it a float internally? (that feels like where it can no longer get a precision of 1 or less) |
22:34:05 | FromDiscord | <Elegantbeef> `--jsbigint64` will control whether `int` is a number or bigint |
22:34:06 | FromDiscord | <Elegantbeef> Yes JS numbers are floats |
22:34:06 | FromDiscord | <Elegantbeef> JS does not have integers as primitives |
22:34:06 | FromDiscord | <Elegantbeef> It has bigint and typed arrays |
22:34:44 | FromDiscord | <morgan (ping with reply)> hm then i will try with that instead actually |
22:36:20 | FromDiscord | <morgan (ping with reply)> hm well i got the same error as before using that, but maybe it can fix the next errors (it got wrong values) |
22:36:27 | FromDiscord | <morgan (ping with reply)> nope |
22:37:50 | FromDiscord | <Elegantbeef> Seems it's only sized 64 bit integers that are forced to big int |
22:37:58 | FromDiscord | <Elegantbeef> So you'd have to use `int64` everywhere |
22:38:00 | FromDiscord | <Elegantbeef> JS is sill |
22:38:03 | FromDiscord | <Elegantbeef> silly\ |
22:38:06 | FromDiscord | <morgan (ping with reply)> yeah |
22:38:38 | FromDiscord | <morgan (ping with reply)> im thinking im just gonna leave a warning that it doesn't work correctly with crc32 on web |
22:39:04 | FromDiscord | <morgan (ping with reply)> oh also can nimble requires use a github url instead of nimble package? |
22:39:29 | FromDiscord | <Elegantbeef> It's a decentralized package manager, so yes |
22:39:38 | FromDiscord | <morgan (ping with reply)> ok |
22:43:46 | * | skippy8 quit (Quit: WeeChat 4.6.3) |
23:04:04 | * | om3ga quit (Ping timeout: 260 seconds) |
23:19:48 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
23:21:06 | * | Lord_Nightmare joined #nim |
23:37:47 | * | Lord_Nightmare quit (Quit: ZNC - http://znc.in) |
23:39:06 | * | tiorock joined #nim |
23:39:07 | * | tiorock quit (Changing host) |
23:39:07 | * | tiorock joined #nim |
23:39:07 | * | rockcavera quit (Killed (erbium.libera.chat (Nickname regained by services))) |
23:39:07 | * | tiorock is now known as rockcavera |
23:40:48 | * | Lord_Nightmare joined #nim |
23:41:12 | * | tiorock joined #nim |
23:41:12 | * | tiorock quit (Changing host) |
23:41:12 | * | tiorock joined #nim |
23:41:13 | * | rockcavera is now known as Guest169 |
23:41:13 | * | tiorock is now known as rockcavera |
23:44:29 | * | Guest169 quit (Ping timeout: 260 seconds) |
23:58:22 | * | tiorock joined #nim |
23:58:22 | * | tiorock quit (Changing host) |
23:58:23 | * | tiorock joined #nim |
23:58:23 | * | rockcavera is now known as Guest4594 |
23:58:23 | * | tiorock is now known as rockcavera |