00:02:48 | * | def- quit (Quit: -) |
00:21:47 | * | def- joined #nim |
00:25:43 | * | def- quit (Client Quit) |
00:26:39 | * | def- joined #nim |
00:30:10 | * | def- quit (Client Quit) |
01:08:10 | * | def- joined #nim |
01:49:35 | * | def- quit (Quit: -) |
01:50:45 | * | def- joined #nim |
02:03:40 | * | def- quit (Quit: -) |
02:04:04 | * | def- joined #nim |
02:09:26 | FromDiscord | <drunkenalcoholic> Anyone here using Helix Editor? and are they having highlighting issues for Nim code? |
02:30:29 | FromDiscord | <huantian> I use helix but not for Nim |
02:30:36 | FromDiscord | <huantian> Helpful I know |
02:33:00 | FromDiscord | <drunkenalcoholic> I ended up just rebuilding helix from github and linking the runtime folder from source to .config, something in the process fixed it |
02:36:36 | * | def- quit (Quit: -) |
02:36:48 | * | def- joined #nim |
02:44:50 | * | krux02_ quit (Remote host closed the connection) |
03:32:34 | * | def- quit (Quit: -) |
03:33:33 | * | def- joined #nim |
03:45:17 | * | def- quit (Quit: -) |
03:46:41 | * | def- joined #nim |
03:49:35 | * | def- quit (Client Quit) |
04:08:07 | * | def- joined #nim |
04:15:04 | * | def- quit (Quit: -) |
04:17:49 | * | def- joined #nim |
04:25:27 | * | def- quit (Quit: -) |
04:44:23 | * | def- joined #nim |
05:32:12 | FromDiscord | <m4ul3r> Do we have a rotr and rotl in stdlib, can't find it in manual. Would i have to implement this then? |
05:34:54 | FromDiscord | <m4ul3r> nvm, looks like it's called rotateRightBits |
05:57:45 | * | rockcavera quit (Remote host closed the connection) |
06:16:23 | * | def- quit (Quit: -) |
06:38:14 | * | PMunch joined #nim |
06:38:42 | * | def- joined #nim |
06:45:24 | * | def- quit (Quit: -) |
06:46:20 | * | def- joined #nim |
06:49:59 | * | def- quit (Client Quit) |
06:52:39 | * | def- joined #nim |
06:59:32 | * | def- quit (Quit: -) |
07:00:08 | * | def- joined #nim |
07:05:13 | * | def- quit (Quit: -) |
07:11:36 | * | def- joined #nim |
07:13:42 | Amun-Ra | I don't use helix - it can't do block copying |
07:22:15 | * | def- quit (Quit: -) |
07:59:26 | * | emery_ is now known as ehmry |
08:17:25 | * | def- joined #nim |
08:19:45 | FromDiscord | <pk.kyle> how do i display a number in full, for example nim is simplifying some really small numbers using scientific notations, how do i not use it in display, or output as a string like `0.00000000000000000000001` instead of `1e-something` |
08:20:21 | * | def- quit (Client Quit) |
08:20:58 | * | def- joined #nim |
08:27:51 | FromDiscord | <pmunch> By using formatFloat: https://nim-lang.org/docs/strutils.html#formatFloat%2Cfloat%2CFloatFormatMode%2Crange%5B%5D%2Cchar |
08:28:29 | FromDiscord | <pmunch> Keep in mind though that floating point numbers lose precision with very small and very large numbers (and even some fairly common numbers). So you might want to use an arbitrary precision library |
08:36:13 | * | def- quit (Quit: -) |
09:15:27 | * | def- joined #nim |
09:18:35 | * | def- quit (Client Quit) |
09:37:51 | FromDiscord | <nocturn9x> question |
09:38:01 | FromDiscord | <nocturn9x> would nim be able to parse, say, a 100kLOC file |
09:38:20 | FromDiscord | <nocturn9x> I am generating very large tables for chess move generation and would like to dump them to disk as a nim file I can just import |
09:38:40 | FromDiscord | <nocturn9x> but it seems nim is choking: `/home/nocturn9x/CPG/src/Chess/magic_values.nim(65535, 28) Error: invalid indentation` |
09:38:50 | FromDiscord | <nocturn9x> there is no invalid indentation as far as I can see |
09:39:00 | FromDiscord | <nocturn9x> and 65535 is a very suspicious almost-power-of-two number |
09:39:07 | FromDiscord | <nocturn9x> so I was wondering if I hit a parser limitations |
09:39:10 | FromDiscord | <sOkam! 🫐> there is indeed a limit per file |
09:39:15 | FromDiscord | <sOkam! 🫐> you hit it right there |
09:39:19 | FromDiscord | <nocturn9x> rip me |
09:39:31 | FromDiscord | <nocturn9x> is it a character limit |
09:39:32 | FromDiscord | <nocturn9x> or a line limit |
09:39:43 | FromDiscord | <nocturn9x> I can yeet the newlines |
09:39:46 | * | def- joined #nim |
09:39:48 | FromDiscord | <sOkam! 🫐> I saw it recently when reading the parser, but can't remember the exact location to send you to the compiler source code |
09:39:56 | FromDiscord | <nocturn9x> I'll try some stuff |
09:40:02 | FromDiscord | <sOkam! 🫐> I just remember noticing the number |
09:40:13 | FromDiscord | <sOkam! 🫐> In reply to @nocturn9x "is it a character": character count |
09:40:23 | FromDiscord | <nocturn9x> I'll try to shrink it |
09:40:40 | FromDiscord | <sOkam! 🫐> it is done in order to save memory on lineinfos iirc |
09:41:12 | FromDiscord | <nocturn9x> makes sense |
09:41:13 | FromDiscord | <sOkam! 🫐> there is a comment somewhere about it, and it uses 2x int16, instead of an int32, in order to "save memory" as the comment says |
09:41:39 | FromDiscord | <sOkam! 🫐> (edit) "an" => "a pair of" |
09:42:46 | FromDiscord | <nocturn9x> in fairness I wouldn't expect a compiler to just parse a 100k line file willy nilly |
09:47:37 | FromDiscord | <nocturn9x> I assume there is no way to bump this limit up since it's implementation defined? |
09:49:01 | FromDiscord | <sOkam! 🫐> In reply to @nocturn9x "I assume there is": you would need to change the struct that holds the limit |
09:49:08 | FromDiscord | <sOkam! 🫐> but i'm not aware of the consequences of that |
09:49:10 | FromDiscord | <nocturn9x> _sigh_ |
09:49:21 | FromDiscord | <sOkam! 🫐> (and recompile/rebootstrap nim, ofc) |
09:50:42 | FromDiscord | <nocturn9x> sent a code paste, see https://play.nim-lang.org/#pasty=vvLDmUYLFqNC |
09:50:45 | FromDiscord | <nocturn9x> still way too big :D |
09:50:48 | FromDiscord | <nocturn9x> (edit) ":D" => ":'D" |
09:51:01 | FromDiscord | <nocturn9x> (edit) "https://play.nim-lang.org/#pasty=TwBeYnKneTOZ" => "https://play.nim-lang.org/#pasty=HrfDTbECRIop" |
09:52:01 | FromDiscord | <nocturn9x> I'll resort to JSON I suppose |
09:54:33 | FromDiscord | <sOkam! 🫐> sent a code paste, see https://play.nim-lang.org/#pasty=wjQIVnprUOXP |
09:55:01 | FromDiscord | <sOkam! 🫐> you could even parse at compiletime if the data won't change |
09:56:37 | FromDiscord | <nocturn9x> it doesn't change yeah |
09:56:48 | FromDiscord | <nocturn9x> they're tables for generating sliding moves for chess |
10:11:08 | FromDiscord | <nocturn9x> I've been told from another user that they have a 20MB nim file that gets parsed just fine |
10:11:10 | FromDiscord | <nocturn9x> that's weird |
10:30:39 | * | def- quit (Quit: -) |
10:31:21 | * | def- joined #nim |
10:34:45 | * | def- quit (Client Quit) |
10:35:38 | * | def- joined #nim |
10:38:33 | * | def- quit (Client Quit) |
10:38:58 | * | def- joined #nim |
10:44:56 | * | def- quit (Quit: -) |
10:45:38 | * | def- joined #nim |
10:50:59 | FromDiscord | <the_real_hypno> Same for me, 100k lines. Yet only types and proc protos |
10:51:11 | FromDiscord | <the_real_hypno> But i had no issue |
10:52:34 | FromDiscord | <the_real_hypno> Cant you just split it into 3 Buffers of 3 files in different threads or something? |
10:53:36 | FromDiscord | <the_real_hypno> I guess even zipping could work |
10:54:14 | FromDiscord | <the_real_hypno> Depending on the randomness of the data it could eliminate a lot of the base. Rest can be read in chunks |
11:08:11 | * | def- quit (Quit: -) |
11:31:42 | * | def- joined #nim |
11:35:59 | * | def- quit (Quit: -) |
11:37:29 | * | def- joined #nim |
11:47:43 | * | def- quit (Quit: -) |
11:47:54 | * | def- joined #nim |
11:51:07 | * | def- quit (Client Quit) |
12:26:52 | * | def- joined #nim |
13:10:26 | * | def- quit (Quit: -) |
13:12:46 | * | def- joined #nim |
13:16:25 | * | def- quit (Client Quit) |
13:17:33 | * | def- joined #nim |
13:26:40 | * | rockcavera joined #nim |
13:28:44 | * | ntat joined #nim |
13:32:01 | * | PMunch quit (Quit: Leaving) |
13:40:01 | NimEventer | New thread by tord: Including a binary data file as a Nim array, see https://forum.nim-lang.org/t/11455 |
14:06:33 | * | def- quit (Quit: -) |
14:07:04 | * | def- joined #nim |
14:15:06 | * | coldfeet joined #nim |
14:17:11 | * | coldfeet quit (Remote host closed the connection) |
14:39:01 | * | def- quit (Quit: -) |
14:39:47 | * | def- joined #nim |
14:43:04 | * | def- quit (Client Quit) |
14:44:04 | * | def- joined #nim |
14:49:09 | * | def- quit (Quit: -) |
14:50:21 | * | def- joined #nim |
15:10:10 | * | MacDefender joined #nim |
15:29:40 | FromDiscord | <BarrOff> Hello, the Nim 2.0.2 release blog post said you should use \`-d\:useMalloc\` together with \`--threads\:on\` due to some issue. It also mentioned that this would be fixed in 2.0.4. Has it been fixed or is the problem still there? |
15:37:44 | FromDiscord | <s0cketinc> I am learning python currently as my first lang |
15:37:52 | FromDiscord | <s0cketinc> then i will learn the best Nim |
15:41:29 | FromDiscord | <kots> python sucks ass |
15:41:32 | FromDiscord | <kots> just go straight to nim |
15:44:04 | FromDiscord | <the_real_hypno> In reply to @BarrOff "Hello, the Nim 2.0.2": Sliding through the changes i would say it didn't get fixed. Also, afaik i read a conversation today that pointed it out but i cant find it anymore |
15:44:38 | * | lucasta joined #nim |
15:46:43 | FromDiscord | <kots> this comment suggests to me that it hasn't been fixed: https://forum.nim-lang.org/t/11374#74050 |
15:53:41 | * | def- quit (Quit: -) |
15:54:38 | * | def- joined #nim |
15:58:08 | FromDiscord | <Hamid_Bluri> In reply to @k0ts "python sucks ass": LOL! yeah agree, but python has a lot of learning sources ↵↵I think it's best for first learners |
15:58:17 | FromDiscord | <Hamid_Bluri> (edit) "sources" => "resources" |
16:13:13 | * | MacDefender quit (Quit: WeeChat 4.2.2) |
16:29:49 | * | def- quit (Quit: -) |
16:30:55 | * | def- joined #nim |
16:33:41 | NimEventer | New Nimble package! dim - Dimensional Analysis in Nim, see https://github.com/lorenzoliuzzo/dim |
16:34:01 | * | def- quit (Client Quit) |
16:34:54 | * | def- joined #nim |
17:10:04 | * | def- quit (Quit: -) |
17:11:58 | * | def- joined #nim |
17:21:24 | * | def- quit (Quit: -) |
17:23:01 | * | def- joined #nim |
17:25:55 | * | def- quit (Client Quit) |
17:26:07 | * | def- joined #nim |
17:33:39 | NimEventer | New thread by Nlits: Odd Segfault when using dynlib, see https://forum.nim-lang.org/t/11457 |
17:35:23 | Amun-Ra | nimcalls via dynlib? hmm |
18:16:20 | FromDiscord | <nnsee> In reply to @k0ts "python sucks ass": for a first programmer, python is really good |
18:20:23 | * | def- quit (Quit: -) |
18:21:13 | FromDiscord | <System64 ~ Flandre Scarlet> Does someone knows how I can convert this makefile to Nim please? https://media.discordapp.net/attachments/371759389889003532/1230946320441802893/makefile.txt?ex=66352b18&is=6622b618&hm=91b86948f9e91cc6f73ec0ce3c27bfc6bba1a00fee7282c6a702e2c0550b4403& |
18:38:45 | FromDiscord | <odexine> gl |
18:39:14 | * | def- joined #nim |
18:42:10 | * | def- quit (Client Quit) |
18:52:45 | FromDiscord | <firasuke> I wonder if there's a Nim version for this: https://1brc.dev/ |
19:00:40 | * | def- joined #nim |
19:04:58 | * | def- quit (Client Quit) |
19:06:10 | * | def- joined #nim |
19:18:16 | * | ntat quit (Quit: Leaving) |
19:22:34 | FromDiscord | <Elegantbeef> Be the change you want in the world 😄 |
19:28:09 | * | xet7 quit (Read error: Connection reset by peer) |
19:29:33 | * | xet7 joined #nim |
19:29:57 | * | def- quit (Quit: -) |
19:30:13 | * | def- joined #nim |
19:58:43 | FromDiscord | <cletus6872> please I need to use asymetric encryption in one of my projects, but I cant seem to find a suitable nim library to help me? The nim openssl std module seems to only bind openssl functions related to certificate signing, I dont understand if the constantine library by mratism can do this from the github readme and browsing the source code, this https://nimble.directory/pkg/nimssl breaks during installation probably due to being too old. |
20:01:28 | FromDiscord | <nnsee> In reply to @cletus6872 "please I need to": I've used https://github.com/FedericoCeratto/nim-libsodium in the past, works fine for me |
20:02:44 | FromDiscord | <cletus6872> In reply to @nnsee "I've used https://github.com/FedericoCeratto/nim-li": Thank you so much, the example code on the readme hints that this might be exactly what I need! |
20:08:34 | FromDiscord | <m4ul3r> Is there a way to force all converts to be inlined, other than going in and adding {.inline.} to all the converters used in the library imported |
20:08:42 | FromDiscord | <m4ul3r> (edit) "converts" => "converters" |
20:09:42 | FromDiscord | <Elegantbeef> Compile with `-d:lto` and `-d:release` and really cross your fingers |
20:11:23 | * | SEP_ quit (Ping timeout: 264 seconds) |
20:13:14 | * | SEP joined #nim |
20:16:22 | * | lucasta quit (Quit: Leaving) |
20:17:42 | * | def- quit (Quit: -) |
20:20:23 | * | def- joined #nim |
20:23:43 | FromDiscord | <firasuke> In reply to @Elegantbeef "Be the change you": Give me time xD |
20:28:12 | FromDiscord | <m4ul3r> In reply to @Elegantbeef "Compile with `-d:lto` and": rip, thanks! I can’t use lto on this project. So looks like I’m sed it |
20:53:13 | FromDiscord | <cut2deep> In reply to @chronos.vitaqua "Slightly ot but still": #offtopic please |
20:53:44 | FromDiscord | <cut2deep> Do not post off-topic stuff, please do so in the applicable channel |
20:54:00 | FromDiscord | <Elegantbeef> They're now pretending to be a moderator |
20:54:22 | FromDiscord | <Elegantbeef> Say the line Bart "Shut up bot" |
20:54:45 | FromDiscord | <cut2deep> I don't talk to bots |
20:54:59 | FromDiscord | <Elegantbeef> Good I'm not an 'App' |
20:55:20 | FromDiscord | <cut2deep> ah yes, now identifying as an app, sorry |
20:55:36 | FromDiscord | <Robyn [She/Her]> The text does say 'APP' |
20:55:45 | FromDiscord | <cut2deep> it doesn't |
20:55:54 | FromDiscord | <cut2deep> it says 'bot" |
20:55:55 | FromDiscord | <Robyn [She/Her]> Your client is probably old then |
20:56:00 | FromDiscord | <cut2deep> good |
20:56:29 | FromDiscord | <cut2deep> fucking tencent wont be able to funnel the latest data through their servers |
20:57:06 | FromDiscord | <cut2deep> anyways, keep off-topic posts in the apppicable #offtopic channel, cheers ^_^ |
20:57:12 | FromDiscord | <Robyn [She/Her]> Nah |
20:57:27 | FromDiscord | <Robyn [She/Her]> It was programming related, hence I asked here since it was applicable to Nim |
20:57:54 | FromDiscord | <cut2deep> but you aknowledged as slightly off-topic, did you not? |
20:58:11 | FromDiscord | <Phil> In reply to @cut2deep "anyways, keep off-topic posts": Given we as mods tend to be the ones enforcing those ru.es - it is generally related as "okay".↵Leave it to me and PMunch to jump in as opposed to trying to mod for us. |
20:58:15 | FromDiscord | <Robyn [She/Her]> 'Slightly', everything is a spectrum |
20:58:16 | FromDiscord | <cut2deep> if something is considered something even the slightest it is still that something |
20:58:38 | FromDiscord | <Phil> Depends on if somebody else is asking actually nim-related questions in this channel or not, in such scenarios we ask folks to move this into offtopic |
20:58:54 | FromDiscord | <Q-Master> Nah... Only ZX-Spectrum is spectrum \:))↵(@Robyn [She/Her]) |
20:59:06 | FromDiscord | <cut2deep> please keep off-topic posts in #offtopic @Phil |
20:59:08 | FromDiscord | <cut2deep> thanks |
20:59:35 | FromDiscord | <Phil> In reply to @cut2deep "please keep off-topic posts": I mean that's cute and all, but given I'm the mod in this channel you may want to have another attempt at writing this channel. |
20:59:42 | FromDiscord | <Phil> (edit) "channel." => "message." |
20:59:51 | FromDiscord | <cut2deep> what are you talking about? |
21:00:00 | FromDiscord | <Q-Master> BTW, is it possible to return an iterator from iterator? |
21:00:10 | FromDiscord | <Elegantbeef> If you return a closure iterator |
21:00:19 | FromDiscord | <Phil> And now I'm asking to move to #offtopic given Q-Master has an actual discussion at hand |
21:00:33 | FromDiscord | <cut2deep> I said that as in "keep doing your job then, good on you." |
21:00:46 | FromDiscord | <cut2deep> @Q-Master |
21:00:54 | FromDiscord | <cut2deep> keep off-topic in #offtopic |
21:01:02 | FromDiscord | <cut2deep> please, thank u |
21:01:18 | FromDiscord | <Q-Master> Can you point me to some sample? |
21:02:18 | FromDiscord | <Elegantbeef> Do you have a hobby? |
21:02:48 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#pasty=jnEMAVeAtqGp |
21:06:30 | * | def- quit (Quit: -) |
21:07:51 | * | def- joined #nim |
21:10:49 | FromDiscord | <the_real_hypno> Imho you should yield the iterator another time |
21:11:38 | * | def- quit (Client Quit) |
21:12:24 | * | def-- joined #nim |
21:12:54 | * | def-- is now known as def- |
21:34:27 | * | def- quit (Quit: -) |
21:35:15 | * | def- joined #nim |
21:39:33 | * | def- quit (Client Quit) |
21:40:01 | FromDiscord | <Elegantbeef> Yield to n person's will! |
21:40:09 | FromDiscord | <Elegantbeef> Ah my O key is breaking again |
21:41:10 | * | xet7 quit (Remote host closed the connection) |
21:41:35 | * | def- joined #nim |
22:05:57 | * | def- quit (Quit: -) |
22:06:21 | * | def- joined #nim |
22:28:30 | * | def- quit (Quit: -) |
22:46:50 | * | def- joined #nim |
22:51:35 | FromDiscord | <aryzen> Is Nimline worth using? |
22:55:54 | FromDiscord | <bosinski2023> smbd. updated it last week - maybe give it a try. Or maybe try PyCharm-Community. |
22:56:07 | FromDiscord | <aryzen> @ me or someone else? |
22:56:28 | FromDiscord | <bosinski2023> In reply to @aryzen "@ me or someone": you @aryzen |
22:57:19 | FromDiscord | <aryzen> The nimline I found is 4 years old, and I don’t think pycharm has to do with it…? Nimline is an automatic C++ wrapper |
22:58:15 | FromDiscord | <bosinski2023> In reply to @aryzen "The nimline I found": oh, sry, i believed you were looking for editor-support for Sublime - there was an update.. |
22:58:32 | FromDiscord | <aryzen> Oh, no worries! |
23:12:06 | * | def- quit (Quit: -) |
23:15:38 | * | def- joined #nim |
23:57:58 | * | def- quit (Quit: -) |
23:58:57 | * | def- joined #nim |
23:59:49 | FromDiscord | <Elegantbeef> @firasuke you did sorta nerdsnipe me https://play.nim-lang.org/#pasty=wlTWkILJItdL |