<< 10-07-2022 >>

00:00:44FromDiscord<Elegantbeef> Hmm is nim's dragonbox impl on by default now
00:01:42FromDiscord<Elegantbeef> I think it is
00:03:47*noeontheend quit (Remote host closed the connection)
00:06:00*noeontheend joined #nim
00:22:11FromDiscord<retkid> @Luckayla
00:22:18FromDiscord<retkid> !eval echo "1" == 1
00:22:21NimBotCompile failed: /usercode/in.nim(1, 10) Error: type mismatch: got <string, int literal(1)>
00:22:38FromDiscord<retkid> !eval echo "1" === 1
00:22:40NimBotCompile failed: /usercode/in.nim(1, 10) Error: undeclared identifier: '==='
00:22:45FromDiscord<Rika> Doesn’t exist
00:22:47FromDiscord<retkid> hm
00:22:51FromDiscord<retkid> i never had to usei t
00:22:52FromDiscord<retkid> i assumed it di
00:22:53FromDiscord<retkid> (edit) "di" => "did"
00:22:57FromDiscord<Rika> Why would it
00:23:02FromDiscord<retkid> (edit) "usei t" => "use it"
00:23:03FromDiscord<Rika> Nim isn’t dynamic
00:23:16FromDiscord<retkid> I dont use === in dynamic languages eithert
00:23:17FromDiscord<retkid> (edit) "eithert" => "either"
00:23:21FromDiscord<retkid> i try to avoid situattions like that
00:23:31FromDiscord<retkid> === is for arrays lol
00:24:23FromDiscord<Rika> In JavaScript it’s to enforce strict typing
00:24:58FromDiscord<retkid> it also compares arrays
00:25:49FromDiscord<retkid> https://media.discordapp.net/attachments/371759389889003532/995485962043924551/unknown.png
00:26:01FromDiscord<retkid> ¯\_(ツ)_/¯
00:26:24FromDiscord<retkid> anyway back to nim
00:31:34FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=42Km
00:32:40FromDiscord<Rika> Smh didn’t call randomise
00:33:02FromDiscord<Elegantbeef> It's deterministically undeterministic
00:33:50FromDiscord<Rika> indeterministic
00:34:10FromDiscord<Elegantbeef> Where would i be without you
00:34:34FromDiscord<Rika> you mean where would i be without u
00:34:48FromDiscord<Rika> Because you used u instead of i hahahahahahaha laugh now please
00:34:56FromDiscord<Elegantbeef> Will do
00:55:50FromDiscord<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:58FromDiscord<Elegantbeef> Yes
00:56:05FromDiscord<Elegantbeef> If it's not a joke it's not worth making
01:02:04FromDiscord<Rika> That’s what your parents said when they made you
01:05:04FromDiscord<Rika> Don’t worry I learned that joke from my parents too x
01:11:28FromDiscord<Generic> something like this
01:11:31FromDiscord<Generic> sent a code paste, see https://play.nim-lang.org/#ix=42Rw
01:12:09FromDiscord<Rika> That looks cursed
01:12:37FromDiscord<Elegantbeef> Somehow even more cursed than mine
01:14:56FromDiscord<Generic> hahaha
01:16:42FromDiscord<retkid> In reply to @planetis "Is everything a joke": the only joke here is my code
01:18:20FromDiscord<retkid> trying to unpack with msgpack
01:18:22FromDiscord<retkid> 😭
01:22:57FromDiscord<ripluke> How can I import all the files in a directory
01:23:26FromDiscord<Elegantbeef> Nim doesnt have a mechanism for that you'd have to manually do it
01:23:30FromDiscord<Elegantbeef> Or make a macro for that
01:23:33FromDiscord<Rika> Hey
01:23:37FromDiscord<Rika> I was gonna say that
01:24:56FromDiscord<retkid> or just put it all in 1 file as a lib
01:25:19FromDiscord<Elegantbeef> Dont do that
01:27:16FromDiscord<ripluke> In reply to @retkid "or just put it": I literally cant
01:27:32FromDiscord<retkid> its not good advice
01:27:33FromDiscord<ripluke> In reply to @Elegantbeef "Or make a macro": That's probably what I'm going to do
01:27:33FromDiscord<retkid> dont
01:27:39FromDiscord<ripluke> In reply to @retkid "its not good advice": Ik
01:28:02FromDiscord<retkid> I generally organize my code like that tho. I write all my functions and the actual runtime seperate
01:37:23FromDiscord<retkid> sent a code paste, see https://paste.rs/1Ac
01:38:25FromDiscord<retkid> sent a code paste, see https://play.nim-lang.org/#ix=42W3
01:39:06FromDiscord<retkid> not quite sure how im suppose to unpack from a binary file here?
01:40:37FromDiscord<Rika> Sounds like a problem inside the library
01:41:43FromDiscord<retkid> well time to build my own unpacker
01:41:49FromDiscord<retkid> why must my time be stolen from me
01:42:04FromDiscord<Rika> What
01:42:14FromDiscord<Rika> It’s faster to fix the bug than to make one from scratch
01:43:15FromDiscord<retkid> its a simple type, 3 sequences 2 tuples '
01:43:16FromDiscord<retkid> (edit) removed "'"
01:44:10FromDiscord<retkid> https://media.discordapp.net/attachments/371759389889003532/995505681849393212/unknown.png
01:44:56FromDiscord<Rika> The problem is deeper in there
01:45:04FromDiscord<Rika> Look for the one that raises sequence
01:46:39FromDiscord<retkid> https://media.discordapp.net/attachments/371759389889003532/995506302178574426/unknown.png
01:46:45FromDiscord<retkid> interesting
01:47:38FromDiscord<retkid> yea writing my own
01:47:44*noeontheend quit (Ping timeout: 244 seconds)
01:56:51FromDiscord<retkid> so turns out msgpack is pretty inefficient
01:59:33FromDiscord<Rika> Do you need efficiency
02:02:04FromDiscord<Generic> whatever you or the msgpack library is doing
02:02:16FromDiscord<Generic> it will still be atleast 10000 times more efficient than json
02:03:56FromDiscord<Rika> Lol
02:04:22FromDiscord<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:44FromDiscord<ajusa> flatty is pretty efficient I believe
03:00:05FromDiscord<Elegantbeef> We need more frosty talk!
03:12:32FromDiscord<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:06FromDiscord<b1rdf00d> Do I need to put break points in the compiler or is there a different path?
03:21:02FromDiscord<xflywind> Does the compiler crash?
03:22:17FromDiscord<Elegantbeef> You can use a debug compiler if you need extra information, what's currently the issue?
03:23:34FromDiscord<xflywind> You can also debug generated vm opcode => https://nim-lang.org/docs/vmutils.html
03:36:35FromDiscord<b1rdf00d> sent a code paste, see https://paste.rs/hM3
03:37:17FromDiscord<b1rdf00d> (edit) "https://play.nim-lang.org/#ix=43gi" => "https://paste.rs/Nu0"
03:37:23FromDiscord<b1rdf00d> (edit) "https://play.nim-lang.org/#ix=43gj" => "https://paste.rs/AtS"
03:39:32FromDiscord<Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=43gE
03:43:45FromDiscord<b1rdf00d> sent a long message, see https://paste.rs/3DN
03:44:14FromDiscord<b1rdf00d> thanks for the above snippet, I was trying to work out exactly how to do that
03:45:25FromDiscord<Elegantbeef> So for some reason your config thinks that you're amd64, do you have some obscure arm cpu?
03:45:38FromDiscord<b1rdf00d> yes, an apple m1
03:45:56FromDiscord<Elegantbeef> Are you running Nim natively or through rosetta?
03:46:43FromDiscord<b1rdf00d> I _think_ natively? But I do have rosetta installed
03:47:12FromDiscord<Elegantbeef> When you compile what does `static: echo hostOS` give you?
03:48:56FromDiscord<Elegantbeef> you can also compile with `--skipUserCfg --skipParentCfg --skipProjCfg` incase you have a stray config
03:49:25FromDiscord<Elegantbeef> whoops i meant `hostCpu`
03:49:27FromDiscord<b1rdf00d> it is using rosetta, my demo app is coming up as an intel no apple in activity monitor
03:50:27FromDiscord<b1rdf00d> `echo hostCPU` gives me `amd64`
03:50:35FromDiscord<b1rdf00d> so this is all mostly making sense
03:51:27FromDiscord<Elegantbeef> I dont know if nim supports the m1 natively... flywind would know probably
03:52:07FromDiscord<Elegantbeef> I think it does but uncertain
03:52:12FromDiscord<Elegantbeef> How did you install nim?
03:52:35FromDiscord<b1rdf00d> I used choosenim but I would have had rosetta already running then
03:53:28FromDiscord<Elegantbeef> choosenim uses rosetta for macs, which i assume means it installs amd mac?
03:53:55FromDiscord<Elegantbeef> http://gitnim.com/ might be your saving grace
03:54:33FromDiscord<Elegantbeef> Oh actually `nim -v` does say it's arch \:D
03:54:43FromDiscord<Elegantbeef> Who'd have thought that'd be included there
03:55:12FromDiscord<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:29FromDiscord<Elegantbeef> Nah i dont know the issue
03:55:49FromDiscord<Elegantbeef> amd64 is the name of the extended x86 instructions for 64bit
03:56:02FromDiscord<Elegantbeef> it's licensed from amd to every x86\_64 supported CPU
03:56:12FromDiscord<b1rdf00d> ah okay that makes sense
03:57:05FromDiscord<b1rdf00d> gitnim is interesting, similar to pyenv?
03:57:44FromDiscord<Elegantbeef> I mean it's like choosenim but uses libgit directly
03:58:05FromDiscord<Elegantbeef> Actually i guess gitnim might not support arm/mac
03:59:10FromDiscord<b1rdf00d> maybe this will be the next thing I contribute too ... it's all way over my head though (currently)
03:59:24FromDiscord<b1rdf00d> thanks for your help 🙂
04:01:23FromDiscord<b1rdf00d> sent a code paste, see https://paste.rs/VZz
04:01:50FromDiscord<Elegantbeef> Yea it supports it but there isnt software to version manage it which is a shame
04:02:21FromDiscord<Elegantbeef> So yea if you're ever up for it gitnim could be a nice thing to add arm support for \:D
04:04:51FromDiscord<b1rdf00d> I'll have a look 🙂
04:05:14FromDiscord<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:12FromDiscord<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:22FromDiscord<Yardanico> Yes, since Araq himself has an m1
06:51:53FromDiscord<valerga> he's not using windows anymore?
06:57:43FromDiscord<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:57FromDiscord<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:10FromDiscord<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:55FromDiscord<dom96> showcase thread where?
10:48:24FromDiscord<Phil> Forum, just stumbled over a showcase thread there and wondered if there's any benefit to writing one myself
10:49:12FromDiscord<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:22FromDiscord<Phil> Thus the question
10:49:24FromDiscord<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:26FromDiscord<retkid> how can i cast a hex array of an int to an int
11:20:43FromDiscord<retkid> 0 1 0 .. n == 256
11:20:54FromDiscord<retkid> (edit) "0 1 0 .. n" => "0,1,0..n"
11:21:39FromDiscord<retkid> oh i have an idea
11:24:24FromDiscord<retkid> i used the 2 braincells i have to do it
11:37:54FromDiscord<Slazaa> Hi :D
11:46:39FromDiscord<Phil> Cheers
11:50:04FromDiscord<Slazaa> I'd like making a lib but I don't really know what 👀
11:51:40FromDiscord<dom96> pick any of the ones here https://github.com/nim-lang/needed-libraries/issues :)
11:51:46FromDiscord<Phil> Tauri bindings for nim?
11:52:08FromDiscord<Slazaa> A binding sounds fun, I didn't look at how it works yet with Nim
11:52:51FromDiscord<Slazaa> But Tauri is an app ? :o
11:53:33FromDiscord<Phil> Tauri is electron on steroids
11:53:56FromDiscord<xflywind> In reply to @Slazaa "I'd like making a": Javascript runtime in Nim :P
11:53:57FromDiscord<Phil> With a rust backend rather than a node one
11:54:43FromDiscord<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:05FromDiscord<retkid> I wrote a tensor serializer that is purpose built for my application
11:55:08FromDiscord<retkid> :D
11:55:26FromDiscord<Phil> The benefit of bindings for tauri is you get benefits of the ecosystem without having to do all that duplicate effort
11:57:05FromDiscord<xflywind> https://github.com/codecrafters-io/build-your-own-x and https://github.com/aosabook/500lines are great learning material.
11:57:19FromDiscord<xflywind> (edit) "material." => "materials."
12:41:36FromDiscord<ripluke> In reply to @flywind "Javascript runtime in Nim": Don't we already have enough of those?
12:42:56FromDiscord<retkid> 1. is using malloc slower
12:43:14FromDiscord<retkid> 2. is there anyway to continue to have GC datta
12:43:16FromDiscord<retkid> (edit) "datta" => "data"
13:02:30*krux02 joined #nim
13:47:13FromDiscord<Goel> sent a code paste, see https://play.nim-lang.org/#ix=43ZB
13:48:36FromDiscord<Goel> (edit) "https://play.nim-lang.org/#ix=43ZB" => "https://play.nim-lang.org/#ix=43ZD"
13:51:52FromDiscord<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:51FromDiscord<Rika> In reply to @retkid "1. is using malloc": Than what
14:07:08FromDiscord<Rika> In reply to @retkid "2. is there anyway": I’m lost it seems
14:30:47*arkurious joined #nim
14:35:36FromDiscord<retkid> In reply to @Rika "Than what": than... not using -d:malloc
14:35:54FromDiscord<retkid> (edit) "-d:malloc" => "-d:usemalloc"
14:36:26FromDiscord<Rika> Depends on the thing being done
14:36:59FromDiscord<retkid> it seems to be 4x faster
14:37:00FromDiscord<retkid> so yea
14:37:10FromDiscord<retkid> but i need to keep testing and make sure something isn't weird
14:38:03FromDiscord<planetis> https://youtu.be/1l9169qW2FA
14:38:27FromDiscord<planetis> Some exposure for Nim in pentesting
14:38:42FromDiscord<Rika> In reply to @retkid "2. is there anyway": I have no idea what this means though
14:39:02FromDiscord<retkid> if you use -d:useMalloc some gc monitoring functions dont work
14:49:22FromDiscord<retkid> my custom serializer is 200% faster and 1/4th the size!
14:49:24FromDiscord<retkid> :D
14:49:43FromDiscord<retkid> who would have thought making something for some specific purpose would make it fast
14:49:50FromDiscord<retkid> (edit) "who would have thought making something for some specific purpose would make it fast ... " added "and more efficient"
14:49:51FromDiscord<retkid> (edit) "efficient" => "efficien"
14:49:53FromDiscord<retkid> (edit) "efficien" => "efficient"
14:50:23FromDiscord<planetis> Any details?
14:50:49FromDiscord<retkid> https://media.discordapp.net/attachments/371759389889003532/995703646668988486/unknown.png
14:51:19FromDiscord<retkid> dat it
14:51:21FromDiscord<planetis> Cool
14:52:28FromDiscord<planetis> Kind of weird you used the child class and not the more general Stream type
14:52:43FromDiscord<retkid> of byte?
14:53:07FromDiscord<retkid> and not the specific uint8
14:53:11FromDiscord<planetis> FileStream
14:53:17FromDiscord<retkid> oh
14:53:32FromDiscord<retkid> idk thats just how i learned to use it ¯\_(ツ)_/¯
14:54:54FromDiscord<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:32FromDiscord<retkid> In reply to @Zodey "hi! how can i": you use -d:release
14:55:46FromDiscord<retkid> you really fast needs you use -d:danger
14:56:09FromDiscord<retkid> idk the specific optimizations it does, but you can also use -Ofast and -O3
14:56:30FromDiscord<retkid> --passC="compiler args"
14:56:44FromDiscord<retkid> also --passL="linker args"
14:57:56FromDiscord<Zodey> alright, thanks
14:58:28FromDiscord<Zodey> will it need any runtime?
14:58:52FromDiscord<Zodey> i mean, a dll, or so when i use it on another computer
14:59:17FromDiscord<retkid> No, nim executable are statically linked, all of its needs are within itself
14:59:26FromDiscord<Zodey> cool
14:59:33FromDiscord<retkid> unless you are wrapping a c library then you might need it in the same folder
15:01:01FromDiscord<retkid> 400% smaller around there
15:01:17*bigbyt quit (Read error: Connection reset by peer)
15:01:23FromDiscord<Zodey> In reply to @retkid "you use -d:release": how can i use multiple -d: ?
15:01:28FromDiscord<retkid> yes
15:01:39FromDiscord<retkid> (it took me a while to realize that)
15:01:45FromDiscord<Zodey> (edit) removed "how"
15:01:50FromDiscord<retkid> just use em
15:02:05FromDiscord<retkid> if they're compatible it'll compile
15:02:11*bigbyt joined #nim
15:02:15FromDiscord<Zodey> https://media.discordapp.net/attachments/371759389889003532/995706521398804550/unknown.png
15:02:20FromDiscord<retkid> one -
15:02:47FromDiscord<Zodey> its a nims file
15:02:55FromDiscord<Zodey> im sure i need two
15:03:01FromDiscord<retkid> no
15:03:05FromDiscord<retkid> its -d:release -d:ssl
15:03:15FromDiscord<retkid> not --d:release --d:ssl
15:03:19FromDiscord<Zodey> https://media.discordapp.net/attachments/371759389889003532/995706792145338529/unknown.png
15:03:46FromDiscord<retkid> use c
15:03:51FromDiscord<retkid> c -d:ssl -d:release
15:04:00FromDiscord<retkid> if not idk
15:04:13FromDiscord<retkid> i dont really use .nims files
15:04:34FromDiscord<Zodey> In reply to @retkid "c -d:ssl -d:release": it's not good sadly
15:05:06FromDiscord<Rika> Nim doesn’t compile to static binary by default, there is still the c standard library
15:05:10FromDiscord<retkid> general word, im the stupidest one here, Rika, beef, etc, are much more reliable than me
15:05:19FromDiscord<Rika> But any pure Nim dependencies are statically bound
15:05:21FromDiscord<retkid> In reply to @Rika "Nim doesn’t compile to": i meant for nim depends
15:05:50FromDiscord<retkid> how do i compile with a complete static executable
15:05:54FromDiscord<Rika> In reply to @Zodey "": Use “define” over “d”
15:06:01FromDiscord<xflywind> In reply to @Zodey "": use `--d:release`
15:06:02FromDiscord<Rika> In reply to @retkid "how do i compile": MUSL
15:06:29FromDiscord<retkid> In reply to @Rika "MUSL": how does that... help?
15:07:18FromDiscord<Zodey> In reply to @flywind "use `--d:release`": we tried that
15:07:49FromDiscord<Zodey> In reply to @Rika "Use “define” over “d”": not working either
15:07:50FromDiscord<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:03FromDiscord<Rika> In reply to @Zodey "not working either": Double dash if using define and not d
15:08:03FromDiscord<xflywind> `--d:release; --d:ssl`
15:08:26FromDiscord<Zodey> In reply to @flywind "`--d:release; --d:ssl`": works, thank you
15:09:38FromDiscord<retkid> In reply to @Rika "MUSL compiles to static": i didn'
15:09:47FromDiscord<xflywind> Then it is better to place them in different lines in the nimscript.
15:09:47FromDiscord<retkid> know musl had any practical beenfit
15:09:51FromDiscord<retkid> (edit) "beenfit" => "benefit"
15:14:11FromDiscord<retkid> so i need to manage a large samplesize of about 18 gbs
15:14:22FromDiscord<retkid> but thatts bigger than my swap and ram
15:14:53FromDiscord<Zodey> In reply to @flywind "`--d:release; --d:ssl`": but now its not including ssl 😟
15:15:02FromDiscord<retkid> is there anyway i can manage this on disk
15:16:50FromDiscord<xflywind> sent a code paste, see https://play.nim-lang.org/#ix=4403
15:17:11FromDiscord<xflywind> how about?>
15:17:14FromDiscord<xflywind> sent a code paste, see https://play.nim-lang.org/#ix=4404
15:17:28FromDiscord<Zodey> like that
15:17:29FromDiscord<Zodey> sent a code paste, see https://play.nim-lang.org/#ix=4405
15:17:30FromDiscord<Zodey> thank you
15:18:10FromDiscord<xflywind> You are welcome
15:39:45*Guest81 joined #nim
15:40:16*Guest81 quit (Client Quit)
16:02:25FromDiscord<Phil> sent a code paste, see https://play.nim-lang.org/#ix=440g
16:05:14FromDiscord<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:34FromDiscord<retkid> training with arraymancer
16:05:38FromDiscord<retkid> but i've hit a snag there
16:06:46FromDiscord<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:55FromDiscord<Phil> (edit) "Yeh but what sort of calculations? Is it the sort where you can ... partial" added "do"
16:07:36FromDiscord<retkid> no clue yet
16:07:40FromDiscord<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:49FromDiscord<Phil> Depending on what your task is you can divide and conquer it differently
16:07:58FromDiscord<retkid> I think I'll just have to do some neato manual memory
16:08:12FromDiscord<retkid> everything will be a pointer
16:11:13FromDiscord<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:01FromDiscord<vestel> how do I use parallel statement?
16:50:39CyberTailorvestel: it will be removed, don't use it
17:04:57FromDiscord<retkid> In reply to @Isofruit "I think it makes": well yea
17:04:59FromDiscord<retkid> thats what im doing now
17:05:08FromDiscord<retkid> trying to figure out how the hell this works
17:05:15FromDiscord<retkid> I haven't read enough books
17:10:05FromDiscord<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:37FromDiscord<treeform> hmm it appears that --noNimblePath + --path does what I want?
17:28:38FromDiscord<treeform> hmm maybe its `--clearNimblePath` ...
17:35:57*TakinOver joined #nim
17:48:19FromDiscord<huantian> In reply to @voidwalker "I mean it looks": There’s no difference in GC, you redefine them no matter what
17:48:45FromDiscord<voidwalker> assignment != definition ?
17:51:23FromDiscord<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:44FromDiscord<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:18FromDiscord<Phil> In reply to @retkid "<@180601887916163073> do you have": I am fascinated you would assume I have any idea about neural networks 😄
17:54:24FromDiscord<retkid> welp
17:54:28FromDiscord<Phil> I started work in that field, yes, but I ran away screaming
17:54:44FromDiscord<Phil> And I did so fast
17:54:58FromDiscord<retkid> https://media.discordapp.net/attachments/371759389889003532/995749991375196282/unknown.png
17:55:04FromDiscord<retkid> pretty numbers make me happy
17:55:05FromDiscord<retkid> :3
17:55:13FromDiscord<retkid> no idea what it means tho
17:55:21FromDiscord<Phil> Is arraymancer some stuff with AI?
17:55:23FromDiscord<retkid> there are more numbers now than before
17:55:31FromDiscord<Phil> I thought it was basically "Numpy in nim" ?
17:55:34FromDiscord<retkid> it is
17:55:41FromDiscord<retkid> but numpy fucked torch
17:55:49FromDiscord<retkid> its their disgusting little gremlin baby
17:56:02FromDiscord<Phil> How does that make any sense, ML data analysis?
17:56:07FromDiscord<retkid> well
17:56:12FromDiscord<retkid> you build the tensors
17:56:18FromDiscord<retkid> then you build the calcilus
17:56:24FromDiscord<retkid> (edit) "calcilus" => "calculus and linear algebra"
17:56:29FromDiscord<retkid> you're like 75% of the way there
17:56:45FromDiscord<Phil> It'll do random math and spit out a number and you'lll have to see whether you like it?
17:57:11FromDiscord<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:21FromDiscord<retkid> (edit) "floatts" => "floats"
17:57:32FromDiscord<retkid> (edit) "i am fascinated ... you" added "as to why"
17:57:41FromDiscord<Phil> Touché retkid, touché
17:58:29FromDiscord<Phil> What question are you trying to answer with... that attempt?
18:01:13FromDiscord<retkid> I feel like when i got my first modular synth
18:01:16FromDiscord<retkid> and i had some cables
18:01:23FromDiscord<retkid> i just plugged everything into everything else
18:01:28FromDiscord<retkid> and it sounded horrible
18:01:37FromDiscord<retkid> no idea what is happening
18:02:11FromDiscord<Phil> This is me doing first attempts at ML, getting frustrated and leaving for something that behaves more consistently
18:06:58FromDiscord<retkid> im trying to figure out how to get it to compare each row
18:07:12*CyberTailor quit (Quit: Konversation terminated!)
18:07:21FromDiscord<retkid> and then figure the hidden layer of how the values get to where they are
18:39:53FromDiscord<jmgomez> sent a code paste, see https://play.nim-lang.org/#ix=4413
18:47:12FromDiscord<Yardanico> yes
18:47:57FromDiscord<Yardanico> --warning:warnName:off
18:48:05FromDiscord<Yardanico> compiler shows you the warning name in brackets
18:55:04FromDiscord<jmgomez> cool, thanks!
19:10:17FromDiscord<Zodey> sent a code paste, see https://play.nim-lang.org/#ix=441c
19:10:28FromDiscord<Zodey> https://media.discordapp.net/attachments/371759389889003532/995768991362588802/unknown.png
19:10:43FromDiscord<Zodey> i have no idea now why its isnt works as expected
19:11:14FromDiscord<Zodey> that func works perfect like on the examples i gave to it
19:12:19FromDiscord<Zodey> sent a code paste, see https://play.nim-lang.org/#ix=441d
19:12:21FromDiscord<Zodey> and im completely lost now
19:12:34FromDiscord<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:07FromDiscord<dom96> I would recommend using htmlparser instead of parsing manually.
19:28:17FromDiscord<demotomohiro> Debug your code with `echo start_index` or echo `end_index`?
19:32:10FromDiscord<Zodey> In reply to @demotomohiro "Debug your code with": well, 11 and 29, it's not helping 😂
19:32:17FromDiscord<Zodey> In reply to @dom96 "I would recommend using": yeah, makes sense
19:32:36FromDiscord<Zodey> i just wanted to keep it simple
19:32:56FromDiscord<Zodey> but i think i really should use the parser ;D
19:33:59FromDiscord<Zodey> (edit) "but ... i" added "now"
19:39:38FromDiscord<demotomohiro> 11 and 29 means `find` return incorrect value?↵Maybe you are using `system.find` not `strutils.find`.
19:41:32FromDiscord<Zodey> In reply to @demotomohiro "11 and 29 means": its using strutils.find
19:41:43FromDiscord<Zodey> and its works fine for "normal" strings
19:41:59FromDiscord<Zodey> but for html its kinda not xD
19:42:05FromDiscord<Zodey> i mean, there is a site where yes
19:42:14FromDiscord<Zodey> and there is where no
19:47:00*metagn joined #nim
19:47:09metagnis timothee gone?
19:53:19FromDiscord<d4rckh> why do i need to ship my app with a cert and a dll if i want to use ssl?
19:55:44FromDiscord<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:44FromDiscord<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:56FromDiscord<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:10FromDiscord<d4rckh> i see
19:58:14FromDiscord<d4rckh> and what about the pam file?
19:59:10FromDiscord<d4rckh> what ssl libs do langs like python use?
19:59:33FromDiscord<d4rckh> i think still openssl but it would be preinstalled anyway with the interpreter
20:12:55FromDiscord<lantos> sent a long message, see http://ix.io/441t
20:13:38FromDiscord<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:44metagni 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:24metagnbecause timothee wrote the old workaround
20:42:50*noeontheend quit (Ping timeout: 240 seconds)
20:43:48FromDiscord<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:24FromDiscord<Phil> In reply to @d4rckh "what ssl libs do": python wraps openssl
20:46:18FromDiscord<dom96> bearssl looks nice but is still in beta. Not something you want for crypto afaik
20:49:56FromDiscord<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:45FromDiscord<Tanguy> Status, which is the definition of mission critical crypto, only uses bearssl
20:58:39FromDiscord<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:56FromDiscord<Elegantbeef> You left out the important part, it doesnt have open in it's name so it's more secure 😛↵(@Tanguy)
21:39:31FromDiscord<Elegantbeef> Yes i can audibly hear the groans
21:39:56*noeontheend joined #nim
21:51:31*metagn quit (Quit: Client closed)
21:58:51FromDiscord<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:35FromDiscord<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:26FromDiscord<TryAngle> does nim also have drippy names for libraries (for example crates, for rust libs)
22:17:47FromDiscord<treeform> drippy? I got you covered 🙂
22:21:36FromDiscord<dom96> In reply to @Tanguy "Status, which is the": Isn't that risky for Status to be relying on beta-quality software?
22:22:02FromDiscord<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:25FromDiscord<dom96> reverted in https://github.com/nim-lang/Nim/pull/17984
22:27:15FromDiscord<federico3> yep, found it. I'm adding a note
22:43:04*sagax joined #nim
22:45:23FromDiscord<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:46FromDiscord<TryAngle> btw. if csize is not what it is in C and csize_t should be used, what is csize exactly?
22:45:55FromDiscord<TryAngle> (edit) removed "btw."
22:46:25FromDiscord<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:06NimEventerNew thread by Elcritch: Possible to combine OpenGL with Fidget? , see https://forum.nim-lang.org/t/9296
23:58:08FromDiscord<TryAngle> when I wrap a c function that contains `block` as parameter, how should I handle that?
23:58:33FromDiscord<Elegantbeef> give it a different name, use stropping, whatever you want
23:58:58FromDiscord<TryAngle> In reply to @Elegantbeef "give it a different": ah ok, so it can have different name, and still link correctly?
23:59:46FromDiscord<TryAngle> or what is stropping
23:59:58FromDiscord<huantian> ` these guys
23:59:59FromDiscord<TryAngle> sent a code paste, see https://play.nim-lang.org/#ix=