<< 25-04-2018 >>

00:00:07*leorize joined #nim
00:00:22CodeVantagehe correctly grasped the american psyche
00:00:23FromGitter<krux02> you want to convince idiots to elect you, but you don't want to convince idionts to be part of your community.
00:00:37dom96data-man: This should be a real Nim training course :P
00:00:47CodeVantagekrux02 truth you speak
00:01:00FromGitter<krux02> so bye people I go offline for today
00:01:02CodeVantageSo no sensationalism, lest nim become something we hate?
00:01:24dom96CodeVantage: I think it's very likely he didn't actually want to be president
00:01:54dom96Fire and Fury implies this strongly and I believe it
00:03:02CodeVantagewell I think he wanted to become president. But now he's no longer interested. I don't really see him clinging to his seat
00:03:25Araqkeep policits out of #nim
00:03:35AraqI know I started it.
00:03:42Araqnow I'm ending it.
00:03:55CodeVantageok
00:04:18CodeVantagehow do I run nim silently?
00:04:33Araq"one #macro for 4 #iterators, smart move #nim"
00:04:38Araq^ like that?
00:04:44FromGitter<ephja> yep
00:05:13Araqneeds more emojis.
00:05:26CodeVantageWow your a pro at this
00:05:28FromGitter<arnetheduck> what's an easy way to see the expansion of a macro call?
00:05:37FromGitter<ephja> such iterator đź‘Ť
00:05:38tersecCodeVantage: not sure if this is what you mean, but I use "nim c "-o:$(mktemp)" --verbosity:0 --hints:off "--nimcache:$(mktemp -d)" --passC:"-O3 -march=native" --run "$@""
00:05:47tersec(Obviously, some of that's to taste.)
00:06:03Araqbut Bojack doesn't twitter emojis either.
00:06:28CodeVantagetersec, thanks.
00:06:44Araqarnetheduck: macros.expandMacros iirc
00:08:34dom96but yeah, this is what #nim-offtopic is for :)
00:08:38FromGitter<Varriount> Araq: What is a nnkCheckedFieldExpr? Does that have to do with object variants?
00:09:01Araqvarriount: yeah.
00:09:37dom96Araq: hah, that's a perfect tweet
00:09:58dom96very memeable
00:10:27Araqwell we need to make it true
00:10:46dom96is it not true?
00:10:50Araq'enumerate' can be used instead of 'pairs' for seqs/arrays
00:10:53FromGitter<arnetheduck> was more hoping for a command line option that would print the expanded file, like `-E`
00:11:12Araqarnetheduck: the best solution is to end every complex macro in
00:11:26Araqwhen defined(debugFoo): echo repr result
00:11:34Araqand then compile with -d:debugFoo
00:11:40Araqall my DSLs do that.
00:11:59Araqshould have a command line switch for this I guess
00:16:17skrylarshoop
00:18:05skrylari see arch has 0.18. should see if any of the stuff i wrote that people care about broke
00:19:40FromGitter<data-man> I for a long time did not remind of this library: https://github.com/petermora/nimTracelog :) ⏎ Maybe for someone it will be useful. But minor changes will be required for the current version of Nim.
00:21:27*jrbrt quit (Quit: jrbrt)
00:21:37skrylarneat. flatbuffers still works
00:23:57*vlad1777d quit (Ping timeout: 240 seconds)
00:27:58*xet7 quit (Ping timeout: 265 seconds)
00:28:52*ftsf joined #nim
00:30:34*vivus quit (Quit: Leaving)
00:34:33FromGitter<arnetheduck> @data-man that's a pretty cool lib!
00:36:40*smt quit (Read error: Connection reset by peer)
00:37:13*smt joined #nim
00:39:23FromGitter<data-man> @arnetheduck: Starred it! :)
00:40:37*xet7 joined #nim
00:55:33*cspar quit (Ping timeout: 264 seconds)
00:55:35*dddddd quit (Read error: Connection reset by peer)
00:56:27*ieatnerds joined #nim
00:59:31ieatnerdsHey quick question. I can "echo readline("test.txt")" and get the contents of the file. But when I try to do "var txt = readline("test.txt")" The variable is empty. I feel like I'm just doing something dumb, but too tired to see it.
01:05:16ieatnerdsJust realized I didnt ask the question. What am I doing wrong?
01:08:25FromGitter<data-man> @ieatnerds: ```var txt = readFile("test.txt")```
01:10:25ieatnerdsThank you again data-man. Simple, yet I'm too tunnel-visioned to see it on my own.
01:11:43ieatnerdsAnd everything works now, atleast, just about.
01:18:46FromGitter<data-man> @ieatnerds: You are welcome! Don't hesitate to ask questions! :)
01:21:09*xet7 quit (Read error: Connection timed out)
01:21:35*xet7 joined #nim
01:23:27tersecIs there a good way to use auto return values with {.async.} procs?
01:25:58*athenot quit (Remote host closed the connection)
01:26:36*athenot joined #nim
01:29:31FromGitter<data-man> @tersec: Something like this https://github.com/nim-lang/Nim/blob/devel/tests/async/treturn_await.nim ?
01:31:22tersec@data-man: except there the signature on the actual async proc is "proc h(req: ref Request, ctx: Context): Future[Context] {.async.}", i.e. not auto.
01:38:17*endragor joined #nim
01:42:57*endragor quit (Ping timeout: 264 seconds)
01:49:48tersecTo be precise, I mean something like proc foo(): auto {.async.} or proc foo(): Future[auto] {.async.}
01:58:00FromGitter<data-man> ```import async ⏎ proc foo(): Future[auto] {.async.} = ⏎ return 1``` ⏎ ⏎ :) [https://gitter.im/nim-lang/Nim?at=5adfe0a762316e0505f810e5]
01:58:28tersecHuh, I'll have to return to my actual use case to see why it's not working
02:10:08*CodeVantage quit (Quit: Leaving)
02:12:06*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
02:19:46*skrylar quit (Remote host closed the connection)
02:35:58*athenot quit (Remote host closed the connection)
02:36:40*athenot joined #nim
02:43:45*smt quit (Ping timeout: 248 seconds)
03:26:19*endragor joined #nim
03:30:41ieatnerdsFound a weird thing between macos and linux. my macbook is dual booted so I compiled a test program that just does a ton of math. it takes only ~6 seconds on macos and then ~20 from linux. I'm headed to sleep now, but can provide some more info on it later, just thought I'd share now.
03:32:08*ieatnerds quit (Quit: Leaving)
03:59:10*leorize quit (Ping timeout: 264 seconds)
04:00:37*xet7 quit (Read error: Connection timed out)
04:01:05*xet7 joined #nim
04:26:21*xet7 quit (Read error: Connection timed out)
04:27:06*xet7 joined #nim
04:28:40*xet7 quit (Max SendQ exceeded)
04:29:02*xet7 joined #nim
05:09:01*miran joined #nim
05:17:54*leorize joined #nim
05:31:59*PMunch joined #nim
05:48:22*xet7 quit (Read error: Connection timed out)
05:48:56*xet7 joined #nim
05:56:05FromGitter<Varriount> Gah, why can't there be a "normalize AST" function. I don't care about derefs or checked fields, so why should I have to take them into account when getting symbols.
05:56:45*leorize quit (Ping timeout: 264 seconds)
06:01:29AraqI feel your pain but it's usually not more than one line to handle these weirdos
06:12:05*nsf joined #nim
06:12:58*miran quit (Ping timeout: 264 seconds)
06:14:02*leorize joined #nim
06:23:07shashlickaraq: something weird going on with the gcleak/gcleak2 tests on my server, normal tests run 3 times faster than travis but these two with --gc:boehm are 5 times slower than travis
06:31:37Araqwell boehm is multi-core
06:31:58Araqmaybe your server has too many cores causing too much contention.
06:32:15Araqor too few cores to compete with travis (more unlikely)
06:32:40Araqor it's caused by meltdown patches.
06:34:59shashlickwell I have two procs with 4 cores each, 8 threads
06:36:07shashlick8 threads each
06:36:31shashlickfrom start to finish including git clone, etc, build is done in 22 minutes
06:36:43shashlickthe gc tests run in sequence rather than parallel, doesn't sound like running them in parallel will help will it?
06:38:49FromGitter<ephja> I want to prevent some karax nodes from being redrawn when events are triggered
06:45:08Araqephja: setForeignNodeId, maybe
06:45:51Araqshashlick: or maybe you simply have a different version of Boehm?
06:51:20*yglukhov joined #nim
06:51:43*xet7 quit (Read error: Connection timed out)
06:52:06*xet7 joined #nim
06:55:35*yglukhov quit (Read error: Connection reset by peer)
06:56:09*yglukhov joined #nim
07:09:41FromGitter<alehander42> @mratsim I think most of the issues you raised yesterday should be fixed now in quicktest, please ping me if uints in some range can't be generated (even the save /repr regressions thing works, but not sure if very useful for you)
07:12:14FromGitter<ephja> I guess I need to set surpressRedraws to true and then have more than one component so I don't recreate the canvas component
07:12:59*Vladar joined #nim
07:26:43*yglukhov quit (Read error: Connection reset by peer)
07:27:24*yglukhov joined #nim
07:44:23FromGitter<ephja> I might need DOM nodes rendered by separate components to be siblings somewhere other than at the root then
07:54:00Araqephja: maybe give "knete" a shot
07:54:16Araqit's currently a mess but can re-integrated into the full karax
07:54:27Araqand keeps the stateful DOM
07:55:34*r3d9u11 joined #nim
07:55:49Araqit's Karax's DSL without the DOM diffing, much better JS interop but also more cumbersome to work with because it lacks DOM diffing
07:56:41*r3d9u11 quit (Client Quit)
07:56:56Araqor maybe restrict Karax to a <div> that doesn't contain everything (the "ROOT" thing)
07:57:46AraqI need more feedback before I can improve karax further.
08:06:37FromGitter<ephja> having multiple components achieves exactly what I said. so tired. can't think
08:08:59*DarkArctic quit (Read error: Connection reset by peer)
08:09:46*DarkArctic joined #nim
08:14:13FromGitter<ephja> I might try it later. I dunno if I need better interop
08:23:10*Arrrr joined #nim
08:23:10*Arrrr quit (Changing host)
08:23:10*Arrrr joined #nim
08:59:16*sendell joined #nim
08:59:18FromGitter<Vindaar> @GULPF: since your work (maybe not all?) on the `times` module is merged by now, I guess I can close https://github.com/nim-lang/Nim/issues/7315 right? Awesome work btw :) (cc @Araq)
09:00:55FromGitter<mratsim> @alehander42 awesome!
09:09:17*simonsolnes joined #nim
09:14:53*Senketsu quit (Quit: WeeChat 2.1)
09:34:16Araqhmm declaration-site .experimental concepts work for the stdlib
09:34:36AraqI mean, we can use a selected set of concepts for the stdlib
09:34:59Araqand when users want to write their own they have to enable it explicitly
09:35:44Araqso they are warned they will have to rewrite them once we have a non-typedesc-skipping syntax.
09:35:59Araqand maybe an implementation which is not Turing complete ...
09:36:21Araqah a boy's dreams.
09:37:49*SenasOzys quit (Read error: Connection reset by peer)
10:05:46*leorize quit (Ping timeout: 264 seconds)
10:07:16*xet7 quit (Read error: Connection timed out)
10:07:36*xet7 joined #nim
10:26:53*leorize joined #nim
10:51:10*codevantage joined #nim
11:09:57FromGitter<alehander42> @krux02 is there a way to match "rest" somehow?
11:11:20FromGitter<alehander42> e.g. i am writing now a macro that takes `Stuff(a, b, ..)` and I don't see a way to express I want all the children after 1 of nnkCall to be nnkExprColonExpr
11:16:45*leorize quit (Ping timeout: 256 seconds)
11:20:29*smt joined #nim
11:30:17*simonsolnes quit (Quit: leaving)
11:33:42FromGitter<alehander42> something like ⏎ ⏎ ```of nnkObjConstr(`componentName`, *nnkExprColonExpr(`names[]`, `values[]`)):``` ⏎ ⏎ would be incredibly useful [https://gitter.im/nim-lang/Nim?at=5ae0679662316e0505fa754a]
11:35:00FromGitter<alehander42> as now I have to just write three lines of boilerplate
11:36:32FromGitter<alehander42> I know it's not constructed that way, but a lot of stuff in the ast has variadic properties, how do you match `call(different_number_of_args)` ?
11:40:27FromGitter<alehander42> otherwise nice to finally use something like that
11:47:42FromGitter<alehander42> errors are also good
11:50:34*xet7 quit (Read error: Connection timed out)
11:51:06*xet7 joined #nim
12:01:58*SenasOzys joined #nim
12:03:55*nsf quit (Quit: WeeChat 2.0.1)
12:10:28*xkapastel quit (Quit: Connection closed for inactivity)
12:23:44*edcragg quit (*.net *.split)
12:23:46*craigger quit (*.net *.split)
12:23:47*d10n quit (*.net *.split)
12:23:50*skrzyp quit (*.net *.split)
12:23:50*cornfeedhobo quit (*.net *.split)
12:26:11*edcragg joined #nim
12:26:11*craigger joined #nim
12:26:11*cornfeedhobo joined #nim
12:26:11*skrzyp joined #nim
12:26:17*d10n joined #nim
12:26:51*skrzyp quit (Max SendQ exceeded)
12:27:38*d10n quit (Changing host)
12:27:38*d10n joined #nim
12:27:57*mwbrown quit (Ping timeout: 240 seconds)
12:28:31*mwbrown joined #nim
12:28:33FromGitter<mratsim> we need an arity macro that works for proc call
12:30:09shashlickDoes nim doc generate rst or markdown? Wondering if I can use readthedocs.io to host nimgen wrapper docs
12:30:23codevantagerst
12:30:45codevantageor rather all nim docs are written in rst
12:31:18codevantagedoesnt nim have a documentation tool
12:31:22FromGitter<alehander42> @mratsim how would it work
12:32:12*Guest98328 joined #nim
12:33:54*leru_ joined #nim
12:34:48leru_hi, may it be https://nim-lang.org/docs/httpclient.html is outdated?
12:35:12FromGitter<gogolxdong> How to translate this string 2018-05-19T02:03:44Z to DateTime?
12:36:03leru_i just wanted to write a simple program, but it seems everything is outdated and the compiler tells me "Error: undeclared identifier: 'newHttpClient'"
12:36:50leru_sorry, i ment "everything is deprecated", because of the compiler errors
12:40:15*xet7 quit (Read error: Connection timed out)
12:40:35*xet7 joined #nim
12:41:30Araqimport asynchttpclient which also has a sync variant
12:42:18*nc-x joined #nim
12:43:27bodie_I'm having a bit of trouble understanding the usage of nimble with this project layout: https://github.com/zacharycarter/nuklear-nim/tree/master/examples
12:45:11nc-xAraq: Shouldn't it be `import httpclient` which also supports async variant? I don't see any `asynchttpclient` module?
12:53:51*enthus1ast joined #nim
12:55:14Araqsorry, I probably confused that with asynchttpserver
12:56:09*PMunch quit (Quit: Leaving)
12:58:14enthus1astleru_: you have to use the newAsyncHttpClient proc from the module httpclient
12:58:41enthus1astbut then you must write async code
12:59:29enthus1asts/have to/should
13:02:23*nc-x quit (Quit: Page closed)
13:02:38*bodie_ left #nim ("Leaving")
13:05:52leru_so i just tried the async verison from te website, but it doesn't work neither
13:06:31FromGitter<Vindaar> @gogolxdong "yyyy-MM-dd'T'HH-mm-sszzz" does the trick, iirc
13:08:32enthus1astleru_: could you send a nopaste what you have tried and the error message
13:09:31*leorize joined #nim
13:12:34leru_https://pastebin.com/fxTFNjiK
13:12:45leru_copied right from https://nim-lang.org/docs/httpclient.html#progress-reporting
13:13:12enthus1astimport asyncdispatch
13:13:16FromGitter<gogolxdong> @Vindaar thanks.
13:13:28enthus1astleru_: add this line to your imports
13:14:22leru_oh, boy.. Error: attempting to call undeclared routine: 'onProgressChanged='
13:14:51*Senketsu joined #nim
13:15:01FromGitter<mratsim> @alehander42 I don’t know, magic?
13:15:18enthus1astleru_: https://gist.github.com/enthus1ast/a052d8c4dbf487f0d9fb6f91ddf1dd77
13:15:32FromGitter<mratsim> or just counting the proc parameters might do the trick.
13:16:35leru_enthus1ast: not working for me
13:18:03*Senketsu quit (Client Quit)
13:21:39*SenasOzys quit (Remote host closed the connection)
13:21:50*xet7 quit (Read error: Connection timed out)
13:21:58enthus1astleru_: could you send a nopaste what you have tried and the error message
13:22:37*xet7 joined #nim
13:23:24leru_enthus1ast: your paste. error: mensa.nim(7, 7) Error: attempting to call undeclared routine: 'onProgressChanged='
13:24:43enthus1astleru_: youre probably on an older nim version, try to update it
13:26:17leru_enthus1ast: just installed from linux mint repos. aren't they up to date?
13:27:04enthus1asti personally use git to keep nim up to date but "choosenim" might work for you
13:28:04enthus1astafter the git pull i usually compile it with "koch boot -d:release"
13:29:57*athenot quit (Read error: Connection reset by peer)
13:30:16*athenot joined #nim
13:30:23leru_yes, i'd do that if there wasn't a package in the repo
13:30:23leru_someone should remove it if it's not updated anymore
13:33:27shashlickWhat version do you have
13:33:48shashlicknim -v
13:33:50*SenasOzys joined #nim
13:34:16leru_omg
13:34:17leru_Nim Compiler Version 0.12.0 (2015-11-02) [Linux: amd64]
13:34:42leru_someone remove the package immediately
13:36:36*dddddd joined #nim
13:43:56enthus1astmh we really should provide more copy pastable example code in the docs
13:48:05*Sentreen joined #nim
14:02:22*Snircle joined #nim
14:04:23*miran joined #nim
14:21:45*xet7 quit (Read error: Connection timed out)
14:22:07*xet7 joined #nim
14:23:21federico3yup
14:23:29*xet7 quit (Max SendQ exceeded)
14:23:51*xet7 joined #nim
14:24:49*nsf joined #nim
14:33:22*endragor quit (Remote host closed the connection)
14:33:49*endragor joined #nim
14:38:05*endragor quit (Ping timeout: 240 seconds)
14:46:28*leorize quit (Read error: Connection reset by peer)
14:46:59*Senketsu joined #nim
14:50:48*CodeVantage_ joined #nim
14:52:39*leru_ quit (Remote host closed the connection)
14:55:47*surma quit ()
14:56:06*surma joined #nim
14:57:05*leorize joined #nim
14:58:10*xet7 quit (Read error: Connection timed out)
14:58:36*xet7 joined #nim
15:00:10*xet7 quit (Max SendQ exceeded)
15:01:08*leorize quit (*.net *.split)
15:01:08*CodeVantage_ quit (*.net *.split)
15:01:09*Sentreen quit (*.net *.split)
15:01:10*edcragg quit (*.net *.split)
15:01:10*craigger quit (*.net *.split)
15:01:12*cornfeedhobo quit (*.net *.split)
15:01:17*unclechu quit (*.net *.split)
15:01:18*d10n quit (*.net *.split)
15:01:18*smt quit (*.net *.split)
15:01:19*ftsf quit (*.net *.split)
15:01:19*Lord_Nightmare quit (*.net *.split)
15:01:20*tersec quit (*.net *.split)
15:01:20*federico3 quit (*.net *.split)
15:01:21*brainproxy quit (*.net *.split)
15:01:21*Tanger quit (*.net *.split)
15:01:21*pwntus quit (*.net *.split)
15:01:22*onionhammer1 quit (*.net *.split)
15:01:22*SenasOzys quit (*.net *.split)
15:01:24*MonsterAbyss quit (*.net *.split)
15:01:25*Cthalupa quit (*.net *.split)
15:01:26*hogeland_ quit (*.net *.split)
15:01:26*Araq quit (*.net *.split)
15:01:27*def- quit (*.net *.split)
15:01:27*Sargun quit (*.net *.split)
15:01:50*SenasOzys joined #nim
15:01:50*MonsterAbyss joined #nim
15:01:50*Cthalupa joined #nim
15:01:50*hogeland_ joined #nim
15:01:50*Sargun joined #nim
15:01:50*Araq joined #nim
15:01:50*def- joined #nim
15:03:23*leorize joined #nim
15:03:23*CodeVantage_ joined #nim
15:03:23*Sentreen joined #nim
15:03:23*edcragg joined #nim
15:03:23*craigger joined #nim
15:03:23*cornfeedhobo joined #nim
15:04:13*d10n joined #nim
15:04:13*smt joined #nim
15:04:13*ftsf joined #nim
15:04:13*Lord_Nightmare joined #nim
15:04:13*tersec joined #nim
15:04:13*federico3 joined #nim
15:04:13*brainproxy joined #nim
15:04:13*Tanger joined #nim
15:04:13*pwntus joined #nim
15:04:13*onionhammer1 joined #nim
15:04:28*Demos[m] quit (Ping timeout: 246 seconds)
15:04:34*smt quit (Max SendQ exceeded)
15:04:34*d10n quit (Max SendQ exceeded)
15:04:39*hohlerde quit (Ping timeout: 255 seconds)
15:04:51*survivorm[m] quit (Ping timeout: 245 seconds)
15:04:51*planetis[m] quit (Ping timeout: 245 seconds)
15:04:52*byteflame quit (Ping timeout: 245 seconds)
15:04:52*pqflx3[m] quit (Ping timeout: 245 seconds)
15:04:55*stisa quit (Ping timeout: 246 seconds)
15:04:55*zielmicha[m]1 quit (Ping timeout: 246 seconds)
15:04:55*amp907[m] quit (Ping timeout: 246 seconds)
15:04:55*notdekka[m] quit (Ping timeout: 246 seconds)
15:04:55*narimiran[m] quit (Ping timeout: 246 seconds)
15:04:57*solitudesf quit (Ping timeout: 246 seconds)
15:04:57*Miguelngel[m] quit (Ping timeout: 246 seconds)
15:04:58*libman[m] quit (Ping timeout: 240 seconds)
15:04:58*TheManiac quit (Ping timeout: 240 seconds)
15:05:00*dyce[m] quit (Ping timeout: 246 seconds)
15:05:04*d10n joined #nim
15:05:07*Abnegation quit (Ping timeout: 255 seconds)
15:05:09*krux02[m] quit (Ping timeout: 260 seconds)
15:05:09*macsek1911[m] quit (Ping timeout: 260 seconds)
15:05:10*mgdelacroix[m] quit (Ping timeout: 260 seconds)
15:05:36*xet7 joined #nim
15:05:37*smt joined #nim
15:05:39*petersjt014[m] quit (Ping timeout: 276 seconds)
15:06:08*Guest98328 quit (Ping timeout: 256 seconds)
15:06:31*d10n quit (Changing host)
15:06:31*d10n joined #nim
15:07:30*Guest98328 joined #nim
15:14:44*MyMind joined #nim
15:14:45*leorize quit (Ping timeout: 264 seconds)
15:15:05*Sembei quit (Ping timeout: 240 seconds)
15:15:31*NimBot joined #nim
15:16:02*leorize joined #nim
15:20:00*Sembei joined #nim
15:35:54*xet7 quit (Read error: Connection timed out)
15:36:25*xet7 joined #nim
15:44:33*ftsf quit (Ping timeout: 248 seconds)
15:50:31*r3d9u11 joined #nim
15:51:09*leorize quit (Quit: WeeChat 2.1)
15:54:32*xet7 quit (Read error: Connection timed out)
15:55:02*xet7 joined #nim
15:56:00*xkapastel joined #nim
16:02:20*codevantage quit (Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org)
16:12:54*mwbrown quit (Ping timeout: 260 seconds)
16:14:02*pqflx3[m] joined #nim
16:14:02*pqflx3[m] quit (Changing host)
16:14:02*pqflx3[m] joined #nim
16:15:16*mwbrown joined #nim
16:21:04*xet7 quit (Read error: Connection timed out)
16:21:26*xet7 joined #nim
16:23:39*jrbrt joined #nim
16:30:12*CodeVantage_ is now known as CodeVance
16:30:29*Abnegation joined #nim
16:30:30*unclechu joined #nim
16:30:30*dyce[m] joined #nim
16:30:30*Miguelngel[m] joined #nim
16:30:30*solitudesf joined #nim
16:30:31*mgdelacroix[m] joined #nim
16:30:31*Demos[m] joined #nim
16:30:36*narimiran[m] joined #nim
16:30:36*stisa joined #nim
16:30:37*TheManiac joined #nim
16:30:37*survivorm[m] joined #nim
16:30:37*libman[m] joined #nim
16:30:37*planetis[m] joined #nim
16:30:37*petersjt014[m] joined #nim
16:30:37*krux02[m] joined #nim
16:30:37*macsek1911[m] joined #nim
16:30:38*byteflame joined #nim
16:30:38*amp907[m] joined #nim
16:30:38*zielmicha[m] joined #nim
16:30:38*hohlerde joined #nim
16:30:39*notdekka[m] joined #nim
16:36:23*Trustable joined #nim
16:37:31*sendell quit (Remote host closed the connection)
16:40:54FromGitter<ephja> Element has a querySelector method, but VNode.dom is a Node and karax does not have a corresponding hierarchy, so I guess that means you sometimes have to perform casts for now
16:49:35*Sembei quit (Ping timeout: 256 seconds)
16:50:57CodeVanceI think there should only be one proc name for del in a seq
16:51:06CodeVancedelete and del is bad
16:51:07CodeVanceand hard to
16:51:10CodeVancemaintain
17:00:18FromDiscord<claude> theyre different things
17:00:31FromDiscord<claude> del changes order delete doesnt
17:00:44FromDiscord<claude> and del is faster
17:00:54CodeVancehmm. Why is that a good idea?
17:01:03FromDiscord<claude> because its faster
17:01:14CodeVanceNothing in the proc's name tells me that
17:01:31FromGitter<ephja> very creative, but possibly confusing :p
17:01:44FromGitter<ephja> well it's shorter lol
17:02:02CodeVancewhy not call the one replace?
17:02:04CodeVanceand the other del
17:02:18FromDiscord<claude> del is the less likely name to guess when thinking of the proc to use, and delete is the safer option
17:02:43CodeVanceor something :::
17:02:58CodeVanceI was trying remove
17:03:14CodeVancewhat about fastdel
17:03:18FromGitter<ephja> it's not very hidden when you use semantic analysis
17:04:04FromGitter<ephja> fastDel seems like a good name
17:04:57CodeVanceor bitswap... if I understand whats actually happening?
17:05:09CodeVanceI declare my ignorance
17:05:48CodeVancebut I wouldn't be using seq anyway if I wanted something normal. I hope nim gets a plain old list type or package
17:06:21CodeVanceI wanted to do a remove(`first item you find of this`)
17:07:40*skrylar joined #nim
17:07:53FromDiscord<claude> `template remove(a, b: untyped): untyped = a.delete(a.find(b))`
17:08:02FromGitter<ephja> https://nim-lang.org/docs/lists.html? have a look through this https://nim-lang.org/docs/lib.html
17:08:07CodeVanceand making something shorter to type makes it more likely that it would be the proc used. (I did that)
17:08:30CodeVanceephja thanks
17:08:32CodeVanceis that new?
17:08:39CodeVanceI didn't see it
17:09:14shashlickwhy does testament need -d:nimCoroutines?
17:09:29FromGitter<ephja> it does seem old
17:09:33CodeVanceoh... I have no idea what Doubly linked and singly linked lists are
17:09:38CodeVanceSo I didn't use them
17:10:06FromGitter<ephja> shashlick: maybe it tests coroutines
17:11:47shashlickokay seems like it is on linux
17:12:24FromGitter<ephja> no it must be because it's using it for whatever reason. the tests use their owns flags
17:13:17*Trustable quit (Remote host closed the connection)
17:15:01shashlickya see that's what i'm confused about - there's no import coro anywhere
17:18:35*Arrrr quit (Ping timeout: 240 seconds)
17:19:35CodeVancehow to make an alias of a type?
17:19:49FromDiscord<claude> type X = Y
17:21:03CodeVanceisn't that a subtype?
17:21:30CodeVancenvm I see my proc is wrong
17:22:23FromDiscord<claude> thats type X = distinct Y
17:48:22*Senketsu quit (Quit: WeeChat 2.1)
17:53:21*nsf quit (Quit: WeeChat 2.0.1)
17:54:47*jrbrt quit (Quit: jrbrt)
17:56:13*xet7 quit (Read error: Connection timed out)
17:56:36*xet7 joined #nim
18:01:41*xkapastel quit (Quit: Connection closed for inactivity)
18:03:49*Senketsu joined #nim
18:07:38*jjido joined #nim
18:11:52FromGitter<ephja> https://github.com/nim-lang/Nim/blob/3e33668abc496e0b45183804b9b2d70963869a6a/lib/system/gc.nim#L63 hmm
18:17:05*Senketsu quit (Quit: WeeChat 2.1)
18:20:08*jrbrt joined #nim
18:21:34*jrbrt quit (Client Quit)
18:23:48*jrbrt joined #nim
18:24:07*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:25:38FromGitter<ephja> is it relevant without using coro? unless I've missed an import somewhere
18:29:28FromGitter<ephja> https://youtu.be/8rkdeF0HCto?t=2h58m10s debugging OOP code
18:32:08petersjt014[m]Any chance I could get feedback on a thing I wrote?
18:32:26petersjt014[m]https://github.com/petersjt014/eka
18:33:41petersjt014[m]I'm going to have to go in about 10 min and will be back a few hours after, but any general suggestions/observations would be helpful. :))
18:34:20*jjido joined #nim
18:34:54*jrbrt quit (Quit: jrbrt)
18:39:09*xet7 quit (Read error: Connection timed out)
18:39:35*xet7 joined #nim
18:41:36*jrbrt joined #nim
18:43:52*r3d9u11 quit (Remote host closed the connection)
18:48:48FromDiscord<claude> are you open to formatting issues in general?
18:50:53FromDiscord<claude> like you can do `for n in episode` instead of `episode.items`, should use isNil instead of == nil, don't have to add explicit void return type, can use `echo field, " :: ", content` instead of using &, can use an array instead of a seq when you're iterating over constant strings
18:53:16FromDiscord<claude> also you shouldn't create a new httpclient every time you call the fetch proc
18:59:47thor77petersjt014[m]: i like your readme a lot :)
18:59:58CodeVanceHow do you bit shift in nim
19:00:02*jrbrt quit (Quit: jrbrt)
19:01:01FromGitter<ephja> CodeVance: with shl and shr
19:01:14CodeVance;)
19:02:16*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
19:04:01FromDiscord<claude> CodeVance: i think this is the thing youre looking for https://nim-lang.org/docs/system.html
19:05:11CodeVanceYes. it's long XD
19:05:53CodeVanceI was actually looking for a way to make flags
19:06:03CodeVancesets seems to be what I want
19:06:09FromGitter<ephja> it's documented so you might find what you're looking for by searching
19:06:36*xkapastel joined #nim
19:06:37FromGitter<ephja> yeah use sets
19:10:12*jrbrt joined #nim
19:21:13FromGitter<Varriount> Araq: Is there an AST example on the shape of the checked field and hidden deref trees?
19:27:49skrylarhum. might port the hidden markov model code over to nim to see how much faster it is
19:28:05*skrylar wrote a pattern recognizer in smalltalk but is quite slow; 138 training cycles per second ._.
19:28:15*Vladar quit (Quit: Leaving)
19:30:49*xet7 quit (Read error: Connection timed out)
19:31:35*xet7 joined #nim
19:32:23*nsf joined #nim
19:33:53skrylari'm guessing by the number of times flatbuffers has been mentioned, the autoserialize code should get made for that
19:34:27*endragor joined #nim
19:37:25Araqvarriount: nkCheckedFieldExpr --> continue traversal with n[0]
19:37:47AraqnkHiddenDeref --> continue traversal with n[0]
19:39:17*endragor quit (Ping timeout: 268 seconds)
19:41:28FromGitter<Varriount> Araq: Thanks!
19:49:43*CodeVance quit (Quit: Leaving)
19:52:33*endragor joined #nim
19:56:54*endragor quit (Ping timeout: 260 seconds)
20:00:43*xet7 quit (Read error: Connection timed out)
20:01:06*xet7 joined #nim
20:03:39*yglukhov quit (Ping timeout: 255 seconds)
20:19:33*CodeVantage joined #nim
20:22:04*jjido joined #nim
20:24:47*jjido quit (Client Quit)
20:31:31*miran quit (Ping timeout: 256 seconds)
20:32:54*athenot quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:46:10*craigger quit (Quit: bye)
20:46:21*CodeVantage quit (Quit: Leaving)
20:49:06*craigger joined #nim
21:02:46*jjido joined #nim
21:10:51skrylarforgot how weird flatbuffers are to write
21:17:56*nsf quit (Quit: WeeChat 2.0.1)
21:21:41*yglukhov joined #nim
21:24:58*xet7 quit (Read error: Connection timed out)
21:25:35*xet7 joined #nim
21:27:32*jxy quit (Quit: leaving)
21:31:13*jxy joined #nim
21:47:25shashlickpetersjt014[m]: cool that you know about Sanskrit
21:47:30*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
21:51:56*yglukhov quit (Remote host closed the connection)
22:07:20*CodeVantage joined #nim
22:13:16*xet7 quit (Read error: Connection timed out)
22:13:36*xet7 joined #nim
22:16:23*endragor joined #nim
22:30:56*Snircle quit (Remote host closed the connection)
22:31:38*jrbrt quit (Quit: jrbrt)
22:32:06*endragor quit (Remote host closed the connection)
22:33:39*jrbrt joined #nim
23:12:00*CodeVantage quit (Quit: Leaving)
23:12:20*CodeVantage joined #nim
23:13:22*CodeVantage quit (Client Quit)
23:18:37*skrylar quit (Remote host closed the connection)
23:18:58*skrylar joined #nim
23:23:01FromGitter<zacharycarter> @mratsim - wait... can you explain this to me in non-really-smart terms? - fixed arbitrary precision integer
23:23:03FromGitter<zacharycarter> idgi
23:23:12FromGitter<zacharycarter> like is the int sizing precise?
23:23:40FromGitter<zacharycarter> because I don't see there being much precision in integer based operations
23:23:46FromGitter<zacharycarter> but I am kind of stupid and naive so
23:38:44FromGitter<zacharycarter> I'm sure this already got tossed around - but... interesting read I think: https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/#what-is-a-goto-statement-anyway
23:39:02FromGitter<zacharycarter> sorry - https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/
23:39:43skrylarwell. thanks to 0.18 being neat, wrote the macro to create vtables via macros
23:42:59skrylarzacharycarter: does someone actually need fb's or do people just like talking about it
23:45:26FromGitter<zacharycarter> probably the latter
23:45:39FromGitter<zacharycarter> someone brought them up the other night
23:45:44FromGitter<zacharycarter> saying it'd be sweet if Nim had them
23:45:55FromGitter<zacharycarter> and then krux02 was saying you could easily implement them with nim
23:45:55skrylari see them mentioned and someone links my repo
23:46:36FromGitter<zacharycarter> I mean - maybe folks do - I don't know - dude tbh I'm so like tired of work and fed up with things in my personal life that I haven't been able to concentrate on Nim / programming like I'd like to be lately
23:46:52FromGitter<zacharycarter> I've been venting to shashlick for like the past 20 mins about it in OT haha
23:47:18skrylari put in a few pomodoros for automatic serialization
23:47:40FromGitter<zacharycarter> I mean I'll say this - I don't think Nim having flatbuffer support is doing us any harm
23:48:13skrylarno, i just stopped writing nim because 1) life fell apart and 2) always felt like i was writing utility code people asked for but never used
23:48:41FromGitter<zacharycarter> well - that's an issue with Nim - the userbase is so small code re-use is minimal
23:48:50FromGitter<zacharycarter> but I think we all just have to be hopeful that the userbase expands
23:49:05skrylar0.18 seems upset that i use the same method name even though it has two typedescs
23:49:08FromGitter<zacharycarter> I don't know - I honestly don't really feel like I have a firm grasp on what Nim wants to be
23:49:16skrylarproc flatbuffer_inline_sizeof[T:Primitive] (): int =
23:49:16skrylarproc flatbuffer_inline_sizeof[string] (): int =
23:49:37FromGitter<zacharycarter> weird
23:50:04skrylarthis seems like a bug
23:50:55*CodeVantage joined #nim
23:51:11FromGitter<zacharycarter> it very well could be
23:51:17FromGitter<zacharycarter> although wait
23:51:26FromGitter<zacharycarter> is string technically a primitive?
23:51:35skrylarzacharycarter: seems like a standard problem to me. lot of people working on glory code, not many doing boring unpaid things like heaving 20k lines of GTK definitions
23:51:49skrylarno: Primitive* = SomeNumber | char | bool ## for generics
23:51:55FromGitter<zacharycarter> hmmm
23:52:00FromGitter<zacharycarter> yeah def a bug then I think
23:52:40*leorize joined #nim
23:53:00skrylarshame because otherwise this neatness would work: template add*(self: var Vtable; where: voffset; T: typed) = let soz = flatbuffer_inline_sizeof[T]()
23:53:10FromGitter<zacharycarter> skrylar: I agree - it's just how do we as a community come together and fix that - or do we even care? I hear some folks saying Nim should just stay niche and be good at certain things. I don't know if I agree, or what the overall consensus of the community is.
23:53:52FromGitter<zacharycarter> and probably a majority of people don't care either way - they just want to consume Nim
23:54:19FromGitter<zacharycarter> but I mean - I think there are people too who would rally around a cause in the community and contribute - obviously that is the case because Nim itself has contributors
23:54:28FromGitter<zacharycarter> so like - where do we best spend our time and how do we spend it most effectively?