<< 10-09-2020 >>

00:00:33*Jesin joined #nim
00:03:00*Vladar quit (Quit: Leaving)
00:41:56*ptdel joined #nim
00:43:24*abm quit (Read error: Connection reset by peer)
00:50:23FromDiscord<Avatarfighter> disruptek what are you working on
00:50:44disruptek#14632
00:50:45disbothttps://github.com/nim-lang/Nim/pull/14632 -- 3porting name mangling from ic effort
00:55:37*maier joined #nim
00:58:25disruptekhow about you, fighter?
01:00:31*maier quit (Ping timeout: 246 seconds)
01:06:46*ptdel quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
01:08:58*ptdel joined #nim
01:21:56*ptdel quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
01:39:25*audiofile quit (Quit: Default Quit Message)
01:42:32*apahl quit (Ping timeout: 244 seconds)
01:44:22FromDiscord<Avatarfighter> Well my internet just died but I am not sure what I should work on
01:44:50*apahl joined #nim
01:44:57FromDiscord<Avatarfighter> my plan was to make a mitm for a game w a plugin system but im unsure if arc is stable enough with memory sharing for that to work well
01:45:10FromDiscord<Avatarfighter> i also just learned that nitter is written in nim https://nitter.net/about
01:45:36disruptekhe's switching to perl6.
01:45:44disrupteksays it's better for handling text.
01:46:18FromDiscord<Avatarfighter> what does that mean
01:46:43FromDiscord<Avatarfighter> "Handling text" oh gosh
01:56:04*endragor joined #nim
01:59:26disruptekhe got a job; probably moved on from nim. now he can afford to write in a mainstream language.
02:07:12*vicfred_ joined #nim
02:09:36*vicfred quit (Ping timeout: 256 seconds)
02:10:06*Tanger joined #nim
02:10:26ldleworkRIP https://github.com/nim-lang/nim-mode/pull/117
02:10:27disbotRevert "Add support for nim to org-mode's babel languages"
02:33:54*Tanger quit (Remote host closed the connection)
02:35:39*Tanger joined #nim
02:40:01*dddddd_ joined #nim
02:40:23*a_chou quit (Ping timeout: 258 seconds)
02:42:13*dddddd quit (Ping timeout: 260 seconds)
02:48:55*Tanger quit (Remote host closed the connection)
02:50:13*muffindrake quit (Ping timeout: 272 seconds)
02:51:39*Tanger joined #nim
02:52:02*muffindrake joined #nim
02:56:23*maier joined #nim
02:58:54FromDiscord<Avatarfighter> the heapqueue module is so useful
03:01:28*maier quit (Ping timeout: 260 seconds)
03:03:27FromDiscord<Elegant Beef> Many of the modules are
03:03:29FromDiscord<Elegant Beef> :p
03:19:24disruptekwhat are you using it for?
03:19:35disruptekANSWER ME AVATARFIGHTER
03:19:39disruptekWHAT?
03:20:33disruptekbentley and i are chasing mice around the rv. it's a mad house here. i really need to finish this stupid pr but i'm having too much fun.
03:21:45FromDiscord<Elegant Beef> Go get yourself some canned expanding foam so your dog doesnt get crunchy treats
03:23:08disruptekthere's no way to keep them out.
03:23:23disrupteka mouse can enter a hole the size of your thumbnail.
03:25:01*a_chou joined #nim
03:27:23FromDiscord<Rika> so 2 kilobytes
03:29:22disruptekalways exciting to feel something furry in your lap when you're not expecting it.
03:33:19*a_chou quit (Quit: a_chou)
03:38:18*endragor quit (Remote host closed the connection)
03:38:46*endragor joined #nim
03:42:11FromGitter<iffy> Hey @dom96, I just noticed that Jester CI on Travis is only testing against 0.19.4. I can submit a PR that would test macOS/Windows/Linux on current stable and dev versions if you'd like (using GitHub Actions). Want it?
03:43:58*endragor quit (Ping timeout: 246 seconds)
03:44:03*vicfred_ quit (Quit: Leaving)
03:44:24*vicfred joined #nim
03:46:23*thomasross quit (Ping timeout: 260 seconds)
03:48:25FromDiscord<Avatarfighter> Sorry about that disruptek i went to go eat!
03:48:42FromDiscord<Avatarfighter> Im using the heapqueue module as a priority queue for a mitm
03:51:51FromDiscord<Avatarfighter> decided that I would just not use a plugin system for it and instead build it with plugins built in
03:52:53*endragor joined #nim
03:56:55*arecacea1 quit (Remote host closed the connection)
03:57:43*arecacea1 joined #nim
04:01:43silvernode[m]Is there a type for triple quote strings or is it just treated as a regular string?
04:02:18FromDiscord<Rika> theyre regular strings
04:02:25FromDiscord<Rika> unless you mean a nim node kind
04:03:11silvernode[m]<FromDiscord "<Rika> unless you mean a nim nod"> I don't think I mean the nim node kind since I don't know what that is.
04:03:33FromDiscord<Rika> okay, theyre just normal strings then
04:06:02*supakeen quit (Quit: WeeChat 2.9)
04:06:46*supakeen joined #nim
04:17:39silvernode[m]<FromDiscord "<Rika> okay, theyre just normal "> My girlfriend saw me working on that space nim game and wanted to make a game with me that was focused on a haunted mansion. So I am taking the approach of makinga Room object type that we can make rooms out of so I thought I would put the event text in a triple quote string inside the object.
04:18:12FromDiscord<Rika> wdym?
04:21:00silvernode[m]<FromDiscord "<Rika> wdym?"> say what?
04:21:47FromDiscord<Rika> i feel like i am missing context regards your message that mentions your GF
04:26:26FromDiscord<Avatarfighter> that is the context to them asking about the triple quotes
04:26:27silvernode[m]<FromDiscord "<Rika> i feel like i am missing "> yeah I haven't been here much so you probably forgot about the text based space game I talked about here a lot back a few months ago.
04:26:43silvernode[m]<FromDiscord "<Avatarfighter> that is the cont"> This ^
04:26:57FromDiscord<Avatarfighter> ah there is context to the context 😛
04:28:14FromDiscord<Rika> > that is the context to them asking about the triple quotes↵yes but what about
04:28:28FromDiscord<Rika> why do i need to know this, is there a follow up question or something
04:29:49silvernode[m]<FromDiscord "<Rika> why do i need to know thi"> Nope, just making conversation
04:31:38silvernode[m]This is one of the few IRC channels that I consider friendly.
04:32:37FromDiscord<Rika> i see
04:32:39FromDiscord<Rika> okay
04:32:56FromDiscord<Rika> im prolly in "support desk" mode or something
04:34:47FromDiscord<Elegant Beef> Wait there are unfriendly IRCs?
04:35:39FromDiscord<Rika> of course
04:35:55FromDiscord<Rika> have you seen this room when disruptek is here?
04:36:13silvernode[m]<FromDiscord "<Elegant Beef> Wait there are un"> I won't give names but one rhymes with "March"
04:36:53FromDiscord<Rika> starch
04:41:47FromDiscord<Elegant Beef> Am i supposed to know what it is from that?
04:44:49silvernode[m]<FromDiscord "<Elegant Beef> Am i supposed to "> March Gynex?
04:49:17silvernode[m]time for work, see you later
04:57:19*maier joined #nim
05:02:13*maier quit (Ping timeout: 258 seconds)
05:14:48*drewr quit (Ping timeout: 244 seconds)
05:18:38*narimiran joined #nim
05:53:38*maier joined #nim
05:58:43*solitudesf joined #nim
06:01:04*waleee-cl quit (Quit: Connection closed for inactivity)
06:06:21*vicfred quit (Quit: Leaving)
06:20:43FromDiscord<Avatarfighter> LMAO RIKA
06:20:49FromDiscord<Avatarfighter> I'm dyin
06:21:02FromDiscord<Avatarfighter> "have you seen this room when disruptek is here"
06:21:19FromDiscord<Rika> am i wrong
06:21:25FromDiscord<Avatarfighter> WELL
06:21:46FromDiscord<Avatarfighter> disruptek brings our neurons together to insult eachother
06:21:58FromDiscord<Rika> what neurons?
06:22:52FromDiscord<Avatarfighter> yes
06:23:24FromDiscord<Avatarfighter> Stupid question can you pass your own socket to an httpclient to send the http requests through?
06:24:43FromDiscord<Rika> why would you want to do that
06:24:58FromDiscord<Avatarfighter> well some of us like socks proxies
06:25:22FromDiscord<Avatarfighter> sorry i feel like im talking when disruptek is here
06:25:30FromDiscord<Avatarfighter> allow me to rephrase
06:25:55FromDiscord<Avatarfighter> I would like to pass on a socket to an httpclient that is connected to a socks4/5 server and is ready to forward data
06:26:17FromDiscord<Rika> i dont know its too late for me to think hard
06:26:27FromDiscord<Rika> wait for someone less braindead than me
06:26:32FromDiscord<Avatarfighter> ok
06:26:47FromDiscord<Avatarfighter> Hey Rika are you less braindead yet :GWjiangoOmegaLUL:
06:27:43FromDiscord<Rika> it increases the more i am awake
06:27:52FromDiscord<Avatarfighter> ok so why are you awake then
06:28:01FromDiscord<Avatarfighter> You've got efficient nim to code 😠
06:28:10FromDiscord<Rika> efficient nim code?
06:28:18FromDiscord<Rika> i'm capable of creating efficient nim code?
06:28:33FromDiscord<Avatarfighter> yes
06:28:36FromDiscord<Rika> doubt
06:28:59FromDiscord<Avatarfighter> i doubt too now since ur tired
06:29:00FromDiscord<Avatarfighter> smh
06:30:20FromDiscord<Avatarfighter> Ok so I might actually need some brain assistance from you Rika
06:30:26FromDiscord<Avatarfighter> or someone else if they are willing
06:30:30FromDiscord<Rika> might not get that from me
06:30:32FromDiscord<Rika> ill try
06:30:35FromDiscord<Avatarfighter> So I have a slight dilemma when scraping
06:30:51*endragor quit (Remote host closed the connection)
06:31:08voltistIs there a proc to find the index(s) of a certain value in an arraymancer tensor?
06:31:19*endragor joined #nim
06:31:25FromDiscord<Avatarfighter> I ended up with 20ish gb of urls in memory while I was waiting for my scraping queue to progress and I was wondering if you know of an efficient way of storing strings with common parts
06:31:43FromDiscord<Avatarfighter> I say common because the prefix of a url doesn't vary to a certain extent
06:33:13FromDiscord<Rika> @Avatarfighter https://nim-lang.org/docs/critbits.html
06:33:45FromDiscord<Avatarfighter> ok yeah but how do i determine the prefix I use
06:34:10FromDiscord<Rika> tho critbit is a set
06:34:18FromDiscord<Avatarfighter> I've been staring at the docs for most of the day for critbits trying to figure out if I can shove the urls in it via .incl and pray the tree figures out the prefix
06:34:20FromDiscord<Rika> so duplicates dont exist unfortunately
06:34:32FromDiscord<Rika> and it should
06:34:37FromDiscord<Avatarfighter> oh nice
06:34:44FromDiscord<Avatarfighter> yeah I don't really care about duplicates
06:34:50FromDiscord<Avatarfighter> wait that's super cool actually
06:34:58FromDiscord<Rika> order doesnt get saved either
06:35:05FromDiscord<Rika> so thats also a big issue if that matters for you
06:35:08FromDiscord<Avatarfighter> nah
06:35:18FromDiscord<Avatarfighter> I can set up a priority system if I need order or something
06:35:40FromDiscord<Avatarfighter> Thanks for the help Rika 😄
06:35:49FromDiscord<Avatarfighter> You answered a question I was worried to ask all day ahah
06:36:30FromDiscord<Rika> theres this site if you need explanation
06:36:30FromDiscord<Rika> http://cr.yp.to/critbit.html
06:36:39FromDiscord<Rika> cant currently understand it because im dying
06:36:54*endragor quit (Ping timeout: 258 seconds)
06:37:49FromDiscord<Avatarfighter> i'll read that when my brain isn't melted either
06:39:06FromDiscord<Avatarfighter> i dont know why but I'm super efficient at night when i code
06:39:44FromDiscord<Avatarfighter> I'm in the process of writing a reliable ordered udp lib for my own uses
06:39:48PMunch@Avatarfighter, same here
06:40:03PMunchThe super efficient part, not the library writing part :P
06:40:08FromDiscord<Avatarfighter> ohhhh
06:40:18FromDiscord<Avatarfighter> I was about to say you're also writing a udp lib!?
06:40:20FromDiscord<Avatarfighter> ahah
06:41:05FromDiscord<Rika> they say alcohol enhances programming skill as well
06:41:09FromDiscord<Avatarfighter> ah
06:41:12FromDiscord<Rika> i should probably try that some time
06:41:25FromDiscord<Avatarfighter> well as an 18 year old in America that I cannot access
06:42:15FromDiscord<Recruit_main707> i have seen a bot coded while being drunk and can confirm thats fake
06:42:57PMunchHaha :P
06:43:01FromDiscord<Avatarfighter> ahah
06:43:17FromDiscord<Avatarfighter> has anyone used the prologue web framework/
06:43:24PMunchIf I program while drunk I always wake up the next day saying to myself "what was I thinking here?!"
06:43:27FromDiscord<Diaz> no
06:43:28FromDiscord<Avatarfighter> https://github.com/planety/prologue
06:43:50narimiranPMunch: the same story here
06:43:50FromDiscord<Diaz> Is there any sqlite3 lib for nim?
06:43:52PMunchHuh, hadn't seen that one
06:43:55PMunchLooks pretty nice
06:43:58PMunchDiaz, yes
06:44:03FromDiscord<Diaz> Oh
06:44:05narimiranPMunch: ....just that i was sober the previous night
06:44:06FromDiscord<Diaz> Whats that/
06:44:13FromDiscord<Rika> `db_sqlite` ?
06:44:22FromDiscord<Rika> its in the stdlib
06:44:28FromDiscord<Diaz> Oh ok
06:44:31FromDiscord<Diaz> Thank you
06:44:42PMunchOr https://nim-lang.org/docs/sqlite3.html if you need the raw library
06:44:53FromDiscord<Diaz> Kk
06:45:31PMunchHave you tried it yourself @Avatar?
06:46:08FromDiscord<Avatarfighter> I have not but it reminds me a lot of Flask/FastAPI in python so I'm going to try it
06:46:29FromDiscord<Diaz> And also is there any good linters for nim, (sorry if im asking dumb questions, Nim is new to me)
06:46:39FromDiscord<Rika> nimfmt
06:46:47FromDiscord<Rika> unless you mean smarter linters
06:46:55FromDiscord<Diaz> Mhm
06:47:38FromDiscord<Avatarfighter> PMunch: prologue seems really good and consistent syntax-wise which is nice
06:49:07FromDiscord<Avatarfighter> I'm looking for something to act as a web backend for a frankenstein-like electron app
06:51:35FromDiscord<Diaz> dimcord: latenct() doesn't have a return statement, will it return the `result` var?
06:51:44FromDiscord<Diaz> (edit) 'latenct()' => 'latency()'
06:51:56FromDiscord<Diaz> (edit) 'dimcord: ... latency()' => 'dimcord:proc'
06:51:56FromDiscord<Avatarfighter> in what libarary @Diaz ?
06:52:03FromDiscord<Diaz> dimcord
06:52:05FromDiscord<Avatarfighter> ohhhh
06:52:12FromDiscord<Avatarfighter> 1 sec
06:52:30FromDiscord<Diaz> Without return statement it returns None right?
06:52:34FromDiscord<Avatarfighter> can you link it?
06:52:45FromDiscord<Avatarfighter> no, sometimes nim is smart and returns the last line of a proc
06:53:20FromDiscord<Diaz> https://github.com/krisppurg/dimscord/blob/master/dimscord/gateway.nim#L582
06:53:32FromDiscord<Diaz> > no, sometimes nim is smart and returns the last line of a proc↵Oh
06:53:40FromDiscord<Rika> result is the return value
06:53:41FromDiscord<Avatarfighter> ah yeah
06:53:45FromDiscord<Avatarfighter> result is a magic variable
06:53:56FromDiscord<Diaz> Ah
06:53:57FromDiscord<Diaz> Kk
06:54:03FromDiscord<Rika> nim has three ways of returning, `return`, setting `result`, or last line expression
06:54:39FromDiscord<Avatarfighter> all procs have result, you can always return manually if you need or nim will return either the last line expression or whatever the magic variable result is set to
06:54:45FromDiscord<Avatarfighter> what rika said
06:55:05FromDiscord<Diaz> Oh i sew
06:55:10FromDiscord<Diaz> (edit) 'sew' => 'see'
06:58:03PMunchThe convention is that for single line procedures (like access a field of an object, or some other trivial task) you use the implicit return style (the last statement in a procedure will be returned if it matches the type of the procedure). For longer procedures you would use the special `result` variable which always exists and gets returned for you automatically. And finally if you need to logically return out of your procedure early, not executing
06:58:03PMunchfurther, then you use return.
06:58:31PMunchAt least that seems to be the norm
06:58:43FromDiscord<Diaz> Hmm
06:59:11FromDiscord<Diaz> PMunch: Your Own IRC?
06:59:58PMunchHuh?
07:01:13FromDiscord<Diaz> I mean, JavaScript IRC lib?
07:01:36PMunchStill lost..
07:01:44FromDiscord<Avatarfighter> This channel is a bridge between the nim IRC channel, Matrix channel, and glitter channel
07:01:51PMunchOh right
07:01:55FromDiscord<Avatarfighter> PMunch is talking in the nim irc
07:02:04FromDiscord<Rika> its gitter not glitter
07:02:05FromDiscord<Elegant Beef> I tend to also use implict return when there is no other path, just last line `varName`
07:02:15FromDiscord<Avatarfighter> glitter is more fancy @Rika
07:02:17FromDiscord<Diaz> > This channel is a bridge between the nim IRC channel, Matrix channel, and glitter channel↵Oh
07:02:18FromDiscord<Elegant Beef> I still swear it was glitter 😄
07:02:24FromDiscord<Avatarfighter> i thought it was glitter too
07:02:30FromDiscord<Avatarfighter> just kidding apparently
07:02:48FromDiscord<Avatarfighter> ok so who wants to write a Socks4/5 lib
07:02:52FromDiscord<Avatarfighter> @Rika
07:02:52PMunchHaha, yes, I'm connected to #nim on Freenode. It's bridged to pretty much every Nim channel (apart from the Telegram group for some reason)
07:03:10FromDiscord<Avatarfighter> does nim have a status group 🥱
07:03:12FromDiscord<Elegant Beef> It just means pmuch isnt always here so you can shit talk him!
07:03:20PMunch@Avatar, status grou?
07:03:35FromDiscord<Avatarfighter> You don't use Status messenger !?
07:03:36PMunchHaha, true @Elegant
07:03:37FromDiscord<Elegant Beef> status.im?
07:03:42FromDiscord<Avatarfighter> yeah status.im lol
07:03:44PMunchOooh, that status
07:03:49FromDiscord<Avatarfighter> I downloaded their app its super modern
07:03:56PMunchNot sure TBH, don't think so
07:03:59FromDiscord<Avatarfighter> its honestly a bit too ahead of our time
07:04:13PMunchThe Telegram group started as a way to organise ourselves under Fosdem a couple years ago
07:04:18FromDiscord<Elegant Beef> The coolest part 😛 https://media.discordapp.net/attachments/371759389889003532/753511146866212934/unknown.png
07:04:31FromDiscord<Avatarfighter> Yup
07:04:33PMunchBut now it's so full of just general Nim discussion we had to make a new one :P
07:05:07FromDiscord<Avatarfighter> what is the irc channel again? #nim?
07:07:18PMunchYup
07:07:23PMunch#nim is this one
07:07:29FromDiscord<Avatarfighter> ok sadly there is no status nim group
07:08:06PMunchThen there's also #nim-offtopic, #nim-gamedev, #nim-news, #nim-nologs, and #nim-iot (although that one is pretty dead IIRC)
07:08:13FromDiscord<Avatarfighter> oh jeez I think I have to write myself a socks lib
07:08:26FromDiscord<Avatarfighter> I better start knitting...
07:08:33FromDiscord<Elegant Beef> What do you need it for?
07:08:39FromDiscord<Avatarfighter> well
07:08:51FromDiscord<Avatarfighter> I write bots for video games as a side hustle
07:08:54FromDiscord<Avatarfighter> and scrapers
07:09:17FromDiscord<Avatarfighter> and I'm currently porting my bot code for an MMO from python to nim just for fun and I would like to use socks proxies
07:10:02FromDiscord<Avatarfighter> nothing too bad
07:10:29FromGitter<alehander92> morrning!
07:10:39FromDiscord<Avatarfighter> morning alehander!
07:10:49FromDiscord<Avatarfighter> darn its actually gitter and not glitter
07:10:55FromGitter<alehander92> yeea
07:11:02FromDiscord<Avatarfighter> i was convinced it was glitter
07:11:17FromDiscord<Avatarfighter> ive been deceived and my heart is broken
07:15:49PMunchHaha, it's named after Git isn't it?
07:16:05FromDiscord<Elegant Beef> yea it is
07:16:49FromDiscord<Avatarfighter> oh crap i just realized i can't exactly make the socks lib work with httpclient i thin
07:18:41FromDiscord<Avatarfighter> im too tired for this actually I think im just having a fat brainfart
07:23:46FromDiscord<Ricky Spanish> i found my issue with the onnx wrapper i made yesterday, the runtime itself only works with gcc on linux and vsc on windows and im on windows, how do i set the default compile to use cl.exe
07:24:08FromDiscord<Ricky Spanish> or rather is there a way to do it in the .nimble/cfg file
07:27:35*Tuatarian joined #nim
07:27:39*Tuatarian quit (Client Quit)
07:29:40FromDiscord<Ricky Spanish> ```nimble build -cc:on``` basically this is required on windows
07:30:10FromDiscord<Avatarfighter> I will admit I have no idea how to help, but hopefully a more experienced person will be able to help
07:31:51PMunch`--cc:vcc` isn't it?
07:32:37PMunchhttps://nim-lang.org/docs/nimc.html#compiler-selection
07:32:47PMunch@Ricky ^
07:33:18FromDiscord<Ricky Spanish> uh ill try i got it to work with just -cc:on, but id prefer something other than a flag since it simply wont compile on windows with gcc
07:33:36PMunchYou can put it in your cfg file
07:34:05FromDiscord<Ricky Spanish> the command you send caused this error ``` failedAssertImpl("C:\\Users\\myuser\\.nimble\\pkgs\\nimterop-0.6.11\\nimterop\\build\\ccompiler.nim(28, 18) `false` Nimterop only supports gcc and clang at this time")' has no type (or is ambiguous)```
07:34:22PMunchAh, so it can't use vcc
07:34:29PMunchOnly GCC and Clang
07:34:42FromDiscord<Ricky Spanish> yep and the onnx runtime cant use gcc or clang on windows lol
07:34:49FromDiscord<Ricky Spanish> but -cc:on seemed to work
07:34:51FromDiscord<Ricky Spanish> for some reaosn
07:35:01PMunchWhat would that even do?
07:35:19FromDiscord<Ricky Spanish> *compiled atleast but is untested* ```--cc:SYMBOL specify the C compiler``` from the guide
07:35:49FromDiscord<Ricky Spanish> but the options are on and off not the specific compiler lol
07:35:55PMunchYeah, so that would choose the compiler "on", but what is that :P
07:36:14PMunchWait, where do you pass that switch?
07:36:25FromDiscord<Ricky Spanish> into the nimble build command
07:37:06PMunchAnd what does your nimble file look like?
07:37:38FromDiscord<Ricky Spanish> sent a long message, see http://ix.io/2x1F
07:37:46FromDiscord<Ricky Spanish> pretty regular
07:37:59FromDiscord<Ricky Spanish> (edit) 'long message,' => 'code paste,' | 'http://ix.io/2x1F' => 'https://play.nim-lang.org/#ix=2x1G'
07:38:06FromDiscord<Ricky Spanish> (edit) 'https://play.nim-lang.org/#ix=2x1G' => 'https://play.nim-lang.org/#ix=2x1H'
07:38:07PMunchOh wait, with a single `-`?
07:38:21FromDiscord<Ricky Spanish> yeh
07:38:57PMunchHmm, that shouldn't have done anything
07:39:00FromDiscord<Ricky Spanish> aah ok double -- breaks it
07:39:14FromDiscord<Ricky Spanish> same error as what you sent
07:39:17PMunchYeah, because "on" isn't a compiler
07:39:54FromDiscord<Rika> whats the diff btwn --cc and --gcc.exe
07:40:49FromDiscord<Ricky Spanish> ok so in short i need to makesure that the c libraries i nimterop are compatible with gcc or clang?
07:41:49*endragor joined #nim
07:43:57FromDiscord<Ricky Spanish> --gcc.exe makes it use gcc as expected and --cc: expectgs you to choose the compiler u want to use
07:44:06FromDiscord<Ricky Spanish> not sure u can do --vcc.exe
07:44:19FromDiscord<Recruit_main707> its not --vcc.exe
07:44:25FromDiscord<Recruit_main707> its --cc:vcc
07:44:52FromDiscord<Rika> --gcc.exe does not choose gcc as your compiler
07:45:08FromDiscord<Ricky Spanish> really? i just ran it and didnt complain just used gcc which is my default
07:45:12FromDiscord<Recruit_main707> nimble/nim (-d:[definition]) (-r) --cc:vcc file.nim
07:45:31FromDiscord<Rika> usage is `--gcc.exe:(executable path)`
07:45:49FromDiscord<Rika> it has similar usage to --cc which is why i asked
07:45:55FromDiscord<Ricky Spanish> ah so cc uses default detected paths?
07:46:05FromDiscord<Rika> no
07:46:24FromDiscord<Rika> you can put path-derived exes in gcc.exe as well
07:46:27FromDiscord<Rika> which is why i asked
07:46:34FromDiscord<Recruit_main707> if write something that its not an option, it will show you the list of options
07:46:53FromDiscord<Recruit_main707> `command line(1, 2) Error: unknown C compiler: 'aaaa'. Available options are: gcc, switch_gcc, llvm_gcc, clang, bcc, vcc, tcc, env, icl, icc, clang_cl`
07:47:34FromDiscord<Ricky Spanish> yeh that part is working fine for me, its nimterop that is soiling the bed because im using a module which requires vcc but nimterop only supports gcc or clang apparently
07:48:58FromDiscord<Ricky Spanish> which is fair but means rewriting the header or something to support gcc i guess
08:03:58*Trustable joined #nim
08:10:08*krux02 joined #nim
08:10:44*pietroppeter joined #nim
08:23:46*hnOsmium0001 quit (Quit: Connection closed for inactivity)
08:32:06*kungtotte quit (Read error: Connection reset by peer)
08:32:27Araqthere is --cc:env or whatever I called it
08:33:26*kungtotte joined #nim
08:39:57FromDiscord<Ricky Spanish> im not sure iv lost hope of a simple wrapper because of this https://github.com/microsoft/onnxruntime/issues/1175 pretty much means rewriting it because microsoft is microsoft
08:39:59disboterror: unknown type name '_Frees_ptr_opt_' ; snippet at 12https://play.nim-lang.org/#ix=2x24
08:40:16FromDiscord<Ricky Spanish> ^ yeh exactly
08:41:36FromDiscord<Ricky Spanish> its not nim tooling just awkward usage of c
08:42:02FromDiscord<Ricky Spanish> (edit) 'its not ... nimproblem' => 'its nota' | 'anim tooling ... just' => 'anim toolingproblem'
08:54:35FromDiscord<mratsim> Also Machine Learning on Windows ~_~
08:55:45FromDiscord<Ricky Spanish> oh god yeh, i think microsoft just accept it at this point and expect you to use linux on azure or their broke version of linux subsystem
08:56:20FromDiscord<mratsim> Tensorflow and PyTorch took several months before working on Windows
08:57:05FromDiscord<Ricky Spanish> yeh i had that exact problem, usign pip to install pytorch just resulted in a red screen 😩
08:57:47FromDiscord<mratsim> Also windows is reserving 20% of your display GPU memory outright and this is not available to compute applications, hence on a 8GB card you have 1.6 unusable GB, and on 11GB card it's over 2GB that I can't use
08:57:50*apahl quit (Ping timeout: 246 seconds)
08:58:31FromDiscord<Ricky Spanish> i wasnt even aware of this tbh but explains a few production issues iv had
08:59:05*apahl joined #nim
09:02:04*endragor quit (Remote host closed the connection)
09:02:34*endragor joined #nim
09:04:25FromDiscord<mratsim> if your ONNX wrapper is open-source, I can have a look btw
09:08:43*endragor quit (Ping timeout: 265 seconds)
09:32:49*solitudesf quit (Remote host closed the connection)
09:35:08*endragor joined #nim
09:35:08FromDiscord<dom96> @iffy regarding Jester CI: yes please.
09:35:50*solitudesf joined #nim
09:38:02*natrys joined #nim
09:51:44*newUser joined #nim
09:52:04*Tanger quit (Quit: Leaving)
09:54:13newUserHi, I tryed a little bit with nimpy and think I only can call functions and 'echo' them in Nim? Is there a cast or something else possible?
09:56:29*tane joined #nim
10:00:12*krux02 quit (Remote host closed the connection)
10:01:24*audiofile joined #nim
10:01:26newUserexample in Python: for i in bin(n)[3:]:, I can call bin() in Nim but can't slice it
10:04:06newUserin most cases I get PyObjects back, what can I do with Pyobjects in NIm?
10:13:47*pbb quit (Ping timeout: 246 seconds)
10:15:19Araqnot sure, anything?
10:15:50AraqPyObjects have attributes etc and slicing is Python's __slice__
10:16:08Araqor something else with underscore art, my Python is very rusty
10:16:25*pbb joined #nim
10:17:35Araqyou need to desugar the [3:] operation
10:18:19newUserI have added a counter and count 3 times....
10:33:04*Tanger joined #nim
10:42:26*endragor quit (Remote host closed the connection)
10:42:51*endragor joined #nim
10:46:22audiofileAraq sup dude!
10:47:11*audiofile is now known as femtotones
10:48:35*maier quit (Ping timeout: 240 seconds)
10:49:00FromGitter<sealmove> wtf no! why is nim yellow on github?
10:49:17FromGitter<sealmove> yikes
10:49:23FromDiscord<Recruit_main707> apparently it was the more fitting colour
10:49:34FromGitter<sealmove> based on what?
10:49:37Araqthey finally patched it :-)
10:50:03FromDiscord<Recruit_main707> the crown
10:57:25PMunchsealmove, our logo is yellow?
10:57:34*Vladar joined #nim
10:57:45PMunchIt's definitely more Nim than green..
10:57:58newUserAraq: my solution: binStr = py.bin(n).to(string) and: for rec in binStr[3..binStr.len-1]:
11:01:24FromGitter<sealmove> you are right, i got so accustomed to green... but yellow is objectively more appropriate
11:03:17*apahl quit (Ping timeout: 260 seconds)
11:04:19*apahl joined #nim
11:07:07*abm joined #nim
11:07:21*maier joined #nim
11:09:27*newUser left #nim (#nim)
11:09:38FromDiscord<Clyybber> disruptek: Do you have a reproducer for the getFileInfo bug thats platform independent?
11:09:47FromDiscord<Clyybber> I remember you saying something about set constructor or something like that
11:10:47Araqcooldome already fixed it
11:11:13Araqif you want to help, fix https://github.com/nim-lang/Nim/issues/15122
11:11:14disbot[ARC] Sequence "disappears" with a table inside of a table with an object variant ; snippet at 12https://play.nim-lang.org/#ix=2uPd
11:11:28Araqit's caused by a 'return' statement inside liftdestructors.nim
11:33:11*def- quit (Quit: -)
11:34:02*def- joined #nim
11:43:35*Zectbumo joined #nim
11:44:29skelettMoin, is there a standard library function to get the current week number?
11:46:37FromGitter<sealmove> times
11:51:17skelettI did not find a proc in `times` for getting the current week number. How is it called?
11:52:55AraqDateTime.weekday
11:53:25skelettthat gives me the current week day but not the number of the current week
11:53:47skelettlike right now, we are in week 37
11:53:55Araqoh
11:53:57solitudesfdivide yearday by 7?
11:54:26Araqyearday div 7
11:54:46*awe00 joined #nim
11:55:27Araqshould be it, maybe it's off by one and has special rules in Lampukistan, time handling is hard
11:55:39skelettI was hoping there's a way to circumvent calculating it on my own, because often week 1 starts in december of the previous year and due to regional differences between monday or sunday as first day of the week
11:56:06Araqyeah :-)
11:57:49skelettI could for example use %V from strftime (although part of c standard header time.h) seems to appear only in `posix` and thus its not plattform independed
11:58:22*awe00 quit (Read error: Connection reset by peer)
12:01:35PMunchhttps://github.com/PMunch/nancy
12:02:27solitudesfnoice
12:02:54*moerm joined #nim
12:03:15moermHello everyone ;)
12:06:02*supakeen quit (Quit: WeeChat 2.9)
12:06:12PMunchHi moerm
12:06:22PMunchAnd PR to nimble of course: https://github.com/nim-lang/packages/pull/1635
12:06:22disbotAdd package nancy
12:06:41*supakeen joined #nim
12:07:22FromDiscord<kraptor> can someone on windows + gcc try this (depends on cligen)? https://play.nim-lang.org/#ix=2x3G
12:07:31FromDiscord<kraptor> because I'm getting a SIGABRT...
12:09:30FromDiscord<kraptor> using "nim cpp -d:debug main2.nim && main2" doesn't work... but
12:09:42FromDiscord<kraptor> using the C backend... it works, strange 🤔
12:09:52Araqhi moerm
12:11:08moermAraq Hi ;)
12:16:45*NimBot joined #nim
12:27:10*natrys quit (Quit: natrys)
12:28:53*awe00 joined #nim
12:29:21shashlick@Ricky Spanish - adding vcc support to nimterop is just that - I've not done it cause no one ever asked for it
12:29:48shashlickPlus I never had it setup to even experiment
12:32:26shashlickhttps://github.com/nimterop/nimterop/blob/master/nimterop/toastlib/getters.nim#L297 is the only proc that needs work
12:37:30pietroppeterskelett: in this gist you find an implementation of isoweek calculation https://gist.github.com/pietroppeter/e6afa43318b202ef2a2a32e0fd3844bf
12:38:29skelettpietroppeter: ohh awesome! thanks a lot!!
12:39:07pietroppeteryou are welcome, I did already need it in a project :)
12:48:06*audiophile joined #nim
12:49:49pietroppeterah, note that this is the ISO week so it is international and assumes the week starts on Monday. I am not aware of other standard week numbers that assume e.g. week starting on Sunday.
12:50:38*femtotones quit (Ping timeout: 260 seconds)
12:50:45*audiophile is now known as femtotones
12:56:35*lritter joined #nim
12:59:20*Trustable quit (Remote host closed the connection)
12:59:37FromDiscord<Ricky Spanish> @shashlick thanks for the info, im just not sure for my use-case that nimterop's no vcc is going to be the sole problem im looking into trying toast on its own first and then see if it works then maybe can look into nimterop again after that
13:03:33FromDiscord<Clyybber> Araq, disruptek, Zevv: There are some design questions regarding turning proc params into syms. For example a macro which has a typed proc definition as an input (lets say proc p(a: int, b: int) and outputs that same proc definition and a transformation of that proc definition with the first param removed (so proc p(b: int)). Now we hit an issue as the sym of b is shared accross both of the proc definitions, but has different positions i
13:03:48FromDiscord<Clyybber> So I have a few ideas on what to do about this
13:04:19FromDiscord<Clyybber> we could error when a symbol is reused like that
13:04:20shashlicknot sure what you mean cause nimterop uses toast but okay
13:04:42FromDiscord<Clyybber> or we could smartly copy that sym when such a misuse would occur
13:04:57FromDiscord<Clyybber> or we could not sym them in the first place
13:06:34FromDiscord<Clyybber> I'm leaning towards preventing those errors and providing an easy to use function in macros.nim that returns a tree with "refreshed" syms
13:38:41FromGitter<iffy> @dom96 okay, here it is: https://github.com/dom96/jester/pull/263 there's a few dependencies in the way :)
13:38:42disbotUse GitHub actions
13:39:44*endragor quit (Remote host closed the connection)
13:48:12alehander92hm i have to found out what steensgaard algo is
13:50:43*endragor joined #nim
13:54:52*Zectbumo quit (Remote host closed the connection)
13:59:29moermalehander92, An interesting concept anyway, yes
13:59:37*vicfred joined #nim
13:59:44moermSee you all soon, bye, have a good day
13:59:52*moerm quit (Quit: Leaving)
14:05:30alehander92hm is this a good info https://sites.cs.ucsb.edu/~yufeiding/cs293s/slides/293S_11_point-to-analysis.pdf
14:05:49alehander92it seems steensgaard is better for bigger programs? i guess that's why it was chosen (faster?)
14:06:25*PMunch quit (Quit: Leaving)
14:08:47*endragor quit (Remote host closed the connection)
14:27:01*endragor joined #nim
14:30:41disruptekclyybber: honestly, i don't even see why that's an error.
14:33:36FromDiscord<dk> Is there an equivalent that can be used in .nim files? https://nim-lang.org/docs/nimscript.html#projectDir
14:33:40*Tanger quit (Quit: Leaving)
14:34:13shashlicksee macros - getProjectPath
14:34:25disruptekit doesn't work, though.
14:34:30disruptek!repo bump
14:34:31disbothttps://github.com/disruptek/bump -- 9bump: 11a tiny tool to bump nimble versions 🍻 15 16⭐ 1🍴
14:34:35disrupteki had to write something for bump.
14:34:48disruptekit's exported so you can use it in other stuff.
14:34:50FromDiscord<dk> weird module choice :P
14:36:26shashlickwhat scenarios it doesn't work in
14:37:15shashlickhttps://github.com/nimterop/nimterop/blob/master/nimterop/build/nimconf.nim#L55
14:37:17disrupteki don't recall all the details. if it works for you, great, but it didn't work in my application.
14:37:54disrupteki probably needed it at runtime.
14:38:07shashlickhow is it relevant at runtime
14:38:40disrupteki have to read the code.
14:39:00disrupteki can see that i'm using getProjectPath as a starting directory to determine project version, for example.
14:39:22disruptekbut, i think projectPath only returns the path of the macro that's running at that point in time.
14:40:38*crem quit (Ping timeout: 244 seconds)
14:41:27disrupteki think that's the problem. wrong results when you're in a subdirectory.
14:43:15*crem joined #nim
14:43:48*femtotones quit (Ping timeout: 260 seconds)
14:49:33*femtotones joined #nim
14:52:36*hnOsmium0001 joined #nim
14:57:44*thomasross joined #nim
15:14:23*kitech1 quit (Quit: ZNC 1.7.5 - https://znc.in)
15:14:41*arecacea1 quit (Remote host closed the connection)
15:14:47*kitech1 joined #nim
15:15:05*arecacea1 joined #nim
15:24:58disruptek!requires cligen
15:25:00disbotcligen: 11jiro4989[iler,3termnovel,3coc-radar], 11snus-kin[3aggregate,3mmb], 11disruptek[3wet,3gully], 11yglukhov[3clurp,3gplay], 11l1pz[3mudl,3chandl], 11cwpearson/3graph-datasets2, 11treeform/3fidget, 11jonasrauber/3norm, 11iranika/3nimsh, 11momeemt/3BlackvasCli, 11ikarino/3DeepTownOpt, 11oxfordmmm/3catwalk, 11ba0f3/3rcon2tele, 11andreas-wilm/3lofreq3, 11ixale
15:26:39*drewr joined #nim
15:30:28*awe00 quit (Ping timeout: 260 seconds)
15:36:24*awe00 joined #nim
15:43:46*Trustable joined #nim
15:44:58alehander92disruptekk
15:45:04disruptekdude.
15:45:35disruptekdid you stream yesterday?
15:46:02alehander92noo
15:46:22disruptek!requires strunicode
15:46:23*drewr quit (Quit: ERC (IRC client for Emacs 27.1))
15:46:23disbotstrunicode: 11nitely/im-strunicode 71 total
15:46:33alehander92i am going to just spam here :)
15:46:42disruptek!requires stint
15:46:44disbotstint: 11status-im[im-stint,3nim-web3,3nim-eth-common,3nim-status-client,3nim-eth-bloom,3nim-eth-contracts,3nim-eth-p2p,3nim-json-rpc,3nimbus,3nim-waku,3nim-eth], 11MerosCrypto/3Meros, 11bobgeis/3aoc2019, 11snjax/3nim-ff, 11juancarlospaco/3fision, 11unicredit/3emmy, 11jacqueswww/3nlvm-eth-contracts 717 total
15:47:17disruptek!requires arraymancer
15:47:19disbotarraymancer: 11windgo-inc[ip7,3haas,3lerosi], 11HugoGranstrom[3symbolicnim,3numericalnim], 11Clonkk[3nimfftw3,3nimjl], 11tmokazaki[3apollo,3tsne-nim], 11Vindaar[3TimepixAnalysis,3ggplotnim], 11dizzyliam[3astroNimy,3inumon], 11auxym/3beamdirect, 11de-odex/3circa, 11mratsim/3Arraymancer, 11tena4/3nim-dwt, 11berquist/3nimtinydft, 11deem0n/3deep-book-nim, 11zaferarican/
15:47:28narimirannow for some self-sobering up:
15:47:33narimiran!requires itertools
15:47:34disbotitertools: 11de-odex/irca, 11narimiran/3itertools, 11bobgeis/3aoc2019, 11juancarlospaco/3fision, 11k0pernicus/3aoc2018, 11quinlan-lab/3STRling 76 total
15:47:43narimiranoh, nice!
15:47:51disrupteki almost used it in dust.
15:48:59disrupteki guess i need to tweak the bot a bit.
15:49:01alehander92!requires comprehension
15:49:02disbotcomprehension: 11nim-lang/raveyard, 11alehander92/3comprehension 72 total
15:49:13alehander92!requires quicktest
15:49:14disbotquicktest: 11status-im/im-stint, 11alehander92/3nim-quicktest 72 total
15:49:22alehander92!requires gara
15:49:23disbotgara: 11akavel/ixit, 11citycide/3fugitive, 11berquist/3rangemath, 11juancarlospaco/3fision, 11Adeohluwa/3gen, 11matkarlg/3rps-nim 76 total
15:49:25disruptekanyone know the line-limit for irc off-hand? is it 240?
15:49:48alehander92!requires macroutils
15:49:49disbotmacroutils: 11haxscramper/misc, 11juancarlospaco/3fision, 11mhessler97/3NimFuzzy 73 total
15:49:58alehander92juan is so experimental
15:50:03alehander92i like this guy
15:50:21disruptekyeah, jc is good.
15:51:59FromDiscord<mratsim> note that quicktest is a bit special, we don't require it for normal use :p
15:52:29FromDiscord<mratsim> for some libraries we could require say quicktest and GMP but only for testing against a reference implementatio
15:52:39FromDiscord<19> hello, i can debug gcc apps with nim-gdb tool. but how can i debug apps made in the vcc? does it still work?
15:52:51disruptekwhy not?
15:53:13FromDiscord<19> cool
15:58:35*a_chou joined #nim
16:01:09FromDiscord<19> it gives this error when i run nim c --debugger:native main.nim https://pastebin.com/yM74dbYT
16:01:48*thomasross quit (Remote host closed the connection)
16:19:21FromDiscord<19> wanted to debug my Win32API application using winim package
16:19:33disruptekNO
16:19:49*awe001 joined #nim
16:19:56FromDiscord<Avatarfighter> oh my
16:21:14FromDiscord<Avatarfighter> disruptek what is new
16:22:15*awe00 quit (Ping timeout: 258 seconds)
16:27:38disruptektrying to figure out internet in the wilderness is making me grumpy.
16:27:51disruptekeither that, or i'm constipated. could be both, come to think of it.
16:30:17alehander92do you have a lake
16:30:21alehander92i remember a lake
16:32:05disrupteki'm trying to move to a lake lot where the property won't be developed for another year or so.
16:33:17disrupteki'm about to go check out the electric install. might move tomorrow, but internet is a problem.
16:33:31disruptekand, there's no water.
16:36:17disrupteki did manage to get a shovel, so now i don't have to shit in a bucket. i tell you, i'm livin' the dream, here.
16:39:06FromDiscord<Recruit_main707> the inmediate pragma no longer exists right? what did it do?
16:39:25disruptekit's not immediately obvious?
16:42:23FromDiscord<Recruit_main707> tru
16:43:03alehander92huh
16:43:07alehander92lake no water
16:43:58alehander92do you have food and stuff
16:44:02alehander92like is it civilized
16:46:26FromDiscord<lqdev> @Recruit_main707 you use `untyped` params instead of it
16:46:50FromDiscord<lqdev> basically all it did is put the template expansion before semcheck
16:47:04*waleee-cl joined #nim
16:47:13FromDiscord<lqdev> but `untyped` and `typed` params are clearly superior because you can have both types of params in one template/macro
16:47:55FromDiscord<Recruit_main707> ok thanks
16:47:59alehander92Araq i
16:48:17alehander92don't get how can i use the varpartitions for the fields stuff without changes
16:48:34*endragor quit (Remote host closed the connection)
16:48:41alehander92it seems that they only connect variables (which is useful i guess, but not what i imagined)
17:02:52alehander92and it detects var params in calls
17:03:06alehander92but this again is not enough for field change which can be normal param
17:05:01alehander92like it is supposed to work on roots/variables
17:05:21alehander92but for my case i need the field level node
17:05:34alehander92i guess i can adapt it based on ugh flag?
17:06:00*solitudesf quit (Remote host closed the connection)
17:11:53*endragor joined #nim
17:14:31*natrys joined #nim
17:18:50disrupteki have food sometimes, and i can get water from someone's hose. it's all very civilized.
17:19:30disrupteki mean, except for shitting in a bucket and cutting trails in the woods so i can make yellow snow come winter.
17:50:46*superbia joined #nim
17:57:52*endragor quit (Quit: Leaving...)
18:01:26disruptek!requires chronos
18:01:27disbotchronos: 11status-im[im-chronos,3nim-web3,3nim-faststreams,3nim-json-rpc,3nimbus,3nim-eth,3nim-waku,3nim-libp2p,3nim-beacon-chain], 11MerosCrypto/3Meros, 11dryajov/3nimstreams 711 total
18:02:58*awe002 joined #nim
18:03:20FromDiscord<Avatarfighter> Disruptek: for your internet check see if you can snag an unlimited data plan or something on whatever cell provider has the most coverage in ur area
18:04:25*awe001 quit (Ping timeout: 264 seconds)
18:05:44FromDiscord<Avatarfighter> or buy a really long fibre cable and rent a fibre node 😃
18:09:58disruptekdude, i can hardly afford to have a phone.
18:11:29disrupteki mean, shit, my creditors would say that /i can't/ afford the phone. but then, how would they pester me daily to send them money? 🤔
18:19:24PrestigeI really want to get rid of my need for a phone
18:24:55alehander92disruptek i can send you letters
18:25:20disruptekwithout health insurance and, as much as i travel, it's critical equipment.
18:25:43disrupteki'd like to downgrade to something simpler, though.
18:27:41alehander92i dont have one
18:27:58alehander92i broke my screen more
18:28:08alehander92and now i use my wife's one with a dual sim card
18:28:20disruptekwhy isn't it broken?
18:28:20alehander92it's fun when they call her for my stuff
18:28:34alehander92i mean i need to fix some phones i havee
18:28:45alehander92i break the screens often
18:29:23alehander92hm, can't you
18:29:34disrupteki didn't get a mobile until the office forced me to. i think it wasn't until '05 or so.
18:29:36alehander92i dont know health insurance in us seems hard
18:30:24disruptekit depends on where you are and which party is president.
18:30:46alehander92ahh
18:30:52alehander92i was like a small kind in 05
18:30:54Araqalehander92, I don't understand your question
18:30:57disrupteki had great insurance under obama.
18:31:02alehander92Araq well i just
18:31:13alehander92made a copy of the modul and tried to prototype my idea
18:31:27alehander92the thing is: you hav a graph with `b -> c -> d` etc
18:31:40alehander92but i wanted `b -> c.field -> d.stuff`
18:33:39alehander92i basically changed PSym to a tuple of a node id and a node in varpartitions_symbol and i tried to handle dot expr-s as separate cases
18:37:13*femtotones quit (Quit: Default Quit Message)
18:37:26*gmaggior joined #nim
18:38:02Araqwe said we restrict not nil expressions to let/var symbols
18:39:06FromDiscord<Avatarfighter> disruptek: I will send you letters 🙂
18:39:29alehander92but we said we want to support fields nilability?
18:39:31disruptekDO IT
18:40:13disruptek8605 Santa Monica Blvd, #14629; West Hollywood, CA; 90069 USA
18:40:13disbothttps://github.com/nim-lang/Nim/pull/14629 -- 6Add rstgen.rstToLatex
18:41:51Araqalehander92, not if it's too complex
18:42:01alehander92huh i did it man
18:42:17alehander92b.a having parent c.a and showing the mutation line
18:42:30Araqalright
18:42:40AraqI hope the code isn't too messy
18:43:02alehander92it's mostly just varpartitions
18:43:10alehander92but with generalized tuple instead of PSym
18:43:23Araqwhy not with a PNode then?
18:43:37alehander92well yeah it's a PNode and a hashed id for simpler comparison
18:43:54alehander92it can be just a PNode indeed maybe
18:44:27FromDiscord<Avatarfighter> disruptek: you're in cali too !!
18:44:52disrupteknot at the moment.
18:46:25FromDiscord<Avatarfighter> ah
18:46:38disruptekit's just a mailing address.
18:46:45alehander92disruptek i'll write letters as well
18:47:02disrupteksend me a postcard. 😘
18:50:02alehander92ok!
18:50:23alehander92i just sent a letter last month to someone and it was a cool xp
18:50:29FromDiscord<Avatarfighter> ahaha
18:50:47alehander92now we are going to america !
18:50:51disruptekmy cousin bought an old typewriter that she uses to send letters to people. it's pretty sexy.
18:51:00alehander92oh i used a typewriter when little
18:51:19FromDiscord<Avatarfighter> Where in America will you be going alehander?
18:51:56alehander92my postcard would be going :D
18:52:11alehander92to Santa Monica (?)
18:52:12FromDiscord<Avatarfighter> ah
18:52:20alehander92West Hollywood
18:52:25alehander92is this a real address dude
18:52:41alehander92i don't want Spielberg coming after me
18:52:43FromDiscord<Avatarfighter> West Hollywood is real
18:52:46FromDiscord<Avatarfighter> lmao
18:52:56alehander92and shooting a drama about our school
18:54:05alehander92oh no it's a nightlife street
18:54:19disruptekwest hollywood is a real shithole.
18:54:54FromDiscord<Avatarfighter> Gosh I'm so good at coding at night, I don't even remember writing more stuff for my scraping library
18:55:48*Zectbumo joined #nim
18:57:12*gmaggior quit (Read error: Connection reset by peer)
18:57:41*gmaggior joined #nim
18:58:19*Zectbumo quit (Read error: Connection reset by peer)
18:58:22FromDiscord<Avatarfighter> wow i suck the stuff i wrote doesn't even work
19:03:27*shirleyquirk joined #nim
19:07:28shirleyquirkIf one wanted to add support for, say, atomics using compiler intrinsics, how many compilers would you realistically need to target? Since windows is all on mingw is everyone using gcc/clang? Or are msvc/icc used too?
19:08:22disruptekonly mratsim cares about icc.
19:10:13shirleyquirkstill that's a fairly important userbase in itself. Ugh. ICC is specifically terrible at that
19:10:41disruptekimpl support for even one compiler would be worthwhile, honestly.
19:11:02disrupteki really thought we already had a module somewhere.
19:11:18shirleyquirkIt wraps C++ std::atomic
19:11:31disruptekmeh.
19:11:38shirleyquirkZackly
19:14:30*natrys quit (Quit: natrys)
19:29:44*Martha25 joined #nim
19:32:59*Martha25 quit (Disconnected by services)
19:34:34*kinkinkijkin quit (Ping timeout: 246 seconds)
19:35:40*narimiran quit (Ping timeout: 256 seconds)
19:40:19*kinkinkijkin joined #nim
19:49:12disrupteki can't reproduce these arraymancer test failures that appear in nim packages ci.
19:49:12*shirleyquirk quit (Ping timeout: 256 seconds)
19:58:23*leorize quit (Ping timeout: 240 seconds)
19:58:49disruptekwe are closing in on it nonetheless.
19:59:10FromDiscord<Avatarfighter> thats the spirit
19:59:39FromDiscord<Avatarfighter> the test failures are too afraid of you disruptek
20:00:50*leorize joined #nim
20:00:57disruptekas araq says, winter is coming and also some dragons.
20:06:58ZevvRuby, still going strong! https://play.nim-lang.org/#ix=2x7r
20:07:53FromDiscord<Avatarfighter> How to delete someone else's IRC message
20:08:13ZevvYou can use a black marker and hope they don't type more to make your screen scroll
20:08:14disruptekburning their house down is usually enough.
20:08:14FromDiscord<Rika> how to ban someone from irc without p
20:08:16FromDiscord<Rika> (edit) 'p' => 'op'
20:10:00disruptekjust type `/part`
20:10:40FromDiscord<Avatarfighter> Zevv: when is the perl6 nim library coming out
20:10:48FromDiscord<Avatarfighter> perl6 syntax lib*
20:11:03Zevvperl6 is a hoax
20:11:36*solitudesf joined #nim
20:11:50FromDiscord<lqdev> Zevv: i wonder why are they hindering a language with useless garbage like this
20:12:15disruptekthis is the only new feature they could come up with.
20:12:36FromDiscord<lqdev> the language's good now, let's start adding garbage.™
20:13:15disruptekthere's nothing left to remove; let's add rightward assignment.
20:13:44FromDiscord<Avatarfighter> so when is nim getting square brackets instead of braces
20:14:20FromDiscord<Avatarfighter> ```nim↵when isMainModule [↵ echo "pen island"↵]```
20:14:26FromDiscord<Avatarfighter> look at that beuty
20:14:26FromDiscord<lqdev> no
20:14:28FromDiscord<Avatarfighter> beauty*
20:14:41FromDiscord<Avatarfighter> lqdev, don't even lie I know you would love it
20:14:51FromDiscord<lqdev> https://media.discordapp.net/attachments/371759389889003532/753710097645174863/unknown.png
20:14:54FromDiscord<Avatarfighter> ahaha
20:15:52FromDiscord<Elegant Beef> Nah we need forced hungarian notation
20:16:15FromDiscord<Elegant Beef> type inferrence done by the first character
20:16:37FromDiscord<Avatarfighter> i suggest to make nim more quirky we adopt right to left notation
20:16:55disruptekwhat do you think the rtl lib is for?
20:17:03FromDiscord<lqdev> xD
20:17:19FromDiscord<Avatarfighter> and then to please people who hate whitespace with a passion `[]` brackets instead of `{}` braces so that we can stay unique
20:18:05FromDiscord<Elegant Beef> Nah use `([{}])` for ensured scope
20:18:25FromDiscord<Avatarfighter> `: ([{}])` keep the semicolon for backwards compatibility
20:18:35FromDiscord<Avatarfighter> not the semicolon, I meant colon
20:18:39disruptekgood thinking.
20:19:30FromDiscord<Avatarfighter> Gosh why haven't we thought of these groundbreaking changes before
20:21:14FromDiscord<Avatarfighter> Just curious has nim considered getting an LLVM backend ?÷
20:21:22Zevvthere is one
20:21:28FromDiscord<lqdev> !repo nlvm
20:21:29disbothttps://github.com/arnetheduck/nlvm -- 9nlvm: 11LLVM-based compiler for the Nim language 15 319⭐ 21🍴 7& 1 more...
20:21:31FromDiscord<Avatarfighter> oh what
20:21:33FromDiscord<Avatarfighter> that's sick
20:21:57Zevvi think its how krux learned nim
20:22:12FromDiscord<Avatarfighter> is that backend faster than say C or CPP?
20:22:31FromDiscord<lqdev> don't think so
20:22:34FromDiscord<Avatarfighter> actually i'll find out if it is >:)
20:22:55FromDiscord<lqdev> from my experiments, it's definitely not faster in compile time department
20:23:03FromDiscord<Avatarfighter> what about runtime?
20:23:13FromDiscord<lqdev> haven't benchmarked
20:23:17FromDiscord<Avatarfighter> kk
20:23:23FromDiscord<lqdev> but gcc probably performs better with its crazy optimizations
20:23:28FromDiscord<lqdev> haven't used clang tho
20:23:30FromDiscord<Avatarfighter> I'll try and run my normal code then
20:23:59FromDiscord<lqdev> tbh i'm not really interested in benchmarking stuff like this, it's likely gonna make little to no difference to actual performance of my software
20:24:15FromDiscord<lqdev> i'd rather spend time implementing crucial features and fixing bugs
20:24:24FromDiscord<Avatarfighter> no yeah of course
20:24:45FromDiscord<Avatarfighter> I was just interested in knowing if an LLVM backend could result in speeds as fast or faster than rust
20:25:00disruptekwhat do you use for pretty c source? indent?
20:25:40FromDiscord<Avatarfighter> lmao pretty c source
20:26:26FromDiscord<Avatarfighter> Ooo I have a question for anyone that uses karax
20:26:42FromDiscord<Avatarfighter> Are components broken in Karax?
20:27:59FromDiscord<Avatarfighter> Yeah it seems as if they are I found a github issue
20:29:00FromDiscord<juan_carlos> astyle for C.
20:29:06*lritter quit (Ping timeout: 256 seconds)
20:30:34disruptekhmm, that's not bad.
20:30:41FromDiscord<Rika> > I was just interested in knowing if an LLVM backend could result in speeds as fast or faster than rust↵isnt nim already generally faster than rust?
20:31:12FromDiscord<Theodore> What's the difference between compiling to C, C++ or Objective C
20:31:56FromDiscord<Rika> not much other than supported platforms and libraries afaik?
20:32:51FromDiscord<Theodore> Oh
20:33:03FromDiscord<Avatarfighter> Rika: I believe its faster during compile time but I'm not sure about performance, of course I don't have evidence to prove either but that is what I know
20:33:18FromDiscord<Theodore> would be cool if it could compile into Rust 😶
20:33:23FromDiscord<Avatarfighter> LMAO
20:33:24FromDiscord<Rika> why?
20:33:30FromDiscord<Rika> no point imo
20:33:35FromDiscord<Theodore> yes point
20:33:42FromDiscord<Theodore> would be cool to combine rust and nim
20:33:52FromDiscord<Avatarfighter> what would be nice is a rust2nim library
20:33:57FromDiscord<Avatarfighter> something to help translate
20:34:11FromDiscord<Rika> i dont know, i dont want to ever touch rust again
20:34:13FromDiscord<Theodore> that does?
20:34:17FromDiscord<Theodore> Rust is amazing
20:34:24FromDiscord<Rika> i think its horrible
20:34:28FromDiscord<Theodore> gives me a throbbing headache on a daily basis
20:34:30FromDiscord<Theodore> but its good
20:34:55FromDiscord<haxscramper> > What's the difference between compiling to C, C++ or Objective C↵@Theodore AFAIK C++ backend uses native (C++) exceptions
20:35:06FromDiscord<Avatarfighter> The ObjC backend is so cool
20:35:22*lritter joined #nim
20:35:25FromDiscord<Avatarfighter> I got an ObjC daemon to run on my iPhone earlier
20:35:38FromDiscord<Rika> native C++ exceptions are faster than exceptions from C, yeah
20:35:40FromDiscord<Avatarfighter> and by earlier I mean a month ago
20:35:54disruptekrika: even goto exceptions?
20:36:12FromDiscord<juan_carlos> Some programming languages have problems supporting LLVM properly, Crystal cant do Windows, Scala-Native neither, list goes on.
20:36:21FromDiscord<Rika> from what ive tried yeah
20:36:30FromDiscord<Rika> but its prolly a dependent-on-code kinda thing
20:36:38FromDiscord<Rika> so benchmark your code
20:36:48FromDiscord<Avatarfighter> I wont lie I'm surprised that nim supports windows as well as it does
20:36:58FromDiscord<Rika> > Some programming languages have problems supporting LLVM properly, Crystal cant do Windows, Scala-Native neither, list goes on.↵why? is there a reason this happens?
20:37:02FromDiscord<Rebel> Speaking of LLVM has anyone played around with using llvm_gcc instead of the default compiler? 😄
20:37:04FromDiscord<haxscramper> > would be cool to combine rust and nim↵@Theodore I don't think it is a good idea, because rust has it's own design goals and only *idiomatic* rust is good. Compiling to C/C++ is easier because it is just unholy mess of pointers that is simple enough to generate while being performant.
20:37:19FromDiscord<Theodore> eh
20:37:33FromDiscord<Theodore> Rust is the only programming language I can understand tbh
20:37:42FromDiscord<Rika> rush does not share a lot of philosophies with nim
20:37:45FromDiscord<Rika> rust*
20:37:55FromDiscord<Rebel> nlvm is great but doesn't support dynlib atm to do passes on the IR would be hot @juan_carlos any wisdom?
20:38:08FromDiscord<Avatarfighter> Nim made me change how I think we programming
20:38:12FromDiscord<Avatarfighter> when*
20:38:25FromDiscord<Theodore> python is way to high level and I do not understand enough about what is going on behind the scenes, and C/C++ just doesn't make sense whatsoever
20:38:51FromDiscord<Theodore> (edit) 'level and' => 'level, so'
20:39:44FromDiscord<juan_carlos> LLVM has problems of memory fragmentations Ive read more than once.
20:40:03FromDiscord<juan_carlos> I dunno, and those langs were designed with LLVM from the start.
20:41:02FromDiscord<haxscramper> Rust has well-designed semantics that play a huge role in the language (and what constitutes idiomatic code). C/C++ is just huge mess of all features in the world, loosely held together by pointers, templates and macro abominations.
20:41:15FromDiscord<Clyybber> C is not a mess IMO
20:41:27FromDiscord<Theodore> that was my problem with learning C++, it was such a mess
20:41:34FromDiscord<Avatarfighter> cpp wanted to be a better C then they decided to support all features of C which made it a mess
20:41:39FromDiscord<Clyybber> the only thing messy about it is the typedef stuff and the integer sizes
20:41:44disruptekyou have to choose your weapons.
20:42:02FromDiscord<Clyybber> the first one is fixed by always using typedef (shite but w/e) and the second one with include <stdint.h>
20:42:04FromDiscord<Theodore> C is good but I have no need for it other then embedded stuff
20:42:22FromDiscord<Avatarfighter> Disruptek: why is LUA your favorite language
20:42:23disrupteki would say preprocessor ruins it pretty effectively.
20:42:23FromDiscord<Theodore> and embedded rust works fine, so why learn a new lang
20:42:33FromDiscord<Clyybber> yeah, no need to
20:42:34disrupteki don't really know lua.
20:42:49disruptekit's my favorite because it sounds coolest.
20:42:54FromDiscord<Avatarfighter> disruptek: smh imagine not knowing our lord and savior LUA
20:42:55FromDiscord<Clyybber> lol
20:42:58FromDiscord<Theodore> oh... LUA
20:43:00FromDiscord<Theodore> not lua
20:43:02FromDiscord<Clyybber> lua isn't much to know really
20:43:07FromDiscord<Clyybber> its pretty small
20:43:09FromDiscord<Theodore> i hate lua
20:43:10FromDiscord<Avatarfighter> LUA is actually a masterpiece imo
20:43:17FromDiscord<Avatarfighter> its really good at what it was designed to do
20:43:19FromDiscord<Theodore> i had to program computers in minecraft in lua
20:43:20FromDiscord<Avatarfighter> shocking ik
20:43:20FromDiscord<Clyybber> metatables can be a bit complex, but other than that
20:43:21disruptekwhat i like best about it is that as long as i'm not familiar, it seems like it can do anything.
20:43:22FromDiscord<Rika> why do you hate lua
20:43:29PrestigeI'm not a fan of the syntax
20:43:40FromDiscord<Recruit_main707> me neither
20:43:42FromDiscord<haxscramper> > C is not a mess IMO↵@Clyybber I'm mostly speaking about C++ (just have bad habit of writing C/C++ all the time). But C itself is extremely good until you try to build some abstractions on top of it (which is what C++ tried to do and utterly failed).
20:43:46FromDiscord<Avatarfighter> Prestige: braces or whitespace
20:43:55Prestigeboth
20:43:58FromDiscord<Theodore> I spent like 20 hours making a ginormous mess of an AI in minecraft with LUA and then i got raided and since then I hated LUA
20:44:00FromDiscord<Avatarfighter> my man 😎
20:44:00FromDiscord<Rika> ill have to stop you there bug
20:44:01FromDiscord<Rika> (edit) 'bug' => 'bud'
20:44:05FromDiscord<Rika> dont want a war happening here
20:44:13FromDiscord<Avatarfighter> aaha
20:44:37disruptekreading lua is like having your pubes plucked by a sadist.
20:44:40FromDiscord<Avatarfighter> Ok well now that we have most of the nim community in the channel Rika and I have some amazing changes to the Nim programming language that we think everyone would enjoy
20:45:06FromDiscord<Theodore> Nim is beautiful for what it is
20:45:09FromDiscord<Clyybber> what I like about lua is its "abuse" of tables for pointers, arrays, tables etc
20:45:10FromDiscord<Avatarfighter> sent a code paste, see https://play.nim-lang.org/#ix=2x7E
20:45:18FromDiscord<Rika> HEY
20:45:23FromDiscord<Rika> WHEN THE HELL DID I SAY I WAS IN ON THIS
20:45:32FromDiscord<haxscramper> But when I have to deal with C *compilation* I just want to jump out of the window
20:45:40FromDiscord<Avatarfighter> RIka is a proud supporter of our backwards compatible syntax 🙂
20:46:02FromDiscord<Rika> c compilation...............
20:46:10FromDiscord<haxscramper> aka copy-pasting
20:46:24FromDiscord<Theodore> imagine having to deal with compilation issues
20:46:31FromDiscord<Avatarfighter> imagine compiling
20:46:35FromDiscord<Theodore> LMAO
20:46:40FromDiscord<Avatarfighter> insert interpreted language
20:46:41FromDiscord<Recruit_main707> imagine
20:46:48FromDiscord<Clyybber> imagine running your code
20:46:52FromDiscord<haxscramper> FFS I can't even parse this shit whout drowning in macros & includes
20:47:09FromDiscord<Theodore> I love rusts compiler it is so... Beautiful
20:47:29FromDiscord<Avatarfighter> Theodore, I believe you misspelled Koch as "rust"
20:47:35FromDiscord<Rika> lol
20:47:36FromDiscord<haxscramper> Oh yeah. Making errors just to see how good error messages are
20:47:38FromDiscord<Theodore> noope
20:47:46FromDiscord<Avatarfighter> 😛
20:47:48FromDiscord<Theodore> rust compiler >>>>
20:47:57FromDiscord<Rika> rust errors are nice but man i'll shoot myself before i make anything useful in rust
20:48:10FromDiscord<Theodore> when i had my phase of learning almost every programming language out there
20:48:24FromDiscord<Theodore> switching from C to rust made compilation so much easier
20:48:25FromDiscord<Clyybber> rust compiler >>>> what?
20:48:31FromDiscord<Rika> nothing
20:48:36FromDiscord<Recruit_main707> bruh
20:48:37FromDiscord<Clyybber> better than nothing
20:48:40FromDiscord<Rika> exactly
20:48:43FromDiscord<Avatarfighter> lmfao
20:48:43FromDiscord<haxscramper> rust compiler >>>> rust compiler <<<< rust compiler
20:48:44FromDiscord<Rika> (im joking)
20:48:48FromDiscord<Theodore> yall r insane
20:48:53FromDiscord<Rika> lmao
20:48:59FromDiscord<Avatarfighter> is nim interpreted yet
20:49:01FromDiscord<Clyybber> stdin >> rust compiler >> stdout
20:49:04FromDiscord<Recruit_main707> b r u h
20:49:12FromDiscord<Theodore> It details issues so well
20:49:14FromDiscord<Recruit_main707> and kinda, there is nimscript
20:49:18FromDiscord<Rika> yeah i can agree with that
20:49:20FromDiscord<Clyybber> @Theodore yeah
20:49:21FromDiscord<Recruit_main707> which is the compile time vm
20:49:21FromDiscord<Rika> (edit) 'yeah i can agree with that ... ' => 'yeah i can agree with thattheo'
20:49:30FromDiscord<Avatarfighter> I totally forgot about nimscript
20:49:49FromDiscord<Clyybber> its pretty cool
20:49:59FromDiscord<XxDiCaprioxX> If I have a json file stored somewhere how can I acces it?
20:49:59FromDiscord<Recruit_main707> \*instert a very funny emoji that i cant used bc i dont have nitro*
20:50:09FromDiscord<Clyybber> :kriby:
20:50:10FromDiscord<Theodore> i jus screenshot them
20:50:13FromDiscord<Theodore> u get them for free
20:50:15FromDiscord<Recruit_main707> (edit) 'used' => 'use'
20:50:17FromDiscord<XxDiCaprioxX> big brain
20:50:20FromDiscord<Theodore> 🤷‍♂️
20:50:34FromDiscord<haxscramper> > If I have a json file stored somewhere how can I acces it?↵@XxDiCaprioxX `let parsed = "some-file.json".readFile().parseJson()`
20:50:37FromDiscord<Clyybber> https://media.discordapp.net/attachments/371759389889003532/753719093349187624/kriby.png
20:50:43FromDiscord<XxDiCaprioxX> Nice
20:50:46FromDiscord<Theodore> its so big
20:50:47FromDiscord<XxDiCaprioxX> Alright, thank you
20:50:51FromDiscord<XxDiCaprioxX> Thats what she said
20:50:56FromDiscord<Theodore> no
20:51:00FromDiscord<Rika> > its so big↵just like go bina------
20:51:01FromDiscord<Avatarfighter> @XxDiCaprioxX if you use the json module you can use `parseFile "somefilename.json"` just returns a JsonNode
20:51:08FromDiscord<XxDiCaprioxX> well maybe not to you 😉
20:51:09FromDiscord<Theodore> she laughed at me cuz it was so small
20:51:24FromDiscord<Avatarfighter> im crying clyybber did you really just send an emote as an image
20:51:26FromDiscord<XxDiCaprioxX> > @XxDiCaprioxX if you use the json module you can use `parseFile "somefilename.json"` just returns a JsonNode
20:51:45FromDiscord<Theodore> its genius
20:51:46FromDiscord<XxDiCaprioxX> If you want to read from the json do u want a json node?
20:51:48FromDiscord<Theodore> why pay for nitro
20:51:56FromDiscord<Avatarfighter> me rn https://media.discordapp.net/attachments/371759389889003532/753719426720727142/402867987574685717.png
20:52:10FromDiscord<Rika> :ThonkDumb:
20:52:14FromDiscord<Clyybber> then the IRC people can get the feels too
20:52:22FromDiscord<Clyybber> https://media.discordapp.net/attachments/371759389889003532/753719534778712164/wiggle.gif
20:52:30FromDiscord<Theodore> lemme hop on irc rn
20:52:34FromDiscord<Rika> please dont
20:52:34FromDiscord<XxDiCaprioxX> :nimrawr:
20:52:35disrupteknews flash: irc people don't want your feels.
20:52:37FromDiscord<Theodore> wait
20:52:41FromDiscord<Theodore> no its Element
20:52:48FromDiscord<Recruit_main707> oof
20:52:48FromDiscord<Rika> that is matrix
20:52:52FromDiscord<Theodore> YES
20:52:54FromDiscord<Avatarfighter> @XxDiCaprioxX when you get the json node you can use `[]` to go to a specific part of the JsonNode
20:52:55FromDiscord<Theodore> thats what it is called
20:53:01FromDiscord<XxDiCaprioxX> *CONFUSED*
20:53:09FromDiscord<Avatarfighter> disruptek: you're just jealous of our feels
20:53:18FromDiscord<Recruit_main707> lmao
20:53:20FromDiscord<XxDiCaprioxX> And can I get lines of the json?
20:53:24FromDiscord<Clyybber> disruptek: I don't want your news flash :ThonkDumb:
20:53:25FromDiscord<Theodore> imagine making actual useful stuff in rust
20:53:30FromDiscord<Theodore> *impossible*
20:53:39FromDiscord<XxDiCaprioxX> like `for i in json.lines` ?
20:53:39FromDiscord<Avatarfighter> @XxDiCaprioxX uh I am really bad at explaining, but yes
20:53:42FromDiscord<Clyybber> *rustc*
20:53:44FromDiscord<Recruit_main707> > And can I get lines of the json?↵@XxDiCaprioxX json is only one line technically
20:53:47*arecacea1 quit (Remote host closed the connection)
20:53:56FromDiscord<XxDiCaprioxX> Well shit I need a different file format then
20:54:08FromDiscord<haxscramper> You can convert json back to string using `$someJsonNode`
20:54:08FromDiscord<XxDiCaprioxX> Is there any format that is specifically fast to read?
20:54:11*arecacea1 joined #nim
20:54:16FromGitter<matrixbot> `ergpopler` hello, mr.theodore
20:54:16FromDiscord<Rika> binary file formats
20:54:16FromDiscord<Clyybber> binary
20:54:20FromDiscord<Avatarfighter> `for i in json.items`
20:54:22FromDiscord<Avatarfighter> https://nim-lang.org/docs/json.html#15
20:54:36FromDiscord<XxDiCaprioxX> And Items are put in [] ?
20:54:44FromDiscord<Theodore> YOOOO ahahahaha
20:54:46FromDiscord<Avatarfighter> `[]` is used to access a specific node
20:54:46FromDiscord<XxDiCaprioxX> Like: [item 1] [item 2] ?
20:54:48FromDiscord<Clyybber> @Yardanico damn, matrixbot from gitter, thats a weird one huh?
20:54:49FromDiscord<Avatarfighter> the value of that node
20:54:50FromDiscord<Theodore> matrix is SOOOOO delated
20:54:54FromDiscord<Theodore> (edit) 'delated' => 'delayed'
20:54:56FromDiscord<Rika> delayed
20:54:57FromDiscord<Clyybber> yeah, matrix is slow af
20:54:57FromDiscord<XxDiCaprioxX> this is hard
20:55:02FromDiscord<Clyybber> the bridge that is
20:55:08FromDiscord<Avatarfighter> @XxDiCaprioxX https://nim-by-example.github.io/json/ this explains it better
20:55:14FromDiscord<Theodore> matrix in general is slow
20:55:19FromDiscord<Rika> @Clyybber theyre using another bridge is why it shows like that
20:55:22FromDiscord<XxDiCaprioxX> okay thanks I'll try
20:55:23FromDiscord<Theodore> the messages take like, a second to send
20:55:24FromDiscord<Avatarfighter> Has anyone seen Leorize recently
20:55:33FromDiscord<Recruit_main707> `cast[array[TYPE.sifeof, byte]](dataToPass)`↵`cast[TYPE](dataPassed)`↵ezzz
20:55:40FromDiscord<Clyybber> @Rika yeah I know, maybe we should translate it as well
20:55:43FromDiscord<Rika> you just mentioned them so if theyre here theyll show up
20:55:57FromDiscord<Rika> > sifeof
20:56:01FromDiscord<Rika> :ThonkDumb:
20:56:01FromDiscord<Theodore> has anyone actually made anything *useful* in nim?
20:56:06FromDiscord<Clyybber> nim
20:56:08FromDiscord<Rika> the nim compiler
20:56:13FromDiscord<Recruit_main707> smart move right there
20:56:14FromDiscord<Clyybber> same as rust, rustc
20:56:14FromDiscord<Theodore> LOL
20:56:16FromDiscord<XxDiCaprioxX> What is considered a json element?
20:56:20FromDiscord<Theodore> NOT THE COMPILER
20:56:26FromDiscord<Clyybber> also https://github.com/status-im/
20:56:26FromDiscord<Rika> nimsuggest
20:56:28FromDiscord<Avatarfighter> parsed json tbh @XxDiCaprioxX
20:56:31FromDiscord<Rika> nitter
20:56:33FromDiscord<Recruit_main707> id say weave can be considered useful
20:56:34FromDiscord<Rika> arraymancer
20:56:35FromDiscord<Clyybber> nitter yeah
20:56:38FromDiscord<Rika> weave, yeah
20:56:44FromDiscord<Clyybber> https://nitter.net/
20:56:46FromDiscord<XxDiCaprioxX> I mean in a json how do I separate elements
20:56:46FromDiscord<Avatarfighter> I wrote a lib to help traverse xmlnodes
20:56:49FromDiscord<Clyybber> everything by mratsim yeah
20:56:51FromDiscord<Recruit_main707> and lazer is cool the least
20:57:01FromDiscord<Avatarfighter> @XxDiCaprioxX dm me please so I can help more easily
20:57:04FromDiscord<Rika> mratsim is a wizard
20:57:05FromDiscord<Clyybber> https://github.com/fox0430/moe
20:57:06FromDiscord<Rika> or a god
20:57:08FromDiscord<Rika> i cant tell
20:57:10FromDiscord<XxDiCaprioxX> aight
20:57:32FromDiscord<Clyybber> the forum forum.nim-lang.org/ is also made with nim
20:57:37FromDiscord<Theodore> sent a long message, see http://ix.io/2x7G
20:57:43FromDiscord<Rika> bruh
20:57:44FromDiscord<Avatarfighter> theodore: delete please
20:57:48FromDiscord<Clyybber> https://forum.nim-lang.org/
20:57:48FromDiscord<Avatarfighter> thank god
20:57:49FromDiscord<Theodore> nobody saw that
20:57:54FromDiscord<Rika> jesus
20:57:59FromDiscord<Recruit_main707> its still on irc
20:58:02FromDiscord<Clyybber> except all the irc ppl
20:58:13FromDiscord<Rika> literally everyone on irc yeah lol
20:58:16FromDiscord<Rika> +++ the irc logs
20:58:18FromDiscord<Clyybber> it will forever burn
20:58:20FromDiscord<Clyybber> in their logs
20:58:24FromDiscord<Theodore> 🙀
20:58:26FromDiscord<Clyybber> wow it will burn their logs
20:58:28FromDiscord<Clyybber> poetic
20:58:31FromDiscord<Theodore> i dont think that code would compile
20:58:37FromDiscord<Rika> it wouldnt of course
20:58:37FromDiscord<Theodore> anyways
20:58:41FromDiscord<Rika> but its obvious what it does
20:58:46FromDiscord<Theodore> it only compiles in human brains
20:58:47FromDiscord<Rika> rather what its supposed to do
20:59:09FromDiscord<Recruit_main707> @XxDiCaprioxX learn how json works, its essentially dictionaries, arrays, strings, ints and floats, and thats it
20:59:20FromDiscord<Avatarfighter> https://github.com/planety/prologue @Theodore
20:59:28FromDiscord<Avatarfighter> that is a cool lib too
20:59:43FromDiscord<Theodore> :nimrawr:
20:59:50FromDiscord<Theodore> what is this
20:59:58FromDiscord<Recruit_main707> :nimrawr:
20:59:59FromDiscord<Theodore> is that a dog orrr
21:00:15FromDiscord<Theodore> I telln't if its a dog
21:00:19FromDiscord<Recruit_main707> is that how dogs look like in your zone?
21:00:25FromDiscord<Theodore> yesn't
21:00:26FromDiscord<Rika> its a honey badger
21:00:27FromDiscord<Avatarfighter> why is that a black bear
21:00:31FromDiscord<Avatarfighter> oh
21:00:41FromDiscord<Theodore> dogs look like that
21:00:43FromDiscord<Theodore> like
21:00:46FromDiscord<Theodore> pitbulls
21:01:22FromDiscord<Recruit_main707> i made a framework to code rocket league bots (with a python bridge, but no one should notice :p ), so if you are into game bots it can be an interesting way of learning nim (offline only btw)
21:01:48FromDiscord<Avatarfighter> im currently porting my bot program for an MMO rn
21:02:00FromDiscord<Recruit_main707> a nim one, based on the python existing one, that sounds like i created it
21:02:08FromDiscord<Theodore> i made a shizzie ass GUI framework in rust, where an empty black screen compiled makes a 180mb executable
21:02:14FromDiscord<Theodore> I do not know where i messed up
21:02:19FromDiscord<Avatarfighter> you used rust
21:02:23FromDiscord<Theodore> well
21:02:25FromDiscord<Recruit_main707> there you go
21:02:26FromDiscord<Avatarfighter> :GWpingKanyeLUL:
21:02:29FromDiscord<Theodore> I used a game engine
21:02:35FromDiscord<Theodore> as the GUI base
21:02:43FromDiscord<Theodore> that could be why
21:02:56FromDiscord<Clyybber> its not a dog or a bear
21:02:59FromDiscord<Clyybber> its a honeybadger
21:03:06FromDiscord<Theodore> no
21:03:08FromDiscord<Rika> > its a honey badger↵tfw i was ignored
21:03:08FromDiscord<Theodore> its a dog now
21:03:17FromDiscord<Clyybber> :nimrawr:
21:03:30FromDiscord<Recruit_main707> dogs dont rawr smh
21:03:36FromDiscord<Theodore> YOOO
21:03:42FromDiscord<Theodore> my pong game is 100mb WTF
21:03:56FromDiscord<Clyybber> what lang?
21:04:00FromDiscord<Clyybber> what framework?
21:04:27FromDiscord<Theodore> 👉 👈
21:04:29FromDiscord<Theodore> rust
21:04:34FromDiscord<Theodore> ggez
21:04:50FromDiscord<Theodore> rust really does suck for practical applications LOL
21:04:54FromDiscord<Theodore> for now*
21:04:55solitudesf😠👉🚪
21:04:58FromDiscord<dom96> 100mb? how?
21:05:00FromDiscord<Clyybber> ah, well considering ggez is optimized for rapid development it probably doesn't try to be as small as possible by default
21:05:21FromDiscord<Clyybber> btw, ggez stems from love which is lua, so you must hate ggez too
21:05:23FromDiscord<Clyybber> :P
21:05:35FromDiscord<Theodore> That i do
21:05:39FromDiscord<Clyybber> lol
21:05:54FromDiscord<Theodore> Amethyst > GGEZ except for the 30min plus compile times
21:06:04FromDiscord<Clyybber> yeah, I was about to say, try amethyst
21:06:12FromDiscord<Clyybber> but I'm not sure how usable it is yet
21:06:16FromDiscord<Theodore> I'm trying to learn how to use it atm
21:06:38FromDiscord<Avatarfighter> gosh you guys are making me procrastinate on my HW
21:06:45FromDiscord<Theodore> homework
21:06:45FromDiscord<Avatarfighter> I've never had this much fun in a text chat
21:06:49FromDiscord<Theodore> couldn't be me
21:06:59FromDiscord<Theodore> homework is something i've never done
21:07:13FromDiscord<Avatarfighter> my highschool really assigning homework on nim time :GWsetmyxPeepoSad:
21:07:21FromDiscord<Avatarfighter> for the irc people https://media.discordapp.net/attachments/371759389889003532/753723305348825220/unknown.png
21:07:31FromDiscord<Theodore> ```@-
21:07:39FromDiscord<Theodore> you guys rate my programming language?
21:08:10FromDiscord<Recruit_main707> its a shame the only problem is that brainfuck is already taken
21:08:41FromDiscord<Theodore> thats just the stuff i coppied and pasted from my pong executable
21:08:54FromDiscord<Theodore> wait there is english in it
21:09:02FromDiscord<Recruit_main707> paths probably
21:09:05FromDiscord<Theodore> sent a code paste, see https://play.nim-lang.org/#ix=2x7L
21:09:12FromDiscord<Theodore> what the hell is this
21:09:18FromDiscord<Recruit_main707> ¯\_(ツ)_/¯
21:09:24FromDiscord<Theodore> also the dependencies
21:09:27FromDiscord<Theodore> i see them
21:10:19FromDiscord<Theodore> tbh
21:10:28FromDiscord<Theodore> it makes about as much sense as assembly
21:10:28*pietroppeter quit (Quit: Connection closed for inactivity)
21:10:47FromDiscord<Rika> technically....
21:11:07FromDiscord<Avatarfighter> wElL acTually iT IS ASSembly
21:11:23FromDiscord<Theodore> wait
21:11:28FromDiscord<Theodore> it has the actual rust code in it
21:11:40FromDiscord<Rika> debug symbols
21:11:46FromDiscord<Rika> compiling for release will remove those
21:11:51FromDiscord<Theodore> OH
21:12:08FromDiscord<Clyybber> for your fancy error msgs
21:12:12FromDiscord<Recruit_main707> ^
21:12:16FromDiscord<Clyybber> my pleasure
21:12:18FromDiscord<Clyybber> - rustc
21:12:20FromDiscord<Rika> fancy *runtime messages
21:12:25FromDiscord<Rika> (edit) 'fancy *runtime ... messages' => 'fancy *runtimeerror'
21:12:38FromDiscord<Clyybber> nitter
21:13:08FromDiscord<Theodore> alright just gonna compile my pong for release
21:13:17FromDiscord<Theodore> ETA: 30 minutes
21:13:27FromDiscord<Clyybber> bruh moment
21:13:28FromDiscord<Theodore> god help me
21:13:42FromDiscord<Rika> "if only you used nim, it would have been 30 seconds instead"
21:13:51FromDiscord<Clyybber> ^
21:14:05FromDiscord<Avatarfighter> i remember my dad said that when he programmed in pascal he could go eat while he waited
21:14:09FromDiscord<Theodore> I could download black ops 2, run it and get into a game of zombies in the time it takes my pong to compile
21:14:43FromDiscord<Theodore> (edit) 'I could download black ops 2, run it and get into a game of zombies ... in' => 'I could download black ops 2, run it and get into a game of zombiesand get to round 5'
21:14:58FromDiscord<Rika> suspiciously specific example
21:15:08FromDiscord<Theodore> the thing is, it doesn't even need to take this long, technically
21:15:16FromDiscord<dom96> You compiling on a Raspberry Pi?
21:15:21FromDiscord<Theodore> LMAO
21:15:38FromDiscord<Rika> 30 minute compile time sounds even slower than a raspberry pi
21:15:44FromDiscord<Theodore> I think i can just bring the target folder and modify some stuff and make it compile faster
21:15:54FromDiscord<Rika> almost like youre compiling on a... phone...
21:15:59FromDiscord<Theodore> no
21:16:00FromDiscord<Rika> ARE YOU ANOTHER TECHNISHA
21:16:03FromDiscord<Rika> oh okay
21:16:08FromDiscord<Avatarfighter> my iphone compiles faster than that
21:16:14FromDiscord<dom96> IIRC the last time I tried bootstrapping Nim on an RPi (and that was the first model) it took 40 mins
21:16:20FromDiscord<Rika> but thats NIM
21:16:22FromDiscord<Theodore> i3 2120
21:16:24FromDiscord<Rika> NOT A SIMPLE PONG GAME
21:16:28FromDiscord<dom96> how can Rust be this slow?
21:16:32FromDiscord<Recruit_main707> well, so thats why xd
21:16:35FromDiscord<haxscramper> The only time I tried to install some rust package on RPI it literally rebooted from overheating. And I had heatsink & cooler
21:16:37FromDiscord<Avatarfighter> LLVM @dom96
21:16:43FromDiscord<Rika> not llvm
21:16:46FromDiscord<Avatarfighter> yes
21:16:47FromDiscord<Rika> i hear llvm is fast
21:16:53FromDiscord<Theodore> well, i'm not the best programmer
21:16:53FromDiscord<Avatarfighter> rust -> LLVM
21:16:53FromDiscord<Rika> its just that rust is abusive on llv
21:16:54FromDiscord<Rika> (edit) 'llv' => 'llvm'
21:16:56FromDiscord<Avatarfighter> yeah
21:17:14FromDiscord<Clyybber> @Theodore try mrust
21:17:19FromDiscord<Clyybber> its fast, and doesn't check your code
21:17:25FromDiscord<Rika> sounds scary
21:17:28FromDiscord<Clyybber> it is
21:17:40FromDiscord<Clyybber> also its written in C++ and not rust for whatever reason
21:17:43FromDiscord<Rika> guess its the downside of so many checks
21:17:50FromDiscord<dom96> just wrap each of your modules in an `unsafe {}` block. That'll make Rust fly.
21:17:58FromDiscord<Rika> loool
21:18:01FromDiscord<Recruit_main707> :smart:
21:18:10FromDiscord<Avatarfighter> oh dear the sky is yellow/orange again
21:18:11FromDiscord<dom96> taps_head.gif
21:18:12FromDiscord<Theodore> AHH
21:18:16FromDiscord<Theodore> unsafe rust
21:18:31FromDiscord<Rika> > oh dear the sky is yellow/orange again↵at least its not sunrise 👀 👀 👀 👀 👀
21:18:35FromDiscord<Recruit_main707> just do rust c -d:danger duh
21:18:36FromDiscord<Rika> (its sunrise for me)
21:19:05FromDiscord<Theodore> I might have to make something in rust to speed up my rust compilation times 😳
21:19:16disruptekthat won't help.
21:19:20FromDiscord<Theodore> it wouldn't really
21:19:24FromDiscord<Avatarfighter> you should write your pong game in rust
21:19:27FromDiscord<Theodore> but it could if i am compiling several times
21:19:31*solitudesf quit (Ping timeout: 265 seconds)
21:19:34FromDiscord<Theodore> it is written in rust
21:19:43FromDiscord<Avatarfighter> HUH WHY IS IT COMPILING SO SLOW
21:19:51FromDiscord<Theodore> GGEZ
21:20:02FromDiscord<Theodore> it takes forever
21:20:18FromDiscord<Theodore> my cpu is at 100%rn
21:20:23FromDiscord<Theodore> (edit) '100%rn' => '100% rn'
21:20:24FromDiscord<Rika> fighter are you being sarcastic
21:20:35FromDiscord<Theodore> ah yes
21:20:39FromDiscord<Clyybber> @Avatarfighter india or US?
21:20:39FromDiscord<Avatarfighter> yes i am
21:20:42FromDiscord<Avatarfighter> me
21:20:47FromDiscord<Avatarfighter> you are going to rage in a second
21:20:49FromDiscord<Rika> you are you indeed
21:20:53FromDiscord<Avatarfighter> I am a skinny white french male
21:20:56FromDiscord<Theodore> i love when my 6kb rust file compiles into a 90mb+ executable
21:21:03FromDiscord<Clyybber> why is your sky yellow then?
21:21:08FromDiscord<Avatarfighter> California
21:21:15FromDiscord<Clyybber> ah sick
21:21:19FromDiscord<Clyybber> as in ash
21:21:24FromDiscord<Theodore> 😳 https://media.discordapp.net/attachments/371759389889003532/753726846415405136/main.rs
21:21:25FromDiscord<Avatarfighter> sick is what i am becoming bc of the air quality
21:21:33FromDiscord<Rika> 👀
21:21:43FromDiscord<Theodore> nobody is allowed
21:21:44FromDiscord<Rika> remember that irc doesnt delete messages
21:21:48FromDiscord<Theodore> to see my crusty code
21:22:00FromDiscord<Clyybber> disruptek: You are eastside right?
21:22:14FromDiscord<Avatarfighter> disruptek is coming westside soon i believe
21:22:18FromDiscord<Theodore> OH SHIT IT COMPILED
21:22:23FromDiscord<Theodore> only 10 mins
21:22:30FromDiscord<Theodore> ayyy
21:22:40FromDiscord<Theodore> --release speeds it up?
21:22:56FromDiscord<Theodore> ok, i am vastly confused
21:22:57FromDiscord<Clyybber> doubt
21:23:05FromDiscord<Clyybber> probably incremental compilation or something
21:23:08FromDiscord<Avatarfighter> CPU was probably throttling tbh
21:23:14FromDiscord<Theodore> my release exec is less then 8mb
21:23:21FromDiscord<Theodore> but my debug one is 80mb
21:23:23FromDiscord<Recruit_main707> half the people in here havent even used rust, and two thirds of that half at least use nim over rust now
21:23:31FromDiscord<Avatarfighter> I used rust
21:23:35FromDiscord<Theodore> (edit) '80mb' => '90mb'
21:23:49FromDiscord<Avatarfighter> who is the other person that has :GWlulurdMegaLul:
21:24:31FromDiscord<Recruit_main707> https://tenor.com/view/omegalul-lul-lulw-twitch-emote-gif-13523263
21:24:37FromDiscord<Theodore> wait
21:24:41FromDiscord<Theodore> less then 8mb 😳 https://media.discordapp.net/attachments/371759389889003532/753727671040606279/Pong
21:24:42FromDiscord<Avatarfighter> me rn @Recruit_main707
21:24:50FromDiscord<Theodore> priolly shouldnt send executables
21:24:53disruptekclyybber: you busy?
21:24:59FromDiscord<Clyybber> nah, bro gimme the rm -rf
21:24:59FromDiscord<Avatarfighter> https://media.discordapp.net/attachments/371759389889003532/753727744298188890/unknown.png
21:25:00*krux02 joined #nim
21:25:07FromDiscord<Clyybber> disruptek: Not really
21:25:24FromDiscord<Theodore> yes
21:25:33FromDiscord<Theodore> jus sayin ppl might think its a virus payload
21:26:17FromDiscord<Avatarfighter> you know what someone should make
21:26:20FromDiscord<Avatarfighter> an irc bouncer
21:26:38FromDiscord<Theodore> completely unrelated.... what is your exact OS, and version? and also would you mind running this random executable as admin?
21:26:41FromDiscord<dom96> why though, znc is good enough
21:26:41FromDiscord<Avatarfighter> in nim though, I think thats an easy and fun project to do
21:26:47FromDiscord<Avatarfighter> @dom96 to learn
21:26:50FromDiscord<Theodore> irc bounder as in that bot
21:26:54FromDiscord<dom96> oh sure, I'm all for that
21:27:06FromDiscord<Avatarfighter> znc is great but I think making your own is a great way to learn the language and its fairly easy
21:27:12FromDiscord<dom96> I've become more pessimistic about such projects as i've grown older and lost my free time
21:27:30FromDiscord<Avatarfighter> just become younger smh
21:27:38FromDiscord<Theodore> been young
21:27:40FromDiscord<Avatarfighter> ahah
21:27:43FromDiscord<Theodore> i have no responsibilites
21:27:50Prestigelol Avatar
21:27:58FromDiscord<Rika> release builds tend to be smaller than debug builds
21:28:01FromDiscord<Rika> and faster
21:28:04FromDiscord<Avatarfighter> in all honesty I'm worried for when I become older
21:28:21FromDiscord<Rika> faster as in faster to run
21:28:24FromDiscord<Rika> not compiler
21:28:25FromDiscord<Rika> (edit) 'compiler' => 'compile'
21:28:30FromDiscord<Rika> theyre usually slower to compile
21:28:35FromDiscord<Theodore> i aint gonna be a clown and sit around until i become a full blown adult who has to pay TAXES
21:28:47FromDiscord<Theodore> tax evasion nvm
21:28:55FromDiscord<Theodore> 🏜️
21:29:34FromDiscord<Theodore> (edit) 'nvm' => 'is very, very bad and has serious legal repurcussions 😾'
21:30:26disruptekclyybber: remember i said i had to rename `Result` to `result`?
21:30:59disruptekit's biting me, seems like, but only with the norm package.
21:31:49FromDiscord<dom96> next step: `res`
21:31:55FromDiscord<Avatarfighter> dom96: are you working on anything interesting atm?
21:32:31FromDiscord<dom96> https://stardust.dev/
21:32:46disruptekhe said, `interesting`.
21:32:47FromDiscord<Avatarfighter> oooo
21:32:57FromDiscord<Avatarfighter> lmao
21:33:09FromDiscord<Avatarfighter> this is cool
21:33:13FromDiscord<Avatarfighter> is it in nim
21:33:30FromDiscord<Clyybber> disruptek: No wonder, what a weird idea
21:33:33FromDiscord<dom96> disruptek: 💔
21:33:40FromDiscord<dom96> @Avatarfighter yep
21:33:56FromDiscord<Avatarfighter> thats what we like to hear 🙂
21:34:54FromDiscord<Avatarfighter> disruptek: when are you going to be west coast?
21:35:42FromDiscord<Avatarfighter> trying to figure out when to send the oversize weighted teddy bear
21:36:26*snowolf quit (Quit: No Ping reply in 180 seconds.)
21:37:44*snowolf joined #nim
21:37:55FromDiscord<Clyybber> the weight comes from the coke
21:38:07*tane quit (Quit: Leaving)
21:38:50FromDiscord<Avatarfighter> psh
21:38:52FromDiscord<Avatarfighter> we're in cali
21:38:56FromDiscord<Avatarfighter> the weight comes with the weed
21:39:13disruptekdepends on whether i find some sucker to pay me money.
21:40:53FromDiscord<Theodore> what kind of agar.io clone
21:41:02FromDiscord<Theodore> LMAO
21:41:15FromDiscord<Theodore> this guy made agar.io but with stars
21:42:15FromDiscord<dom96> hell yes
21:42:31FromDiscord<Avatarfighter> are you doing any serverside prediction dom?
21:42:43FromDiscord<dom96> you mean client-side? yes
21:42:54disrupteklol
21:43:04FromDiscord<dom96> the browser runs the same simulation that the server does
21:43:16disruptekyou are talking to a botter.
21:43:22FromDiscord<Avatarfighter> 🙂
21:44:00FromDiscord<Avatarfighter> you should probably add some server-side prediction of client positions dom if you don't want someone to teleport around
21:44:43*sagax quit (Remote host closed the connection)
21:44:49FromDiscord<dom96> huh
21:45:44FromDiscord<dom96> All the input the server receives is the direction you want to go in
21:45:50FromDiscord<dom96> it's impossible to teleport
21:46:09*Vladar quit (Quit: Leaving)
21:46:16FromDiscord<Avatarfighter> ah
21:46:27FromDiscord<Avatarfighter> The client doesn't report position just direction?
21:47:12FromDiscord<dom96> indeed
21:47:59FromDiscord<Avatarfighter> ok thats good, not at all how i thought it would've worked, you would be surprised by how many games have the client report back the position it is in
21:50:24FromDiscord<Recruit_main707> *teleports behind you*
21:50:32FromDiscord<Avatarfighter> yeah basically
21:51:07FromDiscord<Recruit_main707> trying to understand concepts, im gonna need some help...↵https://play.nim-lang.org/#ix=2x7S
21:52:00FromDiscord<dom96> just wait, they're being rewritten anyway
21:52:10FromDiscord<Avatarfighter> what even are concepts supposed tobe
21:52:11FromDiscord<Avatarfighter> (edit) 'tobe' => 'to be'
21:54:44FromDiscord<Clyybber> constraints
21:54:50FromDiscord<Clyybber> types defined by properties
21:54:52FromDiscord<Clyybber> traits
21:54:55FromDiscord<Clyybber> w/e you want to call it
21:55:02FromDiscord<Recruit_main707> Well, but the concept (ba dum tsss) will be the same right?
21:55:40FromDiscord<Avatarfighter> 😐
21:55:42disruptekit is hoped that the semantics won't change, yes.
21:57:00FromDiscord<Avatarfighter> oh god why did i choose 100 character passwords on some of my accounts
21:58:21FromDiscord<Rika> you dont use a password manager and have passwords that long?
21:58:45FromDiscord<Avatarfighter> this was pre-password manager sadly
21:58:52FromDiscord<Avatarfighter> and i am inputting it manually atm
21:59:14FromDiscord<Recruit_main707> @Clyybber an example/wiki page on constraints?
21:59:23disruptek~concepts
21:59:24disbotconcepts: 11user-defined type classes; documented in the experimental section of the manual: https://nim-lang.org/docs/manual_experimental.html#concepts -- disruptek
21:59:31*sagax joined #nim
22:00:16FromDiscord<Avatarfighter> who made the disbot?
22:00:27disruptekdisguy
22:00:44FromDiscord<Avatarfighter> disguy must be such a nerd
22:00:46FromDiscord<Avatarfighter> 😛
22:01:08disrupteksmells like it.
22:10:39FromDiscord<Recruit_main707> I don’t get why my example is wrong though
22:11:42FromDiscord<Theodore> who is disguy
22:12:01disruptek👍disguy👍
22:12:12FromDiscord<Theodore> oh YOU
22:12:54FromDiscord<Clyybber> @Recruit_main707 because there is no Vector3?
22:13:29FromDiscord<Clyybber> also Car lacks a position and rotation
22:14:54FromDiscord<Recruit_main707> It’s a dummy example, I didn’t add the whole code
22:15:00disrupteki'll say.
22:15:06FromDiscord<Recruit_main707> Did I really forgot to add them?
22:15:14FromDiscord<Recruit_main707> Damm, I’d better go to sleep
22:17:46*Jesin quit (Quit: Leaving)
22:25:13*Jesin joined #nim
22:26:03FromDiscord<Recruit_main707> Rereading this I can see I also wrote it wrong, I’m definitely leaving
22:28:45FromDiscord<Avatarfighter> anyone here do stocks
22:38:34alehander92oh
22:41:21alehander92disruptek
22:41:24alehander92are you around
22:41:31disruptekof course.
22:41:44alehander92i wrote some code
22:41:50disrupteki don't believe it.
22:41:53alehander92i basically adapted Araq's algorithm
22:41:59alehander92for more stuff
22:42:02alehander92and it seems to work
22:42:17alehander92but now i have to understand what is it actually doing
22:42:23alehander92because i didn't really focus on that a lot
22:42:30disruptekeh doesn't seem important.
22:42:35alehander92i just focused on making it do it for other stuff
22:42:46alehander92and now i wonder if it makes sense at all
22:42:54alehander92so what are cursors
22:43:05alehander92they don't really matter for me i think
22:43:06disruptekwhat are they?
22:43:12alehander92but one thing this algo does is .. finding them?
22:43:19disruptekthey are views that don't count for rc.
22:43:35alehander92ok, so why don't they ?
22:43:46disruptekbecause they don't count, literally.
22:44:30alehander92ok, so they are read only
22:44:33alehander92or something
22:44:40FromDiscord<Clyybber> alehander92: They are automatic views
22:44:42FromDiscord<Clyybber> basically
22:44:56disruptekthey may as well be raw pointers, but to refs.
22:45:08FromDiscord<Clyybber> So if the compiler sees a value doesn't outlive where it came from
22:45:11alehander92but can they be used to mutate as well
22:45:21FromDiscord<Clyybber> AFAIK yeah
22:45:27disruptekthey shouldn't be, though.
22:45:29alehander92ah so it's like a local view
22:45:34disruptekyes.
22:45:45FromDiscord<Clyybber> disruptek: WDYM they shouldn't be
22:45:46FromDiscord<Clyybber> they should
22:45:49FromDiscord<Clyybber> in var a = b
22:45:54FromDiscord<Clyybber> where a doesn't outlive b
22:46:00FromDiscord<Clyybber> a can be a cursor for b
22:46:04FromDiscord<Clyybber> if both are ref types
22:46:34FromDiscord<Clyybber> if b is a ref type
22:46:36alehander92but can `a.b` be cursor for b
22:46:37disruptektechnically, yes, but what's the use case?
22:46:43alehander92in `var a; a.b = b`
22:46:48FromDiscord<Avatarfighter> what is a view
22:46:53FromDiscord<Clyybber> alehander92: AFAIK no
22:46:56disrupteki think the spec allowing for mut isn't so useful for a cursor.
22:47:02FromDiscord<Clyybber> disruptek: Its not about use cases
22:47:08FromDiscord<Clyybber> its about optimization
22:47:13FromDiscord<Clyybber> but anyways
22:47:20disruptekwell if the spec can be tighter, it might help us.
22:47:29FromDiscord<Clyybber> there is no spec for optimization
22:47:29alehander92a view is like an additional pointer(optionally + stuff) to the same thing ?
22:47:39alehander92no idea that's how i imagine it
22:47:47FromDiscord<Clyybber> alehander92: Yeah, its just a pointer
22:48:01disruptekit's like any other ref except for the machinery that makes a ref a ref.
22:48:20disruptekso, y'know, same same but different in every way.
22:48:45alehander92so basically the automatic inference of cursors is about keeping those local aliases
22:48:47alehander92optimized?
22:49:00disruptekit's about creating cursors instead of refs.
22:49:10disruptekor copies.
22:49:27FromDiscord<Clyybber> alehander92: Yeah
22:49:33alehander92ok, so the difference is only about the gc
22:49:38disruptekif you can infer that a cursor is safe, then you save yourself the rc bullshit.
22:49:39FromDiscord<Clyybber> alehander92: Yep
22:50:08FromDiscord<Clyybber> blender is so cool
22:50:11disrupteki think the classic example is iteration over a seq.
22:50:21disruptekthe forvars can be a cursor.
22:50:33alehander92thanks!
22:50:50alehander92good. so I learned this
22:50:56alehander92now i am focused on the alias thing
22:51:02FromDiscord<Clyybber> disruptek: Yeah, although they should be lent anyways
22:51:20FromDiscord<Clyybber> alehander92: Do you want to use varpartitions for notnil?
22:51:43alehander92Araq suggested it because i wanted to prevent local alias bugs
22:51:52alehander92so I basically adapted it
22:51:58alehander92to support dot exprs
22:52:13alehander92but i am still trying to understand it better
22:52:21FromDiscord<Clyybber> Ah interesting
22:52:31alehander92i .. did something like this in the past
22:52:34alehander92but probably buggier
22:52:47alehander92i was just maintaining a dependency data structure
22:52:50alehander92or something like that
22:53:24alehander92of expressions and related other expressions that should be invalidated
22:53:44FromDiscord<juan_carlos> Anyone has any idea how to fix this?, is documented, tested, etc just not shipped :( https://github.com/nim-lang/Nim/issues/11433
22:53:45disbotNiminst missing from installation
22:53:58alehander92hey
22:55:33disruptekalehander92: maybe i can use that work for ic.
22:58:23alehander92no no
22:58:28*lritter quit (Ping timeout: 260 seconds)
22:58:55alehander92i mean invalidated as in "this might not be nonnil anymore because it's parent expr became nil"
22:59:23alehander92not a great term maybe?
22:59:41disrupteklook, i need to eat cheese.
22:59:44disruptekcan you live with that?
23:02:14alehander92yes
23:02:17alehander92cheese is good
23:02:23alehander92do you have it?
23:04:47alehander92hm, let me give you a simple example
23:06:43alehander92https://www.irccloud.com/pastebin/YhedULeS/
23:14:21alehander92so just simple alias sets should be sufficient
23:16:42*Trustable quit (Remote host closed the connection)
23:18:13alehander92juan_carlos
23:18:26alehander92does get niminst installed with normal build/koch/packages?
23:18:34alehander92@juan_carlos * :)
23:19:11FromDiscord<juan_carlos> No.
23:19:17FromDiscord<juan_carlos> Thats the bug about.
23:22:24*gmaggior quit (Quit: Leaving)
23:25:06*Sgeo joined #nim
23:25:25SgeoI don't see the with library mentioned https://nim-lang.github.io/Nim/lib.html even though a web framework (prologue) mentioned it
23:25:37SgeoIs it intentionally omitted from that page, or experimental?
23:29:21*krux02 quit (Remote host closed the connection)
23:35:09FromDiscord<Avatarfighter> which one sgeo?
23:35:33FromDiscord<Rika> https://nim-lang.org/docs/with.html
23:35:45FromDiscord<Avatarfighter> ohhh 1 sec
23:35:53FromDiscord<Avatarfighter> its a module in the actual prologue library
23:36:21FromDiscord<Avatarfighter> i lied
23:36:21FromDiscord<Avatarfighter> https://nim-lang.github.io/Nim/with.html
23:36:32FromDiscord<Avatarfighter> its just not on the actual nim site
23:37:25FromDiscord<Avatarfighter> wait i just realized is that macro like the cascade library https://github.com/citycide/cascade
23:37:33*awe002 quit (Ping timeout: 260 seconds)
23:37:35FromDiscord<Elegant Beef> It is listed here https://nim-lang.org/docs/theindex.html
23:37:49FromDiscord<Avatarfighter> https://nim-lang.org/docs/with.html
23:37:55FromDiscord<Rika> @Avatarfighter did you not see what i posted
23:38:01FromDiscord<Rika> man whys everyone ignoring me
23:38:07FromDiscord<Avatarfighter> @Rika nope i refused to look
23:38:17FromDiscord<Rika> i refuse to acknowledge you exist
23:38:20FromDiscord<Avatarfighter> wow
23:38:21FromDiscord<Elegant Beef> the with macro just does puts the var on the left hand of all following code
23:38:22FromDiscord<Elegant Beef> Lol rika
23:38:27FromDiscord<Avatarfighter> show me where then 😠
23:38:45FromDiscord<Avatarfighter> OH
23:38:47FromDiscord<Avatarfighter> LOL
23:38:51FromDiscord<Avatarfighter> so uh
23:38:56FromDiscord<Elegant Beef> Also rika did i annoy you yesterday when we were talking about nimscript? 😄
23:39:02FromDiscord<Avatarfighter> I definitely didn't realize you sent that
23:39:13FromDiscord<Rika> @Elegant Beef i dont remember, i really dont remember a lot once a day passes
23:39:26FromDiscord<Elegant Beef> Couldnt tell if the "no shit" was in anger to me or the nimscript page 😛
23:39:45FromDiscord<Rika> man i dont remember so it may as well have never happened
23:39:49FromDiscord<Elegant Beef> Lol
23:39:50FromDiscord<Elegant Beef> Ok
23:39:52FromDiscord<Avatarfighter> lmao
23:39:59FromDiscord<Avatarfighter> rika's got that disruptek energy
23:40:05FromDiscord<Elegant Beef> Nah
23:40:10FromDiscord<Rika> disruptek is more potent
23:40:30FromDiscord<Avatarfighter> i might order a chicken mcnugget pillow
23:40:51FromDiscord<Rika> will you eat it
23:41:24FromDiscord<Avatarfighter> nope but i will probably get barbecue sauce bed sheets to match with it
23:47:49FromDiscord<Avatarfighter> disruptek: how do you use your bot to see when someone last chatted? any chance you can do it on leorize?
23:47:56disruptek!last leorize
23:47:57disbotleorize joined 12#nim-news 29 hours ago and last spoke 731 hours ago
23:49:56*arecacea1 quit (Remote host closed the connection)
23:50:49*arecacea1 joined #nim
23:50:52FromDiscord<Avatarfighter> oh gosh
23:50:55FromDiscord<Avatarfighter> leorize has died
23:50:57FromDiscord<Avatarfighter> what happened
23:51:01FromDiscord<Avatarfighter> who did it
23:53:16disruptekif he wasn't dead before, he's dying of embarassment now.
23:53:41FromDiscord<Avatarfighter> lmao
23:53:52FromDiscord<Avatarfighter> I try my hardest
23:57:18*femtotones joined #nim
23:58:15alehander92juan_carlos sorry
23:58:22alehander92not sure
23:58:37alehander92thank God
23:58:46alehander92I think I can keep it a bit more
23:58:48alehander92and go to bed
23:59:22alehander92i plan on writing sets