<< 09-10-2020 >>

00:02:06*a__b__m joined #nim
00:03:25*a_chou quit (Ping timeout: 240 seconds)
00:05:27*a_b_m quit (Ping timeout: 265 seconds)
00:05:44*arecacea1 quit (Remote host closed the connection)
00:06:06*a_chou joined #nim
00:06:31*arecacea1 joined #nim
00:24:46*a_chou quit (Ping timeout: 272 seconds)
00:48:42*bunbunbunbunny quit (Quit: leaving)
01:10:17*NimBot joined #nim
01:10:17*a__b__m quit (Quit: Leaving)
01:27:48*Tanger joined #nim
01:40:01*apahl quit (Ping timeout: 272 seconds)
01:41:35*apahl joined #nim
01:52:11*sealmove joined #nim
01:53:56sealmove@Zevv: yo, I took your json grammar as a stub and put it here https://github.com/sealmove/ucl. I'm out of practice with grammars so it will take me some time to complete an implementation. Nevertherless maybe you keep track of the repo and help out later.
02:11:20*luis joined #nim
02:23:43*krux02 quit (Remote host closed the connection)
02:44:19*Helios quit (Quit: authenticating)
02:44:27*Helios joined #nim
02:48:27*muffindrake quit (Ping timeout: 240 seconds)
02:51:00*muffindrake joined #nim
03:25:47*luis quit (Read error: Connection reset by peer)
03:25:56*luis joined #nim
03:30:19*bunbunbunbunny joined #nim
03:51:18*sealmove quit (Quit: WeeChat 2.9)
04:06:01*supakeen quit (Quit: WeeChat 2.9)
04:06:32*supakeen joined #nim
04:10:49Zevvcool, sure
04:11:23Zevvif you have ucl tests corpi, put them in as well
04:30:50*muffindrake quit (Quit: muffindrake)
04:41:17*bunbunbunbunny quit (Quit: Lost terminal)
04:53:33*solitudesf joined #nim
05:02:05*narimiran joined #nim
05:20:01*waleee-cl quit (Quit: Connection closed for inactivity)
05:47:18Zevvdisruptek: you had skiplists, right?
05:47:23ZevvI think I have lists to skip
06:15:07FromDiscord<Varriount> Ugh
06:15:19FromDiscord<Varriount> Why does the 7zip SDK have to be so... messy
06:16:28FromDiscord<Varriount> Zevv: It's been a while. How are things going?
06:17:52Zevvoh just, you know, stuff happening and all
06:18:40Zevvkind of caught up in non-nim strings, mostly
06:19:00Zevvyou?
06:19:46supakeenmorning
06:20:37idfmorning
06:21:33supakeenoh, sealmove is working on a ucl parser :D
06:21:39*idf left #nim ("ERC (IRC client for Emacs 27.1)")
06:21:51supakeenawesome
06:21:56*idf joined #nim
06:21:57FromDiscord<Varriount> Zevv: Trying to muster up the energy to write something in Nim (or write anything in any language).
06:22:38FromDiscord<Varriount> Zevv: I figure a good task would be to create a program that mimics what OSX's archive extract functionality does.
06:23:31FromDiscord<Varriount> (when passed a file, extract it into the current directory. Extract to a new folder if the archive has multiple top-level items)
06:24:50FromDiscord<Varriount> 99% of the time, I want to extract what I've downloaded into my Downloads folder. I don't want to CRC check it, view its files in a non-explorer window, or anything else.
06:26:42FromDiscord<Elegant Beef> Just use nim archive 😄
06:27:10FromDiscord<Varriount> Does it handle 7z files with passwords?
06:28:01Araqunlikely
06:28:18Araqso ... my PC doesn't boot anymore and there is not a single "beep" sound.
06:28:53FromDiscord<Elegant Beef> Well it *can* apparently as libarchive can https://github.com/libarchive/libarchive/blob/3649ed23c6b4392d692580c03b10a611e3eaaa32/libarchive/test/test_read_format_zip_winzip_aes.c#L87
06:29:09Araqwhat does it mean? motherboard or power adapter?
06:30:09FromDiscord<Elegant Beef> Your certain it has a beeper on it?
06:30:23Araqquite, it used to beep
06:30:30*PMunch joined #nim
06:30:40FromDiscord<Elegant Beef> Ah
06:31:03FromDiscord<Elegant Beef> Then i'd say powersupply or motherboard has gone
06:32:52FromDiscord<Varriount> Araq: Do you have the general model/brand of computer?
06:33:10AraqBeef: yeah, which one?
06:33:43FromDiscord<Varriount> The manufacturer usually lists the meaning of the codes.
06:33:45FromDiscord<Elegant Beef> Typically motherboards have a light on them to indicate they are getting power if that isnt on, i wager PSU
06:33:48FromDiscord<Elegant Beef> Well it's not beeping
06:33:58FromDiscord<Elegant Beef> So there is no code 😛
06:34:26FromDiscord<Varriount> Oh, I misread.
06:34:55FromDiscord<Varriount> @Elegant Beef Desktop motherboards do, I don't believe laptops have them though.
06:35:13FromDiscord<Elegant Beef> Laptops dont tend to have beepers 😄
06:35:19FromDiscord<Varriount> Mine does.
06:35:27FromDiscord<Elegant Beef> I've never seen one, so assumed it was a desktop
06:35:31FromDiscord<Varriount> Or wait, no, it has a light code
06:35:49FromDiscord<Varriount> But I want to say I've heard beep codes from other laptops before.
06:36:52idfmy previous laptop had a loud horrible beeper
06:37:02FromDiscord<Rika> my laptop has a beeper
06:37:07FromDiscord<Elegant Beef> I'm just imagining araq sitting over a fully tore down laptop screaming "Where is the light?!"
06:37:13AraqVarriount: but I get no code
06:37:19Araqit's a 650W - Corsair RM Series
06:37:28AraqASUS Z170 Pro Gaming/Aura | Intel Z170
06:37:30FromDiscord<Varriount> Araq: Yeah, I misread your original message.
06:38:00FromDiscord<Elegant Beef> An easy PSU test is hooking up a fan to it and shorting two pins to cause the psu to start
06:38:20FromDiscord<Elegant Beef> *If your board doesnt have indication of power
06:38:20Araqwell I still got warranty
06:38:54FromDiscord<Varriount> Elegant Beef is correct. Motherboards (at least desktop ones) usually have a light on them to signal that they are receiving a signal from the power supply.
06:39:25FromDiscord<Varriount> I need to replace the power supply on my desktop. It broke during my move.
06:40:14FromDiscord<Varriount> @Elegant Beef Maybe the magic smoke escaped.
06:40:52FromDiscord<Elegant Beef> Could just be a fuse breaking
06:41:10FromDiscord<Elegant Beef> *Dont dig inside a powersupply unless you know what you're doing*
06:42:23Araqer... I don't have warranty anymore. great
06:42:35FromDiscord<Varriount> Expired?
06:43:09Araqwtf I bought this 4 years ago already
06:43:50Araqjust before a big release and before my holidays, so great
06:44:49FromDiscord<Varriount> Have you checked that the fuse hasn't been tripped, or that the power supply switch is in the "on" position?
06:45:28FromDiscord<Varriount> (and that the computer is plugged in)
06:46:18Araqyes, I did, but I'll tweak the cables once again
06:46:18*luis quit (Quit: luis)
06:46:33*luis joined #nim
06:49:28*tdc joined #nim
06:49:54Oddmongeri have a programm which runs without error when compiled in debug, and SIGSEV («illegal storage access», null pointer i presume, Holmes) when compiled in release
06:50:03Oddmongerhow can i debug it :)
06:50:23*leorize quit (Ping timeout: 240 seconds)
06:50:31FromDiscord<Varriount> Oddmonger: When compiling in release, try adding `--stacktrace:on --linetrace:on`
06:50:46Oddmongerah ok, i try thank you
06:51:16FromDiscord<Varriount> so, something like `nim c -d:release --stacktrace:on --linetrace:on program.nim `
06:51:45*leorize joined #nim
06:52:50Oddmongerok now i see the proc which hangs
06:53:29Oddmongerthat's very odd…
06:53:52Oddmongerare there difference between «ptr» in release/debug ?
06:54:03FromDiscord<lqdev> no
06:54:21Oddmongermeh
06:54:44FromDiscord<lqdev> why would there be anyways
06:55:11Oddmongerit was just to be sure… and on pre-allocation of variables ?
06:55:22Oddmongervar pos: orxVECTOR
06:55:30FromDiscord<lqdev> wdym, pre-allocation of variables
06:55:37Oddmongerdiscard getPosition(player, addr pos) # hangs on this
06:56:05Oddmongerproblem with «pos», obviously
06:56:08FromDiscord<lqdev> should work
06:56:23FromDiscord<lqdev> but why not just use `var` for the pos parameter
06:56:37Oddmongerit's a call to a C lib
06:56:50FromDiscord<lqdev> var is just a pointer anyways
06:57:02Oddmongerok lets try
06:58:03Oddmongerhum refused with var
06:58:59Oddmongerproblem with a template, orxVECTOR is invalid as it (it's waiting for a seq, so the addr i presume)
07:00:03*beatmox quit (Quit: ZNC 1.8.0 - https://znc.in)
07:00:40*beatmox joined #nim
07:02:37FromDiscord<Varriount> Oddmonger: What is the signature of the C function that the variable needs to be passed to?
07:04:18*qwertfisch quit (Quit: ZNC - http://znc.in)
07:05:07*qwertfisch joined #nim
07:06:23*nature joined #nim
07:11:01*nature quit (Ping timeout: 264 seconds)
07:11:36Oddmongerthe nim signature is: proc getPosition*(pstObject: ptr orxOBJECT; pvPosition: ptr orxVECTOR): ptr orxVECTOR {.
07:11:38Oddmonger cdecl, importc: "orxObject_GetPosition", dynlib: libORX.}
07:12:32Oddmongerand the C : orxDLLAPI orxVECTOR *orxFASTCALL orxObject_GetPosition (const orxOBJECT *_pstObject, orxVECTOR *_pvPosition)
07:29:21Araqfastcall is not 'cdecl'
07:30:02Araq(though it only matters on Windows, 32bit, usually)
07:43:01*sagax quit (Read error: Connection reset by peer)
07:44:54Oddmongerok found it
07:45:13Oddmongerit was a config file missing in release mode :(
07:46:10Oddmongerand the engine doesn't complain about it …
08:01:26*vicfred quit (Quit: Leaving)
08:01:34*jjido joined #nim
08:07:42FromDiscord<iWonderAboutTuatara> Is this Godot stuff?
08:08:09FromDiscord<iWonderAboutTuatara> Bit late to the party to get an answer, will just mention oddmonger and hope I get a reply tomorrow :)
08:08:36FromDiscord<iWonderAboutTuatara> I have some questions about Godot Nim and how painless/not it is
08:10:50FromDiscord<lqdev> this is orx, not godot
08:12:52*vicfred joined #nim
08:16:11*Vladar joined #nim
08:19:09Oddmongeryes Orx with Norx wrapper
08:20:29*dv-^_^619392 joined #nim
08:20:43*dv-^_^61939 quit (Read error: Connection reset by peer)
08:22:20Araqnow I got it to "beep"
08:22:29Araqdoesn't come further than that though...
08:24:14idfboop
08:24:25*Tanger quit (Remote host closed the connection)
08:27:32supakeenbuup
08:28:25FromDiscord<lqdev> bzzt
08:37:23*PMunch quit (Ping timeout: 240 seconds)
08:39:04*vicfred quit (Quit: Leaving)
08:40:10*vicfred joined #nim
08:46:33FromDiscord<haxscramper> About view types - it is not really clear to me how they interact with generic types and options particular. So would `let o: Option[lent int] = some(a[0])` be a valid code (with `let a = [1, 2, 3, 4]`) ? Right now it compiles on nim side but errors out with C codegen, so I assume it is valid nim code.
08:47:08FromDiscord<haxscramper> I know that codegen errors most likely because this is an experimental feature
08:51:34*PMunch joined #nim
08:52:40*sagax joined #nim
08:56:03AraqThe idea is that Option[lent int] is valid but subject to borrow checking
08:56:53Araqmy PC is booting now... time to make a backup of my latest data...
08:57:14*hnOsmium0001 quit (Quit: Connection closed for inactivity)
08:58:04FromDiscord<Elegant Beef> What was the issue?
08:58:24*PMunch quit (Ping timeout: 272 seconds)
08:58:44narimiranwell, his PC wasn't booting, for a start
08:59:13FromDiscord<Elegant Beef> Well he's resolved it so i was interested in the resolution
08:59:23narimiranwell, that's not very typical
08:59:28*luis quit (Remote host closed the connection)
08:59:39narimiranhttps://www.youtube.com/watch?v=3m5qxZm_JqM
09:00:06FromDiscord<haxscramper> I just realized that I probably should declare all injected variables from pattern matching as `lent` and make them immutable (in the future, where view types won't be experimental) to avoid unnecessary copies all over the place
09:01:26FromDiscord<mratsim> the main advantage of lent is that it's 2 characters shorter than borrow
09:01:48AraqBeef: I puffed heavily
09:01:56Araqon the CPU and GPU
09:02:03FromDiscord<mratsim> You should invest in hamsters
09:02:53FromDiscord<haxscramper> Although someone might want to have injected variable as a mutable view instead, but this is probably overengineering and there is no place to put mutability annotations in the DSL syntax anyway
09:04:21Araqmratsim: I don't get the joke
09:06:03FromDiscord<mratsim> Delegate the puff puff
09:08:00Araqreminds me of an old German joke. Jogger: "puff, puff". Guy sitting on a bank: "Zwei Straßen weiter, Sie Strolch"
09:08:27FromDiscord<Elegant Beef> Damn araq's breath is magical, quickly capture him and sell "Canned Air of Araq"
09:09:06Araq("Two streets from here, you thug")
09:10:05Araq("Puff" can also mean "house of pleasure" in German)
09:10:18FromDiscord<Rika> "house of pleasure" LOL
09:10:49*abm joined #nim
09:11:09*PMunch joined #nim
09:19:35Araqhaxscramper: please report view-type bugs on github
09:19:56AraqI consider them to be rather-feature complete and spent some effort on patching the codegen too
09:21:22supakeenWoa I had to reread `lent` a few times. I thought we're still far from Easter.
09:22:02FromDiscord<Rika> lent lent lent lent lent
09:25:01FromDiscord<Yardanico> var lent sink static
09:25:06FromDiscord<Yardanico> what else
09:29:40FromDiscord<Yardanico> proc argument annotations
09:29:43FromDiscord<haxscramper> `var test: ptr ptr ref var openarray[lent int]` - can declare variable with this type
09:29:54FromDiscord<Yardanico> Delete the message fast
09:29:57FromDiscord<Yardanico> Oh no it's too late
09:30:15FromDiscord<Yardanico> I don't think you can declare this one though, can you?
09:30:26FromDiscord<Yardanico> The view part in manual says that you can't have a view type with a ptr
09:30:54FromDiscord<haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=2Abx
09:30:58FromDiscord<Rika> then its a bug aint it
09:31:08FromDiscord<Rika> thats such an absurd declaration too i love it
09:31:16FromDiscord<Yardanico> If it compiles it doesn't mean that it's correct :P
09:32:05*krux02 joined #nim
09:32:45FromDiscord<Yardanico> Time to do the next Nim compiler stress test?
09:32:52FromDiscord<Yardanico> Last time we did 1,000,000 proc arguments
09:33:03FromDiscord<Yardanico> Now we test 1,000,000 ptr indirections
09:34:05FromDiscord<Rika> mind hurt
09:34:07FromDiscord<Rika> pls no
09:34:14narimiranZevv: you around?
09:34:16FromDiscord<haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=2Aby
09:34:16FromDiscord<Rika> whats next 1,000,000 modules?
09:34:34FromDiscord<haxscramper> `c***************************` style
09:34:37FromDiscord<Yardanico> https://stackoverflow.com/questions/10087113/how-many-levels-of-pointers-can-we-have
09:34:44narimiranone might call you guys........... 10,000 maniacs
09:35:03FromDiscord<Yardanico> 10000 maniacs and disruptek
09:35:28FromDiscord<haxscramper> Now I need to combine this with unicode names, nuglifier and some compile-time neural networks to make perfect unreadable code
09:36:45FromDiscord<Yardanico> Seems like GCC can do ~100k pointer indirections easily
09:36:58FromDiscord<Rika> yardanico what the fuck?
09:37:05FromDiscord<Yardanico> Visual Studio 2010 fails at 2k
09:37:12FromDiscord<Yardanico> I'm reading that SO question
09:37:20FromDiscord<Yardanico> And answers
09:37:37FromDiscord<Rika> oh i thought you fuckin tested it lmao
09:38:05FromDiscord<kodkuce> @treeform i cant ignore it when it crashes my program
09:38:07FromDiscord<haxscramper> Someone here was compiling function with 10^10^10 arguments or something like that - has compiler finished already or they just burned their PC in process?
09:38:19narimiransomeone = PMunch
09:38:19FromDiscord<haxscramper> Or this is still compiling
09:38:51FromDiscord<Rika> hax the computer died mid-compile
09:38:54FromDiscord<Rika> but not because of the compiling
09:38:58FromDiscord<Yardanico> It didn't die
09:39:05FromDiscord<Rika> turned off
09:39:05FromDiscord<Yardanico> The resources were needed for other stuff
09:39:06FromDiscord<Rika> i think
09:39:09FromDiscord<Rika> oh
09:39:13FromDiscord<Rika> i dont have good memory
09:39:17FromDiscord<Yardanico> It consumed a lot of GBs of RAM
09:39:20FromDiscord<Rika> i know
09:39:23FromDiscord<Yardanico> More than 100iirc
09:39:25FromDiscord<Rika> i was there with them
09:39:27FromDiscord<Rika> i know
09:39:29FromDiscord<Yardanico> Me too
09:39:30FromDiscord<Yardanico> I know
09:39:34FromDiscord<Yardanico> i was there
09:39:53Araqwho cares... why not profile the compiler against a real program?
09:39:54FromDiscord<Rika> #1millionargumentsgang ?
09:39:55FromDiscord<Rika> xddd
09:40:09FromDiscord<Rika> araq, we werent doing this seriously, it was just as a joke or so
09:40:15Araqthere should be some low hanging fruit by now
09:40:19FromDiscord<Yardanico> @Araq just compile release compiler builds with PGO instead :P
09:40:42Araqas the core compiler devs have no time for optimization...
09:42:35*supakeen does the optimization dance
09:43:00PMunchWell, the entire machine locked up while I was at work using it..
09:43:00*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
09:43:18PMunchSo I kinda had to reboot so I could actually do some work..
09:43:22FromDiscord<Yardanico> need to ask some supercomputer guys
09:43:31FromDiscord<Yardanico> So they give us exclusive access for 1 month
09:43:36FromDiscord<Yardanico> to a supercomputer
09:44:17FromDiscord<Rika> wonder how much that'd costr
09:44:27FromDiscord<Yardanico> they'll do it for free
09:44:33FromDiscord<Rika> why?
09:44:37FromDiscord<Rika> lol
09:45:02FromDiscord<kodkuce> sent a long message, see http://ix.io/2AbB
09:45:18FromDiscord<Yardanico> time to die, kill, etc
09:45:27FromDiscord<Yardanico> Your style of communication is interesting
09:45:29FromDiscord<Yardanico> To say the least
09:45:32FromDiscord<Yardanico> XD
09:45:54FromDiscord<kodkuce> my? hmm duno i find it normal
09:46:23FromDiscord<Yardanico> "who wrote" - most async modules were made by dom
09:46:29FromDiscord<Yardanico> if not all
09:46:36FromDiscord<kodkuce> @dom96 you dead
09:46:37FromDiscord<kodkuce> xD
09:46:42supakeenIt's great to wish death upon someone for contributing code, that really makes them enjoy it.
09:46:43supakeen...
09:47:46FromDiscord<kodkuce> lol i am not really wishing, just complaining in my maner
09:47:59FromDiscord<kodkuce> (edit) 'lol i am not really wishing, just complaining in my ... maner' => 'lol i am not really wishing, just complaining in my*childish*'
09:48:02FromDiscord<Yardanico> Other people might not understand that
09:48:12supakeenHow should I interpret that if not to complain about the code someone else wrote for you?
09:48:31supakeenBut yes, it doesn't come off as friendly even in a joking way especially on a text medium :)
09:49:41PMunchkodkuce, what is wrong with AsyncSocket?
09:49:42*jjido joined #nim
09:50:46FromDiscord<kodkuce> it is complain, like something is really broken ( or at least i 95% think ), whats bad with complaining , its like i open an github issue like a bug report( with bonus of kills and death threaths xD )
09:51:03FromDiscord<kodkuce> hmm it crashes when run behind nginx
09:51:23FromDiscord<kodkuce> https://forum.nim-lang.org/t/6903
09:52:07FromDiscord<Yardanico> but are you sure that asyncnet code is the problem?
09:52:07FromDiscord<kodkuce> when i proxy_pass to app it crashes, error goes out of try: except: or soemthing duno
09:52:30FromDiscord<kodkuce> how can i narrow it down more, hmm duno if i can proxypass nginx directly to asyncnet
09:54:08FromDiscord<Rika> Async doesn't work well with try except, try using error callbacks I think is what we use here
09:55:23*leorize quit (Ping timeout: 240 seconds)
09:55:24FromDiscord<kodkuce> wierd issue if not run behind nginx it works no problem
09:55:44FromDiscord<kodkuce> i dont get any error when i try to close connection
09:57:50FromDiscord<kodkuce> @Rika error callbacks, duno if my duck duck go broken or what but it does not show when i search "error callbacks nim"
09:58:03*leorize joined #nim
09:58:14FromDiscord<Rika> https://nim-lang.org/docs/asyncdispatch.html#asynchronous-procedures-handling-exceptions
09:58:45FromDiscord<kodkuce> ok will try that
09:58:45supakeenIt feels as if you're not (or something is not) properly handling connections being closed, the traceback reads as if something is reading from an fd that has already closed.
09:59:00supakeenAs to why that happens, nginx and your command line test probably have different ideas of when to close connections.
10:00:07*NimBot joined #nim
10:00:28supakeenIf I had to crystal ball it, asynchttpserver probably closes the connection after a request is complete and `ws` expects it to be open.
10:02:24*leorize quit (Remote host closed the connection)
10:02:49*leorize joined #nim
10:03:47*leorize quit (Remote host closed the connection)
10:04:13*leorize joined #nim
10:05:40FromDiscord<kodkuce> possible duno, i am trying to do my part and narrow it down as much as i can, but i really did not wrote any of those stuff to be able to fix it
10:05:49FromDiscord<kodkuce> will try this yield stuff
10:06:40*arecacea1 quit (Remote host closed the connection)
10:07:04*arecacea1 joined #nim
10:08:04FromDiscord<kodkuce> https://media.discordapp.net/attachments/371759389889003532/764066642161696788/2020-10-09_120548.png
10:08:45FromDiscord<kodkuce> this ok right?, i can leave try except even if i yield fut, that wont make problem or to remove it?
10:16:34FromDiscord<kodkuce> @Rika i would suck your banana if i was a gril, using this fut and yield stoped crashing the app
10:16:45FromDiscord<Rika> :ThonkDumb: that's weird
10:16:58FromDiscord<kodkuce> all hail @Rika bringer of prosperity
10:16:59FromDiscord<Rika> it should give the error
10:17:05idferhm
10:17:17FromDiscord<Rika> if its suddenly working then somethings super wrong with your code lol
10:17:27FromDiscord<kodkuce> hmm, sorry i did not echo GetCurrentErorr
10:17:34narimiranand he was ' ' this close to stop using nim and go to rust..... :rolleyes:
10:17:43FromDiscord<kodkuce> incoming stream error of doom
10:18:06narimirannow he wishes he was a grill
10:18:17idfhbo and grill
10:18:39FromDiscord<kodkuce> ok i kill you all
10:18:45FromDiscord<kodkuce> i gona check 1 more thing
10:18:47idfcome and get me
10:18:59FromDiscord<Rika> lol please do
10:20:14PMunchHmm, now I kinda want a grilled chocolate banana..
10:20:35euantoranoInteresting thread: https://discuss.ocaml.org/t/is-there-a-known-recent-linux-locking-bug-that-affects-the-ocaml-runtime/6542/11
10:20:40FromDiscord<kodkuce> i newer eated that in my life is it good?
10:20:49PMunchPretty tasty
10:20:51idfchocolate babana
10:20:53PMunchUsed to do it in scots
10:20:57PMunchscouts*
10:21:41FromDiscord<Vindaar> crazy world we live in, huh? Norwegian scouts eating grilled chocolate bananas 🤔
10:22:10idfembrace the monki way, eat bananas
10:22:16FromDiscord<kodkuce> can i read error if i do yield fut?
10:22:23PMunchTake a banana and slice it open along its side, push chocolate squares into the slit, then wrap the banana in foil. Put it in or close to the fire and leave it until the banana is hot and the chocolate has melted
10:22:38FromDiscord<Vindaar> sounds yum yum
10:22:56idfwhat if i let it freeze instead
10:23:03idfafter i melt it
10:23:18PMunchWell if you freeze bananas and blend them you get a pretty nice ice cream consistency
10:23:26idfyummy
10:23:37PMunchYup
10:23:38*Trustable joined #nim
10:23:42FromDiscord<kodkuce> i eat a lot of bananas am scared sometimes that i will get my output stuck from them, i head friend he eated like 7-8 in a row head to go to hospital to unpulg, no gey context pls
10:24:04idfcool story
10:24:15FromDiscord<Vindaar> you should worry about all that radiation poisoning from eating too many bananas /s
10:24:28FromDiscord<kodkuce> rad poisening? wtf
10:24:31FromDiscord<Rika> @kodkuce `theFuture.error` returns the exception, just echo `theFuture.error.msg`
10:24:35FromDiscord<Vindaar> bananas are radioactive
10:24:41FromDiscord<kodkuce> ty rika
10:24:47*apahl quit (Ping timeout: 240 seconds)
10:24:50idfyou can grow like another eye if you eat too many bananas
10:24:50narimirannot the bananas that kodkuce likes
10:24:55FromDiscord<kodkuce> evrything is radioactive but are banans too much? grown in chernobil
10:24:57FromDiscord<Vindaar> hahaha
10:25:07FromDiscord<kodkuce> narimiran you are close i can kill you easy
10:25:12FromDiscord<Rika> everything is radioactive to an extent
10:25:22narimiranhere we go again, 1990 happening once again
10:25:29FromDiscord<Vindaar> well, yes. They are one of the most radioactive foods, if you want to be picky about it
10:25:31narimiranserbs threaten to kill some croats
10:25:51FromDiscord<Rika> loool
10:25:52PMunchHaha, I think you die from potassium overdose before you die from radiation poisoning :P
10:25:53idfromania just vibing after the revolution
10:26:09*apahl joined #nim
10:26:16FromDiscord<kodkuce> hmm narimiran i frogot you croat i tough you from romania
10:26:34FromDiscord<kodkuce> i changed your national indetity even worse xD
10:26:51PMunchWhat do you mean worse, plenty of nice Romanians
10:27:06idfme
10:27:12narimiranWhat do you mean worse, plenty of shitty Croatians
10:27:34FromDiscord<Rika> > Haha, I think you die from potassium overdose before you die from radiation poisoning :P↵hyperkalemia, hyper meaning ... kal meaning potassium, emia meaning in blood etc etc i forgot what he says exactly
10:27:39idfCroamania
10:28:06FromDiscord<kodkuce> Exception message: Bad file descriptor↵ok i still get this but at least now it does not crash app
10:28:11narimiranidf: who do you call Cromagnon?
10:28:24PMunchHyperkalemia, that's the word I was looking for!
10:28:31idfCroissant
10:28:56PMunchI was trying hypervitaminosis K until I remembered that vitamin K != elemental K
10:29:01FromDiscord<Rika> pmunch you need to watch more chubbyemu videos
10:29:11PMunchChubbyEmu?
10:29:22idfah the first european humans
10:29:22FromDiscord<Rika> search em on youtube 😛
10:29:54FromDiscord<kodkuce> i mean worse like i am not just killing you i am taking your identity no special thinking about that simple math, just killing vs changing identity + killing :)
10:30:57idfalso telling the story of how a friend had to cleanse his banana output while you do it
10:31:15FromDiscord<Rika> did they mistake it for an innuendo
10:31:31FromDiscord<kodkuce> i eat almost evry day at least 2-3 bananas
10:31:35idfgood
10:31:55PMunchWhere do you get all the bananas from?!
10:32:20idfmonkey companions
10:32:24PMunchDo you just get like a whole grocery bag full of just bananas every time you go shopping?
10:32:38FromDiscord<Rika> return to monke
10:32:43idf^
10:33:31FromDiscord<kodkuce> like i go to shop and am like what should i eat, salamy=beh, chese=beh, tuna=meybe, banana=golden, whenewer i go to shop i think they selling me some retarded food so i almost allwes end up buying just fruit
10:33:41FromDiscord<kodkuce> duno what to eat i buy fruit
10:33:50FromDiscord<kodkuce> and i duno what to eat a lot of time
10:34:12idftrue monki way
10:35:14FromDiscord<kodkuce> nah i go evry day to shop but ye i buy 4-7banans tough other people eat them too, have to kill them so i they stop stealing my golden stuff :)
10:36:30FromDiscord<Rika> he has embraced the monke
10:37:41*dv-^_^6193923 joined #nim
10:40:04*dv-^_^619392 quit (Ping timeout: 265 seconds)
10:50:04FromDiscord<kodkuce> i got profile img upgrade
10:50:13FromDiscord<kodkuce> https://media.discordapp.net/attachments/371759389889003532/764077247706955797/monkeyUpgrade.png
10:51:06*Trustable quit (Remote host closed the connection)
10:55:10FromDiscord<kodkuce> so for async i should use allwes fut yield from now on, that will awiat right, but if i dont want to w8 or give a crap about, like asyncCheck, guessing cross fingers and hope for best :)
10:56:11*dv-^_^6193923 quit (Quit: The Lounge - https://thelounge.chat)
10:57:25*dv-^_^6193923 joined #nim
11:00:18FromDiscord<kodkuce> guess i kill them all, time to go to shop buy some more energy
11:02:25*BitPuffin quit (Quit: killed)
11:02:26*unclechu quit (Quit: killed)
11:02:26*leorize[m]1 quit (Quit: killed)
11:02:27*stisa[m] quit (Quit: killed)
11:02:28*k0mpjut0r quit (Quit: killed)
11:02:28*brainbomb[m] quit (Quit: killed)
11:02:31*MTRNord[m] quit (Quit: killed)
11:02:33*reversem3 quit (Quit: killed)
11:02:33*guelosk[m] quit (Quit: killed)
11:02:33*silvernode[m] quit (Quit: killed)
11:02:35*VijayMarupudi[m] quit (Quit: killed)
11:02:39*jaens[m] quit (Quit: killed)
11:02:39*hnOsmium0001[m] quit (Quit: killed)
11:02:41*solitudesf1 quit (Quit: killed)
11:02:45*Helios quit (Quit: killed)
11:02:45*GitterIntegratio quit (Quit: killed)
11:02:48*leorize[m] quit (Quit: killed)
11:02:51*planetis[m] quit (Quit: killed)
11:02:51*ee7[m] quit (Quit: killed)
11:08:14FromDiscord<Clyybber> this chat is pretty monke rn
11:08:17FromDiscord<Clyybber> i likey
11:11:18PMunchI like how you wrote monkey without the Y but added one to the word like
11:11:34*VijayMarupudi[m] joined #nim
11:16:20idfmonky
11:17:02PMunchAh
11:17:16PMunchI now realise that he also missed an e :P
11:17:32FromDiscord<Clyybber> monk
11:17:45PMunchey
11:20:10*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
11:25:16FromDiscord<Clyybber> narimiran: regarding npeg, I think a when declared(expectIdent) should be fine
11:30:53FromDiscord<Rika> pmunch, `monke/monky` is a joke spelling
11:31:04PMunchI know :P
11:32:17FromDiscord<Rika> your messages imply otherwise
11:33:47*krux02_ joined #nim
11:34:26*krux02 quit (*.net *.split)
11:34:26*Jesin quit (*.net *.split)
11:34:26*axion quit (*.net *.split)
11:34:26*giaco quit (*.net *.split)
11:34:26*fowl quit (*.net *.split)
11:34:26*enthus1ast quit (*.net *.split)
11:34:40*fowl joined #nim
11:34:49*Jesin joined #nim
11:35:02*giaco joined #nim
11:36:03*hnOsmium0001[m] joined #nim
11:36:03*BitPuffin joined #nim
11:36:03*Helios joined #nim
11:36:03*leorize[m]1 joined #nim
11:36:04*brainbomb[m] joined #nim
11:36:04*jaens[m] joined #nim
11:36:04*GitterIntegratio joined #nim
11:36:04*lnxw37d4 joined #nim
11:36:04*planetis[m] joined #nim
11:36:04*MTRNord[m] joined #nim
11:36:04*unclechu joined #nim
11:36:04*k0mpjut0r joined #nim
11:36:10*solitudesf1 joined #nim
11:36:10*silvernode[m] joined #nim
11:36:10*guelosk[m] joined #nim
11:36:14*reversem3 joined #nim
11:36:18*leorize[m] joined #nim
11:36:18*stisa[m] joined #nim
11:36:23PMunchWell I felt this was slightly to terse: "While I am aware of the whimsical connotation of the spelling 'monke' I would like to point out that I found it amusing that when combined with the equally whimsical 'likey' it almost appears as if @Clyybber simply moved some of the letters from the correct spelling of 'monkey' over to the the word 'like'"
11:36:30PMunchs/to/too
11:37:28FromDiscord<Rika> `over too the the`?
11:37:35FromDiscord<Rika> you repeated the twice too lol
11:39:03PMunchNo I meant the "to terse" part :P
11:39:12PMunchBut yeah the double "the" was also an error :P
11:39:27PMunchI was typing that while distracted and looking at something else
11:40:11*ee7[m] joined #nim
11:40:11*axion joined #nim
11:40:11*enthus1ast joined #nim
11:40:13*ee7[m] quit (Changing host)
11:40:13*ee7[m] joined #nim
11:46:58FromDiscord<lqdev> hold up, did anybody say monk?
11:49:16FromDiscord<Rika> pmunch, i was making a joke on how sed would actually apply that
11:50:02PMunchIt wouldn't though, I didn't specify /g so it would only do the first occurrence
11:51:52FromDiscord<Rika> mm, forgetful about me always involuntarily adding /g when i use it so
11:55:06Zevvclyybbeer: see, nothing good coming from your nonsense patch! :)
12:00:06*mmohammadi981266 joined #nim
12:01:13krux02_PMunch: I often look at something else while typing.
12:01:23*krux02_ is now known as krux02
12:06:02*supakeen quit (Quit: WeeChat 2.9)
12:06:38*supakeen joined #nim
12:08:20*nyd joined #nim
12:10:14*mmohammadi981266 quit (Quit: I quit (╯°□°)╯︵ ┻━┻)
12:13:44*mmohammadi981266 joined #nim
12:15:41*muffindrake joined #nim
12:16:49*mmohammadi981266 quit (Client Quit)
12:17:07PMunchkrux02, I tend to do that as well
12:17:30PMunchSuper fun to look straight at someone and type fast without breaking eye contact :P
12:17:37PMunchReally freaks people out
12:18:12idfi thought im the only one that likes to do that
12:18:23*rockcavera joined #nim
12:19:24*mmohammadi981266 joined #nim
12:19:51idfsometimes i even start random programs in the back, that seems to be like horror content
12:20:01*abm quit (Ping timeout: 264 seconds)
12:20:13krux02PMunch: true
12:20:41krux02PMunch, but more and more people learn typing on a smartphone or tablet.
12:20:46PMunchidf, yeah "normal" people are really freaked out but scrolling text on a block background for some reason :P
12:21:27PMunchkrux02, huh haven't really thought about that before. Most kids these days will learn typing on their touch screens before they learn typing on a keyboard..
12:21:30krux02PMunch, Hollywood hacker montage
12:22:16krux02I certainly played on my fathers PC before I could even read.
12:22:19PMunchOn those nice projector monitors that makes it so you can read the text on their faces :P
12:22:44krux02yes
12:23:03krux02but then the sourcecode is scrolling by really fast and the hacker is typing nonstop
12:23:08PMunchI think I actually had my own lap-top before I could read properly
12:23:19idfi always made people around me uncomfortable when i started compiling anything that took more than 1 second to compile
12:23:22PMunchAnd way before I knew enough English to read any of the menus :P
12:23:37idfi used to play a lot of games on the family PC
12:23:39idfgood times
12:23:53idfi think i learned how to write at the keyboard before learning how to write by hand
12:24:01PMunchkrux02, yeah I'm always amazed by how the hackers somehow type JavaScript at full speed without any refactoring and stuff happens as they write
12:24:38krux02they have superpowers
12:25:08krux02and then they talk some nonsense about encryption
12:25:15idfI used to recreate that sort of effect on an old computer at a lab by taking a really long JS code from some random website and then pasting it
12:25:21idfthe computer would write every line so slow
12:25:22krux02and ever Hollywood hacker can hack encryption in no time
12:26:16idfgotta love that instant bruteforcing
12:27:19krux02I also like those 3D Worlds in Hacker movies
12:28:34FromDiscord<lqdev> how can i assemble a closure back from rawEnv and rawProc?
12:30:43*leorize quit (Ping timeout: 240 seconds)
12:32:27FromDiscord<dom96> > so for async i should use allwes fut yield from now on, that will awiat right, but if i dont want to w8 or give a crap about, like asyncCheck, guessing cross fingers and hope for best :)↵@kodkuce yeah, just keep guessing until it works, best way to write software
12:33:16FromDiscord<kodkuce> xD
12:33:18FromDiscord<dom96> In all seriousness though, blame async only when you've ruled out other possibilities. Afaik you haven't.
12:33:39FromDiscord<kodkuce> hmm, i was narrowing down as much as i could
12:34:21FromDiscord<kodkuce> but i think it is async realted, when i yield it does not crash app and when i dont it does
12:35:17FromDiscord<kodkuce> does that confirm the issue? i would like to know more but duno how to investagete more thats why i asked and posted forum thread, i am just a padwan and i need master help to ascend
12:35:53FromDiscord<dom96> `await fut` is the same as `yield fut; fut.read()`
12:36:06FromDiscord<dom96> calling `read` raises if `fut` has failed
12:36:47idfinteresting
12:40:30FromDiscord<kodkuce> hmm but with this yield fut.failed i can chedk if it faild so i dont read() so that solves my problem
12:41:25FromDiscord<kodkuce> so normal ```awiat fut``` does not check ```if fut.isfailed```
12:41:40FromDiscord<dom96> `try: await fut; except: echo(getCurrentExceptionMsg())` should be the same as `yield fut; if fut.failed: echo(fut.error.msg)`
12:41:54FromDiscord<dom96> if you found a case where it does not behave the same way then that's a Nim bug
12:41:57FromDiscord<dom96> not an async bug
12:42:15FromDiscord<dom96> since the `try` transformation is now handled by the Nim compiler
12:42:38FromDiscord<kodkuce> hmm will check gain on my minimal example
12:43:00FromDiscord<dom96> if you can give simple instructions on how to reproduce it that would be awesome
12:43:50FromDiscord<kodkuce> i allready have one but its kinda complicated cuz this crash only heppends when proxy_passed behind nginx
12:45:55FromDiscord<dom96> ahh, ouch. Well, nginx setup shouldn't be too difficult, but I doubt Araq will do it 🙂
12:46:21PMunchMaybe if you wrap it in a docker container?
12:48:19FromDiscord<kodkuce> am gona retest now
12:48:34FromDiscord<dom96> That depends on Docker then, which yeah, I suppose is easier to set up
12:51:14PMunchAh forgot that Docker might be tricky to set up on Windows
12:51:29FromDiscord<kodkuce> hmm
12:51:41FromDiscord<kodkuce> i think that this error is allready fixed
12:51:43FromDiscord<kodkuce> maybe
12:51:50FromDiscord<kodkuce> i changed to devel
12:51:54FromDiscord<kodkuce> and now no error
12:52:02FromDiscord<kodkuce> when i go back to stable it crashes
12:52:04FromDiscord<dom96> what version were you using before?
12:52:10FromDiscord<kodkuce> will recheck again
12:52:34FromDiscord<kodkuce> Nim Compiler Version 1.2.6 [Linux: amd64]
12:52:38FromDiscord<kodkuce> crashes
12:53:12FromDiscord<kodkuce> Nim Compiler Version 1.3.7 [Linux: amd64] works
12:53:20FromDiscord<kodkuce> i think am going recheck 5 more times
12:53:22idfdamn im still on 1.3.5
12:57:21FromDiscord<kodkuce> ok runed 5 times on 1.3.7 working each time with no if future failed with just await
12:57:34FromDiscord<kodkuce> will now test on 1.2.6 again
12:59:00Araqmy computer works again, including my graphics card
12:59:02FromDiscord<kodkuce> yep on 1.2.6 it crashes when behind nginx
12:59:19FromDiscord<kodkuce> will now check again if fut.isfailed
12:59:31supakeenThe 'behind nginx' is likely just because it exposes the bug by closing the connection at a time that it's in that await.
13:02:38FromDiscord<kodkuce> fut.failed crashes too on 1.2.6 , @dom96 you were right, guess that using yield did not help me at all just same time i did switch to devel
13:03:31FromDiscord<dom96> interesting
13:03:52FromDiscord<dom96> it's possible that the bug might still be there but that you're just getting lucky with devel unfortunately
13:04:40FromDiscord<kodkuce> can i somehow sacrifice myself for future of Nim?
13:05:54supakeendom96: can we at some point have a chat about the FTP progressInterval PR thingy? I'm kinda neutral on it but making benchmarks and stuff for it is a bit of effort :)
13:06:08supakeen(that I'd rather not do if you don't see the point :))
13:08:24*bunbunbunbunny joined #nim
13:09:38*leorize joined #nim
13:10:51PMunchI liked that PR for what it's worth supakeen
13:12:04supakeenSo do I :)
13:13:45supakeenBut for the weekend I want to focus on the `parseHeader` one and the testcases for asynchttpserver :)
13:13:56AraqError: satisfy the dependency on chronos 2.5.2 and chronos 2.3.9
13:14:24Araq Error: Cannot satisfy the dependency on chronos 2.5.2 and chronos 2.3.9
13:14:36*Araq sighs...
13:16:42*vicfred quit (Quit: Leaving)
13:16:59*Araq removes .nimble/pkgs/chronos-2.3.9
13:17:09Araq--> Nimble succeeds.
13:17:31Araqsee? and this is why a global $nimbledir is such a bad idea.
13:18:26FromDiscord<mratsim> well nimble uninstall and update are meh
13:18:48FromDiscord<shashlick> mkdir nimbledeps
13:18:55FromDiscord<mratsim> at times I get stuck with foo-#head, foo-#master and foo-#0.1.0 and I have to nuke the whole thing
13:20:49FromDiscord<shashlick> I'm not a fan of #head since it gets stuck at that version
13:23:19*rockcavera is now known as Guest24600
13:23:20*Guest24600 quit (Killed (verne.freenode.net (Nickname regained by services)))
13:23:20*rockcavera joined #nim
13:23:30Araqnimbledeps?
13:23:37Araqoh hell yeah
13:23:44leorize[m]1can't you just forbid `#commit` from being used in `nimble build` unless explicitly specified by the nimble file?
13:24:02FromDiscord<haxscramper> On `devel` my custom nimble task fails with `Error: cannot evaluate at compile time: projectFile`, but on `stable` everything works fine.
13:24:30FromDiscord<shashlick> @haxscramper please open a bug with details
13:24:59FromDiscord<shashlick> https://github.com/nim-lang/nimble/issues/318#issuecomment-514453293 regarding #head
13:25:01disbot#head versions are not updated upon nimble install ; snippet at 12https://play.nim-lang.org/#ix=2AcB
13:25:21FromDiscord<shashlick> #commit isn't a problem since it doesn't change with time
13:26:22leorize[m]1doesn't `#commit` face the same issue as `#head`?
13:27:34FromDiscord<shashlick> Head changes with time, #commit doesn't
13:27:38*narimiran quit (Ping timeout: 260 seconds)
13:27:55FromDiscord<shashlick> See my comment in the link above
13:28:02*waleee-cl joined #nim
13:28:21FromDiscord<dom96> Araq: why are you still using global deps then? 🙂
13:29:14FromDiscord<shashlick> @dom96 I've seen that dependency error as well - we need to look into it
13:29:50FromDiscord<shashlick> It's not even because of a < condition
13:30:21FromDiscord<dom96> I have an idea about the cause
13:31:03FromDiscord<shashlick> https://github.com/nim-lang/nimble/issues/505
13:31:05disbotDependency resolution depends on the order in `requires` ; snippet at 12https://play.nim-lang.org/#ix=2AcC
13:31:06FromDiscord<dom96> although hm, nimble should pick the latest version when it's a `>=` condition
13:31:11FromDiscord<dom96> so not sure how this could have happened
13:31:42FromDiscord<dom96> my guess is that there are two package depending on chronos, and Nimble picks a different version for each for some reason
13:31:50FromDiscord<dom96> (edit) 'package' => 'packages'
13:32:32FromDiscord<shashlick> The basic problem is that nimble needs to download the entire repo to know pkg info
13:34:16FromDiscord<haxscramper> > please open a bug with details↵@shashlick I cannot really reproduce this as a standalone example, the issue is most likely somewhere in my code rather than nimble.
13:34:19FromDiscord<dom96> Araq: can you report this with a repro?
13:35:27FromDiscord<shashlick> @haxscramper you can share your repo info or the contents of your task or something
13:39:39FromDiscord<haxscramper> The task itself is https://github.com/haxscramper/hmisc/blob/master/hmisc.nimble#L23 , `runDockerTest` is https://github.com/haxscramper/hmisc/blob/master/src/hmisc/other/nimbleutils.nim#L18 . I checked all parts separately (e.g. `shellExec`, `thisDir()` etc.) in new nimble project on devel and there is no issues
13:42:42PMunchHmm, unescape doesn't do \n..
13:45:55PMunchIn fact it doesn't seem to do anything..
13:50:40FromDiscord<kodkuce> @dom96 i think you are right again, on my more complicated game code it crashes again :(, anwya have to go to doctor now, will recheck my complicated code if i proper try catch but i am allready shure i am doing it proper
13:50:49FromDiscord<kodkuce> when i come back
13:50:51FromDiscord<kodkuce> cya leater
13:51:20PMunchThis is weird, it seems to work on the playground
13:52:20PMunchOh no wait
13:52:52PMunchNo doesn't work in the playground either: https://play.nim-lang.org/#ix=2AcE
13:59:11OddmongerVim users, do you have something for tags ? Basically, i just want jumping quickly from a function to another…
13:59:28FromDiscord<lqdev> marks?
13:59:55FromDiscord<lqdev> you set a mark with `m<letter>` and jump to it with `'<letter>`
14:00:27FromDiscord<lqdev> eg. you can set up a mark for your file's types section using `mt` and jump to it using `'t`
14:00:32Oddmongerah yes i use that already for back and forth modifications, but for functions, it's harder to remember all
14:00:44FromDiscord<lqdev> true
14:00:57FromDiscord<lqdev> maybe leorize could implement a command for jumping to functions
14:01:13Oddmongeri was using tagbar with C and Lua, but it needs ctags
14:02:39leorize[m]1`gO`
14:02:52leorize[m]1which will give you the outline of the current file
14:03:25FromDiscord<lqdev> also `[[` and `]]` work
14:03:44leorize[m]1then you can jump around with that
14:03:46FromDiscord<lqdev> oh that gO thing is cool, thanks leorize
14:04:05FromDiscord<lqdev> is there any way you can hide certain things in the outline?
14:04:10leorize[m]1it's the closest that I can get to "jump around the project" with the current nimsuggest
14:04:11FromDiscord<lqdev> ie. fields and vars
14:04:36leorize[m]1open a feature request then :P
14:04:50Oddmongeryes gO is great, thank you
14:05:50leorize[m]1though I won't get to them until I figured math out (I hate studying)
14:06:07leorize[m]1I really should document nim.nvim a bit more :p
14:07:12PMunchHmm, in does escape \x0A
14:07:19PMunchOr unescape rather
14:10:14FromDiscord<lqdev> leorize: https://github.com/alaviss/nim.nvim/issues/36
14:10:15disbotImprove gO outline
14:11:08leorize[m]1hmm I actually don't even know that outline can do fields
14:11:54FromDiscord<lqdev> today you learned :)
14:12:59leorize[m]1re: signature, this is hard since nimsuggest doesn't give them to me, I could run a bunch of `def` to get them but it would slow the process down significantly
14:13:35leorize[m]1(it will still be async so you won't notice a thing, but it will take longer for the window to pop up)
14:15:55FromDiscord<Clyybber> Zevv: heh, true.
14:16:00FromDiscord<lqdev> maybe you could initially fill in the outline sparsely and then update it with additional details asynchronously?
14:17:06leorize[m]1I can, if you're patient enough to wait for the entire thing to populate :P
14:17:26leorize[m]1re: filtering, do you want a blacklist or a whitelist?
14:17:32leorize[m]1I can actually do both tbh
14:18:09FromDiscord<lqdev> i'd prefer a blacklist for my use case
14:18:14FromDiscord<lqdev> as i just want to hide noise
14:18:20FromDiscord<lqdev> and show everything else
14:19:59*luis joined #nim
14:21:00FromDiscord<Clyybber> Zevv, narimiran: https://github.com/zevv/npeg/pull/27/files
14:21:01disbotBe compatible with 1.0
14:22:44AraqClyybber: seen my messages?
14:23:05AraqI fear your typed changes cause a regression that keeps 1.4 from compiling Status's code
14:23:17Araqor maybe it's things I changed
14:25:02Zevvclyybber: ta
14:29:39FromDiscord<Clyybber> Araq: Hmm, have a link?
14:30:14Araqhttps://github.com/status-im/nim-eth/issues/300
14:30:14disbot"internal error: environment misses: peerOrResponder" - with latest Nim-1.4-RC
14:39:24*PMunch quit (Quit: leaving)
14:40:39*arecacea1 quit (Remote host closed the connection)
14:41:46*arecacea1 joined #nim
14:44:00FromDiscord<Clyybber> Ok, I'm investigating
14:45:17*luis quit (Read error: Connection reset by peer)
14:45:22*bunbunbunbunny quit (Ping timeout: 246 seconds)
14:52:52FromDiscord<lqdev> can i .passC to all .compiled files?
14:53:06FromDiscord<lqdev> i know there's .localPassC but that only affects the current module, no?
14:56:40*bunbunbunbunny joined #nim
14:57:22*vicfred joined #nim
15:00:53*Trustable joined #nim
15:01:30*bunbunbunbunny quit (Ping timeout: 256 seconds)
15:02:35*jjido joined #nim
15:03:57Yardanicocrazy weeb, who likes Nim
15:05:20*jjido quit (Client Quit)
15:08:57FromDiscord<lqdev> yeah that's me but yard do you know the answer to my question?
15:09:03YardanicoI described myself
15:09:20FromDiscord<lqdev> we're similar then.
15:09:25Araqlqdev: why wouldn't you?
15:09:33Araqis .passC not a pragma?
15:09:52FromDiscord<lqdev> Araq: it is, but it also passes the flags to other compiled modules
15:10:06FromDiscord<lqdev> from what i understand
15:10:16Araqas opposed to what?
15:10:36*a_chou joined #nim
15:10:39FromDiscord<lqdev> well, what i need to do is enable -ffast-math for all of chipmunk's .c files but not nim-generated .c files
15:11:37FromDiscord<lqdev> but i'm wondering whether i need -ffast-math or not at all
15:11:51AraqNim devel offers {.compile("file.c", "flags").}
15:12:00FromDiscord<lqdev> cool
15:12:01*jjido joined #nim
15:12:06FromDiscord<lqdev> so i guess i have to wait for 1.4 for now?
15:12:41FromDiscord<lqdev> or is it not planned for 1.4
15:13:12*jjido quit (Client Quit)
15:18:29*bunbunbunbunny joined #nim
15:18:47*bunbunbunbunny quit (Client Quit)
15:20:05*hyiltiz quit (Ping timeout: 240 seconds)
15:23:45leorize[m]1Araq: any dependency tracking built in so that I can replace `make`?
15:26:38FromDiscord<dom96> Does `make` do dependency tracking?
15:30:33*hnOsmium0001 joined #nim
15:31:52*tiorock joined #nim
15:31:52*tiorock quit (Changing host)
15:31:52*tiorock joined #nim
15:31:52*rockcavera is now known as Guest12943
15:31:52*Guest12943 quit (Killed (beckett.freenode.net (Nickname regained by services)))
15:31:52*tiorock is now known as rockcavera
15:33:30FromDiscord<lqdev> does nim have uintptr_t?
15:36:48FromDiscord<haxscramper> `ptr cuint` ?
15:36:53FromDiscord<lqdev> no
15:37:05FromDiscord<lqdev> uintptr_t is defined as `unsigned long int` on my machine
15:38:17Araqleorize[m]1: no.
15:38:55leorize[m]1@dom96: it tracks the timestamp
15:44:00FromDiscord<kodkuce> anyone wnats to try my alpha version of game
15:44:08FromDiscord<kodkuce> 1 and 2 is powerups
15:44:15FromDiscord<kodkuce> tough i think i fill powerup bar too fast
15:44:16FromDiscord<kodkuce> https://nooooo.duckdns.org/grammergame/
15:44:30FromDiscord<kodkuce> mojasifra is pass for kodkuce
15:44:48FromDiscord<kodkuce> but only 1 should join cuz double conn
15:45:03FromDiscord<kodkuce> and for some reason on auth rpi4 takes like 6sec to process
15:45:51FromDiscord<kodkuce> duno if rpi cant process this auth algo nice cuz on pc it takes like 0.1sec
15:46:42FromDiscord<kodkuce> i guess i should desiable login page and just limit players with ratelimit
15:47:44FromDiscord<kodkuce> ps pls dont DDOS me or do evil things :)
15:55:29leorize[m]1Araq: I mean does it track the .c hashes and/or timestamp?
15:58:56*NimBot joined #nim
15:59:15*Guest19493 quit (Quit: leaving)
15:59:25*WilhelmVonWeiner joined #nim
16:00:53*rockcavera is now known as Guest527
16:00:53*rockcavera joined #nim
16:02:52*tiorock joined #nim
16:04:13Yardanicoso after https://github.com/nim-lang/Nim/pull/15525 there's still one thing I noticed which I don't know if it's an bug or not
16:04:14disbotFix --gc:arc in nimscript
16:04:26Yardanicoso basically if you add gc = orc to your global .cfg or .nims, it works just fine
16:04:33*Guest527 quit (Ping timeout: 260 seconds)
16:04:35Yardanicobut if you then do "nim c --gc:refc myfile.nim" while having that config, it breaks
16:04:45*sealmove joined #nim
16:05:14YardanicoError: system module needs: nimGCvisit
16:05:20FromDiscord<dom96> leorize: pretty sure Nim tracks the hashes
16:05:35FromDiscord<dom96> I wouldn't call this "dependency tracking" though
16:05:43*rockcavera quit (Ping timeout: 260 seconds)
16:06:24FromDiscord<lqdev> i sometimes wonder why there's only one NEP 🤔
16:06:31Yardanicobecause we use RFCs
16:06:37FromDiscord<lqdev> yeah
16:06:43FromDiscord<lqdev> but why not stick with the name NEP
16:06:52Yardanicotoo similar to PEP
16:06:56YardanicoRFC sounds more professional
16:07:02FromDiscord<lqdev> RFC™
16:09:48sealmoveHey guys, I finally figured out a good plan for Nimitai. I think this time it will work! Check it out https://github.com/sealmove/nimitai
16:10:13leorize[m]1Yardanico: I thought that was the idea? :P
16:10:32Yardanicowell it's my subjective opinion :)
16:10:41Yardanicowe shouldn't always pose ourselves as "compiled python"
16:11:07leorize[m]1from what I can see NEP is reserved for guidelines and RFC is for actual features
16:13:29FromDiscord<dom96> AFAIK there are no specific rules of what term to use
16:13:38FromDiscord<dom96> we just tried NEP once and it didn't catch on for whatever reason
16:16:18Yardanicooh right time to test nimforum with orc
16:16:24Yardanicowith wrk
16:18:00FromDiscord<Clyybber> Yardanico: Thats a bug too
16:18:06FromDiscord<Clyybber> (the gc thin)
16:18:13Yardanicooh ok
16:18:14Yardanicowill open an issue
16:18:26*sealmove quit (Read error: No route to host)
16:20:25FromDiscord<Ricky Spanish> whats the difference between default gc and ```-gc:markAndSweep```?
16:20:50Yardanicohttps://nim-lang.org/docs/gc.html
16:21:47FromDiscord<shashlick> @dom96 - need your help on haxscramper's issue with nimble
16:22:05FromDiscord<dom96> okay, happy to help 🙂
16:22:09FromDiscord<shashlick> https://github.com/haxscramper/hmisc/blob/master/hmisc.nimble#L18 - they are using `thisDir()` at compile time
16:22:19FromDiscord<shashlick> which works fine on 1.2.6 but not on devel
16:22:23Yardanicoyay
16:22:29Yardaniconimforum backend with orc = codegen error
16:22:30Yardanicofun stuff
16:22:42Yardanicooh hmm
16:22:43FromDiscord<shashlick> this is because we added code to run nimscript without copying the nims file over
16:23:17FromDiscord<shashlick> projectFile is a var - https://github.com/nim-lang/nimble/blob/master/src/nimblepkg/nimscriptapi.nim#L47
16:23:32FromDiscord<shashlick> and populated in `getParams()` - https://github.com/nim-lang/nimble/blob/master/src/nimblepkg/nimscriptapi.nim#L66
16:23:42FromDiscord<shashlick> and that happens at so called runtime of the nims script
16:23:46FromDiscord<shashlick> any ideas what to do here
16:25:50FromDiscord<shashlick> basically we added an overload of `thisDir()` to return the right path to the nimble file
16:27:40Yardanicoam I doing something wrong? so nimforum doesn't compile because of incompatible strdup definitions in sass module (libsass wrapper)
16:27:41Yardanicohttps://play.nim-lang.org/#ix=2Ady
16:27:59Yardanicoit works if I explicitly add header: "string.h
16:28:00Yardanico"
16:28:44Yardanicohttps://github.com/dom96/sass/blob/master/src/sass.nim#L26
16:29:58FromDiscord<dom96> interesting, maybe something changes in sass
16:30:10Yardanicowell it works with normal backend, not with orc
16:30:14YardanicoI mean gc
16:30:18Yardanicobut doesn't work in a standalone example even with refc
16:30:20Yardanicoreally weird
16:30:25Yardanicobut I probably know why
16:30:32Yardanicomaybe it's because nim doesn't include string.h by default?
16:30:35Yardanicobut in a big app it does :P
16:31:06Yardanicoanyway I PRed a change
16:31:47FromDiscord<treeform> @treeform put a try catch around it and ignore (log it though).
16:32:24FromDiscord<dom96> shashlick: I'm not sure I understand, what does this have to do with the `projectFile` var error
16:32:39FromDiscord<dom96> @treeform you okay? You're talking to yourself
16:32:55FromDiscord<treeform> lol I meant to say @kodkuce
16:33:05FromDiscord<treeform> but I copied paste my name by accident
16:33:37FromDiscord<treeform> I don't get why @kodkuce has such a problem handling a single exception, when I saw that I gave it like 2 minutes of thought.
16:33:55FromDiscord<shashlick> @dom96 - thisDir() is not available at compile time given it is a var and projectFile is only defined at runtime
16:34:11FromDiscord<shashlick> (edit) 'it' => 'projectFile' | removed 'projectFile'
16:34:12Yardanicohttps://i.imgur.com/VNrcJAc.png nimforum once again meets orc
16:34:15Yardanicowill stress test it now
16:34:34FromDiscord<treeform> compile is wearied, readFile is support but not existsFile.
16:34:40FromDiscord<treeform> (edit) 'compile ... is' => 'compiletime'
16:35:58FromDiscord<dom96> @shashlick oh right, hm. Why does this break when the file is not copied?
16:36:24FromDiscord<shashlick> we added thisDir() into nimscriptapi because now we are running in a different directory
16:36:42FromDiscord<shashlick> earlier, it used the standard thisDir() which worked at compile time
16:37:03FromDiscord<shashlick> the version defined in nimscript.nim
16:37:32FromDiscord<shashlick> so basically i need to run getParams() at compile time and all the variables it populates need to get loaded at compile time
16:37:38FromDiscord<shashlick> then i need to copy all those into runtime variables
16:37:50FromDiscord<shashlick> seems like an ugly fix so am curious if there's a simpler way to do that
16:38:34*krux02 quit (Remote host closed the connection)
16:40:09FromDiscord<shashlick> i think i'll make them consts which get populated with getParams on definition
16:41:46FromDiscord<dom96> Go for it, I'll have a look at the PR and that might spur some ideas
16:41:56FromDiscord<dom96> If you can write a test for this also that would be awesome 🙂
16:43:56FromDiscord<shashlick> will do
16:44:47Yardaniconimforum with orc still leaks, but seems to be less than before
16:44:52Yardanicoseems to be 3mb per 95k reqs
16:44:58FromDiscord<kodkuce> @treeform cuz on 1.2.6 version when i wrap it with try catch it crashed escaped try catch even it should not, on devel version it does not
16:45:04*narimiran joined #nim
16:45:04Yardanicothat's with single threaded version
16:45:41FromDiscord<kodkuce> ofc i dont know what changed but now it works
16:46:16Yardaniconot sure why, but multithreaded version with ORC (httpbeast) is almost 4 times _slower_
16:46:20Yardanicoand also leaks much much much much more
16:46:31Yardanicolike 800mb for 27k reqs
16:46:47Yardanicoand that's on my 16 threads all of which were 100% loaded when stress testing with wrk
16:47:29Yardanicoso yeah, seems like multithreaded httpbeast and orc don't like each other at all
16:47:53Zevvleorize[m]1: My highlighting sometimes gets very confused by """ strings
16:47:56Yardanicohow does httpbeast handle GC stuff?
16:47:57Zevvis that a known issue?
16:48:52leorize[m]1yea, vim highlighter is terrible with multiline stuff. If you can give me a snippet demonstrating the issue I might be able to add more synchronization point to snap vim out of it
16:49:57leorize[m]1if you can deal with a bit of slowdown, use `:syntax sync fromstart` as a workaround
16:50:56Zevvright'o, that'll do, I can put it in my # vim: line for the files that hurt me
16:50:58leorize[m]1the issue with vim's highlighter is that it tries to optimize by parsing the part of the file that's on screen
16:51:36Zevvyeah that's understandable, and Nim is ambiguous when you fall in half way
16:51:53leorize[m]1if there's a `"""` and then you skips to somewhere else before the next `"""` is on screen, vim don't know that and it just assumes that the string keeps on going
16:51:59Zevvsur
16:52:48Yardanicosar
16:53:02FromDiscord<Rika> sor
16:53:13Yardanicoall of these are indian slang for "sir"
16:54:03Yardanicohttps://github.com/nim-lang/Nim/issues/14224#issuecomment-706290125 for reference (saved so it doesn't get lost)
16:54:04disbotTracking of some ARC bugs ; snippet at 12https://play.nim-lang.org/#ix=2l1L
16:54:28FromDiscord<himu> Anyone successful in adding icon for `.nim` using [vim-devicons](https://github.com/ryanoasis/vim-devicons) in nvim or vim? https://media.discordapp.net/attachments/371759389889003532/764168915261325322/unknown.png
16:55:18Yardanicohmm actually I can do a much simpler test
16:55:25Yardanicohttpbeast hello world
16:56:27Yardanicolmao
16:56:59Yardanicoor is a *bit* faster in single-threaded httpbeast helloworld example
16:57:02Yardanicoand does not leak any memory at all
16:57:20Yardanicoit's flat 2340kb
16:58:05Yardanicomulti-threaded refc does ~1.25mil reqs/s on my 3700X
16:58:31Yardanicohmm, weird, multi-threaded helloworld example with orc doesn't leak either
16:58:35Yardanicobut is ~3x slower
16:58:54FromDiscord<treeform> @kodkuce that is really strange
16:59:37FromDiscord<kodkuce> yes
16:59:40FromDiscord<kodkuce> it is :)
17:06:25*lbart quit (Ping timeout: 246 seconds)
17:07:34*lbart joined #nim
17:07:34*lbart quit (Changing host)
17:07:34*lbart joined #nim
17:08:42*egorbelibov quit (Ping timeout: 260 seconds)
17:14:18*lbart quit (Ping timeout: 272 seconds)
17:23:38*lbart joined #nim
17:23:38*lbart quit (Changing host)
17:23:38*lbart joined #nim
17:26:25FromDiscord<shashlick> @leorize - any feedback on https://github.com/dom96/choosenim/pull/227 - cc @dom96
17:26:26disbotFix Windows static build
17:31:23*leorize quit (Ping timeout: 240 seconds)
17:31:59*abm joined #nim
17:32:44*leorize joined #nim
17:39:14*nature joined #nim
17:45:35AraqYardanico, on my slightly less-trivial benchmark orc is 26 times faster
17:45:41Araq:P
17:45:47Yardanicofor httpbeast?
17:46:14FromDiscord<Clyybber> Araq: Tracking down the regression, seems to be caused by turning proc params into syms
17:46:20FromDiscord<Clyybber> I'm close to a minimal repro
17:47:02Prestigethat's a huge speed boost
17:47:09FromDiscord<Clyybber> it seems that status will skip 1.4 anyways tho
17:47:17AraqYardanico, no, for my own "benchmark"
17:47:24Yardanicowell I don't doubt that :)
17:47:31AraqClyybber: no.
17:47:34YardanicoI'm just comparing httpbeast which is used by jester and nimforum
17:47:44Yardanicoi mean by jester
17:47:49FromGitter<0ffh> q: i've overloaded `[]` in a template with an untyped index and it works fine. ⏎ but at one point i want to use a slice for indexing, that doesn't work and i can't find documentation for this case. ⏎ any hints?
17:47:54FromDiscord<Clyybber> Araq: wdym?
17:48:32AraqStatus will use 1.4, maybe not 1.4.0 but 1.4.x
17:48:38FromDiscord<Clyybber> yeah
17:48:59FromDiscord<Clyybber> I suspect its an easy fix anyways
17:49:58AraqI'm looking forward to it
17:52:46FromDiscord<Avatarfighter> Hello hello everyone 🙂
17:52:53FromDiscord<Clyybber> @Avatarfighter hi
17:53:03FromDiscord<Avatarfighter> What's new with you clyybber
17:53:24FromDiscord<Clyybber> tracking down a regression
18:06:59FromDiscord<Avatarfighter> That is a tradegy
18:07:02FromDiscord<Avatarfighter> (edit) 'tradegy' => 'tragedy'
18:12:06Prestigesup @Avatarfighter
18:14:37FromDiscord<Avatarfighter> Prestige: What you working on this fine day
18:15:08PrestigeWell just at work atm, going to be working on Nimdow afterward
18:15:24Prestigeand *eventually* I'll start making a game in Nim, lol. Hbu?
18:21:29FromDiscord<Avatarfighter> Not much tbh I'm just making some stuff for scraping
18:21:45FromDiscord<Avatarfighter> modifying httpclient to allow socks proxies, ratelimiting, etc
18:22:13*nyd quit (Ping timeout: 260 seconds)
18:31:23*lbart quit (Ping timeout: 240 seconds)
18:32:05*Jesin quit (Ping timeout: 246 seconds)
18:33:12*lbart joined #nim
18:33:12*lbart quit (Changing host)
18:33:12*lbart joined #nim
18:39:05PrestigeNice 🙂
18:45:11idfidk what my next nim project should be
18:45:37*abm quit (Remote host closed the connection)
18:46:27Prestigeidf: maybe contrib to an existing project?
18:47:12Prestigenimsuggest and nimlsp would help with editor support
18:47:31idfi'll take a look
18:51:16*nyd joined #nim
18:53:43*leorize quit (Ping timeout: 240 seconds)
18:54:02idfi dont have much experience with lsp
18:55:23*vicfred quit (Quit: Leaving)
18:57:34PrestigeIt's a pretty simple protocol if you find the docs
18:57:55idfalright
18:58:27Prestigehttps://microsoft.github.io/language-server-protocol/specifications/specification-current/
18:58:41idfthanks
18:58:47PrestigeAside from that, there are a lot of nimsuggest issues to look intoo
18:58:50Prestigeany time
19:03:39*arecacea1 quit (Remote host closed the connection)
19:04:03*arecacea1 joined #nim
19:06:17*vicfred joined #nim
19:11:52idfhttps://github.com/nim-lang/nimsuggest/issues/112 i will work on this if its still open
19:11:54disbotFalse negative on buildHtml in Karax ; snippet at 12https://play.nim-lang.org/#ix=2AeG
19:17:37Prestigeidf: probably is - you can check with develop I suppose
19:20:25*jeko joined #nim
20:13:45*Vladar quit (Quit: Leaving)
20:18:56*nyd quit (Quit: nyd)
20:30:11*Jesin joined #nim
20:32:26*mmohammadi981266 quit (Quit: I quit (╯°□°)╯︵ ┻━┻)
20:57:46*narimiran quit (Ping timeout: 265 seconds)
20:59:25*solitudesf quit (Ping timeout: 240 seconds)
21:00:35*jeko quit (Remote host closed the connection)
21:10:42*vicfred quit (Quit: Leaving)
21:11:58*vicfred joined #nim
21:16:25*vicfred quit (Client Quit)
21:24:04*vicfred joined #nim
21:28:58*Jesin quit (Quit: Leaving)
21:58:19*krux02 joined #nim
22:04:08FromDiscord<dom96> httpbeast slower under orc, that's not good
22:07:13supakeendid you take a stab at it with uring?
22:09:27natureIs there any project in nim that follow the lines of svelte ?
22:13:01*dv-^_^6193923 quit (Ping timeout: 246 seconds)
22:13:23*dv-^_^6193923 joined #nim
22:14:01FromDiscord<PizzaFox> can osproc kill processes spawned by other programs? i dont see a proc to search for a process by name or anything so im not sure
22:15:46*tdc quit (Ping timeout: 272 seconds)
22:18:16*dv-^_^6193923 quit (Ping timeout: 246 seconds)
22:19:24*dv-^_^6193923 joined #nim
22:23:37FromDiscord<shirleyquirk> kill in posix.nim can kill another process if you know the pid
22:25:58*dv-^_^6193923 quit (Ping timeout: 246 seconds)
22:29:26*dv-^_^6193923 joined #nim
22:35:24*abm joined #nim
22:43:03*hyiltiz joined #nim
22:46:32FromDiscord<PizzaFox> hmmm so you would have to make bindings for whatever system library there is for getting pids then
22:46:40FromDiscord<PizzaFox> le windows.h has arrived
22:56:29*Trustable quit (Remote host closed the connection)
23:01:49FromDiscord<dom96> ideally you'd create a nice Nim library that enables anyone to manage outside processes on various operating systems 🙂
23:04:27FromDiscord<PizzaFox> hmmmmmmmmmmmmmmm
23:04:29FromDiscord<PizzaFox> may b
23:04:38FromDiscord<PizzaFox> what would i call it
23:04:49FromDiscord<Elegant Beef> Proccesor 😛
23:40:32FromDiscord<PizzaFox> new unrelated question
23:40:39FromDiscord<PizzaFox> if i wanted to check if a string was empty
23:40:51FromDiscord<PizzaFox> is it better to do↵`s.len > 0` or `s.len != 0`
23:42:45FromDiscord<Elegant Beef> Do whatever you prefer, but i tend to use the `strutils.isEmptyOrWhitespace`
23:43:22FromDiscord<PizzaFox> surely that will be slower
23:43:29FromDiscord<PizzaFox> it checks for whitespace
23:45:01FromDiscord<Elegant Beef> Yea i said it's what i tend to use since i dont care about pure whitespace
23:45:13FromDiscord<PizzaFox> i really care about performance for this bit
23:45:31FromDiscord<PizzaFox> so i will simply use the not eq 0