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:56 | sealmove | @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:49 | Zevv | cool, sure |
04:11:23 | Zevv | if 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:18 | Zevv | disruptek: you had skiplists, right? |
05:47:23 | Zevv | I think I have lists to skip |
06:15:07 | FromDiscord | <Varriount> Ugh |
06:15:19 | FromDiscord | <Varriount> Why does the 7zip SDK have to be so... messy |
06:16:28 | FromDiscord | <Varriount> Zevv: It's been a while. How are things going? |
06:17:52 | Zevv | oh just, you know, stuff happening and all |
06:18:40 | Zevv | kind of caught up in non-nim strings, mostly |
06:19:00 | Zevv | you? |
06:19:46 | supakeen | morning |
06:20:37 | idf | morning |
06:21:33 | supakeen | oh, sealmove is working on a ucl parser :D |
06:21:39 | * | idf left #nim ("ERC (IRC client for Emacs 27.1)") |
06:21:51 | supakeen | awesome |
06:21:56 | * | idf joined #nim |
06:21:57 | FromDiscord | <Varriount> Zevv: Trying to muster up the energy to write something in Nim (or write anything in any language). |
06:22:38 | FromDiscord | <Varriount> Zevv: I figure a good task would be to create a program that mimics what OSX's archive extract functionality does. |
06:23:31 | FromDiscord | <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:50 | FromDiscord | <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:42 | FromDiscord | <Elegant Beef> Just use nim archive 😄 |
06:27:10 | FromDiscord | <Varriount> Does it handle 7z files with passwords? |
06:28:01 | Araq | unlikely |
06:28:18 | Araq | so ... my PC doesn't boot anymore and there is not a single "beep" sound. |
06:28:53 | FromDiscord | <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:09 | Araq | what does it mean? motherboard or power adapter? |
06:30:09 | FromDiscord | <Elegant Beef> Your certain it has a beeper on it? |
06:30:23 | Araq | quite, it used to beep |
06:30:30 | * | PMunch joined #nim |
06:30:40 | FromDiscord | <Elegant Beef> Ah |
06:31:03 | FromDiscord | <Elegant Beef> Then i'd say powersupply or motherboard has gone |
06:32:52 | FromDiscord | <Varriount> Araq: Do you have the general model/brand of computer? |
06:33:10 | Araq | Beef: yeah, which one? |
06:33:43 | FromDiscord | <Varriount> The manufacturer usually lists the meaning of the codes. |
06:33:45 | FromDiscord | <Elegant Beef> Typically motherboards have a light on them to indicate they are getting power if that isnt on, i wager PSU |
06:33:48 | FromDiscord | <Elegant Beef> Well it's not beeping |
06:33:58 | FromDiscord | <Elegant Beef> So there is no code 😛 |
06:34:26 | FromDiscord | <Varriount> Oh, I misread. |
06:34:55 | FromDiscord | <Varriount> @Elegant Beef Desktop motherboards do, I don't believe laptops have them though. |
06:35:13 | FromDiscord | <Elegant Beef> Laptops dont tend to have beepers 😄 |
06:35:19 | FromDiscord | <Varriount> Mine does. |
06:35:27 | FromDiscord | <Elegant Beef> I've never seen one, so assumed it was a desktop |
06:35:31 | FromDiscord | <Varriount> Or wait, no, it has a light code |
06:35:49 | FromDiscord | <Varriount> But I want to say I've heard beep codes from other laptops before. |
06:36:52 | idf | my previous laptop had a loud horrible beeper |
06:37:02 | FromDiscord | <Rika> my laptop has a beeper |
06:37:07 | FromDiscord | <Elegant Beef> I'm just imagining araq sitting over a fully tore down laptop screaming "Where is the light?!" |
06:37:13 | Araq | Varriount: but I get no code |
06:37:19 | Araq | it's a 650W - Corsair RM Series |
06:37:28 | Araq | ASUS Z170 Pro Gaming/Aura | Intel Z170 |
06:37:30 | FromDiscord | <Varriount> Araq: Yeah, I misread your original message. |
06:38:00 | FromDiscord | <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:20 | FromDiscord | <Elegant Beef> *If your board doesnt have indication of power |
06:38:20 | Araq | well I still got warranty |
06:38:54 | FromDiscord | <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:25 | FromDiscord | <Varriount> I need to replace the power supply on my desktop. It broke during my move. |
06:40:14 | FromDiscord | <Varriount> @Elegant Beef Maybe the magic smoke escaped. |
06:40:52 | FromDiscord | <Elegant Beef> Could just be a fuse breaking |
06:41:10 | FromDiscord | <Elegant Beef> *Dont dig inside a powersupply unless you know what you're doing* |
06:42:23 | Araq | er... I don't have warranty anymore. great |
06:42:35 | FromDiscord | <Varriount> Expired? |
06:43:09 | Araq | wtf I bought this 4 years ago already |
06:43:50 | Araq | just before a big release and before my holidays, so great |
06:44:49 | FromDiscord | <Varriount> Have you checked that the fuse hasn't been tripped, or that the power supply switch is in the "on" position? |
06:45:28 | FromDiscord | <Varriount> (and that the computer is plugged in) |
06:46:18 | Araq | yes, 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:54 | Oddmonger | i 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:03 | Oddmonger | how can i debug it :) |
06:50:23 | * | leorize quit (Ping timeout: 240 seconds) |
06:50:31 | FromDiscord | <Varriount> Oddmonger: When compiling in release, try adding `--stacktrace:on --linetrace:on` |
06:50:46 | Oddmonger | ah ok, i try thank you |
06:51:16 | FromDiscord | <Varriount> so, something like `nim c -d:release --stacktrace:on --linetrace:on program.nim ` |
06:51:45 | * | leorize joined #nim |
06:52:50 | Oddmonger | ok now i see the proc which hangs |
06:53:29 | Oddmonger | that's very odd… |
06:53:52 | Oddmonger | are there difference between «ptr» in release/debug ? |
06:54:03 | FromDiscord | <lqdev> no |
06:54:21 | Oddmonger | meh |
06:54:44 | FromDiscord | <lqdev> why would there be anyways |
06:55:11 | Oddmonger | it was just to be sure… and on pre-allocation of variables ? |
06:55:22 | Oddmonger | var pos: orxVECTOR |
06:55:30 | FromDiscord | <lqdev> wdym, pre-allocation of variables |
06:55:37 | Oddmonger | discard getPosition(player, addr pos) # hangs on this |
06:56:05 | Oddmonger | problem with «pos», obviously |
06:56:08 | FromDiscord | <lqdev> should work |
06:56:23 | FromDiscord | <lqdev> but why not just use `var` for the pos parameter |
06:56:37 | Oddmonger | it's a call to a C lib |
06:56:50 | FromDiscord | <lqdev> var is just a pointer anyways |
06:57:02 | Oddmonger | ok lets try |
06:58:03 | Oddmonger | hum refused with var |
06:58:59 | Oddmonger | problem 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:37 | FromDiscord | <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:36 | Oddmonger | the nim signature is: proc getPosition*(pstObject: ptr orxOBJECT; pvPosition: ptr orxVECTOR): ptr orxVECTOR {. |
07:11:38 | Oddmonger | cdecl, importc: "orxObject_GetPosition", dynlib: libORX.} |
07:12:32 | Oddmonger | and the C : orxDLLAPI orxVECTOR *orxFASTCALL orxObject_GetPosition (const orxOBJECT *_pstObject, orxVECTOR *_pvPosition) |
07:29:21 | Araq | fastcall is not 'cdecl' |
07:30:02 | Araq | (though it only matters on Windows, 32bit, usually) |
07:43:01 | * | sagax quit (Read error: Connection reset by peer) |
07:44:54 | Oddmonger | ok found it |
07:45:13 | Oddmonger | it was a config file missing in release mode :( |
07:46:10 | Oddmonger | and the engine doesn't complain about it … |
08:01:26 | * | vicfred quit (Quit: Leaving) |
08:01:34 | * | jjido joined #nim |
08:07:42 | FromDiscord | <iWonderAboutTuatara> Is this Godot stuff? |
08:08:09 | FromDiscord | <iWonderAboutTuatara> Bit late to the party to get an answer, will just mention oddmonger and hope I get a reply tomorrow :) |
08:08:36 | FromDiscord | <iWonderAboutTuatara> I have some questions about Godot Nim and how painless/not it is |
08:10:50 | FromDiscord | <lqdev> this is orx, not godot |
08:12:52 | * | vicfred joined #nim |
08:16:11 | * | Vladar joined #nim |
08:19:09 | Oddmonger | yes 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:20 | Araq | now I got it to "beep" |
08:22:29 | Araq | doesn't come further than that though... |
08:24:14 | idf | boop |
08:24:25 | * | Tanger quit (Remote host closed the connection) |
08:27:32 | supakeen | buup |
08:28:25 | FromDiscord | <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:33 | FromDiscord | <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:08 | FromDiscord | <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:03 | Araq | The idea is that Option[lent int] is valid but subject to borrow checking |
08:56:53 | Araq | my 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:04 | FromDiscord | <Elegant Beef> What was the issue? |
08:58:24 | * | PMunch quit (Ping timeout: 272 seconds) |
08:58:44 | narimiran | well, his PC wasn't booting, for a start |
08:59:13 | FromDiscord | <Elegant Beef> Well he's resolved it so i was interested in the resolution |
08:59:23 | narimiran | well, that's not very typical |
08:59:28 | * | luis quit (Remote host closed the connection) |
08:59:39 | narimiran | https://www.youtube.com/watch?v=3m5qxZm_JqM |
09:00:06 | FromDiscord | <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:26 | FromDiscord | <mratsim> the main advantage of lent is that it's 2 characters shorter than borrow |
09:01:48 | Araq | Beef: I puffed heavily |
09:01:56 | Araq | on the CPU and GPU |
09:02:03 | FromDiscord | <mratsim> You should invest in hamsters |
09:02:53 | FromDiscord | <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:21 | Araq | mratsim: I don't get the joke |
09:06:03 | FromDiscord | <mratsim> Delegate the puff puff |
09:08:00 | Araq | reminds me of an old German joke. Jogger: "puff, puff". Guy sitting on a bank: "Zwei Straßen weiter, Sie Strolch" |
09:08:27 | FromDiscord | <Elegant Beef> Damn araq's breath is magical, quickly capture him and sell "Canned Air of Araq" |
09:09:06 | Araq | ("Two streets from here, you thug") |
09:10:05 | Araq | ("Puff" can also mean "house of pleasure" in German) |
09:10:18 | FromDiscord | <Rika> "house of pleasure" LOL |
09:10:49 | * | abm joined #nim |
09:11:09 | * | PMunch joined #nim |
09:19:35 | Araq | haxscramper: please report view-type bugs on github |
09:19:56 | Araq | I consider them to be rather-feature complete and spent some effort on patching the codegen too |
09:21:22 | supakeen | Woa I had to reread `lent` a few times. I thought we're still far from Easter. |
09:22:02 | FromDiscord | <Rika> lent lent lent lent lent |
09:25:01 | FromDiscord | <Yardanico> var lent sink static |
09:25:06 | FromDiscord | <Yardanico> what else |
09:29:40 | FromDiscord | <Yardanico> proc argument annotations |
09:29:43 | FromDiscord | <haxscramper> `var test: ptr ptr ref var openarray[lent int]` - can declare variable with this type |
09:29:54 | FromDiscord | <Yardanico> Delete the message fast |
09:29:57 | FromDiscord | <Yardanico> Oh no it's too late |
09:30:15 | FromDiscord | <Yardanico> I don't think you can declare this one though, can you? |
09:30:26 | FromDiscord | <Yardanico> The view part in manual says that you can't have a view type with a ptr |
09:30:54 | FromDiscord | <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=2Abx |
09:30:58 | FromDiscord | <Rika> then its a bug aint it |
09:31:08 | FromDiscord | <Rika> thats such an absurd declaration too i love it |
09:31:16 | FromDiscord | <Yardanico> If it compiles it doesn't mean that it's correct :P |
09:32:05 | * | krux02 joined #nim |
09:32:45 | FromDiscord | <Yardanico> Time to do the next Nim compiler stress test? |
09:32:52 | FromDiscord | <Yardanico> Last time we did 1,000,000 proc arguments |
09:33:03 | FromDiscord | <Yardanico> Now we test 1,000,000 ptr indirections |
09:34:05 | FromDiscord | <Rika> mind hurt |
09:34:07 | FromDiscord | <Rika> pls no |
09:34:14 | narimiran | Zevv: you around? |
09:34:16 | FromDiscord | <haxscramper> sent a code paste, see https://play.nim-lang.org/#ix=2Aby |
09:34:16 | FromDiscord | <Rika> whats next 1,000,000 modules? |
09:34:34 | FromDiscord | <haxscramper> `c***************************` style |
09:34:37 | FromDiscord | <Yardanico> https://stackoverflow.com/questions/10087113/how-many-levels-of-pointers-can-we-have |
09:34:44 | narimiran | one might call you guys........... 10,000 maniacs |
09:35:03 | FromDiscord | <Yardanico> 10000 maniacs and disruptek |
09:35:28 | FromDiscord | <haxscramper> Now I need to combine this with unicode names, nuglifier and some compile-time neural networks to make perfect unreadable code |
09:36:45 | FromDiscord | <Yardanico> Seems like GCC can do ~100k pointer indirections easily |
09:36:58 | FromDiscord | <Rika> yardanico what the fuck? |
09:37:05 | FromDiscord | <Yardanico> Visual Studio 2010 fails at 2k |
09:37:12 | FromDiscord | <Yardanico> I'm reading that SO question |
09:37:20 | FromDiscord | <Yardanico> And answers |
09:37:37 | FromDiscord | <Rika> oh i thought you fuckin tested it lmao |
09:38:05 | FromDiscord | <kodkuce> @treeform i cant ignore it when it crashes my program |
09:38:07 | FromDiscord | <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:19 | narimiran | someone = PMunch |
09:38:19 | FromDiscord | <haxscramper> Or this is still compiling |
09:38:51 | FromDiscord | <Rika> hax the computer died mid-compile |
09:38:54 | FromDiscord | <Rika> but not because of the compiling |
09:38:58 | FromDiscord | <Yardanico> It didn't die |
09:39:05 | FromDiscord | <Rika> turned off |
09:39:05 | FromDiscord | <Yardanico> The resources were needed for other stuff |
09:39:06 | FromDiscord | <Rika> i think |
09:39:09 | FromDiscord | <Rika> oh |
09:39:13 | FromDiscord | <Rika> i dont have good memory |
09:39:17 | FromDiscord | <Yardanico> It consumed a lot of GBs of RAM |
09:39:20 | FromDiscord | <Rika> i know |
09:39:23 | FromDiscord | <Yardanico> More than 100iirc |
09:39:25 | FromDiscord | <Rika> i was there with them |
09:39:27 | FromDiscord | <Rika> i know |
09:39:29 | FromDiscord | <Yardanico> Me too |
09:39:30 | FromDiscord | <Yardanico> I know |
09:39:34 | FromDiscord | <Yardanico> i was there |
09:39:53 | Araq | who cares... why not profile the compiler against a real program? |
09:39:54 | FromDiscord | <Rika> #1millionargumentsgang ? |
09:39:55 | FromDiscord | <Rika> xddd |
09:40:09 | FromDiscord | <Rika> araq, we werent doing this seriously, it was just as a joke or so |
09:40:15 | Araq | there should be some low hanging fruit by now |
09:40:19 | FromDiscord | <Yardanico> @Araq just compile release compiler builds with PGO instead :P |
09:40:42 | Araq | as the core compiler devs have no time for optimization... |
09:42:35 | * | supakeen does the optimization dance |
09:43:00 | PMunch | Well, 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:18 | PMunch | So I kinda had to reboot so I could actually do some work.. |
09:43:22 | FromDiscord | <Yardanico> need to ask some supercomputer guys |
09:43:31 | FromDiscord | <Yardanico> So they give us exclusive access for 1 month |
09:43:36 | FromDiscord | <Yardanico> to a supercomputer |
09:44:17 | FromDiscord | <Rika> wonder how much that'd costr |
09:44:27 | FromDiscord | <Yardanico> they'll do it for free |
09:44:33 | FromDiscord | <Rika> why? |
09:44:37 | FromDiscord | <Rika> lol |
09:45:02 | FromDiscord | <kodkuce> sent a long message, see http://ix.io/2AbB |
09:45:18 | FromDiscord | <Yardanico> time to die, kill, etc |
09:45:27 | FromDiscord | <Yardanico> Your style of communication is interesting |
09:45:29 | FromDiscord | <Yardanico> To say the least |
09:45:32 | FromDiscord | <Yardanico> XD |
09:45:54 | FromDiscord | <kodkuce> my? hmm duno i find it normal |
09:46:23 | FromDiscord | <Yardanico> "who wrote" - most async modules were made by dom |
09:46:29 | FromDiscord | <Yardanico> if not all |
09:46:36 | FromDiscord | <kodkuce> @dom96 you dead |
09:46:37 | FromDiscord | <kodkuce> xD |
09:46:42 | supakeen | It's great to wish death upon someone for contributing code, that really makes them enjoy it. |
09:46:43 | supakeen | ... |
09:47:46 | FromDiscord | <kodkuce> lol i am not really wishing, just complaining in my maner |
09:47:59 | FromDiscord | <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:02 | FromDiscord | <Yardanico> Other people might not understand that |
09:48:12 | supakeen | How should I interpret that if not to complain about the code someone else wrote for you? |
09:48:31 | supakeen | But yes, it doesn't come off as friendly even in a joking way especially on a text medium :) |
09:49:41 | PMunch | kodkuce, what is wrong with AsyncSocket? |
09:49:42 | * | jjido joined #nim |
09:50:46 | FromDiscord | <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:03 | FromDiscord | <kodkuce> hmm it crashes when run behind nginx |
09:51:23 | FromDiscord | <kodkuce> https://forum.nim-lang.org/t/6903 |
09:52:07 | FromDiscord | <Yardanico> but are you sure that asyncnet code is the problem? |
09:52:07 | FromDiscord | <kodkuce> when i proxy_pass to app it crashes, error goes out of try: except: or soemthing duno |
09:52:30 | FromDiscord | <kodkuce> how can i narrow it down more, hmm duno if i can proxypass nginx directly to asyncnet |
09:54:08 | FromDiscord | <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:24 | FromDiscord | <kodkuce> wierd issue if not run behind nginx it works no problem |
09:55:44 | FromDiscord | <kodkuce> i dont get any error when i try to close connection |
09:57:50 | FromDiscord | <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:14 | FromDiscord | <Rika> https://nim-lang.org/docs/asyncdispatch.html#asynchronous-procedures-handling-exceptions |
09:58:45 | FromDiscord | <kodkuce> ok will try that |
09:58:45 | supakeen | It 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:00 | supakeen | As 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:28 | supakeen | If 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:40 | FromDiscord | <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:49 | FromDiscord | <kodkuce> will try this yield stuff |
10:06:40 | * | arecacea1 quit (Remote host closed the connection) |
10:07:04 | * | arecacea1 joined #nim |
10:08:04 | FromDiscord | <kodkuce> https://media.discordapp.net/attachments/371759389889003532/764066642161696788/2020-10-09_120548.png |
10:08:45 | FromDiscord | <kodkuce> this ok right?, i can leave try except even if i yield fut, that wont make problem or to remove it? |
10:16:34 | FromDiscord | <kodkuce> @Rika i would suck your banana if i was a gril, using this fut and yield stoped crashing the app |
10:16:45 | FromDiscord | <Rika> :ThonkDumb: that's weird |
10:16:58 | FromDiscord | <kodkuce> all hail @Rika bringer of prosperity |
10:16:59 | FromDiscord | <Rika> it should give the error |
10:17:05 | idf | erhm |
10:17:17 | FromDiscord | <Rika> if its suddenly working then somethings super wrong with your code lol |
10:17:27 | FromDiscord | <kodkuce> hmm, sorry i did not echo GetCurrentErorr |
10:17:34 | narimiran | and he was ' ' this close to stop using nim and go to rust..... :rolleyes: |
10:17:43 | FromDiscord | <kodkuce> incoming stream error of doom |
10:18:06 | narimiran | now he wishes he was a grill |
10:18:17 | idf | hbo and grill |
10:18:39 | FromDiscord | <kodkuce> ok i kill you all |
10:18:45 | FromDiscord | <kodkuce> i gona check 1 more thing |
10:18:47 | idf | come and get me |
10:18:59 | FromDiscord | <Rika> lol please do |
10:20:14 | PMunch | Hmm, now I kinda want a grilled chocolate banana.. |
10:20:35 | euantorano | Interesting thread: https://discuss.ocaml.org/t/is-there-a-known-recent-linux-locking-bug-that-affects-the-ocaml-runtime/6542/11 |
10:20:40 | FromDiscord | <kodkuce> i newer eated that in my life is it good? |
10:20:49 | PMunch | Pretty tasty |
10:20:51 | idf | chocolate babana |
10:20:53 | PMunch | Used to do it in scots |
10:20:57 | PMunch | scouts* |
10:21:41 | FromDiscord | <Vindaar> crazy world we live in, huh? Norwegian scouts eating grilled chocolate bananas 🤔 |
10:22:10 | idf | embrace the monki way, eat bananas |
10:22:16 | FromDiscord | <kodkuce> can i read error if i do yield fut? |
10:22:23 | PMunch | Take 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:38 | FromDiscord | <Vindaar> sounds yum yum |
10:22:56 | idf | what if i let it freeze instead |
10:23:03 | idf | after i melt it |
10:23:18 | PMunch | Well if you freeze bananas and blend them you get a pretty nice ice cream consistency |
10:23:26 | idf | yummy |
10:23:37 | PMunch | Yup |
10:23:38 | * | Trustable joined #nim |
10:23:42 | FromDiscord | <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:04 | idf | cool story |
10:24:15 | FromDiscord | <Vindaar> you should worry about all that radiation poisoning from eating too many bananas /s |
10:24:28 | FromDiscord | <kodkuce> rad poisening? wtf |
10:24:31 | FromDiscord | <Rika> @kodkuce `theFuture.error` returns the exception, just echo `theFuture.error.msg` |
10:24:35 | FromDiscord | <Vindaar> bananas are radioactive |
10:24:41 | FromDiscord | <kodkuce> ty rika |
10:24:47 | * | apahl quit (Ping timeout: 240 seconds) |
10:24:50 | idf | you can grow like another eye if you eat too many bananas |
10:24:50 | narimiran | not the bananas that kodkuce likes |
10:24:55 | FromDiscord | <kodkuce> evrything is radioactive but are banans too much? grown in chernobil |
10:24:57 | FromDiscord | <Vindaar> hahaha |
10:25:07 | FromDiscord | <kodkuce> narimiran you are close i can kill you easy |
10:25:12 | FromDiscord | <Rika> everything is radioactive to an extent |
10:25:22 | narimiran | here we go again, 1990 happening once again |
10:25:29 | FromDiscord | <Vindaar> well, yes. They are one of the most radioactive foods, if you want to be picky about it |
10:25:31 | narimiran | serbs threaten to kill some croats |
10:25:51 | FromDiscord | <Rika> loool |
10:25:52 | PMunch | Haha, I think you die from potassium overdose before you die from radiation poisoning :P |
10:25:53 | idf | romania just vibing after the revolution |
10:26:09 | * | apahl joined #nim |
10:26:16 | FromDiscord | <kodkuce> hmm narimiran i frogot you croat i tough you from romania |
10:26:34 | FromDiscord | <kodkuce> i changed your national indetity even worse xD |
10:26:51 | PMunch | What do you mean worse, plenty of nice Romanians |
10:27:06 | idf | me |
10:27:12 | narimiran | What do you mean worse, plenty of shitty Croatians |
10:27:34 | FromDiscord | <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:39 | idf | Croamania |
10:28:06 | FromDiscord | <kodkuce> Exception message: Bad file descriptor↵ok i still get this but at least now it does not crash app |
10:28:11 | narimiran | idf: who do you call Cromagnon? |
10:28:24 | PMunch | Hyperkalemia, that's the word I was looking for! |
10:28:31 | idf | Croissant |
10:28:56 | PMunch | I was trying hypervitaminosis K until I remembered that vitamin K != elemental K |
10:29:01 | FromDiscord | <Rika> pmunch you need to watch more chubbyemu videos |
10:29:11 | PMunch | ChubbyEmu? |
10:29:22 | idf | ah the first european humans |
10:29:22 | FromDiscord | <Rika> search em on youtube 😛 |
10:29:54 | FromDiscord | <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:57 | idf | also telling the story of how a friend had to cleanse his banana output while you do it |
10:31:15 | FromDiscord | <Rika> did they mistake it for an innuendo |
10:31:31 | FromDiscord | <kodkuce> i eat almost evry day at least 2-3 bananas |
10:31:35 | idf | good |
10:31:55 | PMunch | Where do you get all the bananas from?! |
10:32:20 | idf | monkey companions |
10:32:24 | PMunch | Do you just get like a whole grocery bag full of just bananas every time you go shopping? |
10:32:38 | FromDiscord | <Rika> return to monke |
10:32:43 | idf | ^ |
10:33:31 | FromDiscord | <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:41 | FromDiscord | <kodkuce> duno what to eat i buy fruit |
10:33:50 | FromDiscord | <kodkuce> and i duno what to eat a lot of time |
10:34:12 | idf | true monki way |
10:35:14 | FromDiscord | <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:30 | FromDiscord | <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:04 | FromDiscord | <kodkuce> i got profile img upgrade |
10:50:13 | FromDiscord | <kodkuce> https://media.discordapp.net/attachments/371759389889003532/764077247706955797/monkeyUpgrade.png |
10:51:06 | * | Trustable quit (Remote host closed the connection) |
10:55:10 | FromDiscord | <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:18 | FromDiscord | <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:14 | FromDiscord | <Clyybber> this chat is pretty monke rn |
11:08:17 | FromDiscord | <Clyybber> i likey |
11:11:18 | PMunch | I like how you wrote monkey without the Y but added one to the word like |
11:11:34 | * | VijayMarupudi[m] joined #nim |
11:16:20 | idf | monky |
11:17:02 | PMunch | Ah |
11:17:16 | PMunch | I now realise that he also missed an e :P |
11:17:32 | FromDiscord | <Clyybber> monk |
11:17:45 | PMunch | ey |
11:20:10 | * | jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
11:25:16 | FromDiscord | <Clyybber> narimiran: regarding npeg, I think a when declared(expectIdent) should be fine |
11:30:53 | FromDiscord | <Rika> pmunch, `monke/monky` is a joke spelling |
11:31:04 | PMunch | I know :P |
11:32:17 | FromDiscord | <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:23 | PMunch | Well 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:30 | PMunch | s/to/too |
11:37:28 | FromDiscord | <Rika> `over too the the`? |
11:37:35 | FromDiscord | <Rika> you repeated the twice too lol |
11:39:03 | PMunch | No I meant the "to terse" part :P |
11:39:12 | PMunch | But yeah the double "the" was also an error :P |
11:39:27 | PMunch | I 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:58 | FromDiscord | <lqdev> hold up, did anybody say monk? |
11:49:16 | FromDiscord | <Rika> pmunch, i was making a joke on how sed would actually apply that |
11:50:02 | PMunch | It wouldn't though, I didn't specify /g so it would only do the first occurrence |
11:51:52 | FromDiscord | <Rika> mm, forgetful about me always involuntarily adding /g when i use it so |
11:55:06 | Zevv | clyybbeer: see, nothing good coming from your nonsense patch! :) |
12:00:06 | * | mmohammadi981266 joined #nim |
12:01:13 | krux02_ | 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:07 | PMunch | krux02, I tend to do that as well |
12:17:30 | PMunch | Super fun to look straight at someone and type fast without breaking eye contact :P |
12:17:37 | PMunch | Really freaks people out |
12:18:12 | idf | i thought im the only one that likes to do that |
12:18:23 | * | rockcavera joined #nim |
12:19:24 | * | mmohammadi981266 joined #nim |
12:19:51 | idf | sometimes 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:13 | krux02 | PMunch: true |
12:20:41 | krux02 | PMunch, but more and more people learn typing on a smartphone or tablet. |
12:20:46 | PMunch | idf, yeah "normal" people are really freaked out but scrolling text on a block background for some reason :P |
12:21:27 | PMunch | krux02, 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:30 | krux02 | PMunch, Hollywood hacker montage |
12:22:16 | krux02 | I certainly played on my fathers PC before I could even read. |
12:22:19 | PMunch | On those nice projector monitors that makes it so you can read the text on their faces :P |
12:22:44 | krux02 | yes |
12:23:03 | krux02 | but then the sourcecode is scrolling by really fast and the hacker is typing nonstop |
12:23:08 | PMunch | I think I actually had my own lap-top before I could read properly |
12:23:19 | idf | i always made people around me uncomfortable when i started compiling anything that took more than 1 second to compile |
12:23:22 | PMunch | And way before I knew enough English to read any of the menus :P |
12:23:37 | idf | i used to play a lot of games on the family PC |
12:23:39 | idf | good times |
12:23:53 | idf | i think i learned how to write at the keyboard before learning how to write by hand |
12:24:01 | PMunch | krux02, 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:38 | krux02 | they have superpowers |
12:25:08 | krux02 | and then they talk some nonsense about encryption |
12:25:15 | idf | I 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:21 | idf | the computer would write every line so slow |
12:25:22 | krux02 | and ever Hollywood hacker can hack encryption in no time |
12:26:16 | idf | gotta love that instant bruteforcing |
12:27:19 | krux02 | I also like those 3D Worlds in Hacker movies |
12:28:34 | FromDiscord | <lqdev> how can i assemble a closure back from rawEnv and rawProc? |
12:30:43 | * | leorize quit (Ping timeout: 240 seconds) |
12:32:27 | FromDiscord | <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:16 | FromDiscord | <kodkuce> xD |
12:33:18 | FromDiscord | <dom96> In all seriousness though, blame async only when you've ruled out other possibilities. Afaik you haven't. |
12:33:39 | FromDiscord | <kodkuce> hmm, i was narrowing down as much as i could |
12:34:21 | FromDiscord | <kodkuce> but i think it is async realted, when i yield it does not crash app and when i dont it does |
12:35:17 | FromDiscord | <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:53 | FromDiscord | <dom96> `await fut` is the same as `yield fut; fut.read()` |
12:36:06 | FromDiscord | <dom96> calling `read` raises if `fut` has failed |
12:36:47 | idf | interesting |
12:40:30 | FromDiscord | <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:25 | FromDiscord | <kodkuce> so normal ```awiat fut``` does not check ```if fut.isfailed``` |
12:41:40 | FromDiscord | <dom96> `try: await fut; except: echo(getCurrentExceptionMsg())` should be the same as `yield fut; if fut.failed: echo(fut.error.msg)` |
12:41:54 | FromDiscord | <dom96> if you found a case where it does not behave the same way then that's a Nim bug |
12:41:57 | FromDiscord | <dom96> not an async bug |
12:42:15 | FromDiscord | <dom96> since the `try` transformation is now handled by the Nim compiler |
12:42:38 | FromDiscord | <kodkuce> hmm will check gain on my minimal example |
12:43:00 | FromDiscord | <dom96> if you can give simple instructions on how to reproduce it that would be awesome |
12:43:50 | FromDiscord | <kodkuce> i allready have one but its kinda complicated cuz this crash only heppends when proxy_passed behind nginx |
12:45:55 | FromDiscord | <dom96> ahh, ouch. Well, nginx setup shouldn't be too difficult, but I doubt Araq will do it 🙂 |
12:46:21 | PMunch | Maybe if you wrap it in a docker container? |
12:48:19 | FromDiscord | <kodkuce> am gona retest now |
12:48:34 | FromDiscord | <dom96> That depends on Docker then, which yeah, I suppose is easier to set up |
12:51:14 | PMunch | Ah forgot that Docker might be tricky to set up on Windows |
12:51:29 | FromDiscord | <kodkuce> hmm |
12:51:41 | FromDiscord | <kodkuce> i think that this error is allready fixed |
12:51:43 | FromDiscord | <kodkuce> maybe |
12:51:50 | FromDiscord | <kodkuce> i changed to devel |
12:51:54 | FromDiscord | <kodkuce> and now no error |
12:52:02 | FromDiscord | <kodkuce> when i go back to stable it crashes |
12:52:04 | FromDiscord | <dom96> what version were you using before? |
12:52:10 | FromDiscord | <kodkuce> will recheck again |
12:52:34 | FromDiscord | <kodkuce> Nim Compiler Version 1.2.6 [Linux: amd64] |
12:52:38 | FromDiscord | <kodkuce> crashes |
12:53:12 | FromDiscord | <kodkuce> Nim Compiler Version 1.3.7 [Linux: amd64] works |
12:53:20 | FromDiscord | <kodkuce> i think am going recheck 5 more times |
12:53:22 | idf | damn im still on 1.3.5 |
12:57:21 | FromDiscord | <kodkuce> ok runed 5 times on 1.3.7 working each time with no if future failed with just await |
12:57:34 | FromDiscord | <kodkuce> will now test on 1.2.6 again |
12:59:00 | Araq | my computer works again, including my graphics card |
12:59:02 | FromDiscord | <kodkuce> yep on 1.2.6 it crashes when behind nginx |
12:59:19 | FromDiscord | <kodkuce> will now check again if fut.isfailed |
12:59:31 | supakeen | The '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:38 | FromDiscord | <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:31 | FromDiscord | <dom96> interesting |
13:03:52 | FromDiscord | <dom96> it's possible that the bug might still be there but that you're just getting lucky with devel unfortunately |
13:04:40 | FromDiscord | <kodkuce> can i somehow sacrifice myself for future of Nim? |
13:05:54 | supakeen | dom96: 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:08 | supakeen | (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:51 | PMunch | I liked that PR for what it's worth supakeen |
13:12:04 | supakeen | So do I :) |
13:13:45 | supakeen | But for the weekend I want to focus on the `parseHeader` one and the testcases for asynchttpserver :) |
13:13:56 | Araq | Error: satisfy the dependency on chronos 2.5.2 and chronos 2.3.9 |
13:14:24 | Araq | 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:09 | Araq | --> Nimble succeeds. |
13:17:31 | Araq | see? and this is why a global $nimbledir is such a bad idea. |
13:18:26 | FromDiscord | <mratsim> well nimble uninstall and update are meh |
13:18:48 | FromDiscord | <shashlick> mkdir nimbledeps |
13:18:55 | FromDiscord | <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:49 | FromDiscord | <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:30 | Araq | nimbledeps? |
13:23:37 | Araq | oh hell yeah |
13:23:44 | leorize[m]1 | can't you just forbid `#commit` from being used in `nimble build` unless explicitly specified by the nimble file? |
13:24:02 | FromDiscord | <haxscramper> On `devel` my custom nimble task fails with `Error: cannot evaluate at compile time: projectFile`, but on `stable` everything works fine. |
13:24:30 | FromDiscord | <shashlick> @haxscramper please open a bug with details |
13:24:59 | FromDiscord | <shashlick> https://github.com/nim-lang/nimble/issues/318#issuecomment-514453293 regarding #head |
13:25:01 | disbot | ➥ #head versions are not updated upon nimble install ; snippet at 12https://play.nim-lang.org/#ix=2AcB |
13:25:21 | FromDiscord | <shashlick> #commit isn't a problem since it doesn't change with time |
13:26:22 | leorize[m]1 | doesn't `#commit` face the same issue as `#head`? |
13:27:34 | FromDiscord | <shashlick> Head changes with time, #commit doesn't |
13:27:38 | * | narimiran quit (Ping timeout: 260 seconds) |
13:27:55 | FromDiscord | <shashlick> See my comment in the link above |
13:28:02 | * | waleee-cl joined #nim |
13:28:21 | FromDiscord | <dom96> Araq: why are you still using global deps then? 🙂 |
13:29:14 | FromDiscord | <shashlick> @dom96 I've seen that dependency error as well - we need to look into it |
13:29:50 | FromDiscord | <shashlick> It's not even because of a < condition |
13:30:21 | FromDiscord | <dom96> I have an idea about the cause |
13:31:03 | FromDiscord | <shashlick> https://github.com/nim-lang/nimble/issues/505 |
13:31:05 | disbot | ➥ Dependency resolution depends on the order in `requires` ; snippet at 12https://play.nim-lang.org/#ix=2AcC |
13:31:06 | FromDiscord | <dom96> although hm, nimble should pick the latest version when it's a `>=` condition |
13:31:11 | FromDiscord | <dom96> so not sure how this could have happened |
13:31:42 | FromDiscord | <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:50 | FromDiscord | <dom96> (edit) 'package' => 'packages' |
13:32:32 | FromDiscord | <shashlick> The basic problem is that nimble needs to download the entire repo to know pkg info |
13:34:16 | FromDiscord | <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:19 | FromDiscord | <dom96> Araq: can you report this with a repro? |
13:35:27 | FromDiscord | <shashlick> @haxscramper you can share your repo info or the contents of your task or something |
13:39:39 | FromDiscord | <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:42 | PMunch | Hmm, unescape doesn't do \n.. |
13:45:55 | PMunch | In fact it doesn't seem to do anything.. |
13:50:40 | FromDiscord | <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:49 | FromDiscord | <kodkuce> when i come back |
13:50:51 | FromDiscord | <kodkuce> cya leater |
13:51:20 | PMunch | This is weird, it seems to work on the playground |
13:52:20 | PMunch | Oh no wait |
13:52:52 | PMunch | No doesn't work in the playground either: https://play.nim-lang.org/#ix=2AcE |
13:59:11 | Oddmonger | Vim users, do you have something for tags ? Basically, i just want jumping quickly from a function to another… |
13:59:28 | FromDiscord | <lqdev> marks? |
13:59:55 | FromDiscord | <lqdev> you set a mark with `m<letter>` and jump to it with `'<letter>` |
14:00:27 | FromDiscord | <lqdev> eg. you can set up a mark for your file's types section using `mt` and jump to it using `'t` |
14:00:32 | Oddmonger | ah yes i use that already for back and forth modifications, but for functions, it's harder to remember all |
14:00:44 | FromDiscord | <lqdev> true |
14:00:57 | FromDiscord | <lqdev> maybe leorize could implement a command for jumping to functions |
14:01:13 | Oddmonger | i was using tagbar with C and Lua, but it needs ctags |
14:02:39 | leorize[m]1 | `gO` |
14:02:52 | leorize[m]1 | which will give you the outline of the current file |
14:03:25 | FromDiscord | <lqdev> also `[[` and `]]` work |
14:03:44 | leorize[m]1 | then you can jump around with that |
14:03:46 | FromDiscord | <lqdev> oh that gO thing is cool, thanks leorize |
14:04:05 | FromDiscord | <lqdev> is there any way you can hide certain things in the outline? |
14:04:10 | leorize[m]1 | it's the closest that I can get to "jump around the project" with the current nimsuggest |
14:04:11 | FromDiscord | <lqdev> ie. fields and vars |
14:04:36 | leorize[m]1 | open a feature request then :P |
14:04:50 | Oddmonger | yes gO is great, thank you |
14:05:50 | leorize[m]1 | though I won't get to them until I figured math out (I hate studying) |
14:06:07 | leorize[m]1 | I really should document nim.nvim a bit more :p |
14:07:12 | PMunch | Hmm, in does escape \x0A |
14:07:19 | PMunch | Or unescape rather |
14:10:14 | FromDiscord | <lqdev> leorize: https://github.com/alaviss/nim.nvim/issues/36 |
14:10:15 | disbot | ➥ Improve gO outline |
14:11:08 | leorize[m]1 | hmm I actually don't even know that outline can do fields |
14:11:54 | FromDiscord | <lqdev> today you learned :) |
14:12:59 | leorize[m]1 | re: 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:35 | leorize[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:55 | FromDiscord | <Clyybber> Zevv: heh, true. |
14:16:00 | FromDiscord | <lqdev> maybe you could initially fill in the outline sparsely and then update it with additional details asynchronously? |
14:17:06 | leorize[m]1 | I can, if you're patient enough to wait for the entire thing to populate :P |
14:17:26 | leorize[m]1 | re: filtering, do you want a blacklist or a whitelist? |
14:17:32 | leorize[m]1 | I can actually do both tbh |
14:18:09 | FromDiscord | <lqdev> i'd prefer a blacklist for my use case |
14:18:14 | FromDiscord | <lqdev> as i just want to hide noise |
14:18:20 | FromDiscord | <lqdev> and show everything else |
14:19:59 | * | luis joined #nim |
14:21:00 | FromDiscord | <Clyybber> Zevv, narimiran: https://github.com/zevv/npeg/pull/27/files |
14:21:01 | disbot | ➥ Be compatible with 1.0 |
14:22:44 | Araq | Clyybber: seen my messages? |
14:23:05 | Araq | I fear your typed changes cause a regression that keeps 1.4 from compiling Status's code |
14:23:17 | Araq | or maybe it's things I changed |
14:25:02 | Zevv | clyybber: ta |
14:29:39 | FromDiscord | <Clyybber> Araq: Hmm, have a link? |
14:30:14 | Araq | https://github.com/status-im/nim-eth/issues/300 |
14:30:14 | disbot | ➥ "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:00 | FromDiscord | <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:52 | FromDiscord | <lqdev> can i .passC to all .compiled files? |
14:53:06 | FromDiscord | <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:57 | Yardanico | crazy weeb, who likes Nim |
15:05:20 | * | jjido quit (Client Quit) |
15:08:57 | FromDiscord | <lqdev> yeah that's me but yard do you know the answer to my question? |
15:09:03 | Yardanico | I described myself |
15:09:20 | FromDiscord | <lqdev> we're similar then. |
15:09:25 | Araq | lqdev: why wouldn't you? |
15:09:33 | Araq | is .passC not a pragma? |
15:09:52 | FromDiscord | <lqdev> Araq: it is, but it also passes the flags to other compiled modules |
15:10:06 | FromDiscord | <lqdev> from what i understand |
15:10:16 | Araq | as opposed to what? |
15:10:36 | * | a_chou joined #nim |
15:10:39 | FromDiscord | <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:37 | FromDiscord | <lqdev> but i'm wondering whether i need -ffast-math or not at all |
15:11:51 | Araq | Nim devel offers {.compile("file.c", "flags").} |
15:12:00 | FromDiscord | <lqdev> cool |
15:12:01 | * | jjido joined #nim |
15:12:06 | FromDiscord | <lqdev> so i guess i have to wait for 1.4 for now? |
15:12:41 | FromDiscord | <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:45 | leorize[m]1 | Araq: any dependency tracking built in so that I can replace `make`? |
15:26:38 | FromDiscord | <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:30 | FromDiscord | <lqdev> does nim have uintptr_t? |
15:36:48 | FromDiscord | <haxscramper> `ptr cuint` ? |
15:36:53 | FromDiscord | <lqdev> no |
15:37:05 | FromDiscord | <lqdev> uintptr_t is defined as `unsigned long int` on my machine |
15:38:17 | Araq | leorize[m]1: no. |
15:38:55 | leorize[m]1 | @dom96: it tracks the timestamp |
15:44:00 | FromDiscord | <kodkuce> anyone wnats to try my alpha version of game |
15:44:08 | FromDiscord | <kodkuce> 1 and 2 is powerups |
15:44:15 | FromDiscord | <kodkuce> tough i think i fill powerup bar too fast |
15:44:16 | FromDiscord | <kodkuce> https://nooooo.duckdns.org/grammergame/ |
15:44:30 | FromDiscord | <kodkuce> mojasifra is pass for kodkuce |
15:44:48 | FromDiscord | <kodkuce> but only 1 should join cuz double conn |
15:45:03 | FromDiscord | <kodkuce> and for some reason on auth rpi4 takes like 6sec to process |
15:45:51 | FromDiscord | <kodkuce> duno if rpi cant process this auth algo nice cuz on pc it takes like 0.1sec |
15:46:42 | FromDiscord | <kodkuce> i guess i should desiable login page and just limit players with ratelimit |
15:47:44 | FromDiscord | <kodkuce> ps pls dont DDOS me or do evil things :) |
15:55:29 | leorize[m]1 | Araq: 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:13 | Yardanico | so 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:14 | disbot | ➥ Fix --gc:arc in nimscript |
16:04:26 | Yardanico | so 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:35 | Yardanico | but if you then do "nim c --gc:refc myfile.nim" while having that config, it breaks |
16:04:45 | * | sealmove joined #nim |
16:05:14 | Yardanico | Error: system module needs: nimGCvisit |
16:05:20 | FromDiscord | <dom96> leorize: pretty sure Nim tracks the hashes |
16:05:35 | FromDiscord | <dom96> I wouldn't call this "dependency tracking" though |
16:05:43 | * | rockcavera quit (Ping timeout: 260 seconds) |
16:06:24 | FromDiscord | <lqdev> i sometimes wonder why there's only one NEP 🤔 |
16:06:31 | Yardanico | because we use RFCs |
16:06:37 | FromDiscord | <lqdev> yeah |
16:06:43 | FromDiscord | <lqdev> but why not stick with the name NEP |
16:06:52 | Yardanico | too similar to PEP |
16:06:56 | Yardanico | RFC sounds more professional |
16:07:02 | FromDiscord | <lqdev> RFC™ |
16:09:48 | sealmove | Hey 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:13 | leorize[m]1 | Yardanico: I thought that was the idea? :P |
16:10:32 | Yardanico | well it's my subjective opinion :) |
16:10:41 | Yardanico | we shouldn't always pose ourselves as "compiled python" |
16:11:07 | leorize[m]1 | from what I can see NEP is reserved for guidelines and RFC is for actual features |
16:13:29 | FromDiscord | <dom96> AFAIK there are no specific rules of what term to use |
16:13:38 | FromDiscord | <dom96> we just tried NEP once and it didn't catch on for whatever reason |
16:16:18 | Yardanico | oh right time to test nimforum with orc |
16:16:24 | Yardanico | with wrk |
16:18:00 | FromDiscord | <Clyybber> Yardanico: Thats a bug too |
16:18:06 | FromDiscord | <Clyybber> (the gc thin) |
16:18:13 | Yardanico | oh ok |
16:18:14 | Yardanico | will open an issue |
16:18:26 | * | sealmove quit (Read error: No route to host) |
16:20:25 | FromDiscord | <Ricky Spanish> whats the difference between default gc and ```-gc:markAndSweep```? |
16:20:50 | Yardanico | https://nim-lang.org/docs/gc.html |
16:21:47 | FromDiscord | <shashlick> @dom96 - need your help on haxscramper's issue with nimble |
16:22:05 | FromDiscord | <dom96> okay, happy to help 🙂 |
16:22:09 | FromDiscord | <shashlick> https://github.com/haxscramper/hmisc/blob/master/hmisc.nimble#L18 - they are using `thisDir()` at compile time |
16:22:19 | FromDiscord | <shashlick> which works fine on 1.2.6 but not on devel |
16:22:23 | Yardanico | yay |
16:22:29 | Yardanico | nimforum backend with orc = codegen error |
16:22:30 | Yardanico | fun stuff |
16:22:42 | Yardanico | oh hmm |
16:22:43 | FromDiscord | <shashlick> this is because we added code to run nimscript without copying the nims file over |
16:23:17 | FromDiscord | <shashlick> projectFile is a var - https://github.com/nim-lang/nimble/blob/master/src/nimblepkg/nimscriptapi.nim#L47 |
16:23:32 | FromDiscord | <shashlick> and populated in `getParams()` - https://github.com/nim-lang/nimble/blob/master/src/nimblepkg/nimscriptapi.nim#L66 |
16:23:42 | FromDiscord | <shashlick> and that happens at so called runtime of the nims script |
16:23:46 | FromDiscord | <shashlick> any ideas what to do here |
16:25:50 | FromDiscord | <shashlick> basically we added an overload of `thisDir()` to return the right path to the nimble file |
16:27:40 | Yardanico | am I doing something wrong? so nimforum doesn't compile because of incompatible strdup definitions in sass module (libsass wrapper) |
16:27:41 | Yardanico | https://play.nim-lang.org/#ix=2Ady |
16:27:59 | Yardanico | it works if I explicitly add header: "string.h |
16:28:00 | Yardanico | " |
16:28:44 | Yardanico | https://github.com/dom96/sass/blob/master/src/sass.nim#L26 |
16:29:58 | FromDiscord | <dom96> interesting, maybe something changes in sass |
16:30:10 | Yardanico | well it works with normal backend, not with orc |
16:30:14 | Yardanico | I mean gc |
16:30:18 | Yardanico | but doesn't work in a standalone example even with refc |
16:30:20 | Yardanico | really weird |
16:30:25 | Yardanico | but I probably know why |
16:30:32 | Yardanico | maybe it's because nim doesn't include string.h by default? |
16:30:35 | Yardanico | but in a big app it does :P |
16:31:06 | Yardanico | anyway I PRed a change |
16:31:47 | FromDiscord | <treeform> @treeform put a try catch around it and ignore (log it though). |
16:32:24 | FromDiscord | <dom96> shashlick: I'm not sure I understand, what does this have to do with the `projectFile` var error |
16:32:39 | FromDiscord | <dom96> @treeform you okay? You're talking to yourself |
16:32:55 | FromDiscord | <treeform> lol I meant to say @kodkuce |
16:33:05 | FromDiscord | <treeform> but I copied paste my name by accident |
16:33:37 | FromDiscord | <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:55 | FromDiscord | <shashlick> @dom96 - thisDir() is not available at compile time given it is a var and projectFile is only defined at runtime |
16:34:11 | FromDiscord | <shashlick> (edit) 'it' => 'projectFile' | removed 'projectFile' |
16:34:12 | Yardanico | https://i.imgur.com/VNrcJAc.png nimforum once again meets orc |
16:34:15 | Yardanico | will stress test it now |
16:34:34 | FromDiscord | <treeform> compile is wearied, readFile is support but not existsFile. |
16:34:40 | FromDiscord | <treeform> (edit) 'compile ... is' => 'compiletime' |
16:35:58 | FromDiscord | <dom96> @shashlick oh right, hm. Why does this break when the file is not copied? |
16:36:24 | FromDiscord | <shashlick> we added thisDir() into nimscriptapi because now we are running in a different directory |
16:36:42 | FromDiscord | <shashlick> earlier, it used the standard thisDir() which worked at compile time |
16:37:03 | FromDiscord | <shashlick> the version defined in nimscript.nim |
16:37:32 | FromDiscord | <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:38 | FromDiscord | <shashlick> then i need to copy all those into runtime variables |
16:37:50 | FromDiscord | <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:09 | FromDiscord | <shashlick> i think i'll make them consts which get populated with getParams on definition |
16:41:46 | FromDiscord | <dom96> Go for it, I'll have a look at the PR and that might spur some ideas |
16:41:56 | FromDiscord | <dom96> If you can write a test for this also that would be awesome 🙂 |
16:43:56 | FromDiscord | <shashlick> will do |
16:44:47 | Yardanico | nimforum with orc still leaks, but seems to be less than before |
16:44:52 | Yardanico | seems to be 3mb per 95k reqs |
16:44:58 | FromDiscord | <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:04 | Yardanico | that's with single threaded version |
16:45:41 | FromDiscord | <kodkuce> ofc i dont know what changed but now it works |
16:46:16 | Yardanico | not sure why, but multithreaded version with ORC (httpbeast) is almost 4 times _slower_ |
16:46:20 | Yardanico | and also leaks much much much much more |
16:46:31 | Yardanico | like 800mb for 27k reqs |
16:46:47 | Yardanico | and that's on my 16 threads all of which were 100% loaded when stress testing with wrk |
16:47:29 | Yardanico | so yeah, seems like multithreaded httpbeast and orc don't like each other at all |
16:47:53 | Zevv | leorize[m]1: My highlighting sometimes gets very confused by """ strings |
16:47:56 | Yardanico | how does httpbeast handle GC stuff? |
16:47:57 | Zevv | is that a known issue? |
16:48:52 | leorize[m]1 | yea, 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:57 | leorize[m]1 | if you can deal with a bit of slowdown, use `:syntax sync fromstart` as a workaround |
16:50:56 | Zevv | right'o, that'll do, I can put it in my # vim: line for the files that hurt me |
16:50:58 | leorize[m]1 | the issue with vim's highlighter is that it tries to optimize by parsing the part of the file that's on screen |
16:51:36 | Zevv | yeah that's understandable, and Nim is ambiguous when you fall in half way |
16:51:53 | leorize[m]1 | if 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:59 | Zevv | sur |
16:52:48 | Yardanico | sar |
16:53:02 | FromDiscord | <Rika> sor |
16:53:13 | Yardanico | all of these are indian slang for "sir" |
16:54:03 | Yardanico | https://github.com/nim-lang/Nim/issues/14224#issuecomment-706290125 for reference (saved so it doesn't get lost) |
16:54:04 | disbot | ➥ Tracking of some ARC bugs ; snippet at 12https://play.nim-lang.org/#ix=2l1L |
16:54:28 | FromDiscord | <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:18 | Yardanico | hmm actually I can do a much simpler test |
16:55:25 | Yardanico | httpbeast hello world |
16:56:27 | Yardanico | lmao |
16:56:59 | Yardanico | or is a *bit* faster in single-threaded httpbeast helloworld example |
16:57:02 | Yardanico | and does not leak any memory at all |
16:57:20 | Yardanico | it's flat 2340kb |
16:58:05 | Yardanico | multi-threaded refc does ~1.25mil reqs/s on my 3700X |
16:58:31 | Yardanico | hmm, weird, multi-threaded helloworld example with orc doesn't leak either |
16:58:35 | Yardanico | but is ~3x slower |
16:58:54 | FromDiscord | <treeform> @kodkuce that is really strange |
16:59:37 | FromDiscord | <kodkuce> yes |
16:59:40 | FromDiscord | <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:25 | FromDiscord | <shashlick> @leorize - any feedback on https://github.com/dom96/choosenim/pull/227 - cc @dom96 |
17:26:26 | disbot | ➥ Fix 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:35 | Araq | Yardanico, on my slightly less-trivial benchmark orc is 26 times faster |
17:45:41 | Araq | :P |
17:45:47 | Yardanico | for httpbeast? |
17:46:14 | FromDiscord | <Clyybber> Araq: Tracking down the regression, seems to be caused by turning proc params into syms |
17:46:20 | FromDiscord | <Clyybber> I'm close to a minimal repro |
17:47:02 | Prestige | that's a huge speed boost |
17:47:09 | FromDiscord | <Clyybber> it seems that status will skip 1.4 anyways tho |
17:47:17 | Araq | Yardanico, no, for my own "benchmark" |
17:47:24 | Yardanico | well I don't doubt that :) |
17:47:31 | Araq | Clyybber: no. |
17:47:34 | Yardanico | I'm just comparing httpbeast which is used by jester and nimforum |
17:47:44 | Yardanico | i mean by jester |
17:47:49 | FromGitter | <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:54 | FromDiscord | <Clyybber> Araq: wdym? |
17:48:32 | Araq | Status will use 1.4, maybe not 1.4.0 but 1.4.x |
17:48:38 | FromDiscord | <Clyybber> yeah |
17:48:59 | FromDiscord | <Clyybber> I suspect its an easy fix anyways |
17:49:58 | Araq | I'm looking forward to it |
17:52:46 | FromDiscord | <Avatarfighter> Hello hello everyone 🙂 |
17:52:53 | FromDiscord | <Clyybber> @Avatarfighter hi |
17:53:03 | FromDiscord | <Avatarfighter> What's new with you clyybber |
17:53:24 | FromDiscord | <Clyybber> tracking down a regression |
18:06:59 | FromDiscord | <Avatarfighter> That is a tradegy |
18:07:02 | FromDiscord | <Avatarfighter> (edit) 'tradegy' => 'tragedy' |
18:12:06 | Prestige | sup @Avatarfighter |
18:14:37 | FromDiscord | <Avatarfighter> Prestige: What you working on this fine day |
18:15:08 | Prestige | Well just at work atm, going to be working on Nimdow afterward |
18:15:24 | Prestige | and *eventually* I'll start making a game in Nim, lol. Hbu? |
18:21:29 | FromDiscord | <Avatarfighter> Not much tbh I'm just making some stuff for scraping |
18:21:45 | FromDiscord | <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:05 | Prestige | Nice 🙂 |
18:45:11 | idf | idk what my next nim project should be |
18:45:37 | * | abm quit (Remote host closed the connection) |
18:46:27 | Prestige | idf: maybe contrib to an existing project? |
18:47:12 | Prestige | nimsuggest and nimlsp would help with editor support |
18:47:31 | idf | i'll take a look |
18:51:16 | * | nyd joined #nim |
18:53:43 | * | leorize quit (Ping timeout: 240 seconds) |
18:54:02 | idf | i dont have much experience with lsp |
18:55:23 | * | vicfred quit (Quit: Leaving) |
18:57:34 | Prestige | It's a pretty simple protocol if you find the docs |
18:57:55 | idf | alright |
18:58:27 | Prestige | https://microsoft.github.io/language-server-protocol/specifications/specification-current/ |
18:58:41 | idf | thanks |
18:58:47 | Prestige | Aside from that, there are a lot of nimsuggest issues to look intoo |
18:58:50 | Prestige | any 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:52 | idf | https://github.com/nim-lang/nimsuggest/issues/112 i will work on this if its still open |
19:11:54 | disbot | ➥ False negative on buildHtml in Karax ; snippet at 12https://play.nim-lang.org/#ix=2AeG |
19:17:37 | Prestige | idf: 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:08 | FromDiscord | <dom96> httpbeast slower under orc, that's not good |
22:07:13 | supakeen | did you take a stab at it with uring? |
22:09:27 | nature | Is 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:01 | FromDiscord | <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:37 | FromDiscord | <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:32 | FromDiscord | <PizzaFox> hmmm so you would have to make bindings for whatever system library there is for getting pids then |
22:46:40 | FromDiscord | <PizzaFox> le windows.h has arrived |
22:56:29 | * | Trustable quit (Remote host closed the connection) |
23:01:49 | FromDiscord | <dom96> ideally you'd create a nice Nim library that enables anyone to manage outside processes on various operating systems 🙂 |
23:04:27 | FromDiscord | <PizzaFox> hmmmmmmmmmmmmmmm |
23:04:29 | FromDiscord | <PizzaFox> may b |
23:04:38 | FromDiscord | <PizzaFox> what would i call it |
23:04:49 | FromDiscord | <Elegant Beef> Proccesor 😛 |
23:40:32 | FromDiscord | <PizzaFox> new unrelated question |
23:40:39 | FromDiscord | <PizzaFox> if i wanted to check if a string was empty |
23:40:51 | FromDiscord | <PizzaFox> is it better to do↵`s.len > 0` or `s.len != 0` |
23:42:45 | FromDiscord | <Elegant Beef> Do whatever you prefer, but i tend to use the `strutils.isEmptyOrWhitespace` |
23:43:22 | FromDiscord | <PizzaFox> surely that will be slower |
23:43:29 | FromDiscord | <PizzaFox> it checks for whitespace |
23:45:01 | FromDiscord | <Elegant Beef> Yea i said it's what i tend to use since i dont care about pure whitespace |
23:45:13 | FromDiscord | <PizzaFox> i really care about performance for this bit |
23:45:31 | FromDiscord | <PizzaFox> so i will simply use the not eq 0 |