00:00:44 | FromDiscord | <Elegantbeef> Hmm is nim's dragonbox impl on by default now |
00:01:42 | FromDiscord | <Elegantbeef> I think it is |
00:03:47 | * | noeontheend quit (Remote host closed the connection) |
00:06:00 | * | noeontheend joined #nim |
00:22:11 | FromDiscord | <retkid> @Luckayla |
00:22:18 | FromDiscord | <retkid> !eval echo "1" == 1 |
00:22:21 | NimBot | Compile failed: /usercode/in.nim(1, 10) Error: type mismatch: got <string, int literal(1)> |
00:22:38 | FromDiscord | <retkid> !eval echo "1" === 1 |
00:22:40 | NimBot | Compile failed: /usercode/in.nim(1, 10) Error: undeclared identifier: '===' |
00:22:45 | FromDiscord | <Rika> Doesn’t exist |
00:22:47 | FromDiscord | <retkid> hm |
00:22:51 | FromDiscord | <retkid> i never had to usei t |
00:22:52 | FromDiscord | <retkid> i assumed it di |
00:22:53 | FromDiscord | <retkid> (edit) "di" => "did" |
00:22:57 | FromDiscord | <Rika> Why would it |
00:23:02 | FromDiscord | <retkid> (edit) "usei t" => "use it" |
00:23:03 | FromDiscord | <Rika> Nim isn’t dynamic |
00:23:16 | FromDiscord | <retkid> I dont use === in dynamic languages eithert |
00:23:17 | FromDiscord | <retkid> (edit) "eithert" => "either" |
00:23:21 | FromDiscord | <retkid> i try to avoid situattions like that |
00:23:31 | FromDiscord | <retkid> === is for arrays lol |
00:24:23 | FromDiscord | <Rika> In JavaScript it’s to enforce strict typing |
00:24:58 | FromDiscord | <retkid> it also compares arrays |
00:25:49 | FromDiscord | <retkid> https://media.discordapp.net/attachments/371759389889003532/995485962043924551/unknown.png |
00:26:01 | FromDiscord | <retkid> ¯\_(ツ)_/¯ |
00:26:24 | FromDiscord | <retkid> anyway back to nim |
00:31:34 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=42Km |
00:32:40 | FromDiscord | <Rika> Smh didn’t call randomise |
00:33:02 | FromDiscord | <Elegantbeef> It's deterministically undeterministic |
00:33:50 | FromDiscord | <Rika> indeterministic |
00:34:10 | FromDiscord | <Elegantbeef> Where would i be without you |
00:34:34 | FromDiscord | <Rika> you mean where would i be without u |
00:34:48 | FromDiscord | <Rika> Because you used u instead of i hahahahahahaha laugh now please |
00:34:56 | FromDiscord | <Elegantbeef> Will do |
00:55:50 | FromDiscord | <planetis> Is everything a joke to you people? Now that I have seen this I am too afraid to go back to sleep. Pure nightmare fuel |
00:55:58 | FromDiscord | <Elegantbeef> Yes |
00:56:05 | FromDiscord | <Elegantbeef> If it's not a joke it's not worth making |
01:02:04 | FromDiscord | <Rika> That’s what your parents said when they made you |
01:05:04 | FromDiscord | <Rika> Don’t worry I learned that joke from my parents too x |
01:11:28 | FromDiscord | <Generic> something like this |
01:11:31 | FromDiscord | <Generic> sent a code paste, see https://play.nim-lang.org/#ix=42Rw |
01:12:09 | FromDiscord | <Rika> That looks cursed |
01:12:37 | FromDiscord | <Elegantbeef> Somehow even more cursed than mine |
01:14:56 | FromDiscord | <Generic> hahaha |
01:16:42 | FromDiscord | <retkid> In reply to @planetis "Is everything a joke": the only joke here is my code |
01:18:20 | FromDiscord | <retkid> trying to unpack with msgpack |
01:18:22 | FromDiscord | <retkid> 😭 |
01:22:57 | FromDiscord | <ripluke> How can I import all the files in a directory |
01:23:26 | FromDiscord | <Elegantbeef> Nim doesnt have a mechanism for that you'd have to manually do it |
01:23:30 | FromDiscord | <Elegantbeef> Or make a macro for that |
01:23:33 | FromDiscord | <Rika> Hey |
01:23:37 | FromDiscord | <Rika> I was gonna say that |
01:24:56 | FromDiscord | <retkid> or just put it all in 1 file as a lib |
01:25:19 | FromDiscord | <Elegantbeef> Dont do that |
01:27:16 | FromDiscord | <ripluke> In reply to @retkid "or just put it": I literally cant |
01:27:32 | FromDiscord | <retkid> its not good advice |
01:27:33 | FromDiscord | <ripluke> In reply to @Elegantbeef "Or make a macro": That's probably what I'm going to do |
01:27:33 | FromDiscord | <retkid> dont |
01:27:39 | FromDiscord | <ripluke> In reply to @retkid "its not good advice": Ik |
01:28:02 | FromDiscord | <retkid> I generally organize my code like that tho. I write all my functions and the actual runtime seperate |
01:37:23 | FromDiscord | <retkid> sent a code paste, see https://paste.rs/1Ac |
01:38:25 | FromDiscord | <retkid> sent a code paste, see https://play.nim-lang.org/#ix=42W3 |
01:39:06 | FromDiscord | <retkid> not quite sure how im suppose to unpack from a binary file here? |
01:40:37 | FromDiscord | <Rika> Sounds like a problem inside the library |
01:41:43 | FromDiscord | <retkid> well time to build my own unpacker |
01:41:49 | FromDiscord | <retkid> why must my time be stolen from me |
01:42:04 | FromDiscord | <Rika> What |
01:42:14 | FromDiscord | <Rika> It’s faster to fix the bug than to make one from scratch |
01:43:15 | FromDiscord | <retkid> its a simple type, 3 sequences 2 tuples ' |
01:43:16 | FromDiscord | <retkid> (edit) removed "'" |
01:44:10 | FromDiscord | <retkid> https://media.discordapp.net/attachments/371759389889003532/995505681849393212/unknown.png |
01:44:56 | FromDiscord | <Rika> The problem is deeper in there |
01:45:04 | FromDiscord | <Rika> Look for the one that raises sequence |
01:46:39 | FromDiscord | <retkid> https://media.discordapp.net/attachments/371759389889003532/995506302178574426/unknown.png |
01:46:45 | FromDiscord | <retkid> interesting |
01:47:38 | FromDiscord | <retkid> yea writing my own |
01:47:44 | * | noeontheend quit (Ping timeout: 244 seconds) |
01:56:51 | FromDiscord | <retkid> so turns out msgpack is pretty inefficient |
01:59:33 | FromDiscord | <Rika> Do you need efficiency |
02:02:04 | FromDiscord | <Generic> whatever you or the msgpack library is doing |
02:02:16 | FromDiscord | <Generic> it will still be atleast 10000 times more efficient than json |
02:03:56 | FromDiscord | <Rika> Lol |
02:04:22 | FromDiscord | <Rika> I personally like CBOR more if you’re doing schema-less serialisation |
02:37:28 | * | rockcavera joined #nim |
02:37:28 | * | rockcavera quit (Changing host) |
02:37:28 | * | rockcavera joined #nim |
02:57:44 | FromDiscord | <ajusa> flatty is pretty efficient I believe |
03:00:05 | FromDiscord | <Elegantbeef> We need more frosty talk! |
03:12:32 | FromDiscord | <b1rdf00d> how would I go about debugging a compile time definition? I'm having failed compilations when using `nimraylib_now` in combination with `arraymancer`. Specifically, the proc `cpuidX86` from `arraymancer` fails I _think_ due to `i386` being defined (but I'm on an arm machine) |
03:13:06 | FromDiscord | <b1rdf00d> Do I need to put break points in the compiler or is there a different path? |
03:21:02 | FromDiscord | <xflywind> Does the compiler crash? |
03:22:17 | FromDiscord | <Elegantbeef> You can use a debug compiler if you need extra information, what's currently the issue? |
03:23:34 | FromDiscord | <xflywind> You can also debug generated vm opcode => https://nim-lang.org/docs/vmutils.html |
03:36:35 | FromDiscord | <b1rdf00d> sent a code paste, see https://paste.rs/hM3 |
03:37:17 | FromDiscord | <b1rdf00d> (edit) "https://play.nim-lang.org/#ix=43gi" => "https://paste.rs/Nu0" |
03:37:23 | FromDiscord | <b1rdf00d> (edit) "https://play.nim-lang.org/#ix=43gj" => "https://paste.rs/AtS" |
03:39:32 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=43gE |
03:43:45 | FromDiscord | <b1rdf00d> sent a long message, see https://paste.rs/3DN |
03:44:14 | FromDiscord | <b1rdf00d> thanks for the above snippet, I was trying to work out exactly how to do that |
03:45:25 | FromDiscord | <Elegantbeef> So for some reason your config thinks that you're amd64, do you have some obscure arm cpu? |
03:45:38 | FromDiscord | <b1rdf00d> yes, an apple m1 |
03:45:56 | FromDiscord | <Elegantbeef> Are you running Nim natively or through rosetta? |
03:46:43 | FromDiscord | <b1rdf00d> I _think_ natively? But I do have rosetta installed |
03:47:12 | FromDiscord | <Elegantbeef> When you compile what does `static: echo hostOS` give you? |
03:48:56 | FromDiscord | <Elegantbeef> you can also compile with `--skipUserCfg --skipParentCfg --skipProjCfg` incase you have a stray config |
03:49:25 | FromDiscord | <Elegantbeef> whoops i meant `hostCpu` |
03:49:27 | FromDiscord | <b1rdf00d> it is using rosetta, my demo app is coming up as an intel no apple in activity monitor |
03:50:27 | FromDiscord | <b1rdf00d> `echo hostCPU` gives me `amd64` |
03:50:35 | FromDiscord | <b1rdf00d> so this is all mostly making sense |
03:51:27 | FromDiscord | <Elegantbeef> I dont know if nim supports the m1 natively... flywind would know probably |
03:52:07 | FromDiscord | <Elegantbeef> I think it does but uncertain |
03:52:12 | FromDiscord | <Elegantbeef> How did you install nim? |
03:52:35 | FromDiscord | <b1rdf00d> I used choosenim but I would have had rosetta already running then |
03:53:28 | FromDiscord | <Elegantbeef> choosenim uses rosetta for macs, which i assume means it installs amd mac? |
03:53:55 | FromDiscord | <Elegantbeef> http://gitnim.com/ might be your saving grace |
03:54:33 | FromDiscord | <Elegantbeef> Oh actually `nim -v` does say it's arch \:D |
03:54:43 | FromDiscord | <Elegantbeef> Who'd have thought that'd be included there |
03:55:12 | FromDiscord | <b1rdf00d> thanks! I think the thing I'm confused about is it thinks I'm on an amd and not an intel cpu, when rosetta is meant to translate from intel instructions? |
03:55:29 | FromDiscord | <Elegantbeef> Nah i dont know the issue |
03:55:49 | FromDiscord | <Elegantbeef> amd64 is the name of the extended x86 instructions for 64bit |
03:56:02 | FromDiscord | <Elegantbeef> it's licensed from amd to every x86\_64 supported CPU |
03:56:12 | FromDiscord | <b1rdf00d> ah okay that makes sense |
03:57:05 | FromDiscord | <b1rdf00d> gitnim is interesting, similar to pyenv? |
03:57:44 | FromDiscord | <Elegantbeef> I mean it's like choosenim but uses libgit directly |
03:58:05 | FromDiscord | <Elegantbeef> Actually i guess gitnim might not support arm/mac |
03:59:10 | FromDiscord | <b1rdf00d> maybe this will be the next thing I contribute too ... it's all way over my head though (currently) |
03:59:24 | FromDiscord | <b1rdf00d> thanks for your help 🙂 |
04:01:23 | FromDiscord | <b1rdf00d> sent a code paste, see https://paste.rs/VZz |
04:01:50 | FromDiscord | <Elegantbeef> Yea it supports it but there isnt software to version manage it which is a shame |
04:02:21 | FromDiscord | <Elegantbeef> So yea if you're ever up for it gitnim could be a nice thing to add arm support for \:D |
04:04:51 | FromDiscord | <b1rdf00d> I'll have a look 🙂 |
04:05:14 | FromDiscord | <Elegantbeef> It probably isnt too diifferent(hell the linux version might just work out of the box) |
04:16:39 | * | arkurious quit (Quit: Leaving) |
05:05:12 | FromDiscord | <xflywind> In reply to @Elegantbeef "I dont know if": We don't have CI for m1, though there is an extra support for Nim on M1 => https://github.com/nim-lang/Nim/pull/18772#issuecomment-909031687 |
05:14:22 | FromDiscord | <Yardanico> Yes, since Araq himself has an m1 |
06:51:53 | FromDiscord | <valerga> he's not using windows anymore? |
06:57:43 | FromDiscord | <Rika> It’s probably a matter of desktop and laptop |
07:23:05 | * | sagax quit (Remote host closed the connection) |
07:32:38 | * | derpydoo joined #nim |
09:00:07 | * | toluene quit (Ping timeout: 256 seconds) |
09:02:38 | * | toluene joined #nim |
10:15:32 | * | wallabra quit (Quit: ZNC 1.8.2 - https://znc.in) |
10:15:57 | FromDiscord | <dom96> In reply to @b1rdf00d "I'll have a look": choosenim almost has support for arm https://github.com/dom96/choosenim/pull/301 |
10:17:29 | * | wallabra joined #nim |
10:29:10 | FromDiscord | <Phil> Question, since my nimstoryfont backend is more an application than a lib, does it make sense to do a showcase thread for it for a bit of language promo or is that not all that useful? |
10:46:55 | FromDiscord | <dom96> showcase thread where? |
10:48:24 | FromDiscord | <Phil> Forum, just stumbled over a showcase thread there and wondered if there's any benefit to writing one myself |
10:49:12 | FromDiscord | <Phil> So far those threads feel more like stuff for libs useful for other people rather than demonstrations that they can be used for applications |
10:49:22 | FromDiscord | <Phil> Thus the question |
10:49:24 | FromDiscord | <dom96> go for it, but if you want to do it for a language promo I would recommend submitting a Show HN |
11:02:38 | * | jmdaemon quit (Ping timeout: 244 seconds) |
11:13:53 | * | bastian joined #nim |
11:14:02 | * | bastian quit (Client Quit) |
11:20:26 | FromDiscord | <retkid> how can i cast a hex array of an int to an int |
11:20:43 | FromDiscord | <retkid> 0 1 0 .. n == 256 |
11:20:54 | FromDiscord | <retkid> (edit) "0 1 0 .. n" => "0,1,0..n" |
11:21:39 | FromDiscord | <retkid> oh i have an idea |
11:24:24 | FromDiscord | <retkid> i used the 2 braincells i have to do it |
11:37:54 | FromDiscord | <Slazaa> Hi :D |
11:46:39 | FromDiscord | <Phil> Cheers |
11:50:04 | FromDiscord | <Slazaa> I'd like making a lib but I don't really know what 👀 |
11:51:40 | FromDiscord | <dom96> pick any of the ones here https://github.com/nim-lang/needed-libraries/issues :) |
11:51:46 | FromDiscord | <Phil> Tauri bindings for nim? |
11:52:08 | FromDiscord | <Slazaa> A binding sounds fun, I didn't look at how it works yet with Nim |
11:52:51 | FromDiscord | <Slazaa> But Tauri is an app ? :o |
11:53:33 | FromDiscord | <Phil> Tauri is electron on steroids |
11:53:56 | FromDiscord | <xflywind> In reply to @Slazaa "I'd like making a": Javascript runtime in Nim :P |
11:53:57 | FromDiscord | <Phil> With a rust backend rather than a node one |
11:54:43 | FromDiscord | <Slazaa> In reply to @flywind "Javascript runtime in Nim": I have no clue how to do that, that's why I'm gonna try :D |
11:55:05 | FromDiscord | <retkid> I wrote a tensor serializer that is purpose built for my application |
11:55:08 | FromDiscord | <retkid> :D |
11:55:26 | FromDiscord | <Phil> The benefit of bindings for tauri is you get benefits of the ecosystem without having to do all that duplicate effort |
11:57:05 | FromDiscord | <xflywind> https://github.com/codecrafters-io/build-your-own-x and https://github.com/aosabook/500lines are great learning material. |
11:57:19 | FromDiscord | <xflywind> (edit) "material." => "materials." |
12:41:36 | FromDiscord | <ripluke> In reply to @flywind "Javascript runtime in Nim": Don't we already have enough of those? |
12:42:56 | FromDiscord | <retkid> 1. is using malloc slower |
12:43:14 | FromDiscord | <retkid> 2. is there anyway to continue to have GC datta |
12:43:16 | FromDiscord | <retkid> (edit) "datta" => "data" |
13:02:30 | * | krux02 joined #nim |
13:47:13 | FromDiscord | <Goel> sent a code paste, see https://play.nim-lang.org/#ix=43ZB |
13:48:36 | FromDiscord | <Goel> (edit) "https://play.nim-lang.org/#ix=43ZB" => "https://play.nim-lang.org/#ix=43ZD" |
13:51:52 | FromDiscord | <Prestige> Yeah you have to return a seq or an array |
14:01:55 | * | kenran joined #nim |
14:03:08 | * | kenran quit (Client Quit) |
14:06:51 | FromDiscord | <Rika> In reply to @retkid "1. is using malloc": Than what |
14:07:08 | FromDiscord | <Rika> In reply to @retkid "2. is there anyway": I’m lost it seems |
14:30:47 | * | arkurious joined #nim |
14:35:36 | FromDiscord | <retkid> In reply to @Rika "Than what": than... not using -d:malloc |
14:35:54 | FromDiscord | <retkid> (edit) "-d:malloc" => "-d:usemalloc" |
14:36:26 | FromDiscord | <Rika> Depends on the thing being done |
14:36:59 | FromDiscord | <retkid> it seems to be 4x faster |
14:37:00 | FromDiscord | <retkid> so yea |
14:37:10 | FromDiscord | <retkid> but i need to keep testing and make sure something isn't weird |
14:38:03 | FromDiscord | <planetis> https://youtu.be/1l9169qW2FA |
14:38:27 | FromDiscord | <planetis> Some exposure for Nim in pentesting |
14:38:42 | FromDiscord | <Rika> In reply to @retkid "2. is there anyway": I have no idea what this means though |
14:39:02 | FromDiscord | <retkid> if you use -d:useMalloc some gc monitoring functions dont work |
14:49:22 | FromDiscord | <retkid> my custom serializer is 200% faster and 1/4th the size! |
14:49:24 | FromDiscord | <retkid> :D |
14:49:43 | FromDiscord | <retkid> who would have thought making something for some specific purpose would make it fast |
14:49:50 | FromDiscord | <retkid> (edit) "who would have thought making something for some specific purpose would make it fast ... " added "and more efficient" |
14:49:51 | FromDiscord | <retkid> (edit) "efficient" => "efficien" |
14:49:53 | FromDiscord | <retkid> (edit) "efficien" => "efficient" |
14:50:23 | FromDiscord | <planetis> Any details? |
14:50:49 | FromDiscord | <retkid> https://media.discordapp.net/attachments/371759389889003532/995703646668988486/unknown.png |
14:51:19 | FromDiscord | <retkid> dat it |
14:51:21 | FromDiscord | <planetis> Cool |
14:52:28 | FromDiscord | <planetis> Kind of weird you used the child class and not the more general Stream type |
14:52:43 | FromDiscord | <retkid> of byte? |
14:53:07 | FromDiscord | <retkid> and not the specific uint8 |
14:53:11 | FromDiscord | <planetis> FileStream |
14:53:17 | FromDiscord | <retkid> oh |
14:53:32 | FromDiscord | <retkid> idk thats just how i learned to use it ¯\_(ツ)_/¯ |
14:54:54 | FromDiscord | <Zodey> hi!↵how can i build my project in release mode? will it use -O3 flag, or -Ofast? how can i compile only to C code? im curious how it looks like↵thanks |
14:55:32 | FromDiscord | <retkid> In reply to @Zodey "hi! how can i": you use -d:release |
14:55:46 | FromDiscord | <retkid> you really fast needs you use -d:danger |
14:56:09 | FromDiscord | <retkid> idk the specific optimizations it does, but you can also use -Ofast and -O3 |
14:56:30 | FromDiscord | <retkid> --passC="compiler args" |
14:56:44 | FromDiscord | <retkid> also --passL="linker args" |
14:57:56 | FromDiscord | <Zodey> alright, thanks |
14:58:28 | FromDiscord | <Zodey> will it need any runtime? |
14:58:52 | FromDiscord | <Zodey> i mean, a dll, or so when i use it on another computer |
14:59:17 | FromDiscord | <retkid> No, nim executable are statically linked, all of its needs are within itself |
14:59:26 | FromDiscord | <Zodey> cool |
14:59:33 | FromDiscord | <retkid> unless you are wrapping a c library then you might need it in the same folder |
15:01:01 | FromDiscord | <retkid> 400% smaller around there |
15:01:17 | * | bigbyt quit (Read error: Connection reset by peer) |
15:01:23 | FromDiscord | <Zodey> In reply to @retkid "you use -d:release": how can i use multiple -d: ? |
15:01:28 | FromDiscord | <retkid> yes |
15:01:39 | FromDiscord | <retkid> (it took me a while to realize that) |
15:01:45 | FromDiscord | <Zodey> (edit) removed "how" |
15:01:50 | FromDiscord | <retkid> just use em |
15:02:05 | FromDiscord | <retkid> if they're compatible it'll compile |
15:02:11 | * | bigbyt joined #nim |
15:02:15 | FromDiscord | <Zodey> https://media.discordapp.net/attachments/371759389889003532/995706521398804550/unknown.png |
15:02:20 | FromDiscord | <retkid> one - |
15:02:47 | FromDiscord | <Zodey> its a nims file |
15:02:55 | FromDiscord | <Zodey> im sure i need two |
15:03:01 | FromDiscord | <retkid> no |
15:03:05 | FromDiscord | <retkid> its -d:release -d:ssl |
15:03:15 | FromDiscord | <retkid> not --d:release --d:ssl |
15:03:19 | FromDiscord | <Zodey> https://media.discordapp.net/attachments/371759389889003532/995706792145338529/unknown.png |
15:03:46 | FromDiscord | <retkid> use c |
15:03:51 | FromDiscord | <retkid> c -d:ssl -d:release |
15:04:00 | FromDiscord | <retkid> if not idk |
15:04:13 | FromDiscord | <retkid> i dont really use .nims files |
15:04:34 | FromDiscord | <Zodey> In reply to @retkid "c -d:ssl -d:release": it's not good sadly |
15:05:06 | FromDiscord | <Rika> Nim doesn’t compile to static binary by default, there is still the c standard library |
15:05:10 | FromDiscord | <retkid> general word, im the stupidest one here, Rika, beef, etc, are much more reliable than me |
15:05:19 | FromDiscord | <Rika> But any pure Nim dependencies are statically bound |
15:05:21 | FromDiscord | <retkid> In reply to @Rika "Nim doesn’t compile to": i meant for nim depends |
15:05:50 | FromDiscord | <retkid> how do i compile with a complete static executable |
15:05:54 | FromDiscord | <Rika> In reply to @Zodey "": Use “define” over “d” |
15:06:01 | FromDiscord | <xflywind> In reply to @Zodey "": use `--d:release` |
15:06:02 | FromDiscord | <Rika> In reply to @retkid "how do i compile": MUSL |
15:06:29 | FromDiscord | <retkid> In reply to @Rika "MUSL": how does that... help? |
15:07:18 | FromDiscord | <Zodey> In reply to @flywind "use `--d:release`": we tried that |
15:07:49 | FromDiscord | <Zodey> In reply to @Rika "Use “define” over “d”": not working either |
15:07:50 | FromDiscord | <Rika> MUSL compiles to static binaries easily, I think you will have a hard time with GCC if you have SSL requirements or whatnot |
15:08:03 | FromDiscord | <Rika> In reply to @Zodey "not working either": Double dash if using define and not d |
15:08:03 | FromDiscord | <xflywind> `--d:release; --d:ssl` |
15:08:26 | FromDiscord | <Zodey> In reply to @flywind "`--d:release; --d:ssl`": works, thank you |
15:09:38 | FromDiscord | <retkid> In reply to @Rika "MUSL compiles to static": i didn' |
15:09:47 | FromDiscord | <xflywind> Then it is better to place them in different lines in the nimscript. |
15:09:47 | FromDiscord | <retkid> know musl had any practical beenfit |
15:09:51 | FromDiscord | <retkid> (edit) "beenfit" => "benefit" |
15:14:11 | FromDiscord | <retkid> so i need to manage a large samplesize of about 18 gbs |
15:14:22 | FromDiscord | <retkid> but thatts bigger than my swap and ram |
15:14:53 | FromDiscord | <Zodey> In reply to @flywind "`--d:release; --d:ssl`": but now its not including ssl 😟 |
15:15:02 | FromDiscord | <retkid> is there anyway i can manage this on disk |
15:16:50 | FromDiscord | <xflywind> sent a code paste, see https://play.nim-lang.org/#ix=4403 |
15:17:11 | FromDiscord | <xflywind> how about?> |
15:17:14 | FromDiscord | <xflywind> sent a code paste, see https://play.nim-lang.org/#ix=4404 |
15:17:28 | FromDiscord | <Zodey> like that |
15:17:29 | FromDiscord | <Zodey> sent a code paste, see https://play.nim-lang.org/#ix=4405 |
15:17:30 | FromDiscord | <Zodey> thank you |
15:18:10 | FromDiscord | <xflywind> You are welcome |
15:39:45 | * | Guest81 joined #nim |
15:40:16 | * | Guest81 quit (Client Quit) |
16:02:25 | FromDiscord | <Phil> sent a code paste, see https://play.nim-lang.org/#ix=440g |
16:05:14 | FromDiscord | <Phil> In reply to @retkid "is there anyway i": What is your precise task.↵Is it along the lines of "read every individual line and do X with it" ?↵Is it "calculate a data-model out of all lines" ? |
16:05:34 | FromDiscord | <retkid> training with arraymancer |
16:05:38 | FromDiscord | <retkid> but i've hit a snag there |
16:06:46 | FromDiscord | <Phil> Yeh but what sort of calculations? Is it the sort where you can partial calculations and e.g. calculate one line after another and write intermediate results into a file that you can later process somehow? |
16:06:55 | FromDiscord | <Phil> (edit) "Yeh but what sort of calculations? Is it the sort where you can ... partial" added "do" |
16:07:36 | FromDiscord | <retkid> no clue yet |
16:07:40 | FromDiscord | <Phil> Or can you summarize data, like if it's a word count and you can do it line by line and the actual data you have to keep in memory would be a word-dictionary with counters attached as opposed to all 16gb of text |
16:07:49 | FromDiscord | <Phil> Depending on what your task is you can divide and conquer it differently |
16:07:58 | FromDiscord | <retkid> I think I'll just have to do some neato manual memory |
16:08:12 | FromDiscord | <retkid> everything will be a pointer |
16:11:13 | FromDiscord | <Phil> I think it makes sense to think about the problem first before deciding on an architecture or what type of memory management to use 😛 |
16:16:55 | * | vicecea quit (Remote host closed the connection) |
16:17:25 | * | vicecea joined #nim |
16:22:12 | * | derpydoo quit (Quit: derpydoo) |
16:29:12 | * | CyberTailor quit (Excess Flood) |
16:30:07 | * | CyberTailor joined #nim |
16:41:01 | FromDiscord | <vestel> how do I use parallel statement? |
16:50:39 | CyberTailor | vestel: it will be removed, don't use it |
17:04:57 | FromDiscord | <retkid> In reply to @Isofruit "I think it makes": well yea |
17:04:59 | FromDiscord | <retkid> thats what im doing now |
17:05:08 | FromDiscord | <retkid> trying to figure out how the hell this works |
17:05:15 | FromDiscord | <retkid> I haven't read enough books |
17:10:05 | FromDiscord | <treeform> when `nimble` runs `nimble test` it only allows packages that are in the requirement list, is there a way to run `nim` command directly specifying the packages and folders I want. It looks like `--path:` adds to the search path, is there a way to override it? |
17:15:37 | FromDiscord | <treeform> hmm it appears that --noNimblePath + --path does what I want? |
17:28:38 | FromDiscord | <treeform> hmm maybe its `--clearNimblePath` ... |
17:35:57 | * | TakinOver joined #nim |
17:48:19 | FromDiscord | <huantian> In reply to @voidwalker "I mean it looks": There’s no difference in GC, you redefine them no matter what |
17:48:45 | FromDiscord | <voidwalker> assignment != definition ? |
17:51:23 | FromDiscord | <Phil> I mean, if they're value types they'll live on the stack, so it won't matter performance wise.↵If they're ref types you're just copying pointers around, so it won't matter performance wise. |
17:53:44 | FromDiscord | <retkid> @Phil do you have anything i can read about neural nets that would make my experience with arraymancer less like... uhh... arms flailing on keyboard |
17:54:18 | FromDiscord | <Phil> In reply to @retkid "<@180601887916163073> do you have": I am fascinated you would assume I have any idea about neural networks 😄 |
17:54:24 | FromDiscord | <retkid> welp |
17:54:28 | FromDiscord | <Phil> I started work in that field, yes, but I ran away screaming |
17:54:44 | FromDiscord | <Phil> And I did so fast |
17:54:58 | FromDiscord | <retkid> https://media.discordapp.net/attachments/371759389889003532/995749991375196282/unknown.png |
17:55:04 | FromDiscord | <retkid> pretty numbers make me happy |
17:55:05 | FromDiscord | <retkid> :3 |
17:55:13 | FromDiscord | <retkid> no idea what it means tho |
17:55:21 | FromDiscord | <Phil> Is arraymancer some stuff with AI? |
17:55:23 | FromDiscord | <retkid> there are more numbers now than before |
17:55:31 | FromDiscord | <Phil> I thought it was basically "Numpy in nim" ? |
17:55:34 | FromDiscord | <retkid> it is |
17:55:41 | FromDiscord | <retkid> but numpy fucked torch |
17:55:49 | FromDiscord | <retkid> its their disgusting little gremlin baby |
17:56:02 | FromDiscord | <Phil> How does that make any sense, ML data analysis? |
17:56:07 | FromDiscord | <retkid> well |
17:56:12 | FromDiscord | <retkid> you build the tensors |
17:56:18 | FromDiscord | <retkid> then you build the calcilus |
17:56:24 | FromDiscord | <retkid> (edit) "calcilus" => "calculus and linear algebra" |
17:56:29 | FromDiscord | <retkid> you're like 75% of the way there |
17:56:45 | FromDiscord | <Phil> It'll do random math and spit out a number and you'lll have to see whether you like it? |
17:57:11 | FromDiscord | <retkid> i am fascinated you are asking the person who is type casing bytes as floatts in a desperate attempt to get this to work |
17:57:21 | FromDiscord | <retkid> (edit) "floatts" => "floats" |
17:57:32 | FromDiscord | <retkid> (edit) "i am fascinated ... you" added "as to why" |
17:57:41 | FromDiscord | <Phil> Touché retkid, touché |
17:58:29 | FromDiscord | <Phil> What question are you trying to answer with... that attempt? |
18:01:13 | FromDiscord | <retkid> I feel like when i got my first modular synth |
18:01:16 | FromDiscord | <retkid> and i had some cables |
18:01:23 | FromDiscord | <retkid> i just plugged everything into everything else |
18:01:28 | FromDiscord | <retkid> and it sounded horrible |
18:01:37 | FromDiscord | <retkid> no idea what is happening |
18:02:11 | FromDiscord | <Phil> This is me doing first attempts at ML, getting frustrated and leaving for something that behaves more consistently |
18:06:58 | FromDiscord | <retkid> im trying to figure out how to get it to compare each row |
18:07:12 | * | CyberTailor quit (Quit: Konversation terminated!) |
18:07:21 | FromDiscord | <retkid> and then figure the hidden layer of how the values get to where they are |
18:39:53 | FromDiscord | <jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4413 |
18:47:12 | FromDiscord | <Yardanico> yes |
18:47:57 | FromDiscord | <Yardanico> --warning:warnName:off |
18:48:05 | FromDiscord | <Yardanico> compiler shows you the warning name in brackets |
18:55:04 | FromDiscord | <jmgomez> cool, thanks! |
19:10:17 | FromDiscord | <Zodey> sent a code paste, see https://play.nim-lang.org/#ix=441c |
19:10:28 | FromDiscord | <Zodey> https://media.discordapp.net/attachments/371759389889003532/995768991362588802/unknown.png |
19:10:43 | FromDiscord | <Zodey> i have no idea now why its isnt works as expected |
19:11:14 | FromDiscord | <Zodey> that func works perfect like on the examples i gave to it |
19:12:19 | FromDiscord | <Zodey> sent a code paste, see https://play.nim-lang.org/#ix=441d |
19:12:21 | FromDiscord | <Zodey> and im completely lost now |
19:12:34 | FromDiscord | <Zodey> (edit) "now" => "now, i have no idea whats wrong" |
19:12:34 | * | noeontheend_ joined #nim |
19:22:33 | * | noeontheend_ quit (Quit: noeontheend_) |
19:22:46 | * | noeontheend joined #nim |
19:27:07 | FromDiscord | <dom96> I would recommend using htmlparser instead of parsing manually. |
19:28:17 | FromDiscord | <demotomohiro> Debug your code with `echo start_index` or echo `end_index`? |
19:32:10 | FromDiscord | <Zodey> In reply to @demotomohiro "Debug your code with": well, 11 and 29, it's not helping 😂 |
19:32:17 | FromDiscord | <Zodey> In reply to @dom96 "I would recommend using": yeah, makes sense |
19:32:36 | FromDiscord | <Zodey> i just wanted to keep it simple |
19:32:56 | FromDiscord | <Zodey> but i think i really should use the parser ;D |
19:33:59 | FromDiscord | <Zodey> (edit) "but ... i" added "now" |
19:39:38 | FromDiscord | <demotomohiro> 11 and 29 means `find` return incorrect value?↵Maybe you are using `system.find` not `strutils.find`. |
19:41:32 | FromDiscord | <Zodey> In reply to @demotomohiro "11 and 29 means": its using strutils.find |
19:41:43 | FromDiscord | <Zodey> and its works fine for "normal" strings |
19:41:59 | FromDiscord | <Zodey> but for html its kinda not xD |
19:42:05 | FromDiscord | <Zodey> i mean, there is a site where yes |
19:42:14 | FromDiscord | <Zodey> and there is where no |
19:47:00 | * | metagn joined #nim |
19:47:09 | metagn | is timothee gone? |
19:53:19 | FromDiscord | <d4rckh> why do i need to ship my app with a cert and a dll if i want to use ssl? |
19:55:44 | FromDiscord | <lantos> nim doesn't (i think) have any pure ssl libs. It is better to use a industry standard SSL lib to avoid introducing security issues. You could use something like openssl or bearssl. bearssl is being used by status.im in their nim projects. |
19:56:44 | FromDiscord | <lantos> Some external libraries have licenses that prevent you from bundling them into your projects so you need to let the user include them or include them with a deployment/build step like in docker or something |
19:56:56 | FromDiscord | <lantos> (edit) "a" => "an" | "projects." => "projects.↵↵Some external libraries have licenses that prevent you from bundling them into your projects so you need to let the user include them or include them with a deployment/build step like in docker or something" |
19:58:10 | FromDiscord | <d4rckh> i see |
19:58:14 | FromDiscord | <d4rckh> and what about the pam file? |
19:59:10 | FromDiscord | <d4rckh> what ssl libs do langs like python use? |
19:59:33 | FromDiscord | <d4rckh> i think still openssl but it would be preinstalled anyway with the interpreter |
20:12:55 | FromDiscord | <lantos> sent a long message, see http://ix.io/441t |
20:13:38 | FromDiscord | <Elegantbeef> metagn i dont think he's said what he's doing but i believe someone said he got a new job and is focusing on that |
20:19:44 | metagn | i wanted feedback on my merged var pragma PR a while ago because it removes some old behavior, but now that i think about it it's not that big of a deal. there was a workaround for templates not giving redefinition errors that i removed but templates are a separate thing to that feature |
20:20:24 | metagn | because timothee wrote the old workaround |
20:42:50 | * | noeontheend quit (Ping timeout: 240 seconds) |
20:43:48 | FromDiscord | <Phil> From what I've read about ssl:↵bearssl is the shiny, new, cleaner attempt at cryptography that doesn't have quite the broad support of openssl.↵openssl is a monstrosity, a trainwreck par excellence, that yet somehow works on almost everything under the sun and can do almost everything under the sun |
20:44:24 | FromDiscord | <Phil> In reply to @d4rckh "what ssl libs do": python wraps openssl |
20:46:18 | FromDiscord | <dom96> bearssl looks nice but is still in beta. Not something you want for crypto afaik |
20:49:56 | FromDiscord | <Phil> Highly likely. I only use openssl myself and literally have to google how to use it to get anything done in it |
20:57:45 | FromDiscord | <Tanguy> Status, which is the definition of mission critical crypto, only uses bearssl |
20:58:39 | FromDiscord | <Tanguy> Though it has it's caveats (bundled certificate, which means the software has to be updated frequently-ish, amongst others) |
21:37:22 | * | adium quit (Ping timeout: 246 seconds) |
21:38:56 | FromDiscord | <Elegantbeef> You left out the important part, it doesnt have open in it's name so it's more secure 😛↵(@Tanguy) |
21:39:31 | FromDiscord | <Elegantbeef> Yes i can audibly hear the groans |
21:39:56 | * | noeontheend joined #nim |
21:51:31 | * | metagn quit (Quit: Client closed) |
21:58:51 | FromDiscord | <lantos> I was using nim via brew install. Now using choosenim (brew was putting nim in cellar which is fine but doesn't work well with nimlsp)↵Swapped from nim-vscode (saem) to vscode-nimlsp(junknet) with nimlsp(pmunch). Seems to be working better and not consuming 100% cpu resource on nimsuggest↵↵Hey anyone who is using vscode. Does anyone have a good setup? |
21:59:36 | * | toluene quit (Read error: Connection reset by peer) |
22:00:35 | FromDiscord | <lantos> (edit) "nimlsp)↵Swapped from nim-vscode (saem) to" => "nimlsp)↵trying" | "nimlsp(pmunch). Seems to be working better and not consuming 100% cpu resource on nimsuggest↵↵Hey" => "nimlsp(pmunch)↵↵Hey" |
22:01:43 | * | toluene joined #nim |
22:04:26 | FromDiscord | <TryAngle> does nim also have drippy names for libraries (for example crates, for rust libs) |
22:17:47 | FromDiscord | <treeform> drippy? I got you covered 🙂 |
22:21:36 | FromDiscord | <dom96> In reply to @Tanguy "Status, which is the": Isn't that risky for Status to be relying on beta-quality software? |
22:22:02 | FromDiscord | <federico3> https://github.com/nim-lang/Nim/pull/17967/files#diff-3bd14d078188074c410028847113ceae68865d0ad5b844a27183ef87fbe2fcc3 this change disappeared from the changelog files. Does anybody knows why? |
22:25:25 | FromDiscord | <dom96> reverted in https://github.com/nim-lang/Nim/pull/17984 |
22:27:15 | FromDiscord | <federico3> yep, found it. I'm adding a note |
22:43:04 | * | sagax joined #nim |
22:45:23 | FromDiscord | <TryAngle> In reply to @treeform "drippy? I got you": nah I was joking mainly, was thinking of a name for sub projects of a project of mine and in rust using crates just sounded rlly nice 🤪 |
22:45:46 | FromDiscord | <TryAngle> btw. if csize is not what it is in C and csize_t should be used, what is csize exactly? |
22:45:55 | FromDiscord | <TryAngle> (edit) removed "btw." |
22:46:25 | FromDiscord | <TryAngle> I was going trhough the vulkan code generator of nimgl and it uses csize which nim warns about, can I safely replace that with csize_t? |
23:20:30 | * | adium joined #nim |
23:41:42 | * | TakinOver quit (Ping timeout: 272 seconds) |
23:55:06 | NimEventer | New thread by Elcritch: Possible to combine OpenGL with Fidget? , see https://forum.nim-lang.org/t/9296 |
23:58:08 | FromDiscord | <TryAngle> when I wrap a c function that contains `block` as parameter, how should I handle that? |
23:58:33 | FromDiscord | <Elegantbeef> give it a different name, use stropping, whatever you want |
23:58:58 | FromDiscord | <TryAngle> In reply to @Elegantbeef "give it a different": ah ok, so it can have different name, and still link correctly? |
23:59:46 | FromDiscord | <TryAngle> or what is stropping |
23:59:58 | FromDiscord | <huantian> ` these guys |
23:59:59 | FromDiscord | <TryAngle> sent a code paste, see https://play.nim-lang.org/#ix= |