<< 11-03-2024 >>

00:21:39*krux02 quit (Remote host closed the connection)
00:43:04FromDiscord<.bobbbob> https://github.com/guzba/zippy says it's 1.5-2x faster than zlib. How can that be? Isn't zlib decades old and shouldn't it have a fuck ton of optimizations at this point, not to mention being written in c?
00:43:43FromDiscord<leorize> it doesn't
00:43:54FromDiscord<leorize> zlib is one of those neglected libraries
00:43:57FromDiscord<leorize> see zlib-ng
00:44:36FromDiscord<leorize> and the only thing "written in C" means is pain
00:44:54FromDiscord<leorize> speed just happened because it's pain to not have speed
00:46:35FromDiscord<.bobbbob> ah, but it seems like zlib is still the default in most distros
00:47:17FromDiscord<leorize> some of them are swapping out the implementation but keeping the zlib package nane
00:47:20FromDiscord<leorize> name\
00:48:12FromDiscord<leorize> https://fedoraproject.org/wiki/Changes/ZlibNGTransition
00:48:25FromDiscord<leorize> fedora is moving to zlib-ng next version it seems
01:17:52*Mister_Magister quit (Quit: bye)
01:39:16*LuxuryMode joined #nim
02:28:47*lucasta quit (Remote host closed the connection)
03:03:23NimEventerNew Nimble package! nginwho - A lightweight and extremely fast nginx log parser that stores the result into a sqlite3 database for further analysis and action, see https://github.com/pouriyajamshidi/nginwho
04:18:44*LuxuryMode quit (Quit: Connection closed for inactivity)
04:44:55FromDiscord<flamingflamingo96> Want to try it
04:44:56FromDiscord<flamingflamingo96> @room I made a library its called fuckNiggers
04:45:05FromDiscord<flamingflamingo96> 1000000027.webm https://media.discordapp.net/attachments/371759389889003532/1216607807688675338/1000000027.webm?ex=66010150&is=65ee8c50&hm=3f3eaf4d6d44338ff505b27aef45017fa5b7b8c745cbea0f2eaa3f4eb98b626d&
04:45:12FromDiscord<flamingflamingo96> 1000000026.webm https://media.discordapp.net/attachments/371759389889003532/1216607835735982221/1000000026.webm?ex=66010157&is=65ee8c57&hm=fd4de2e13dc5ef8c2a171adffda6ab748a6adcebd98491b9e798a75bce7b7456&
04:45:13FromDiscord<flamingflamingo96> 1000000018.webm https://media.discordapp.net/attachments/371759389889003532/1216607839104274462/1000000018.webm?ex=66010158&is=65ee8c58&hm=f0f1d6d08a1e74017177319f72f6cf77a7acdc84f251da51aa199035a4e3913b&
04:45:13FromDiscord<flamingflamingo96> It let's you embed this video
04:45:17FromDiscord<flamingflamingo96> I also made fuckFaggots
04:45:27FromDiscord<flamingflamingo96> 1000000030.webm https://media.discordapp.net/attachments/371759389889003532/1216607898399014972/1000000030.webm?ex=66010166&is=65ee8c66&hm=536e9805a72331e43af9a0534ce3b3cebe8539673c502d28ec4ad95e58d16646&
04:45:27FromDiscord<flamingflamingo96> It let's you embed this video
04:45:41FromDiscord<flamingflamingo96> @room anyone want to try fuckNiggers or fuckFaggots?
04:45:55FromDiscord<flamingflamingo96> 1000000027.webm https://media.discordapp.net/attachments/371759389889003532/1216608019501285397/1000000027.webm?ex=66010183&is=65ee8c83&hm=cd4dd97a6fc8b279d878f9b5af15ce3cd31d951658121dc64d1288460bbede75&
04:46:16FromDiscord<flamingflamingo96> @room
04:46:25FromDiscord<flamingflamingo96> Please try my libraries
04:46:31FromDiscord<flamingflamingo96> I can also make fuckSpicks
04:46:40FromDiscord<flamingflamingo96> 1000000022.jpg https://media.discordapp.net/attachments/371759389889003532/1216608206894272512/1000000022.jpg?ex=660101b0&is=65ee8cb0&hm=dd3771b7e6c600b9804be6db56d227581370d8ca32e4c28264979580fe53344d&
04:46:43FromDiscord<flamingflamingo96> It can embed this picture
04:50:53FromDiscord<ElegantBeef> <@&371760044473319454>
05:16:53*nazgulsenpai quit (Ping timeout: 240 seconds)
05:21:58*nazgulsenpai joined #nim
06:13:31*advesperacit joined #nim
07:06:25*ntat joined #nim
08:24:46*Mister_Magister joined #nim
08:58:06*azimut quit (Ping timeout: 260 seconds)
09:26:53*ntat quit (Quit: Leaving)
10:27:01*SchweinDeBurg quit (Quit: WeeChat 4.3.0-dev)
10:27:16*SchweinDeBurg joined #nim
10:33:43*tc424 quit (Ping timeout: 246 seconds)
11:42:24*azimut joined #nim
13:54:44*xet7 quit (Remote host closed the connection)
14:47:36*ntat joined #nim
14:51:50*azimut quit (Ping timeout: 260 seconds)
14:58:55*disso-peach joined #nim
14:59:38*disso-peach quit (Client Quit)
15:36:41FromDiscord<fosster> you mean nimssl?↵(@Phil)
15:53:09*azimut joined #nim
16:18:25FromDiscord<fosster> it seems that `std/openssl` is missing some functions
17:15:05FromDiscord<fosster> so I've been trying to use nim's std/openssl wrapper to generate an ECDSA key pair, however I'm unable to achieve my goal because the openssl's documentation (https://wiki.openssl.org/index.php/EVP_Key_and_Parameter_Generation) uses functions that aren't present in the nim wrapper
17:16:25FromDiscord<fosster> I've also been trying some alternatives to openssl for ecdsa, but the only thing I could find was https://github.com/adelq/nim-ecdsa but it's no longer manteined since 10 years..
17:18:43FromDiscord<fosster> if someone has some advice or anything, I'd be glad to hear
17:26:56FromDiscord<pmunch> Could always just Futhark OpenSSL 🤷‍♂️
17:34:52FromDiscord<demotomohiro> Probably `std/openssl` only wraps functions used by Nim's standard library.
17:36:05*krux02 joined #nim
18:44:03arkanoidcalling arraymancer from generic function goes undeclared identifier: /arraymancer/tensor/private/p_empty_tensors.nim(46, 16) Error: undeclared identifier: 'newTensor'
18:44:27arkanoidI'm trying spraying `mixin newTensor` here and there, but no luck :(
18:45:55FromDiscord<Elegantbeef> is `newTensor` accessible in the generic or the call site?
18:47:16arkanoidyes, I can "let foo = newTensor[float](3, 3)" the line before
18:47:20Amun-Rahmm, I know nim doesn't have guard but… what'd be the best way to pin function to one of tagged union types and check it compile-time?
18:47:50FromDiscord<Elegantbeef> `static: assert x is y`
18:48:30Amun-Ranice
18:50:03FromDiscord<Elegantbeef> arkanoid that error comes from a macro so no amount of mixin will bind the symbol
18:50:32FromDiscord<Elegantbeef> The generic using that macro does not have it in scope
18:51:42arkanoidlet me climb the stacktrace to find out
18:53:55arkanoidthis is the calling place https://github.com/mratsim/Arraymancer/blob/7d6d21cbcafda25201f4fd2fb481fb1316704813/src/arraymancer/tensor/ufunc.nim#L28 tried adding "let foo = newTensor[float](3, 3)" just before that line, and yes I'm getting Error: undeclared identifier: 'newTensor'. You're right
18:56:19arkanoidI yet have to wrap my head around how generic works at compile time. Why does that proc works when called outside of a generic proc
18:56:44FromDiscord<Elegantbeef> Why does what proc work?
18:58:14arkanoidI had a prefectly working code until I had the brave idea to use unchained to apply all unit of measures as types, and then the even braver idea to use concepts as typeclasses
18:58:53arkanoidso I know that my code used to compile when I called `ufunc.asType` from a non-generic proc
18:58:58FromDiscord<Elegantbeef> If that proc worked when it wasn't a generic you have a magical proc
18:59:30FromDiscord<Elegantbeef> `newTensor` does not exist in `asType`'s scope so `newType` is just an error
18:59:42FromDiscord<Elegantbeef> so `newTensor` is just an error
19:00:25FromDiscord<Elegantbeef> Are you sure you were not calling the other `asType` prior?
19:01:41arkanoidso how does this function would work for arraymancer general user, if newTensor is not declared? https://github.com/mratsim/Arraymancer/blob/7d6d21cbcafda25201f4fd2fb481fb1316704813/src/arraymancer/tensor/ufunc.nim#L22
19:01:57FromDiscord<Elegantbeef> It doesn't
19:02:25FromDiscord<Elegantbeef> There is no `mixin newTensor` so `newTensor` will not compile
19:03:11arkanoidyou seem like saying this is a big bug in original arraymancer code
19:03:53arkanoidlet me play with it in playground
19:04:00FromDiscord<Elegantbeef> Well it does not `bindSym"newTensor"` so it seems to rely on the instantiation scope's lookup
19:04:10FromDiscord<Elegantbeef> Where is `newTensor` defined does `p_empty_tensors` import it?
19:04:48arkanoidnewTensor is defined here https://github.com/mratsim/Arraymancer/blob/7d6d21cbcafda25201f4fd2fb481fb1316704813/src/arraymancer/laser/tensor/initialization.nim#L195
19:05:50FromDiscord<Elegantbeef> Yea that macro has no `newType` in scope and the generic proc that uses it does not either
19:06:01FromDiscord<Elegantbeef> a `mixin newTensor` inside that proc is fine
19:06:10FromDiscord<Elegantbeef> God damn I keep saying `type` instead of `tensor`
19:06:48arkanoidyou mean add "mixin newTensor" inside here? https://github.com/mratsim/Arraymancer/blob/7d6d21cbcafda25201f4fd2fb481fb1316704813/src/arraymancer/tensor/ufunc.nim#L22
19:07:49arkanoidadd "mixin newTensor" just before this line does not compile. Same error https://github.com/mratsim/Arraymancer/blob/7d6d21cbcafda25201f4fd2fb481fb1316704813/src/arraymancer/tensor/ufunc.nim#L28
19:07:50FromDiscord<Elegantbeef> Yes you need to tell the compiler "This symbol will exist have faith"
19:08:18arkanoidarraymancer/tensor/private/p_empty_tensors.nim(46, 16) Error: undeclared identifier: 'newTensor'
19:10:00arkanoidthis is the kind of stuff you don't expect to find when the play with generics
19:10:10FromDiscord<Elegantbeef> I mean this is cause of the macro
19:11:47FromDiscord<Elegantbeef> Put a `echo result.treeRepr` inside `returnEmptyIfEmpty`
19:49:28FromDiscord<Robyn [She/Her]> Oh does anyone know what Nimib is? Idk much about it
19:49:34FromDiscord<fosster> not sure what you mean by that↵(@pmunch)
19:49:49FromDiscord<Elegantbeef> Nimib let's you generate markdown files from Nim code
19:49:51FromDiscord<Elegantbeef> Or html
19:50:02FromDiscord<fosster> ow, disappointing \:(↵(@demotomohiro)
19:50:38FromDiscord<pmunch> In reply to @fosster "not sure what you": https://github.com/PMunch/futhark
19:51:40FromDiscord<fosster> oh thank you, I believe that's what I'll try at this point↵(@pmunch)
19:52:19FromDiscord<fosster> I also find a bit disappointing that's difficult to generate a couple of ecdsa in nim
19:52:44FromDiscord<pmunch> Well with Futhark it should be a breeze 🙂
19:52:52FromDiscord<pmunch> Or at least no harder than in C
19:53:26FromDiscord<fosster> I also find a bit disappointing that's difficult to generate a couple of ecdsa keys in nim
19:55:47*ntat quit (Quit: Leaving)
20:16:14FromDiscord<Phil> In reply to @chronos.vitaqua "Oh does anyone know": Nimib is what generates every piece of documentation I write that isn't reference docs
20:17:45FromDiscord<Phil> sent a long message, see https://pasty.ee/FoRwcsnfqEkV
20:18:09FromDiscord<Phil> It's really nice to put all your docs into that aren't reference docs
20:18:28FromDiscord<Phil> Reference docs imo should always be done via nim's own docs generator
20:18:52*def- quit (Quit: -)
20:19:03FromDiscord<Phil> nimib is basically the underlying lib for nimibook.
20:19:41FromDiscord<Robyn [She/Her]> Oh neat! Thanks!
20:21:07*junaid_ joined #nim
20:30:25*junaid_ quit (Remote host closed the connection)
20:38:06*def- joined #nim
20:41:37*azimut quit (Quit: ZNC - https://znc.in)
20:54:27*def- quit (Quit: -)
20:58:34*def- joined #nim
21:24:13arkanoidElegantbeef, sorry for not answering, I had to prepare dinner. Here's what I get from echoing treeRepr inside returnEmptyIfEmpty: https://play.nim-lang.org/#pasty=DhXYSYSYPOlb
21:52:49FromDiscord<garin.i64> @everyone Free Onlyfans and Leaks here: discord.gg/leaks4you
22:00:36FromDiscord<Robyn [She/Her]> <@&371760044473319454>
22:00:51FromDiscord<Robyn [She/Her]> Looks like someone got their account hacked
22:28:48arkanoidElegantbeef, I'm managing to create a self contained example. I'm almost there, the result is very confusing
22:28:59arkanoidgimme 10 minutes more
22:35:53arkanoidok I got it! the culprit is ... a simple import
22:37:59arkanoidbasically the very same proc gives error when imported, but works when declared in same file https://play.nim-lang.org/#pasty=oSzTbuVGokIr
22:40:44arkanoidI have no idea why this happens, but wasting hours on silly problems is not fun
22:41:53NimEventerNew question by Lucius_Will: What are the main ways to do a reverse iteration in Nim?, see https://stackoverflow.com/questions/78143746/what-are-the-main-ways-to-do-a-reverse-iteration-in-nim
22:59:43*KhazAkar quit (Ping timeout: 255 seconds)
23:00:02arkanoidthis reduces the problem to an import vs include one: https://play.nim-lang.org/#pasty=tBtAEqMCjoYI
23:12:32arkanoidI'll post this on the forum, I courious about the explanation for this behavior
23:14:49*lucasta joined #nim
23:24:59*advesperacit quit ()
23:28:27NimEventerNew thread by giaco: Include vs import when using generics, see https://forum.nim-lang.org/t/11198
23:29:20*KhazAkar joined #nim