00:00:08 | FromDiscord | <retkid> it seems that the first two numbers in 32bit are some kind of signal |
00:00:28 | FromDiscord | <Elegantbeef> Yes they need to do `[SBase[string, int](b), c , a]`↵(@Bung) |
00:00:52 | FromDiscord | <Elegantbeef> Otherwise it attempts to make a `seq[SRC]` |
00:04:20 | FromDiscord | <Bung> what about `var x = [a, b, c]` , it implicit casting to base type ? so it accept ? |
00:07:31 | FromDiscord | <Elegantbeef> Correct |
00:08:33 | FromDiscord | <Elegantbeef> It's no different to `var a: SRC = SBase[string, int]()` versus `var a: SBase[string, int] = SRC()` |
00:10:03 | FromDiscord | <Bung> so I think this one should close , relevant issues are closed |
00:17:05 | FromDiscord | <Elegantbeef> Indeed |
00:17:23 | FromDiscord | <Patitotective> do arrays have tuple-like unpacking? |
00:17:30 | FromDiscord | <Elegantbeef> No |
00:17:32 | FromDiscord | <Elegantbeef> But macros do give it |
00:17:56 | FromDiscord | <Elegantbeef> https://metagn.github.io/assigns/docs/assigns.html for instance |
00:24:53 | FromDiscord | <Patitotective> sent a code paste, see https://play.nim-lang.org/#ix=4aYx |
00:25:16 | FromDiscord | <Patitotective> (edit) "https://paste.rs/yiD" => "https://paste.rs/10i" |
00:26:14 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4aYy |
00:26:21 | FromDiscord | <Patitotective> :] |
00:26:24 | FromDiscord | <Elegantbeef> Macros do have dispatch woes so dont overload it too much |
00:27:02 | FromDiscord | <Patitotective> :p |
00:27:18 | FromDiscord | <Elegantbeef> https://github.com/beef331/kashae/blob/master/src/kashae.nim Might be a reference on what you're doing |
00:28:20 | FromDiscord | <Patitotective> :] |
00:28:25 | FromDiscord | <Elegantbeef> lines 204..214 |
00:34:25 | FromDiscord | <!!sharpcdf!!> and the like |
00:34:25 | FromDiscord | <!!sharpcdf!!> sent a code paste, see https://play.nim-lang.org/#ix=4aYA |
00:35:37 | FromDiscord | <Elegantbeef> libwebkit |
00:35:49 | FromDiscord | <!!sharpcdf!!> let me try it |
00:36:06 | FromDiscord | <Elegantbeef> https://github.com/marcomq/nimview/blob/main/nimview.nimble#L17-L20 |
00:38:21 | * | rockcavera quit (Ping timeout: 250 seconds) |
00:38:36 | FromDiscord | <!!sharpcdf!!> In reply to @Elegantbeef "https://github.com/marcomq/nimview/blob/main/nimvie": dnf says that its already installed :/ |
00:39:19 | FromDiscord | <Patitotective> sent a code paste, see https://play.nim-lang.org/#ix=4aYC |
00:39:30 | FromDiscord | <Patitotective> sent a code paste, see https://play.nim-lang.org/#ix=4aYD |
00:40:04 | FromDiscord | <Patitotective> static typedesc? |
00:41:29 | FromDiscord | <Elegantbeef> `NimNode` my guy |
00:41:51 | FromDiscord | <Patitotective> hm |
00:42:57 | FromDiscord | <Elegantbeef> You need a proc to handle the code |
00:43:11 | FromDiscord | <Elegantbeef> You cannot just call a macro cause a macro is a macro not a proc |
00:43:20 | FromDiscord | <Elegantbeef> So you pass in `NimNode`s |
00:43:25 | FromDiscord | <!!sharpcdf!!> sent a code paste, see https://play.nim-lang.org/#ix=4aYF |
00:43:28 | FromDiscord | <Patitotective> In reply to @Elegantbeef "You cannot just call": made sense in my head |
00:43:28 | FromDiscord | <Elegantbeef> Look at my `cacheImpl` and `cacheOptImpl` |
00:43:37 | FromDiscord | <!!sharpcdf!!> some more errors, looks like gtk+ is the problem but ive tried installing and updating it |
00:43:58 | FromDiscord | <Patitotective> btw there's no way to `{.parsing: arg1, arg2.}` instead of `{.parsing(arg1, arg2).}` |
00:44:11 | FromDiscord | <Elegantbeef> No it's just command syntax |
00:44:17 | FromDiscord | <Patitotective> :[ |
00:44:29 | FromDiscord | <Elegantbeef> I mean it' |
00:44:35 | FromDiscord | <Elegantbeef> s ambiguous otherwise |
00:45:12 | FromDiscord | <Elegantbeef> `{.a: b, c.}` vs \`{. a(b), c.} |
00:45:36 | FromDiscord | <Patitotective> thats where semicolons come in ;] |
00:45:50 | FromDiscord | <Elegantbeef> ... |
00:46:33 | FromDiscord | <Patitotective> `{.a: b; c.}` |
00:47:31 | FromDiscord | <Rika> I don’t think you can convince anyone to make this change |
00:47:54 | FromDiscord | <Patitotective> :p |
00:51:01 | FromDiscord | <!!sharpcdf!!> can someone with linux try to reproduce a basic build with nimview to see if its just me? |
00:52:56 | FromDiscord | <Patitotective> sent a code paste, see https://paste.rs/Ebg |
00:54:51 | FromDiscord | <Patitotective> In reply to @sharpcdf "can someone with linux": ubuntu 22.04↵doesnt work either |
00:55:05 | FromDiscord | <Patitotective> let me install webkit |
00:55:52 | FromDiscord | <!!sharpcdf!!> ok |
00:56:02 | FromDiscord | <!!sharpcdf!!> do you have the same error messages with the linker? |
00:56:23 | FromDiscord | <!!sharpcdf!!> ive also tried neel before and that also didnt work, pretty sure it was a separate error |
00:56:52 | FromDiscord | <Patitotective> for me it says `gcc: warning: webkit2gtk-4.0: linker input file unused because linking not done` |
00:57:08 | FromDiscord | <!!sharpcdf!!> bingo |
00:57:11 | FromDiscord | <!!sharpcdf!!> same error |
00:57:33 | FromDiscord | <Patitotective> actually i didnt install webkit2gtk4 on sec |
00:57:40 | FromDiscord | <!!sharpcdf!!> except i dont think i have one for webkit, just gtk+, pkg-config and something else |
00:57:53 | FromDiscord | <Patitotective> In reply to @sharpcdf "except i dont think": not same error then 💀 |
00:58:07 | FromDiscord | <!!sharpcdf!!> well the thing is i have gtk+-3.0 installed |
00:58:14 | FromDiscord | <!!sharpcdf!!> i have no clue what the problem here is |
00:58:54 | FromDiscord | <Patitotective> installing libwebkit2gtk worked |
00:59:00 | FromDiscord | <!!sharpcdf!!> and apparently according to dnf theres no package called gtk+-3.0 |
00:59:04 | FromDiscord | <!!sharpcdf!!> damn it |
00:59:18 | FromDiscord | <!!sharpcdf!!> i guess i just need to keep looking for related packages? |
00:59:24 | FromDiscord | <Rika> look for a package that provides gtk+ |
00:59:33 | FromDiscord | <Rika> doesnt your manager have that capabilit |
00:59:34 | FromDiscord | <Rika> (edit) "capabilit" => "capability" |
00:59:36 | FromDiscord | <Rika> many do |
01:00:18 | FromDiscord | <Rika> "For C programming with Gtk+ you need to install the development version of the important GNOME libraries. Those contain the header files and additional linker information:↵↵sudo dnf install gtk3-devel gstreamer1-devel clutter-devel webkit2gtk3-devel libgda-devel gobject-introspection-devel" |
01:00:19 | FromDiscord | <!!sharpcdf!!> In reply to @Rika "look for a package": i already have it installed |
01:00:46 | FromDiscord | <!!sharpcdf!!> trying all those packages |
01:01:12 | FromDiscord | <!!sharpcdf!!> nope |
01:01:34 | FromDiscord | <!!sharpcdf!!> sent a code paste, see https://play.nim-lang.org/#ix=4aUp |
01:01:38 | FromDiscord | <!!sharpcdf!!> on repeat |
01:01:40 | FromDiscord | <Patitotective> look for libgtk |
01:04:12 | FromDiscord | <Rika> your c compiler is misconfigured |
01:04:15 | FromDiscord | <Rika> somehow |
01:04:22 | FromDiscord | <!!sharpcdf!!> gtk+, gtk4, gtk4-devel gtk4-devel-tools gtk+-devel, gonna try all these |
01:05:13 | FromDiscord | <!!sharpcdf!!> yep no fix |
01:05:24 | FromDiscord | <!!sharpcdf!!> In reply to @Rika "your c compiler is": should i just dnf remove and then reinstall? |
01:05:46 | FromDiscord | <Rika> no i dont think that would help |
01:06:04 | FromDiscord | <!!sharpcdf!!> what could help then? |
01:06:20 | FromDiscord | <!!sharpcdf!!> i havent done anything with gcc so i dont know how it could have been misconfigured |
01:06:50 | FromDiscord | <!!sharpcdf!!> ill try reinstalling rq |
01:07:17 | FromDiscord | <!!sharpcdf!!> probably wont work but might as well try |
01:07:30 | FromDiscord | <!!sharpcdf!!> yea no fix |
01:11:20 | * | rockcavera joined #nim |
01:11:21 | * | rockcavera quit (Changing host) |
01:11:21 | * | rockcavera joined #nim |
01:28:20 | * | Jjp137 quit (Quit: Leaving) |
01:45:39 | FromDiscord | <Patitotective> sent a code paste, see https://play.nim-lang.org/#ix=4aYQ |
01:47:46 | FromDiscord | <Elegantbeef> `echo result.repr` is a hell of a debug method |
01:48:28 | FromDiscord | <Patitotective> compile error before that, so it doesnt print it :[ |
01:48:36 | FromDiscord | <Elegantbeef> what? |
01:48:54 | FromDiscord | <Elegantbeef> sent a code paste, see https://play.nim-lang.org/#ix=4aYU |
01:49:06 | * | Jjp137 joined #nim |
01:50:02 | FromDiscord | <Patitotective> hmm dont know whats happening, it doesnt print it for `match` |
01:52:40 | FromDiscord | <Elegantbeef> No clue |
02:02:31 | FromDiscord | <Patitotective> seems to be some problem with overloading, if i rename one of the parsing macros it works |
02:14:31 | FromDiscord | <Patitotective> `{.foo[T]().}` is not allowed either :[ |
02:25:32 | FromDiscord | <Patitotective> sent a code paste, see https://play.nim-lang.org/#ix=4aZ0 |
02:25:43 | FromDiscord | <Rika> What did you write LMAO |
02:25:46 | FromDiscord | <Elegantbeef> `getType` on `void` |
02:26:18 | FromDiscord | <Patitotective> i trusted your `distinct void` |
02:26:29 | FromDiscord | <Elegantbeef> Dont blame me |
02:26:46 | FromDiscord | <Patitotective> :p |
02:47:00 | * | rockcavera quit (Read error: Connection reset by peer) |
05:09:41 | * | hochata quit (Ping timeout: 268 seconds) |
05:31:54 | NimEventer | New question by flo: Can't get Pretty Printers to work for debugging Nim code in Codium (VSCode) with GDB (nim-gdb.py), see https://stackoverflow.com/questions/73782010/cant-get-pretty-printers-to-work-for-debugging-nim-code-in-codium-vscode-with |
06:57:57 | FromDiscord | <ravinder387> # create tables↵var a = initTable[cstring, JsObject]()↵a["name"] = toJs(cstring("ravi"))↵a["age"] = 28 |
06:58:06 | FromDiscord | <ravinder387> err9r] |
06:58:34 | FromDiscord | <ravinder387> sent a long message, see http://ix.io/4aZw |
06:59:18 | FromDiscord | <ravinder387> sent a code paste, see https://play.nim-lang.org/#ix=4aZx |
06:59:31 | FromDiscord | <ravinder387> when isMainModule:↵ console.log(a) |
07:01:37 | FromDiscord | <Elegantbeef> `toJs 28` |
07:22:45 | FromDiscord | <ravinder387> sent a code paste, see https://play.nim-lang.org/#ix=4aZB |
07:23:00 | FromDiscord | <ravinder387> how to represent this js object in nim by jsffi |
07:25:56 | FromDiscord | <ravinder387> default nim's object convert into js and i can write nim object. but little-bit time consuming. and I also call JSON.parse js function. but i find issue to generate random number seq to attach at json string """ @[1,2,3] """ |
07:38:31 | * | LuxuryMode quit (Quit: Connection closed for inactivity) |
08:11:20 | * | arkurious joined #nim |
08:21:31 | * | Vladar joined #nim |
08:25:18 | FromDiscord | <ravinder387> var a = @[1,2,3] |
08:25:50 | FromDiscord | <ravinder387> fmt(""" { "data": {a} } """ |
08:25:52 | FromDiscord | <ravinder387> error |
08:27:34 | NimEventer | New Nimble package! dimage - Pure Nim, no external dependencies, image mime type and dimension reader for images, see https://github.com/accodeing/dimage |
08:53:58 | FromDiscord | <ravinder387> suppose i have string "@[1,2,3]" --> how to remove @ symbol from string by regex |
09:25:13 | FromDiscord | <Forest [She/Her]> In reply to @David "Any particular reason you're": @David ah sorry, didn't see this until now, the reason why I'm outputting Jasmin instead of Java now is because it's going to be a lot easier to output low level code instead of direct Java source code, i may work on outputting Java source code like i originally wanted to but, it's not really sensible |
09:25:37 | FromDiscord | <Forest [She/Her]> In reply to @David "<@909883978717204561>\: Sorry one last": I'll look into that rn |
09:27:57 | FromDiscord | <Forest [She/Her]> Hm, I'll try to figure this out |
09:28:23 | FromDiscord | <Forest [She/Her]> I can always work on outputting the JVM bytecode specifically too, if Jasmin ends up limiting me too much |
10:08:54 | * | jmdaemon quit (Ping timeout: 244 seconds) |
10:27:28 | FromDiscord | <jmgomez> sent a code paste, see https://paste.rs/d6e |
10:35:06 | FromDiscord | <Yardanico> In reply to @ravinder387 "how to represent this": you don't need stringification at all! |
10:35:38 | FromDiscord | <Yardanico> just use std/jsffi |
10:41:05 | FromDiscord | <Bung> I don't use for years, doesn't it deprecated ? |
10:41:16 | FromDiscord | <Bung> (edit) "I don't use ... for" added "`method`" |
10:43:58 | FromDiscord | <jmgomez> In reply to @Bung "I don't use `method`": Didnt know that. So if you need something with a vtable what do you use instead? |
10:44:33 | FromDiscord | <Bung> proc is enough I think |
10:45:06 | FromDiscord | <jmgomez> procs are statically dispatched, arent they? |
10:45:42 | FromDiscord | <Rika> In reply to @jmgomez "Didnt know that. So": I don’t think they’re deprecated |
10:46:00 | FromDiscord | <Rika> In reply to @jmgomez "procs are statically dispatched,": Do you use inheritance? |
10:47:49 | FromDiscord | <jmgomez> Yes, is not that I like it but I do use it in the code above. That's how I know it works for the two methods below |
10:48:24 | FromDiscord | <jmgomez> It seems to get confused when using type classes |
10:48:44 | FromDiscord | <jmgomez> and it calls the base instead of the more concrete implementation |
10:48:59 | FromDiscord | <Rika> I don’t know then, I don’t think type classes like that work with methods well, not sure |
10:49:17 | FromDiscord | <jmgomez> Ok, thanks |
10:50:08 | FromDiscord | <Bung> what's the first case error, nim repo's issues may already have / |
10:50:13 | FromDiscord | <jmgomez> https://forum.nim-lang.org/t/4921↵Found this, they said generic methods are deprecated |
10:53:03 | FromDiscord | <Bung> oh, good to know, still there are 134 issues opened labeled as Generics |
10:53:54 | FromDiscord | <jmgomez> From what they say there, it's a common problem in other langs to mix generics with dynamic dispatching |
10:56:33 | FromDiscord | <Forest [She/Her]> In reply to @jmgomez "Didnt know that. So": Vtable? |
10:57:00 | FromDiscord | <Forest [She/Her]> Isn't a proc just returning `self.getEntities()` enough? |
10:58:22 | FromDiscord | <jmgomez> That's just something that illustrates the issue, the goal would be to achieve something like interfaces on generic types |
11:00:30 | FromDiscord | <Forest [She/Her]> Wdym by interfaces? I don't think i understand |
11:02:10 | FromDiscord | <jmgomez> interfaces like in other langs, concepts may work but they start to fail when you push them with too many types. ↵I got a workaround to the problem above by doing the "code substitution" myself by wrapping the methods definitions with a template that gets invoked by both implementations |
11:13:34 | FromDiscord | <Bung> https://github.com/nim-lang/Nim/issues/19546 `type ExampleObj = object ArrayName : array` does this valid ? |
11:13:46 | FromDiscord | <Forest [She/Her]> Ah fair |
11:14:20 | FromDiscord | <Forest [She/Her]> In reply to @Bung "https://github.com/nim-lang/Nim/issues/19546 `type ": No don't think so |
11:14:46 | FromDiscord | <Forest [She/Her]> You can do `type ExampleObj = array[YourType]` tho |
11:15:42 | FromDiscord | <Bung> hmm, me neither, but the auther assuming only one place is wrong |
11:27:24 | FromDiscord | <vestel> Why `const` and `static` blocks runs before macros expansion? |
11:27:40 | FromDiscord | <vestel> though macro calls are before `static` and `const` blocks |
11:34:55 | * | Vladar quit (Quit: Leaving) |
11:46:35 | * | Goodbye_Vincent quit (Read error: Connection reset by peer) |
11:51:15 | FromDiscord | <Forest [She/Her]> Do `seq`s automatically initialise like `Table`s? |
11:51:15 | FromDiscord | <planetis> There are plenty of 'interface' libraries in nimble |
11:51:15 | FromDiscord | <planetis> You can do it yourself though it's not hard |
11:51:15 | * | oz quit (Ping timeout: 240 seconds) |
11:51:16 | * | TrueBlue[m] quit (*.net *.split) |
11:51:16 | * | droidrage quit (*.net *.split) |
11:51:16 | * | meowray quit (*.net *.split) |
11:51:16 | * | fallback quit (*.net *.split) |
11:51:17 | * | wallabra quit (*.net *.split) |
11:51:17 | * | genpaku quit (*.net *.split) |
11:51:17 | * | m5zs7k quit (*.net *.split) |
11:51:17 | * | arkurious quit (*.net *.split) |
11:51:17 | * | disso_peach quit (*.net *.split) |
11:51:17 | * | dv^_^ quit (*.net *.split) |
11:51:17 | * | def- quit (*.net *.split) |
11:51:17 | * | dtomato quit (*.net *.split) |
11:51:17 | * | MightyJoe quit (*.net *.split) |
11:51:17 | * | lumidify quit (*.net *.split) |
11:51:17 | * | rb quit (*.net *.split) |
11:51:17 | * | _________ quit (*.net *.split) |
11:51:18 | * | tinytoast quit (*.net *.split) |
11:51:18 | * | lain quit (*.net *.split) |
11:51:18 | * | blackbeard420 quit (*.net *.split) |
11:51:18 | * | via__ quit (*.net *.split) |
11:51:18 | * | euantorano quit (*.net *.split) |
11:51:18 | * | qwr quit (*.net *.split) |
11:51:18 | * | neceve quit (*.net *.split) |
11:51:18 | * | attah quit (*.net *.split) |
11:51:18 | * | tk quit (*.net *.split) |
11:51:18 | * | ldlework quit (*.net *.split) |
11:51:18 | * | cornfeedhobo quit (*.net *.split) |
11:51:18 | * | arkanoid quit (*.net *.split) |
11:51:18 | * | qwestion quit (*.net *.split) |
11:51:18 | * | Amun-Ra quit (*.net *.split) |
11:51:19 | * | alice quit (*.net *.split) |
11:51:19 | * | jkl quit (*.net *.split) |
11:51:19 | * | reversem3[m] quit (*.net *.split) |
11:51:19 | * | om3ga quit (*.net *.split) |
11:51:19 | * | LyndsySimon quit (*.net *.split) |
11:51:19 | * | xaltsc quit (*.net *.split) |
11:51:19 | * | ixmpp quit (*.net *.split) |
11:51:19 | * | notchris quit (*.net *.split) |
11:51:19 | * | oprypin quit (*.net *.split) |
11:51:19 | * | drewr quit (*.net *.split) |
11:51:19 | * | sforman quit (*.net *.split) |
11:51:20 | * | noeontheend quit (*.net *.split) |
11:51:20 | * | Freneticks quit (*.net *.split) |
11:51:20 | * | mronetwo quit (*.net *.split) |
11:51:20 | * | djanatyn quit (*.net *.split) |
11:51:20 | * | systemdsucks quit (*.net *.split) |
11:51:20 | * | redj quit (*.net *.split) |
11:51:20 | * | nisstyre quit (*.net *.split) |
11:51:20 | * | DixieFlatline quit (*.net *.split) |
11:51:20 | * | mal`` quit (*.net *.split) |
11:51:20 | * | gshumway quit (*.net *.split) |
11:51:20 | * | Yardanico quit (*.net *.split) |
11:51:20 | * | madprog quit (*.net *.split) |
11:51:20 | * | vicecea quit (*.net *.split) |
11:51:20 | * | syl quit (*.net *.split) |
11:51:20 | * | NimEventer quit (*.net *.split) |
11:51:20 | * | crem quit (*.net *.split) |
11:51:20 | * | termer quit (*.net *.split) |
11:53:46 | * | Onionhammer quit (Quit: Ping timeout (120 seconds)) |
11:54:12 | * | ox joined #nim |
11:54:12 | * | arkurious joined #nim |
11:54:12 | * | qwr joined #nim |
11:54:12 | * | neceve joined #nim |
11:54:12 | * | disso_peach joined #nim |
11:54:12 | * | wallabra joined #nim |
11:54:12 | * | attah joined #nim |
11:54:12 | * | dv^_^ joined #nim |
11:54:12 | * | genpaku joined #nim |
11:54:12 | * | vicecea joined #nim |
11:54:12 | * | def- joined #nim |
11:54:12 | * | meowray joined #nim |
11:54:12 | * | fallback joined #nim |
11:54:12 | * | dtomato joined #nim |
11:54:12 | * | syl joined #nim |
11:54:12 | * | sforman joined #nim |
11:54:12 | * | noeontheend joined #nim |
11:54:12 | * | Freneticks joined #nim |
11:54:12 | * | mronetwo joined #nim |
11:54:12 | * | m5zs7k joined #nim |
11:54:12 | * | MightyJoe joined #nim |
11:54:12 | * | reversem3[m] joined #nim |
11:54:12 | * | arkanoid joined #nim |
11:54:12 | * | tinytoast joined #nim |
11:54:12 | * | lain joined #nim |
11:54:12 | * | alice joined #nim |
11:54:12 | * | NimEventer joined #nim |
11:54:12 | * | tk joined #nim |
11:54:12 | * | crem joined #nim |
11:54:12 | * | termer joined #nim |
11:54:12 | * | _________ joined #nim |
11:54:12 | * | rb joined #nim |
11:54:12 | * | lumidify joined #nim |
11:54:12 | * | Amun-Ra joined #nim |
11:54:12 | * | qwestion joined #nim |
11:54:12 | * | cornfeedhobo joined #nim |
11:54:12 | * | ldlework joined #nim |
11:54:12 | * | euantorano joined #nim |
11:54:12 | * | via__ joined #nim |
11:54:12 | * | blackbeard420 joined #nim |
11:54:12 | * | jkl joined #nim |
11:54:12 | * | ixmpp joined #nim |
11:54:12 | * | xaltsc joined #nim |
11:54:12 | * | LyndsySimon joined #nim |
11:54:12 | * | om3ga joined #nim |
11:54:12 | * | drewr joined #nim |
11:54:12 | * | oprypin joined #nim |
11:54:12 | * | notchris joined #nim |
11:54:12 | * | redj joined #nim |
11:54:12 | * | systemdsucks joined #nim |
11:54:12 | * | djanatyn joined #nim |
11:54:12 | * | madprog joined #nim |
11:54:12 | * | Yardanico joined #nim |
11:54:12 | * | gshumway joined #nim |
11:54:12 | * | mal`` joined #nim |
11:54:12 | * | DixieFlatline joined #nim |
11:54:12 | * | nisstyre joined #nim |
11:54:16 | * | Onionhammer joined #nim |
11:54:50 | * | TrueBlue[m] joined #nim |
11:54:50 | * | droidrage joined #nim |
11:55:12 | * | FromDiscord quit (*.net *.split) |
11:55:12 | * | mahlon quit (*.net *.split) |
11:55:12 | * | adium quit (*.net *.split) |
11:55:12 | * | nyeaa4 quit (*.net *.split) |
11:58:59 | * | reversem3[m] quit (Ping timeout: 248 seconds) |
12:00:05 | * | FromDiscord joined #nim |
12:00:05 | * | mahlon joined #nim |
12:00:05 | * | adium joined #nim |
12:00:05 | * | nyeaa4 joined #nim |
12:10:09 | FromDiscord | <Rika> In reply to @Dreamer (Previously Forest) "Do `seq`s automatically initialise": Sequences are empty by default ues |
12:10:10 | FromDiscord | <Rika> Yes |
12:10:13 | FromDiscord | <Rika> They have no nil |
12:16:12 | FromDiscord | <Forest [She/Her]> Okay neat |
12:23:04 | * | reversem3[m] joined #nim |
13:05:25 | FromDiscord | <Forest [She/Her]> @David it seems like Jasmin does support emitting line numbers, though since Nim is gonna be compiling many objects from one file into multiple jasmin files, it may not work out as i want it to |
13:05:34 | FromDiscord | <aph> is nim playground down? or is it just me |
13:06:16 | FromDiscord | <Forest [She/Her]> In reply to @aph "is nim playground down?": It's down |
13:06:28 | FromDiscord | <aph> In reply to @Dreamer (Previously Forest) "It's down": rip |
13:06:37 | FromDiscord | <Forest [She/Her]> PMunch (person who runs it) is busy or on vacation so hasn't been able to get it up |
13:07:29 | FromDiscord | <aph> ah ill have to use inim then thanks for the info |
13:07:42 | FromDiscord | <Kiloneie> i was just about to ask myself |
13:07:46 | FromDiscord | <Kiloneie> dang it |
13:08:01 | FromDiscord | <Rika> "why would you ask yourself a question" |
13:08:05 | FromDiscord | <Rika> i am joking |
13:09:57 | FromDiscord | <Kiloneie> Oh this is horrible... ugh... https://justpaste.it/7053v↵Does anyone know what the first {.base.} pragma on attack method is throwing me an Error: invalid pragma: base ? |
13:12:48 | FromDiscord | <Kiloneie> Even if i switch them up, it's still the "bandit" one, my knowledge of pragmas is weak. |
13:16:30 | FromDiscord | <Kiloneie> Ignore me, i am blind |
13:16:43 | FromDiscord | <Kiloneie> i somehow had proc there |
13:22:03 | FromDiscord | <David> sent a long message, see https://paste.rs/rBl |
13:23:44 | FromDiscord | <Yardanico> In reply to @Kiloneie "Oh this is horrible...": please use other paste services in the future |
13:24:39 | FromDiscord | <Kiloneie> Yeah... it's gross xD... |
13:24:40 | FromDiscord | <Yardanico> yours is not an method |
13:25:07 | FromDiscord | <ravinder387> sent a code paste, see https://paste.rs/lbz |
13:25:10 | FromDiscord | <Kiloneie> i know, i was blind, already said so. |
13:25:21 | FromDiscord | <ravinder387> how to wrap this by jsffi |
13:25:39 | FromDiscord | <David> I suspect jnim may be the easier route than creating the java generation server and have lower performance overhead. |
13:45:30 | FromDiscord | <Forest [She/Her]> In reply to @David "In that case maybe": Hm I'll look into using Roaster then, thank you ^^ |
14:00:46 | FromDiscord | <AmjadHD> sent a code paste, see https://paste.rs/pUv |
14:01:24 | FromDiscord | <AmjadHD> sent a code paste, see https://paste.rs/JHD |
14:01:44 | FromDiscord | <AmjadHD> Is this a known bug ? |
14:03:58 | FromDiscord | <Phil> Bug?↵I don't think that's a bug. At least from what I'm seeing I'm not convinced toOpenArray does a copy |
14:04:12 | FromDiscord | <Phil> And if it doesn't do a copy then it's performing a side-effect |
14:05:03 | FromDiscord | <Rika> its a bug, it shouldnt sigsegv |
14:05:19 | FromDiscord | <Rika> then again youre using two experimentals |
14:06:17 | FromDiscord | <Phil> In reply to @Rika "its a bug, it": Fair |
14:07:51 | FromDiscord | <Phil> In unrelated news, I wish async error logs were not so absolutely useless↵> nswebserver | Exception message: field 'key' is not accessible for type 'NodeObj' using 'isLeaf = 109'↵This followed by, I kid you not, over 200 lines of BS async logs, none of which have anything to do with the actual error whose starting point I'm still looking for because the message itself doesn't tell me where its exploding, neither does the flipping |
14:08:38 | FromDiscord | <Phil> (edit) "logs," => "stacktrace," |
14:10:35 | * | LuxuryMode joined #nim |
14:16:16 | FromDiscord | <untoreh> sent a code paste, see https://paste.rs/dCu |
14:19:33 | FromDiscord | <AmjadHD> In reply to @Isofruit "Bug? I don't think": https://nim-lang.github.io/Nim/manual_experimental.html#strict-funcs↵> Any mutation to an object does count as a side effect if that object is reachable via a parameter that is not declared as a `var` parameter.↵the parameter a is declared `var`, so this is not a sideeffect. |
14:20:44 | FromDiscord | <AmjadHD> `v` should be a mutable view, and this should fine IMO. |
14:20:59 | FromDiscord | <AmjadHD> (edit) "should be" => "is" |
14:21:50 | FromDiscord | <AmjadHD> (edit) "and this" => "mutating a via it" | "fine IMO." => "not be an error." |
14:58:04 | * | rockcavera joined #nim |
14:58:05 | * | rockcavera quit (Changing host) |
14:58:05 | * | rockcavera joined #nim |
15:08:58 | FromDiscord | <Kiloneie> Is Nimprof good enough or should i use valgrind for proper results? |
15:11:38 | FromDiscord | <Kiloneie> Also if i get an empty results file, why is that? |
15:11:55 | FromDiscord | <Require Support> In reply to @Isofruit "In unrelated news, I": this annoys me too, had some code that broke when using `orc` but was fine with `gc` and the error was related to httpclient and async. No idea how to begin tracing it and finding why it destroys itself. |
15:12:04 | FromDiscord | <Require Support> (edit) "`gc`" => "`refc`" |
15:13:42 | FromDiscord | <Phil> @flywind How do I actually swap out the http server in prologue?↵I see Server Settings but they don't explain how to do so. ↵I'm having the faint hope I can figure out my bug if I use a sync-http server |
15:13:53 | FromDiscord | <Phil> And escape all this async stacktrace nightmare |
15:14:18 | FromDiscord | <flywind> In reply to @Isofruit "<@658563905425244160> How do I": It doesn't support sync server. |
15:14:41 | FromDiscord | <Phil> I dunno how to react to that so I'll just say to imagine a kicked puppy |
15:15:04 | FromDiscord | <flywind> You can try this to get a better stacktrace => https://github.com/nim-lang/Nim/issues/19931#issuecomment-1167658160 |
15:15:05 | FromDiscord | <Phil> Alright, time to think how else I can figure out where that error comes from |
15:15:57 | qwr | afaik there are some problems with closures and orc (have some examples myself that should be made into bug report probably) |
15:19:51 | FromDiscord | <Phil> sent a long message, see https://paste.rs/Dup |
15:19:52 | qwr | Require Support: and one thing you might want to check is, if you're having any closure in for cycles - then you have to use https://nim-lang.org/docs/sugar.html#capture.m%2Cvarargs%5Btyped%5D%2Cuntyped with current nim |
15:20:31 | FromDiscord | <Phil> (edit) "https://paste.rs/HLm" => "https://paste.rs/dMW" |
15:20:32 | FromDiscord | <flywind> In reply to @Isofruit "Sadly it's not the": What about switching to asynchttpserver? |
15:20:41 | FromDiscord | <flywind> `-d:useStd` or so |
15:21:43 | FromDiscord | <Phil> I'll try it out. The issue only occurs when I'm (in like 1-second intervals) swap webpages, each of which send 2 HTTP requests to my application. |
15:21:53 | FromDiscord | <Phil> And then only after the 10th pageload or so |
15:22:38 | FromDiscord | <Phil> God I love that I set up a nimble task that does everything from compile, to creating image, to composing it all up |
15:23:29 | FromDiscord | <Shiba> yes WHAT! https://media.discordapp.net/attachments/371759389889003532/1021803792104177755/Screenshot_2022-09-20_16-22-55.png https://media.discordapp.net/attachments/371759389889003532/1021803792544563310/Screenshot_2022-09-20_16-21-38.png https://media.discordapp.net/attachments/371759389889003532/1021803793098227712/Screenshot_2022-09-20_16-06-44.png |
15:26:23 | FromDiscord | <flywind> In reply to @Isofruit "Sadly it's not the": Yeah, it seems to be related with the route |
15:27:14 | FromDiscord | <flywind> sent a code paste, see https://paste.rs/sPJ |
15:28:17 | FromDiscord | <Phil> In reply to @flywind "Yeah, it seems to": Hmmm given that I didn't give you much to work with, here the stacktrace, maybe that can harden your suspicion |
15:28:43 | FromDiscord | <flywind> Probably some URLs are not handled well |
15:28:44 | FromDiscord | <Phil> Wait, no fuck I restarted the server |
15:29:13 | FromDiscord | <Phil> I mean, the URLs generally work well, it's flipping fast through the pages that triggers the issue |
15:29:44 | FromDiscord | <Phil> Though I failed to trigger the same behaviour with asynchttpserver |
15:30:11 | FromDiscord | <Phil> Give me another 5 minutes, I need to recompile with the correct server etc. ^^' |
15:30:52 | FromDiscord | <Rika> In reply to @Shiba "yes WHAT!": ptr array[NN, T]... |
15:33:19 | FromDiscord | <Phil> In reply to @flywind "Yeah, it seems to": Can't replicate anymore for some reason =/↵Shall I send you the stacktrace if I do? |
15:33:39 | FromDiscord | <flywind> In reply to @Isofruit "Can't replicate anymore for": yeah, ok better to make an issue though |
15:34:07 | FromDiscord | <flywind> httpbeast could have some bugs though, did you put it under nginx? |
15:34:35 | FromDiscord | <Phil> Just honestly not sure where, from my position this could be anywhere between prologue, httpx or std lib async |
15:35:02 | FromDiscord | <Phil> In reply to @flywind "httpbeast could have some": Set up was 2 docker containers, one nginx as reverse proxy, the other prologue with httpx |
15:36:21 | FromDiscord | <Phil> All running on localhost as I used entries in /etc/hosts to resolve calls to my domain to localhost |
15:37:11 | FromDiscord | <Shiba> In reply to @Rika "ptr array[N*N, T]...": thanks , where can i study those advanced stuff |
15:37:26 | FromDiscord | <Shiba> or what should i read |
15:38:25 | FromDiscord | <Shiba> (edit) "In reply to @Rika "ptr array[N*N, T]...": thanks , where can i study those advanced stuff ... " added "about pinters" |
15:38:36 | FromDiscord | <Shiba> (edit) "pinters" => "pounters" |
15:38:44 | FromDiscord | <Shiba> (edit) "pounters" => "pointers" |
15:38:50 | FromDiscord | <Rika> In reply to @Shiba "thanks , where can": This isn’t a pointer issue |
15:38:56 | FromDiscord | <Rika> You allocated too small of an array |
15:39:06 | FromDiscord | <Rika> Just size of N when you meant the square |
15:39:43 | FromDiscord | <Rika> Why a pointer to an array anyway |
15:40:18 | FromDiscord | <Phil> In reply to @flywind "yeah, ok better to": Hah! Replicated!↵In this scenario: Opening webpage triggers 2 HTTP calls that arrive in the backend and both trigger the same error with the same stacktrace.↵One endpoint is `/sessionaudio/Aldrune/1/72/` the other `/timestamp/Aldrune/1/72/` https://media.discordapp.net/attachments/371759389889003532/1021808028678373517/Untitled_Document_1 |
15:42:41 | FromDiscord | <flywind> did y7ou use threadpool + ORC? |
15:42:45 | FromDiscord | <Phil> Where would the best place be for that kind of bug? |
15:42:46 | FromDiscord | <flywind> (edit) "y7ou" => "you" |
15:43:30 | FromDiscord | <Phil> sent a code paste, see https://paste.rs/byU |
15:44:23 | FromDiscord | <flywind> In reply to @Isofruit "Hah! Replicated! In this": So `-d:useStd` works? |
15:45:40 | FromDiscord | <Phil> In reply to @flywind "So `-d:useStd` works?": I can't say with 100% certainty as even when using httpx I can only 80% of the time reproduce the bug:↵With usestd I could not trigger the bug so far whatsoever, but it might be that with useStd it's just more difficult. |
15:46:03 | FromDiscord | <Phil> The server seems to behave somewhat more stable to rapid-fire requests like what I was just testing with though |
15:46:16 | FromDiscord | <Phil> (edit) removed "just" | "though" => "just now" |
15:46:26 | FromDiscord | <Phil> (The one with -d:usestd I mean) |
15:46:36 | FromDiscord | <flywind> Would it work with `refc` though? |
15:47:03 | FromDiscord | <Phil> Ah, want me to throw out the mm:orc flag? |
15:47:25 | FromDiscord | <Phil> Alrighty, recompiling |
15:47:57 | FromDiscord | <Phil> In reply to @flywind "Would it work with": Wait, if I compile with devel, do I need to explicitly do `--mm:refc`? |
15:48:13 | FromDiscord | <Phil> I recall devel swapping default mm |
15:48:22 | FromDiscord | <Phil> Or rather the plan is for nim 2.0 to swap default |
15:48:24 | FromDiscord | <flywind> In reply to @Isofruit "Wait, if I compile": The devel still defaults to refc |
15:48:28 | FromDiscord | <Phil> Alrighty |
15:51:12 | FromDiscord | <Phil> In reply to @flywind "The devel still defaults": So far I'm struggling to replicate, that's for sure |
15:52:36 | FromDiscord | <flywind> Yeah, that sucks |
15:53:00 | FromDiscord | <Phil> Still can't replicate, for now I'll say "It works with refc" |
15:53:32 | FromDiscord | <Phil> Does that mean the bug is some sort of obscure interaction problem between orc and httpx, which is the worst kind of bug? |
15:58:55 | FromDiscord | <Shiba> In reply to @Rika "Why a pointer to": no idea , its someone else's 3d engine |
15:59:43 | FromDiscord | <Shiba> iam trying to understand what the code , since there is no docs for it |
15:59:52 | FromDiscord | <Shiba> (edit) "iam trying to understand what the code ... ," added "does" |
16:10:59 | NimEventer | New thread by drkameleon: Internal error: cannot map the empty seq type to a C type, see https://forum.nim-lang.org/t/9481 |
16:24:46 | FromDiscord | <flywind> In reply to @Isofruit "Does that mean the": Yeah weird, why `isLeaf` can be 255 |
16:24:56 | FromDiscord | <flywind> It should be true or false |
16:27:59 | FromDiscord | <flywind> In reply to @Isofruit "Hah! Replicated! In this": Btw httpx has a new verision 0.3.0 |
16:29:39 | FromDiscord | <flywind> sent a code paste, see https://paste.rs/VbQ |
16:29:49 | FromDiscord | <flywind> it seems to be the key error messages |
16:31:11 | FromDiscord | <Phil> I tend to ignore literally everything that isn't my own code because typically they're just results of me screwing up previously, just this time I can't see an obvious place for a mistake, particularly since it does work most of the time |
16:31:43 | FromDiscord | <Phil> In reply to @flywind "Btw httpx has a": I'll do a nimble install and see if that bombs anything |
16:32:25 | FromDiscord | <Phil> Compile is running |
16:32:36 | FromDiscord | <flywind> A guess, if it is a ORC problem, then `isLeaf` can be wrongly reset to false. |
16:34:25 | FromDiscord | <flywind> add `--cursorinference:off` for safety |
16:34:43 | FromDiscord | <Phil> First things first |
16:35:18 | FromDiscord | <Phil> Okay, I can trigger the same issue with 0.3.0 |
16:35:30 | FromDiscord | <Phil> Let's see if the cursorinference flag does anything |
16:36:42 | FromDiscord | <Require Support> In reply to @flywind "add `--cursorinference:off` for safety": TIL, will try it out |
16:39:34 | FromDiscord | <flywind> sent a code paste, see https://paste.rs/3f9 |
16:40:03 | FromDiscord | <Phil> In reply to @flywind "add `--cursorinference:off` for safety": I managed to still trigger this issue with the flag being active, so not sure it's that |
16:40:04 | FromDiscord | <flywind> (edit) "https://paste.rs/z0g" => "https://paste.rs/46E" |
16:40:20 | FromDiscord | <flywind> (edit) "https://paste.rs/xUZ" => "https://paste.rs/kDK" |
16:43:04 | FromDiscord | <Phil> In reply to @flywind "Yeah, my first step": So what would be the prediction here?↵Is your assumption the controller ends too soon and that causes the error or sth? |
16:43:22 | FromDiscord | <Phil> And the hope is that by not destroying that piece of memory it doesn't cause the error? |
16:44:03 | FromDiscord | <flywind> In reply to @Isofruit "So what would be": https://github.com/nim-lang/Nim/blob/4a1bda667c74361c121460ca7d80cfcbf003d8d7/lib/pure/collections/critbits.nim#L69 |
16:47:16 | FromDiscord | <flywind> According to the error, when execute the Line 69, `isLeaf` evaluates to `true`. So it enters the second branch. However, somehow `it` get reset, now `isLeaf` evaluates to `false` and you cannot visit the `key` attribute which only exists when `isLeaf` is `true`. |
16:47:27 | FromDiscord | <flywind> (edit) "execute" => "executing" |
16:47:43 | FromDiscord | <flywind> (edit) "get" => "gets" |
16:48:23 | FromDiscord | <flywind> Here is the error from the stacktrace ` ERROR FieldDefect: field 'key' is not accessible for type 'NodeObj' using 'isLeaf = false'` |
16:48:25 | FromDiscord | <Phil> In reply to @flywind "https://github.com/nim-lang/Nim/blob/4a1bda667c7436": How do you know it's that piece of code where the isLeaf fails? |
16:48:45 | FromDiscord | <flywind> In reply to @Isofruit "How do you know": Because the stack trace showed it |
16:49:12 | FromDiscord | <Phil> The stacktrace has it as this though:↵> nswebserver | ERROR FieldDefect: field 'key' is not accessible for type 'NodeObj' using 'isLeaf = 255' |
16:49:51 | FromDiscord | <flywind> https://media.discordapp.net/attachments/371759389889003532/1021825528686182510/unknown.png |
16:49:56 | FromDiscord | <Phil> And just managed to replicate the bug, so having `nodestroy` pragma on `findHandler` does not prevent it (if it even should) |
16:50:34 | FromDiscord | <Phil> In reply to @flywind "": Ahhhh yeah, fair |
16:51:17 | FromDiscord | <flywind> In reply to @Isofruit "And just managed to": Sorry my bad, I think `rawGet` is more suspicious. |
16:52:10 | FromDiscord | <Phil> Shall I keep the nodestroy on both or just one? |
16:52:35 | FromDiscord | <flywind> put it on the `rawGet` i think |
16:53:49 | FromDiscord | <Phil> Alright, recompiling |
16:56:21 | FromDiscord | <Phil> sent a long message, see https://paste.rs/hjt |
16:56:43 | FromDiscord | <Phil> (It keeps repeating because docker-compose keeps restarting the container on failure, I posted the same thing twice mostly for demonstrative purposes |
16:57:06 | FromDiscord | <Phil> (edit) "long message," => "code paste," | "https://paste.rs/B1w" => "https://paste.rs/S4F" |
16:58:44 | FromDiscord | <Phil> sent a code paste, see https://paste.rs/KiD |
16:58:55 | FromDiscord | <flywind> It is quite nasty |
16:59:05 | FromDiscord | <flywind> sent a code paste, see https://paste.rs/4hE |
16:59:16 | FromDiscord | <flywind> to replace |
16:59:22 | FromDiscord | <flywind> sent a code paste, see https://paste.rs/MHf |
16:59:53 | FromDiscord | <flywind> and remove `noDestroy` |
16:59:57 | FromDiscord | <flywind> (edit) "`noDestroy`" => "`nodestroy`" |
17:00:57 | FromDiscord | <flywind> I guess ORC doesn't like complex expressions. |
17:01:20 | FromDiscord | <Phil> sent a code paste, see https://paste.rs/YS8 |
17:02:08 | FromDiscord | <flywind> yeah |
17:02:11 | FromDiscord | <Phil> (edit) "https://paste.rs/ISt" => "https://paste.rs/a3k" |
17:02:20 | FromDiscord | <Phil> Alrighty, compiling then |
17:03:04 | FromDiscord | <Phil> Fun fact, a full debug compile and deploy takes only around 40-45 seconds!↵Pretty fast given the project size |
17:06:08 | FromDiscord | <Phil> In reply to @flywind "yeah": That appears to have fixed it, can't replicate the error |
17:06:36 | FromDiscord | <flywind> In reply to @Isofruit "That appears to have": Finally, thanks for your efforts! |
17:07:38 | FromDiscord | <Phil> Thanks for your effort! I understood very little of what I did there ^^↵With all the knowledge we now amassed, shall I do something with it or are you just going to open a PR? |
17:08:00 | FromDiscord | <Phil> Like, suggestions for further plan of action? |
17:09:30 | FromDiscord | <flywind> Better to have reduced cases, then make a PR to fix the root problem. If that is too hard, we can simply apply this workaround. Probably made an issue on the Nim issue tracker first. |
17:10:22 | * | LuxuryMode quit (Quit: Connection closed for inactivity) |
17:10:23 | FromDiscord | <flywind> (edit) "made" => "make" |
17:11:10 | FromDiscord | <flywind> Then feel free to open a PR to apply this workaround. |
17:14:02 | FromDiscord | <Phil> I'm honestly not too sure how to reduce the problem, figuring out what specifically broke here would likely take longer than the time we spent to fix it.↵Mostly because it has something to do with timing etc.↵This issue only occurs sometimes when I click through a list of entries from one to the next and only under specific circumstances that I don't quite understand.↵So I guess I could open up just an issue with a vague descriptio |
17:14:38 | FromDiscord | <flywind> Yes |
17:15:50 | FromDiscord | <flywind> `return if it.key == key: it else: nil` I guess the root cause is that `it` get moved wrongly in the while loop and this if statement. |
17:16:40 | FromDiscord | <flywind> In reply to @Isofruit "I'm honestly not too": Yeah, reducing a test case is not easy when having so many dependencies and conditions |
17:16:56 | FromDiscord | <flywind> (edit) "get" => "gets" |
17:19:27 | * | jmdaemon joined #nim |
17:21:19 | FromDiscord | <flywind> Gotta go, 🌃 bye |
17:23:40 | FromDiscord | <Phil> bye! |
17:44:25 | * | derpydoo joined #nim |
18:10:06 | * | tiorock joined #nim |
18:10:07 | * | tiorock quit (Changing host) |
18:10:07 | * | tiorock joined #nim |
18:10:07 | * | rockcavera quit (Killed (molybdenum.libera.chat (Nickname regained by services))) |
18:10:07 | * | tiorock is now known as rockcavera |
18:15:30 | * | derpydoo quit (Quit: derpydoo) |
18:17:20 | * | ox is now known as oz |
18:36:07 | * | derpydoo joined #nim |
19:09:17 | * | krux02 joined #nim |
19:16:13 | FromDiscord | <Kiloneie> By using valgrind, if example A has twice the calls than example B, example A is surely slower then ? Double checking xD... |
19:19:53 | FromDiscord | <Elegantbeef> It means it's a hot path it doesnt mean it's slower |
19:19:55 | FromDiscord | <Elegantbeef> percentage of program spent in code or time spent is more important |
19:20:11 | FromDiscord | <Kiloneie> is that the Incl. blue square ? |
19:20:41 | FromDiscord | <Elegantbeef> What? |
19:21:24 | FromDiscord | <Kiloneie> https://media.discordapp.net/attachments/371759389889003532/1021863667047858326/unknown.png |
19:22:20 | FromDiscord | <Elegantbeef> What tool did you use to profile? |
19:22:28 | FromDiscord | <Kiloneie> valgrind |
19:22:43 | FromDiscord | <Kiloneie> wait |
19:22:52 | FromDiscord | <Kiloneie> i forgot to turn of debug and stuff sht |
19:23:10 | FromDiscord | <Elegantbeef> You used callgrind correct? |
19:23:38 | FromDiscord | <Kiloneie> yeh from dom's guide but i forgot to turn of debug, doing it now |
19:23:42 | FromDiscord | <Forest [She/Her]> Does Nim let you initialise empty objects? (Not ref objects) |
19:24:11 | FromDiscord | <Forest [She/Her]> nvm doesn't matter |
19:24:19 | FromDiscord | <Elegantbeef> Of course it does |
19:24:22 | FromDiscord | <Elegantbeef> Nim 0 init's memory |
19:25:00 | FromDiscord | <Kiloneie> wait, what flags should be set for profiling ? |
19:25:36 | FromDiscord | <Elegantbeef> `--debugger:native -d:release` |
19:26:03 | FromDiscord | <Kiloneie> the flags nimprof wants turned off too ? |
19:26:08 | FromDiscord | <Kiloneie> stacktrace and profiler |
19:26:29 | FromDiscord | <Elegantbeef> No dont use nimrpof |
19:26:29 | FromDiscord | <Elegantbeef> then to get a call graph you can do `vallgrind --tool=callgrind` for a cache profile you can do `--tool=cachegrind` and for a better profiler you'll want to use perf |
19:27:23 | FromDiscord | <Elegantbeef> nimprof even |
19:28:02 | FromDiscord | <Kiloneie> no i meant if i turn off stacktrace and profiler, i have them set because i tried nim prof, but sometimes it gave me no output at all... |
19:29:00 | FromDiscord | <Forest [She/Her]> In reply to @Elegantbeef "Of course it does": Cool |
19:31:13 | FromDiscord | <Elegantbeef> You only need to turn on `--debugger:native` to use debuggers/profilers |
19:31:27 | FromDiscord | <Kiloneie> whats a cache profile ? |
19:31:30 | FromDiscord | <Elegantbeef> Worth noting it's pointless to profile a debug release and realistically you also should pass `--passC:"-flto" --passL:"-flto"` |
19:31:51 | FromDiscord | <Elegantbeef> https://www.cs.cmu.edu/afs/cs.cmu.edu/project/cmt-40/Nice/RuleRefinement/bin/valgrind-3.2.0/docs/html/cg-manual.html |
19:33:45 | FromDiscord | <Kiloneie> documentation says those flags are to optimize for size... |
19:34:17 | FromDiscord | <Elegantbeef> LTO can benefit speed aswell |
19:37:14 | * | derpydoo quit (Ping timeout: 244 seconds) |
19:37:28 | FromDiscord | <Kiloneie> Got both open, now to figure out what anything means... |
19:39:14 | FromDiscord | <demotomohiro> LTO allows inlining procedures defined in different module. |
19:51:15 | * | LuxuryMode joined #nim |
20:13:52 | FromDiscord | <vestel> How do I delete debug lines from executable `--debugInfo:off` doesn't works |
20:14:01 | FromDiscord | <vestel> (edit) "executable" => "executable?" |
20:16:32 | FromDiscord | <Bung> -d:release |
20:16:48 | FromDiscord | <Elegantbeef> `--stackTrace:off --lineTrace:off --lineDir:off` should remove most if not all |
20:21:02 | FromDiscord | <Kiloneie> youtube has barely anything at all for Kcachegrind, the one i watched had tabs or info columns that i don't have, learned nothing xD |
20:22:08 | FromDiscord | <Elegantbeef> Well dont use youtube for learning software |
20:22:41 | FromDiscord | <Kiloneie> well since it's a visual program, i thought it would be the best idea |
20:23:07 | FromDiscord | <Kiloneie> but i got more info from the program's help instead... not that i understand more than a few % more... |
20:23:10 | FromDiscord | <Elegantbeef> It's a very simple program so I dont see needing much |
20:23:54 | FromDiscord | <Kiloneie> Well im not too familiar with all the terms there |
20:24:31 | FromDiscord | <Kiloneie> like first column is named Incl. which means inclusive time, no tool tip for that, had to use help to know what the hell that means D:... |
20:25:36 | FromDiscord | <Elegantbeef> Yea what a world using the programs documentation! |
20:29:31 | FromDiscord | <sOkam!> separate documentation is less intuitive that tooltips in-app. give the guy some slack |
20:38:09 | NimEventer | New thread by amark159: Is a Java-style GC possible?, see https://forum.nim-lang.org/t/9482 |
20:41:35 | FromDiscord | <Kiloneie> Beef always strives to create beef. |
20:43:08 | FromDiscord | <huantian> hm I wonder if those benchmarks are slower than they should be because of orc + threads? |
20:50:24 | FromDiscord | <Yardanico> In reply to @huantian "hm I wonder if": threads is only enabled on devel |
20:50:34 | FromDiscord | <Yardanico> also the benchmarks there seem to compile with orc and danger + panics already |
20:50:51 | FromDiscord | <Yardanico> but yeah, mimalloc can maybe speed it up anyway |
20:51:06 | FromDiscord | <huantian> yeah they use the flags defined here https://github.com/hanabi1224/Programming-Language-Benchmarks/blob/main/bench/bench_nim.yaml |
20:56:03 | FromDiscord | <huantian> oh they do enable threads too |
20:56:08 | FromDiscord | <Patitotective> beef, to inject a symbol through a macro do i still use `genSym`? or just `let symbol {.inject.}`? |
20:56:58 | FromDiscord | <Kiloneie> where are the discord logs for main ? |
20:57:10 | FromDiscord | <Patitotective> https://irclogs.nim-lang.org/ |
20:57:54 | FromDiscord | <Kiloneie> you probably can't search the entire log ? |
20:58:04 | FromDiscord | <Patitotective> you can search in discord |
20:58:25 | FromDiscord | <Kiloneie> the top right search box ? |
20:58:32 | FromDiscord | <Patitotective> yes or Ctrl+F |
20:58:56 | FromDiscord | <Kiloneie> okay thanks |
21:06:33 | FromDiscord | <praise01> Thank me later https://t.me/+kaz97seJgx9jNTNh |
21:08:15 | FromDiscord | <Kiloneie> uhm ? scam/spam ? |
21:11:29 | * | jjido joined #nim |
21:18:32 | FromDiscord | <Elegantbeef> Yes |
21:19:50 | FromDiscord | <Elegantbeef> Eh moreso i strive to make sense 😛↵(@Kiloneie) |
22:02:58 | FromDiscord | <Patitotective> In reply to @Patitotective "beef, to inject a": anything beef? is `result[^1].insert(0, quote do: (let before {.inject.} = parser.current))` okay? |
22:03:19 | FromDiscord | <Elegantbeef> I mean i'd do it like a sane person but yea |
22:03:49 | FromDiscord | <Elegantbeef> sent a code paste, see https://paste.rs/oh0 |
22:04:42 | FromDiscord | <Patitotective> but why genast, its an import far↵doesnt quote do work? |
22:04:52 | FromDiscord | <Patitotective> In reply to @Elegantbeef "I mean i'd do": im one-line person |
22:05:11 | FromDiscord | <Elegantbeef> I mean it works but it's not the best tool imo |
22:05:29 | FromDiscord | <Elegantbeef> Well if you're going to ignore me then dont ask me mmmmk? 😄 |
22:05:33 | FromDiscord | <Patitotective> whats wrong with it |
22:06:11 | FromDiscord | <Elegantbeef> You have to declare symbols before and have tedious backticks for binding |
22:06:19 | FromDiscord | <Patitotective> In reply to @Elegantbeef "Well if you're going": i was asking if it was okay, i could be doing something wrong :p |
22:06:30 | FromDiscord | <Elegantbeef> If the code works then it's okay |
22:06:38 | FromDiscord | <Patitotective> ඞ |
22:06:47 | FromDiscord | <Elegantbeef> And you are doing something wrong you have 2 statements on a single line |
22:07:19 | FromDiscord | <Elegantbeef> That's unequivocally wrong in my world |
22:07:30 | FromDiscord | <Patitotective> fine ill change it |
22:07:35 | FromDiscord | <Elegantbeef> It's your code |
22:07:36 | FromDiscord | <Elegantbeef> You do you |
22:07:45 | FromDiscord | <Elegantbeef> Just let me jokingly insult you and carry on! |
22:08:29 | FromDiscord | <Patitotective> :] |
22:10:45 | * | LuxuryMode quit (Quit: Connection closed for inactivity) |
22:42:44 | * | arkurious quit (Quit: Leaving) |
22:51:33 | * | krux02 quit (Remote host closed the connection) |