<< 10-08-2022 >>

00:01:09*krux02 quit (Quit: Leaving)
00:03:20FromDiscord<Bubblie> Hey leorize when you meant the type of the proc, did you mean whether it was void etc.?
00:04:01FromDiscord<leorize> the type of the proc is its signature
00:04:15FromDiscord<leorize> ie `proc(a: int, b: string)`
00:04:16FromDiscord<Bubblie> Signature?
00:04:34FromDiscord<Bubblie> Is signature its params?
00:05:08*emery quit (Ping timeout: 255 seconds)
00:08:44FromDiscord<!Patitotective> and return type
00:09:26FromDiscord<Bubblie> Ah so void in this case
00:22:15*ehmry joined #nim
00:29:23FromDiscord<leorize> void return type is the same as not specifying one in nim btw
00:50:55*joast quit (Quit: Leaving.)
01:14:13FromDiscord<Bubblie> In reply to @leorize "void return type is": Thanks! :)
01:15:37FromDiscord<Forest> Can anyone who understands futhark help us just, make it stop making numbered identifiers public?
01:15:52FromDiscord<Forest> The numbered identifiers being exported reaaaally fucks with the IDE lmao
01:15:54FromDiscord<!Patitotective> you could ping its creator, pmunch
01:16:01FromDiscord<Forest> Already did that yesterday
01:16:25FromDiscord<Forest> Also made a GitHub issue
01:16:37FromDiscord<Forest> Just really wanting to get rid of numbered identifiers being exported because it's annoying us-
01:17:36FromDiscord<Forest> I just don't understand in the code what the numbered identifier is, and what the clean identifier is, it doesn't make it obvious
01:31:03FromDiscord<Forest> Anyone? I've tried to go through it multiple times but yeah-
01:34:52FromDiscord<Elegantbeef> Manually going through is pretty much all you can do πŸ˜„
01:36:27FromDiscord<Forest> In the futhark GitHub repo
01:36:30FromDiscord<Forest> I just can't understand it sob
01:54:50FromDiscord<Bubblie> :reducedtoatoms:
01:54:52FromDiscord<Bubblie> sent a code paste, see https://play.nim-lang.org/#ix=479a
01:55:10FromDiscord<Elegantbeef> Look up the type in the futhark file
01:56:11FromDiscord<Bubblie> sent a code paste, see https://play.nim-lang.org/#ix=479b
01:56:32FromDiscord<Bubblie> this is what it looks like in the futhark file
01:56:55FromDiscord<Elegantbeef> `message: cstring` isnot `a2: ptr cuchar`
01:58:34FromDiscord<Bubblie> oh yeah I changed it to cstring cause ptr cuchar wasn't working
01:58:46FromDiscord<Bubblie> sent a code paste, see https://play.nim-lang.org/#ix=479c
01:58:47FromDiscord<Bubblie> at least the error
01:58:51FromDiscord<Bubblie> is a bit different?
02:01:03FromDiscord<!Patitotective> are you assigning something to that procedure returns type? it has no type
02:01:15FromDiscord<Bubblie> can I send you what I have?
02:01:18FromDiscord<!Patitotective> (edit) "procedure returns type?" => "procedures result?"
02:01:23FromDiscord<!Patitotective> sure you can
02:01:29FromDiscord<Bubblie> sent a code paste, see https://play.nim-lang.org/#ix=479e
02:01:41FromDiscord<Bubblie> that echo there is a placeholder
02:01:49FromDiscord<Bubblie> just so I know its at least working and prints something
02:02:02FromDiscord<!Patitotective> what is `instancerequestadapter`'s signature?
02:02:46FromDiscord<Elegantbeef> `instanceRequestAdapter` returns nothing
02:02:54FromDiscord<Elegantbeef> It's here↡(@Bubblie)
02:03:03FromDiscord<Bubblie> oh
02:03:04FromDiscord<Bubblie> what...
02:03:19FromDiscord<Bubblie> oh
02:03:20FromDiscord<Bubblie> my
02:03:21FromDiscord<Bubblie> god
02:03:30FromDiscord<Bubblie> :facepalm: I should quit coding
02:03:55FromDiscord<Bubblie> that
02:03:56FromDiscord<Bubblie> fixed it beef
02:04:16FromDiscord<!Patitotective> In reply to @Bubblie "<:facepalm:664295198318395392> I should": do crochet with me
02:04:33FromDiscord<Bubblie> LOL
02:04:37FromDiscord<Bubblie> Sounds wonderful 😭
02:05:05FromDiscord<Bubblie> thanks everyone, I am truly the smartest man alive (sarcasm)
02:05:08FromDiscord<Forest> sent a code paste, see https://play.nim-lang.org/#ix=479f
02:05:31FromDiscord<Forest> Is it safe to ignore it? Because binding file is generated anyway and passes `nim check`
02:05:49FromDiscord<Bubblie> at least now I gained some experience and to check for things properly 😭
02:06:38FromDiscord<Forest> Lmao
02:19:11*joast joined #nim
02:35:54FromDiscord<zhaozilong> https://i.imgflip.com/6pggbb.jpg
02:36:26FromDiscord<!Patitotective> In reply to @zhaozilong "https://i.imgflip.com/6pggbb.jpg": <@&371760044473319454>
02:40:43*ehmry quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
02:42:24FromDiscord<Prestige> Wat
02:43:23FromDiscord<zhaozilong> @Moderator ban me
02:47:32FromDiscord<j-james> annoying
02:48:33FromDiscord<zhaozilong> ooh oooh so annoying πŸ€“
02:49:17FromDiscord<Rika> LMAO
02:49:19FromDiscord<Elegantbeef> It's a real shame these people exist, really ruining the goodwill of matrix πŸ˜„
02:49:55FromDiscord<that_dude> Seems like we've been getting a lot of trash recently lol
02:50:12FromDiscord<Elegantbeef> The real shame is these are real people and arent spam bots
02:50:26FromDiscord<that_dude> Well That means I get to make fun of them even more
02:50:41FromDiscord<Elegantbeef> These people are getting paid to go through AI prevention tools to spam a shitty game URL
02:52:16FromDiscord<salt rock lamp> hi all, i was surprised to find that by translating a python program to nim, i actually got worse performance than python. does anyone have any profiling tips, or any suggestions about obvious performance improvements to the nim code? here is the code\: https://git.sr.ht/~wintershadows/polyglot-benchmarks/tree/master/item/running-stats-cli/implementations/nim/calc.nim which i am compiling with `nim compile --define:release --mm:o
02:52:36FromDiscord<Elegantbeef> Cracks knuckles
02:52:54FromDiscord<salt rock lamp> the equivalent python is here https://git.sr.ht/~wintershadows/polyglot-benchmarks/tree/master/item/running-stats-cli/implementations/python/calc.py
02:53:08FromDiscord<Elegantbeef> Nim's `lines` might be the culprit
02:53:34FromDiscord<flywind> In reply to @salt rock lamp "hi all, i was": What's the number?
02:53:39FromDiscord<salt rock lamp> interestingly on cpython 3.8 (or maybe 3.9?) on my older macbook pro x86, nim 1.6.0 was beating python handily. now on the m1 macbook cpython 3.10 is beating nim 1.6.6 by a significant and repeatable amount
02:53:49FromDiscord<Elegantbeef> `--threads:off`
02:54:06FromDiscord<Elegantbeef> Ok so you're doing a lot bad
02:54:27FromDiscord<salt rock lamp> i generated 30 million input lines for this task, python crunched it in 6.34s and nim did it in 7.59
02:54:31FromDiscord<salt rock lamp> lay it on me!
02:54:47FromDiscord<Elegantbeef> can we get the input?
02:54:55FromDiscord<that_dude> Is doing static things cheating?
02:54:58FromDiscord<salt rock lamp> i can give you a sample, i don't think you really want 30 million lines of numbers
02:55:07FromDiscord<flywind> How did you measure the time?
02:55:25FromDiscord<Rika> In reply to @salt rock lamp "i can give you": What if we did though
02:55:36FromDiscord<Elegantbeef> It's the `data-sample.txt`?
02:55:39FromDiscord<salt rock lamp> i just used `gtime`, i used to be using `hyperfine` but the error is +/- 0.1 seconds so it's not worth my time to run it over and over
02:55:42FromDiscord<salt rock lamp> yeah actually that's the sample input
02:55:43FromDiscord<zhaozilong> oooh oooh
02:55:55FromDiscord<flywind> In reply to @flywind "How did you measure": Probbaly echo is quit heavy
02:56:12FromDiscord<salt rock lamp> it just echos once at the end, i would hope that is +/- miliseconds at worst
02:56:16FromDiscord<salt rock lamp> i can upload the full data somewhere if you all want it
02:56:33FromDiscord<Elegantbeef> I got the data dont worry
02:57:01FromDiscord<zhaozilong> oooh oooh he's spamming admins admins
02:57:12FromDiscord<Elegantbeef> Oh fuck off
02:57:25FromDiscord<zhaozilong> ahahahaha
02:57:33FromDiscord<zhaozilong> that's what u all sound like
02:57:39FromDiscord<Elegantbeef> It's really not
02:57:43FromDiscord<zhaozilong> ooh ooh he's a spammer ban him πŸ€“
02:57:46FromDiscord<Prestige> Can someone make beef an admin
02:57:57FromDiscord<Elegantbeef> This is a programming language community not shitty game community
02:58:09FromDiscord<Elegantbeef> Go make your own matrix room if you want to have a shitty game community
02:58:12FromDiscord<zhaozilong> no
02:58:16FromDiscord<Elegantbeef> I mean they could prestige
02:58:17FromDiscord<zhaozilong> I will post it here
02:58:33FromDiscord<zhaozilong> "admins admins"
02:58:37*ehmry joined #nim
02:58:40FromDiscord<Prestige> Maybe I should take down his website so he'll shut up
02:58:44FromDiscord<salt rock lamp> i ignored them 😬 i dont even see placeholders for their messages. idk if all clients support that
02:58:50FromDiscord<zhaozilong> ban me im a spammer πŸ€“ dom96\:
02:59:04FromDiscord<zhaozilong> skiddosser↡(@Prestige)
02:59:06FromDiscord<zhaozilong> hahaha
02:59:11FromDiscord<salt rock lamp> @that_dude\: it's only cheating if it substantially changes the program semantics
02:59:15FromDiscord<zhaozilong> "omg hes spamming adminsss"
02:59:17FromDiscord<Elegantbeef> Damn that works well salt πŸ˜„
02:59:21FromDiscord<Prestige> Not exactly zhaozilong. Lol
02:59:34FromDiscord<Elegantbeef> I hate that you use stdin for this salt
02:59:51FromDiscord<zhaozilong> I'll wait for your gigamassive botnet
03:00:04FromDiscord<zhaozilong> bcc5b84c2b8c0351e0088651dcfa25a3.png https://media.discordapp.net/attachments/371759389889003532/1006758803464802364/bcc5b84c2b8c0351e0088651dcfa25a3.png
03:00:23FromDiscord<Elegantbeef> What's the correct ressult 99, 2, 0?
03:00:43FromDiscord<salt rock lamp> yeah i know you could read from a file and probably get a lot of mileage out of memmapping and stuff. the goal of this benchmark was as much testing the performance of "user friendly" language primitives as it was to try to just get the fastest program possible
03:00:50FromDiscord<salt rock lamp> i remain astounded at how fast cpython's float parser is
03:00:52FromDiscord<Elegantbeef> That's not why i hate it
03:00:54FromDiscord<Elegantbeef> It's annoying to run
03:00:56FromDiscord<zhaozilong> pleas admins why aren't the admins banning me
03:01:15FromDiscord<Elegantbeef> Give me the full data set
03:01:23FromDiscord<Elegantbeef> Didnt realize the text was a subsection
03:01:45FromDiscord<salt rock lamp> sent a code paste, see https://play.nim-lang.org/#ix=479n