<< 14-03-2020 >>

00:02:27*Trustable quit (Remote host closed the connection)
00:03:33FromDiscord<djazz> stream ended
00:03:42FromDiscord<djazz> started working on a router for the web framework
00:06:40*jholland__ quit (Quit: Connection closed for inactivity)
00:11:06FromDiscord<djazz> thanks for the help @exelotl !
00:11:35FromDiscord<exelotl> no problem ^^
00:11:58*krux02_ joined #nim
00:14:26*krux02 quit (Ping timeout: 240 seconds)
00:29:28*lmariscal064 joined #nim
00:29:50*lmariscal06 quit (Ping timeout: 268 seconds)
00:30:16*nickster4 joined #nim
00:30:37*junland_ joined #nim
00:30:40*nickster4 quit (Client Quit)
00:31:04*Mister_Magister quit (Ping timeout: 268 seconds)
00:31:22*krux02_ quit (Remote host closed the connection)
00:31:24*nickster5 joined #nim
00:34:08*junland quit (Ping timeout: 240 seconds)
00:34:10*shadowbane quit (Ping timeout: 240 seconds)
00:34:11*nickster quit (Ping timeout: 240 seconds)
00:34:31*Mister_Magister joined #nim
00:35:11*shadowbane joined #nim
00:42:46*nickster5 quit (Quit: The Lounge - https://thelounge.chat)
01:03:16*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
01:07:31*nickster joined #nim
01:08:54*Zectbumo joined #nim
01:26:39*azed joined #nim
01:42:34*dwdv quit (Ping timeout: 255 seconds)
01:46:01*azed quit (Read error: Connection reset by peer)
01:49:10*Hideki_ joined #nim
02:10:30*Hideki_ quit (Remote host closed the connection)
02:12:16*Hideki_ joined #nim
02:16:26*Hideki_ quit (Ping timeout: 240 seconds)
02:21:05*leorize joined #nim
02:24:20*Hideki_ joined #nim
02:26:10*Hideki_ quit (Remote host closed the connection)
02:26:47*Hideki_ joined #nim
02:28:09*Hideki_ quit (Remote host closed the connection)
02:28:24*Hideki_ joined #nim
02:47:46*chemist69_ quit (Ping timeout: 240 seconds)
02:50:02*chemist69 joined #nim
02:51:18*Hideki_ quit (Remote host closed the connection)
02:52:19*Hideki_ joined #nim
02:56:58*Hideki_ quit (Ping timeout: 265 seconds)
03:13:46*muffindrake quit (Ping timeout: 240 seconds)
03:16:05*muffindrake joined #nim
03:17:55*Guest75767 quit (Ping timeout: 258 seconds)
03:30:44*NimBot joined #nim
03:32:59*Zectbumo joined #nim
03:42:53*Hideki_ quit (Ping timeout: 272 seconds)
03:55:22*dddddd quit (Ping timeout: 256 seconds)
03:57:02*hax-scramper joined #nim
03:59:05FromDiscord<Varriount> mratsim: That's one thing I dislike about Python. Exceptions are actually quite expensive to raise (because of the stack trace) and yet they're used all over for iterators and such
04:02:58*Zectbumo quit (Remote host closed the connection)
05:01:06*sealmove quit (Quit: WeeChat 2.7.1)
05:34:32*s4mu3lbk quit (Ping timeout: 256 seconds)
05:39:34*Hideki_ joined #nim
05:44:10*Hideki_ quit (Ping timeout: 256 seconds)
05:44:30*nick34348 joined #nim
05:54:24*silvernode joined #nim
05:54:41silvernodeTime to work on space nim again
06:18:22*solitudesf- joined #nim
06:20:56FromDiscord<Elegant Beef> Anyone know the commands for ansi characters `d,l,h,t,r`?
06:27:25silvernodeNot me
06:32:45*muffindrake quit (Quit: muffindrake)
06:33:34silvernodeI forget what the repl command is for nim. Is it nimsecret?
06:34:59*hax-scramper quit (Read error: Connection reset by peer)
06:35:17*hax-scramper joined #nim
06:36:21*muffindrake joined #nim
06:39:06FromDiscord<flywind> nim secret
06:40:31*marmotini_ joined #nim
06:44:06silvernodeThank you
06:45:28FromDiscord<flywind> No problem
06:59:15*silvernode quit (Ping timeout: 260 seconds)
07:00:00*gmpreussner quit (Quit: kthxbye)
07:04:55*gmpreussner joined #nim
07:09:04*rmt joined #nim
07:15:14*hax-scramper quit (Ping timeout: 240 seconds)
07:15:33*hax-scramper joined #nim
07:17:44*alexander92 joined #nim
07:17:45FromDiscord<Rika> @Elegant Beef as in `\t` `\r` and stuff?
07:17:55alexander92morning/
07:17:58FromDiscord<Elegant Beef> no
07:18:13FromDiscord<Elegant Beef> talking about things like `\e[23d`
07:18:26alexander92oh man visual basic stops
07:18:40FromDiscord<Rika> okay those are escape sequences not ansi characters
07:18:43FromDiscord<Elegant Beef> well ansi terminal escape codes
07:19:54FromDiscord<Rika> http://www.termsys.demon.co.uk/vtansi.htm partial list
07:20:07FromDiscord<Elegant Beef> yea it doesnt list the ones i mentioned
07:20:19FromDiscord<Elegant Beef> well not all
07:20:20FromDiscord<Elegant Beef> it has r
07:20:47FromDiscord<Elegant Beef> and l
07:22:59FromDiscord<Rika> then it might be non-vt100
07:23:45FromDiscord<Rika> https://vt100.net/docs/vt220-rm/chapter4.html might be vt220
07:41:16*Hideki_ joined #nim
07:43:18*thomasross quit (Read error: Connection reset by peer)
07:45:14*Hideki_ quit (Ping timeout: 240 seconds)
07:52:00*hax-scramper quit (Ping timeout: 258 seconds)
07:52:17*hax-scramper joined #nim
07:53:09*rmt quit (Ping timeout: 258 seconds)
07:53:33*marmotini_ quit (Remote host closed the connection)
07:54:28*marmotini_ joined #nim
07:58:21*marmotini_ quit (Remote host closed the connection)
07:58:36*marmotini_ joined #nim
07:59:28*solitudesf- quit (Read error: Connection reset by peer)
07:59:43*solitudesf joined #nim
08:00:41*tane_ joined #nim
08:03:33*marmotini_ quit (Remote host closed the connection)
08:04:08*marmotini_ joined #nim
08:08:40*marmotini_ quit (Ping timeout: 256 seconds)
08:27:09*s4mu3lbk joined #nim
08:33:24*s4mu3lbk quit (Ping timeout: 258 seconds)
08:50:18Zevvargh nimble publish barfs on me again
08:52:56Zevvah yes the public_repo permissions
08:54:25*jjido_ joined #nim
08:59:22*Trustable joined #nim
09:03:58*Zectbumo joined #nim
09:06:17*Vladar joined #nim
09:07:50FromDiscord<Varriount> Zevv: What are you working on?
09:09:59*Zectbumo quit (Remote host closed the connection)
09:12:31*rmt joined #nim
09:12:49*Zectbumo joined #nim
09:15:00*Zectbumo quit (Remote host closed the connection)
09:17:53*Zectbumo joined #nim
09:20:00*Zectbumo quit (Remote host closed the connection)
09:22:56*Zectbumo joined #nim
09:24:59*Zectbumo quit (Remote host closed the connection)
09:26:54ZevvOh I made a native MQTT some time ago on a rainy sunday afternoon an put that on github and forgot about it
09:27:01Zevvno someone picked it up and asked me to publish
09:27:12Zevvhttps://github.com/zevv/nmqtt/
09:27:52*Zectbumo joined #nim
09:30:00*Zectbumo quit (Remote host closed the connection)
09:32:56*Zectbumo joined #nim
09:35:00*Zectbumo quit (Remote host closed the connection)
09:35:22*hax-scramper quit (Read error: Connection reset by peer)
09:35:35*hax-scramper joined #nim
09:37:53*Zectbumo joined #nim
09:40:00*Zectbumo quit (Remote host closed the connection)
09:41:58*Hideki_ joined #nim
09:42:51*Zectbumo joined #nim
09:44:29*dwdv joined #nim
09:45:00*Zectbumo quit (Remote host closed the connection)
09:46:42*Hideki_ quit (Ping timeout: 256 seconds)
09:52:02Araqazure testing is down?
09:54:05*Trustable quit (Remote host closed the connection)
09:56:26*alexander92 quit (Ping timeout: 240 seconds)
09:56:57rmtCloudy BSOD?
09:57:53*Zectbumo joined #nim
09:59:13rmtBetter said, BCOD :)
10:00:00*Zectbumo quit (Remote host closed the connection)
10:05:08*rmt quit (Quit: Leaving)
10:13:04*Zectbumo joined #nim
10:16:00*Zectbumo quit (Remote host closed the connection)
10:16:34*theelous3 quit (Read error: Connection reset by peer)
10:17:49*PMunch joined #nim
10:20:53*filcuc joined #nim
10:26:59*nick34348 quit (Quit: leaving)
10:31:51PMunchAraq, well it doesn't appear to test anything at least..
10:32:48PMunchZevv, ooh nice I'm going to be adding a lot more smarts to my house over the coming days, that might come in handy
10:43:21*Zectbumo joined #nim
10:43:56*alexander92 joined #nim
10:44:06*PMunch quit (Quit: leaving)
10:44:22*PMunch joined #nim
10:44:40*PMunch quit (Remote host closed the connection)
10:44:57*PMunch joined #nim
10:45:00*Zectbumo quit (Remote host closed the connection)
10:51:17ZevvPMunch: bah, I hate smarts in my house
10:51:30Zevvhave fun with that :)
10:52:48PMunchThis is the good kind of smarts
10:53:11PMunchNo cloud, basic units tied together with an rPi
10:55:42FromDiscord<kodkuce> does nim have some wasm working lib?
10:56:23*tane_ quit (Quit: Leaving)
10:57:08PMunchAnyone knows why `extract` here can get a NilLit? http://ix.io/2ebe
10:57:22PMunchLike this works fine: https://play.nim-lang.org/#ix=2ebf
11:03:02Araq'echo red'?
11:03:06PMunchNope
11:03:10PMunchTried to remove that
11:03:29PMunchIt seems like it's dependent on what I put after the echo ast.treeRepr in the extract procedure..
11:04:13Araqyou call a macro from inside a macro, are you aware?
11:04:18PMunchYup
11:04:21PMunchThat's on purpose
11:04:41Araqit makes my head explode :P
11:04:51PMunchIt's a macro to make it easier to work with macros :P
11:06:25*filcuc quit (Ping timeout: 255 seconds)
11:06:47PMunchEssentially the `extract` macro takes a NimNode tree of the same structure as the `input` with the exception of nnkAccQuoted nodes. Then the nodes in the `input` that match a nnkAccQuoted node will be assigned to whatever is inside the nnkAccQuoted.
11:07:37PMunchSo in the `test` macro there it would result in something like "let procname = input[0][0]"
11:13:21*Zectbumo joined #nim
11:16:00*Zectbumo quit (Remote host closed the connection)
11:17:02PMunchOkay, found the bug. This is definitely a VM bug: https://play.nim-lang.org/#ix=2ebp
11:18:47PMunchCan be worked around like this: https://play.nim-lang.org/#ix=2ebq
11:18:55PMunchIs this known, or should I report it?
11:19:37*Hideki_ joined #nim
11:22:36*alexander92 quit (Quit: Reconnecting)
11:22:51*alexander92 joined #nim
11:26:05*jjido_ is now known as jjido
11:26:17*jjido quit (Quit: Textual IRC Client: www.textualapp.com)
11:26:44*jjido joined #nim
11:27:45*kitech1 quit (Quit: ZNC 1.7.5 - https://znc.in)
11:28:07*kitech1 joined #nim
11:31:06*kitech1 quit (Client Quit)
11:31:30*kitech1 joined #nim
11:32:06*kitech1 quit (Max SendQ exceeded)
11:32:28*kitech1 joined #nim
11:33:29*Hideki_ quit (Remote host closed the connection)
11:34:06*Hideki_ joined #nim
11:34:12PMunchAaah, beautiful! Got this working now: http://ix.io/2ebt
11:38:26*Hideki_ quit (Ping timeout: 240 seconds)
11:39:04*filcuc joined #nim
11:43:04*Zectbumo joined #nim
11:45:46*sammich quit (Quit: https://quassel-irc.org - Chat comfortably. Anywhere.)
11:46:51*sammich joined #nim
11:50:37*tane joined #nim
11:50:52Zevvargh
11:51:06Zevvsure you will understand this two months from now? :)
11:51:56axionHow would I unparse an AST into Nim source string for debugging a macro's generated code?
11:52:23alexander92mm
11:52:29alexander92node.repr
11:52:41alexander92=> source-like representation
11:52:59alexander92node.treerepr => tree indented node repr
11:53:09alexander92node.lisprepr => lisp s-exprlike repr
11:53:30*Zectbumo quit (Remote host closed the connection)
11:54:20*tdc joined #nim
11:55:24alexander92PMunch that's actually .. useful .. and very good
11:55:39alexander92maybe the best innovation in nim macros i've seen lately
11:55:43axionThanks. It was repr i wanted. Was using lispRepr
11:56:31PMunchalexander92, yeah it's a thing I've been wanting for a while now while writing macros :)
11:56:50alexander92like, it makes sense to combine pattern matching directly with quoting
11:57:11*kungtotte quit (Read error: Connection reset by peer)
11:58:23*kungtotte joined #nim
12:04:38PMunchYeah, this entire module is basically all the stuff I've wanted when working with macros over the past couple of years
12:05:30dwdvScheme-like declarative macros essentially?
12:08:11*natrys joined #nim
12:08:53PMunchNo idea :P Never wrote a schema macro..
12:11:12dwdvWhat rust is doing with macro_rules! https://doc.rust-lang.org/1.7.0/book/macros.html
12:12:26alexander92dwdv well kinda
12:13:06alexander92but on the other hand sometimes you need
12:13:08alexander92custom code
12:13:25alexander92for extraction/validation/analysis/generation
12:13:40alexander92so this declarative approach is always up to a point i guess in nim/rust
12:13:41*Zectbumo joined #nim
12:14:08alexander92the big difference i know about is that rust macros work on tokens iirc?
12:14:26alexander92and nim's on ast which might be relevant as well
12:14:54alexander92because you might be able to express more stuff with just valid token sequence but it might look too foreign: so its a tradeoff
12:14:57alexander92maybe
12:14:58dwdvBoth rust and the various scheme have declarative (macro-rules!) and procedural macros (ast tokens), don't they?
12:15:31*Hideki_ joined #nim
12:16:34alexander92it seems so yeah, so in this case `extract` is indeed kinda similar to them
12:18:33PMunchHmm, is there a way to create a NimNode literal?
12:19:00alexander92macro_rules! is good!
12:21:02*Zectbumo quit (Remote host closed the connection)
12:25:03*lritter joined #nim
12:27:38*filcuc quit (Ping timeout: 256 seconds)
12:28:59*filcuc joined #nim
12:29:25*Hideki_ quit (Remote host closed the connection)
12:29:42*Hideki_ joined #nim
12:32:04*Zectbumo joined #nim
12:36:10*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:38:31*Kaivo_ quit (Quit: WeeChat 2.7.1)
12:42:43*filcuc quit (Ping timeout: 260 seconds)
12:47:16FromDiscord<mratsim> @axion: toStrLit
12:50:39*tdc quit (Remote host closed the connection)
12:51:04*tdc joined #nim
12:51:09FromDiscord<mratsim> I feal like Rust's macros don't go far enough
12:51:13FromDiscord<mratsim> feel*
12:53:13axionMacro systems don't go far enough until they allow writing pandoric macros
13:01:51PMunchaxion, pandoric?
13:02:40alexander92they do mratsim you should look at the typed html jsx thing
13:04:08axionPMunch: they're called pandoric because they allow opening up the box that should not be opened, closures can be accessed from the outside, opening up all sorts of interesting possibilities
13:18:52*Vladar quit (Quit: Leaving)
13:26:34PMunchCrap.. FormalParams is proving difficult for extract
13:27:11PMunchFor example with this: proc name(`arguments`)
13:27:29PMunch`arguments` there get lifted up to cover the entire FormalParams, including the return type
13:28:23PMunchAnd this: proc name(`arguments`): `ret`
13:28:45PMunch`arguments` will only grab the first argument..
13:29:52PMunchGood thing I have all the nodes already in a DSL, so I could generate a matcher for them that would convert things properly based on vararg arguments..
13:30:46PMunchNot sure how useful putting in all that work would be though..
13:30:56PMunchSince this is mostly meant to parse your own DSLs
13:45:15*hax-scramper quit (Ping timeout: 260 seconds)
13:49:18*hax-scramper joined #nim
13:50:05*couven92 joined #nim
13:50:39FromDiscord<Skaruts> I'm getting this error when using sfml events with `==` or `in` or `notin` : `Error: parallel 'fields' iterator does not work for 'case' objects`
13:50:47FromDiscord<Skaruts> This is the Event type: https://github.com/oprypin/nim-csfml/blob/bef490338d8b31265cc47159310c2a02896b0ccb/src/csfml/private/union_event.nim#L22
13:50:52FromDiscord<Skaruts> I repreduced the error in a small test: https://play.nim-lang.org/#ix=2ebX
13:50:57FromDiscord<Skaruts> How do I get around this? I need to check if the event is in a sequence of handled events
13:51:36FromDiscord<Skaruts> This is the Event type: <https://github.com/oprypin/nim-csfml/blob/bef490338d8b31265cc47159310c2a02896b0ccb/src/csfml/private/union_event.nim#L22>
13:51:44Yardanicohttps://forum.nim-lang.org/t/2774
13:52:02YardanicoI'm not sure if it still applies now, but you probably need to write your own `==`
13:52:06Yardanicofor that object
13:52:37FromDiscord<Skaruts> I see
13:53:01FromDiscord<Skaruts> not sure how I can check for equality on those objects though
13:53:40FromDiscord<Skaruts> or rather, how I can check that they're the same object
13:54:10PMunchLike so: https://play.nim-lang.org/#ix=2ebY
13:55:30FromDiscord<Skaruts> should I worry that multiple input events might contain the exact same values?
13:55:59PMunchI don't know, I have no idea what you're actually trying to achieve
13:56:46FromDiscord<Skaruts> trying to add option to mark an event as handled
13:58:01FromDiscord<Skaruts> actually I don't think I should worry about that, no matter how many keys or buttons the user presses, I don't think they can press the same key twice in one frame, but then even if they did, the same key is still the same event
13:58:24FromDiscord<Skaruts> thanks
14:00:31PMunchNo problem
14:01:22alexander92what should i do today?
14:04:50PMunchUgh, I'm looking at this problem and it would be doable to implement. Just a PITA to actually do it..
14:05:25PMunchAll because the Nim AST has some nodes with variable amounts of nodes in them
14:05:44PMunchInstead of having one "variable amount of nodes" node that could be there instead..
14:05:46alexander92but why is this a problem
14:06:02PMunchWell, imagine nnkCall for example
14:06:30alexander92`a(b, c*)` ?
14:06:42PMunchSo if I want to do "myProc(`arguments`)" I would expect that to extract all the arguments given to myProc
14:06:44alexander92a pattern matching thing should probably have a way to express mutlitple
14:06:51alexander92i think
14:07:04alexander92i'd expect to have
14:07:17alexander92`a(b)` => one , `a(*b)` => seq of many in b
14:07:24alexander92`a(b*)` *
14:07:32alexander92because the second one is valid nim i think
14:07:44PMunchHmm
14:10:16PMunchI still need to check if the argument is in the `varargs` portion of a node or not though
14:11:28PMunchHmm, or maybe not..
14:12:48PMunchIt might work..
14:21:29*leorize quit (Remote host closed the connection)
14:22:01*leorize joined #nim
14:46:28*hax-scramper quit (Ping timeout: 255 seconds)
14:50:46*hax-scramper joined #nim
14:55:09*dddddd joined #nim
14:59:49*federico3_ is now known as federico3
15:01:03*opal quit (Ping timeout: 240 seconds)
15:04:24*opal joined #nim
15:06:18*hax-scramper quit (Ping timeout: 256 seconds)
15:08:17*hax-scramper joined #nim
15:09:24disruptekhearts and minds, people! hearts and minds!
15:12:50*hax-scramper quit (Ping timeout: 258 seconds)
15:16:51Zevv♥ ♥ & 🧠 🧠
15:17:08disruptek💋
15:17:20Zevvespecially for you. I only see green squares :)
15:17:23disruptek!last zevv
15:17:23disbotZevv spoke in 12#nim 2 seconds ago
15:17:30disruptekis this the feature you wanted, btw?
15:17:34Zevvyesss sir
15:17:38Zevvthank you very much
15:17:49disrupteksure. i couldn't understand my notes so i had to guess.
15:17:56FromDiscord<Recruit_main70007> it even works in discord
15:18:35Zevv!last Recruit_main70007
15:18:35disbotRecruit_main70007 spoke in 12#nim 39 seconds ago
15:18:39Zevvwoohoo
15:19:56disruptek!last federico3
15:19:57disbotfederico3 quit 711 hours ago and last spoke 16 hours ago
15:20:09federico3?
15:20:15disrupteki guess i should strip _ automagically.
15:20:30disruptektrailing... from nicks... for the purposes of equality.
15:21:01*solitudesf quit (Quit: Leaving)
15:21:19*sz0 joined #nim
15:21:25*solitudesf joined #nim
15:21:46PMunchWell, you should parse "X is now known as Y" messages
15:21:50PMunchOr whatever they actually are
15:22:16disrupteki do, but only in one direction. that's why i need to perform the identity test without respect to trailing _.
15:22:31*disruptek is now known as goats
15:22:36*goats is now known as goats32
15:22:40goats32!last disruptek
15:22:41disbotdisruptek spoke in 12#nim 23 seconds ago
15:22:45*goats32 is now known as disruptek
15:22:47PMunchDamn it.. I had gotten an e-mail at 2PM that my smart stuff had arrived, but I didn't see it until 3:30PM and the post office closes at 3PM. So now I have to wait until monday to get it..
15:22:48disruptek!last disruptek
15:22:49disbotdisruptek spoke in 12#nim 32 seconds ago
15:23:15disrupteknot so smart, now.
15:24:24disrupteki guess the irc lib isn't passing nick events correctly.
15:33:22alexander92!last disbot
15:33:23disbotdisbot joined 12#nimsec 12 hours ago and last spoke 73 days ago
15:33:35alexander92WHAT IS HAPPENING
15:34:21lqdev[m]how do I cross-compile from 64-bit to 32-bit? normally you use the `-m32` flag in gcc but using `--passC:-m32` gives me that `Nim_and_C_compiler_disagree_on_target_architecture` error
15:40:55*disruptek is now known as goats23
15:41:47*krux02 joined #nim
15:44:36*marmotini_ joined #nim
15:45:17*goats23 is now known as disruptek
15:46:28*disruptek is now known as goats55
15:46:50*goats55 is now known as disruptek
15:47:50disruptek~news
15:47:51disbotnews: 11the #nim-news channel has a Nim news feed of updates to pull requests, issues, and packages. -- disruptek
15:49:28FromGitter<alehander92> дok
15:50:38*Trustable joined #nim
15:52:22FromDiscord<Skaruts> why don't sequences have `clear()`?
15:52:26Araqlqdev[m], I set my PATH to mingw32 (it is usually mingw64) and compile with --cpu:i386
15:54:57disruptekthere probably should be a couple extensions to the api to pre-alloc by size and to clear without de/re/alloc.
16:02:13Zevvsetlen does #1
16:03:59Araqs.setLen 0 # clear
16:04:18disruptekyes, but it needs a convenience name that is portable to other types.
16:08:28alexander92well inc is +1 but we have inc
16:09:14alexander92on the other hand i wonder how often do people actually shrink a sequence to >0
16:13:47*filcuc joined #nim
16:13:54ZevvI used that to unwind the stack of my VM, but then I threw it out and just update my 'top' index because setLen is expensie
16:13:57Zevvexpensive
16:18:29AraqI thought about doing proc setLen(s; newLength = 0)
16:18:45Araqbut it's code obfuscation
16:19:03Araqwrite .setLen(0) and live with it
16:19:25lqdev[m]@mratsim is there a way of making weave not eat all of my 12 threads when idle?
16:20:09Zevvhaha
16:20:59Zevvlqdev[m]: https://github.com/mratsim/weave/issues/103
16:21:02disbotBackoff not kicking in, 100% usage on all CPUs ; snippet at 12https://play.nim-lang.org/#ix=2edQ
16:21:02alexander92but inc is code obfuscation
16:21:03alexander92for +1
16:22:06alexander92.clear imo might make sense in generic context, similarly to .high .low etc
16:22:20disruptekexactly.
16:22:54Zevvcreate a PR and prepare for 150 responses on that
16:23:38*Trustable quit (Remote host closed the connection)
16:24:39*Trustable joined #nim
16:25:50Araqso which generic operation uses seqs OR tables?
16:29:42disruptekclear?
16:29:54lqdev[m]mratsim: do I have to sync somewhere when I use parallelFor?
16:30:12lqdev[m]I'm trying to fill a ptr UncheckedArray[Color] with a single Color, but it segfaults for some reason
16:34:39lqdev[m]I have this operation in a single procedure, and I'd like to sync after that proc is complete.
16:35:32*Zectbumo quit (Remote host closed the connection)
17:20:02*alexander92 quit (Ping timeout: 240 seconds)
17:21:01*thomasross joined #nim
17:31:36*alexander92 joined #nim
17:35:11FromDiscord<Kiloneie> Why is my constants video so dreadfully low on views ? noone cares about constants D: ?(i mean it was a pretty short video but...)
17:37:57*jjido joined #nim
17:38:47FromDiscord<kodkuce> lets go buff his views https://www.youtube.com/watch?v=BakkfzsDulM
17:39:27FromDiscord<Kiloneie> <.< okay
17:39:37FromDiscord<Kiloneie> (Patreon ahem D:...)
17:39:58FromDiscord<Kiloneie> also how do you like these thumbnails ?
17:40:02leorizeKiloneie: welcome to yt watch time :)
17:40:28FromDiscord<Kiloneie> 😮
17:40:35leorizeif you video ctr is not high enough (and that thing is computed with watch time somehow), it won't show up on the subscriber feed
17:41:22*Trustable quit (Remote host closed the connection)
17:42:12leorizethere's a reason why ytbers tell people to click the bell
17:43:20alexander92гпп
17:50:48alexander92liked it*
17:50:55alexander92no idea if it helps with watch algorithms
17:51:08alexander92i'd say that constants seem a bit obvious
17:51:22alexander92i mean its probable that there are edge cases etc
17:51:42alexander92but an average viewer might skip it to see something more unclear
17:52:59FromDiscord<Kiloneie> oh well
17:53:09FromDiscord<Kiloneie> my first one keeps getting views like crazy...
17:53:23alexander92is it "introduction.."
17:53:24FromDiscord<Kiloneie> #1 and #2 are top of the chart ALL the time
17:53:33FromDiscord<Kiloneie> yeah xD D:
17:53:42alexander92well
17:53:51alexander92i guess its very easy to start like this for viewers
17:53:54alexander92and intro sounds important
18:04:21*cornfeedhobo quit (Quit: ZNC - https://znc.in)
18:09:45FromDiscord<Kiloneie> Right now i get about 100 views on a new video in a week, can't wait for 1000...
18:09:55FromDiscord<Kiloneie> eta 6-12 months D:
18:14:23*cornfeedhobo joined #nim
18:16:27FromDiscord<Lantos> Nice interview Araq. Really informative, good to see a video that explains the direction of nim. Ps don
18:16:37FromDiscord<Lantos> Nice interview Araq. Really informative, good to see a video that explains the direction of nim. Ps don't for get to smile Araq 🙂
18:18:11lqdev[m]@mratsim I'm getting a crash in Weave, something related to load balancing: http://ix.io/2eet
18:19:42FromDiscord<Kiloneie> you got a l ink to that interview ? im curious
18:20:17lqdev[m]idk is this a race condition? it happens when I try to use parallelFor
18:20:29FromDiscord<Lantos> https://www.youtube.com/watch?v=-9SGIB946lw&feature=emb_title
18:20:36lqdev[m]in a continuous render loop
18:20:40*marmotini_ quit (Remote host closed the connection)
18:21:16*marmotini_ joined #nim
18:23:08FromDiscord<treeform> Hey, is there like an mget but for seq?
18:23:16disruptekmitems
18:23:26FromDiscord<treeform> but I just want 1 thing
18:23:28disruptek[] should be var.
18:23:51FromDiscord<treeform> but its a value type
18:24:21disruptekthen assign it to a var and mutate it?
18:24:27FromDiscord<treeform> yes
18:24:34disruptekthen assign it to a var and mutate it.
18:24:41FromDiscord<Kiloneie> wait, wouldn't the setup in the interview be better than what i use in my videos oO ?
18:24:44FromDiscord<treeform> it does not work?
18:24:49disruptekcode?
18:24:49*Hideki_ quit (Remote host closed the connection)
18:25:24FromDiscord<treeform> `positionAccessor = scene.accessors[primative.attributes.position]`
18:25:36*Hideki_ joined #nim
18:25:38*marmotini_ quit (Ping timeout: 240 seconds)
18:25:41FromDiscord<treeform> I mute positionAccessor it does not work
18:26:03disruptekit's a value type.
18:26:14disruptekmutate it, assign it again.
18:26:52FromDiscord<treeform> yeah I think you are right
18:28:24FromDiscord<treeform> hmm nope
18:28:29FromDiscord<treeform> this is a minimal example:
18:28:29FromDiscord<treeform> https://play.nim-lang.org/#ix=2eey
18:29:05FromDiscord<treeform> I think the issues is b = a[0] does a copy...
18:29:06FromDiscord<treeform> hmm
18:29:11FromDiscord<treeform> is there a way to not get a copy
18:29:12FromDiscord<treeform> like
18:29:18FromDiscord<treeform> b = a.mget[0] ?
18:29:19disruptekyou never assigned it.
18:29:34disrupteka[0] = b
18:29:42disruptekif you don't want copies, use references.
18:29:44FromDiscord<treeform> but what if I don't want to?
18:29:59disruptekuse a pointer?
18:30:05disruptekaddr
18:30:20FromDiscord<Kiloneie> Does Nim forum have a dark mode ?
18:30:25*Hideki_ quit (Ping timeout: 268 seconds)
18:30:27FromDiscord<treeform> yeah If I do `var b = addr a[0]` it works
18:32:00*marmotini_ joined #nim
18:39:51disruptekshouldn't getOrDefault on a CountTableRef yield 0.... by default?
18:42:40FromGitter<matrixbot> `watzon` Is there a pragma that checks if params passed to a proc meet a certain criteria? Something like vala's `requires` statement?
18:46:45Araquse 'assert'
18:47:42FromDiscord<Kiloneie> Informative interview @Araq
18:48:55Araqthanks
18:53:37*filcuc quit (Remote host closed the connection)
18:57:11*marmotini_ quit (Remote host closed the connection)
18:57:46*marmotini_ joined #nim
18:57:47*kenran joined #nim
18:59:35*kenran quit (Client Quit)
19:02:02*marmotini_ quit (Ping timeout: 240 seconds)
19:02:03*filcuc joined #nim
19:06:15*Hideki_ joined #nim
19:14:22leorize@watzon: join us here on irc at #freenode_#nim:matrix.org
19:15:18*watzon joined #nim
19:16:05leorizewelcome :)
19:17:47*Hideki_ quit (Ping timeout: 258 seconds)
19:20:06FromDiscord<Lantos> Araq, I don't think he asked you. How did you find motivation over the years to keep developing nim?
19:20:31*Zectbumo joined #nim
19:23:37watzonGood to be back here haha. I didn't even realize I was in the matrix room.
19:24:29leorizelol
19:27:31*marmotini_ joined #nim
19:29:00nixfreak!cryptography
19:36:02nixfreak!help
19:36:12ZevvDon't panic, we are here for you!
19:38:01nixfreakare there any libs like cryptography or crypto for python that i can use for nim ?
19:38:13leorize!repo crypto
19:38:15disbothttps://github.com/ba0f3/libssh2.nim -- 9libssh2.nim: 11Nim wrapper for libssh2 15 16⭐ 4🍴 7& 4 more...
19:38:20leorize!repo nim-crypto
19:38:21disbothttps://github.com/HarperProjects/Pixie -- 9Pixie: 11Some crypto implementations in nim 15 0⭐ 0🍴 7& 1 more...
19:38:25leorize!repo nimcrypto
19:38:27disbothttps://github.com/cheatfate/nimcrypto -- 9nimcrypto: 11Nim cryptographic library 15 50⭐ 9🍴
19:38:38leorize!repo libsodium
19:38:39disbothttps://github.com/FedericoCeratto/nim-libsodium -- 9nim-libsodium: 11Nim wrapper for the libsodium library 15 25⭐ 5🍴 7& 1 more...
19:38:45leorizenixfreak: have fun :)
19:38:58nixfreakcan't use libsodium right now I wish ):
19:39:02nixfreakthanks
19:41:23nixfreak !repo pkcs11
19:41:41nixfreak!repo pkcs11
19:41:43disbothttps://github.com/miekg/pkcs11 -- 9pkcs11: 11pkcs11 wrapper for Go 15 189⭐ 94🍴 7& 29 more...
19:41:53leorize!package pkcs
19:41:54disbotno packages match 😢
19:42:01nixfreakxit
19:42:12leorize!package p11-kit
19:42:13disbotno packages match 😢
19:42:44Zevvnixfreak: crypto is a bit fragmented in nimland I'm afraid
19:42:57watzonIs there some kind of `assert unreachable`?
19:43:13leorizeassert false, "unreachable!"? :P
19:43:34watzonLmao I mean that would work
19:43:48disruptek~&
19:43:49disbot&: 11unreachable
19:43:52leorizeif you want it to be more explicit, just put it in a template :P
19:51:39AraqLantos: good question, I think one reason is that Nim is a very *big* project that covers/touches many different aspects of computing
19:52:33Araqtype systems, optimizations, stdlib design, DSLs, an effect system, async, safe multi-threading, it never gets boring
19:52:44Araqbbl
20:04:19FromDiscord<Kiloneie> I wish my head worked that way, i keep slamming into the same door till i break xD...
20:15:57*chemist69 quit (Remote host closed the connection)
20:16:21*chemist69 joined #nim
20:25:11*NimBot joined #nim
20:27:34*jjido quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
20:35:16FromDiscord<mratsim> @lqdev, seems like alerts that work well across IRC/Discord :/
20:35:20FromDiscord<mratsim> just saw your msg
20:38:44FromDiscord<mratsim> do you have the code that leads to ix.io (evalSplit), I think the crash you reported is due to something being an int that my error routine trries to display as an uint
20:39:24FromDiscord<Lantos> thanks for the answer Araq. @Kiloneie same although I can burry away and forget time doing somethings. Machining/Coding for me. I guess system level design for araq
20:39:33FromDiscord<mratsim> @watzon, I use this for unreachable: https://github.com/mratsim/Synthesis/blob/a3054253fa7ff1a66189d0bb02487e399a910b69/synthesis/factory.nim#L324
20:40:06watzonHmm interesting. Thanks :)
20:41:09FromDiscord<mratsim> for syncing after a parallel for you can use "awaitable" like here: https://github.com/mratsim/weave/blob/master/weave/parallel_for.nim#L387-L392
20:41:45FromDiscord<mratsim> it's mentioned in the README: https://github.com/mratsim/weave#awaitable-loop
20:51:58FromDiscord<él liquido> @mratsim I was unable to track down *where* exactly in my code it was
20:52:24FromDiscord<él liquido> I think it was somewhere near a parallelFor, but I honestly have no idea
20:52:40FromDiscord<él liquido> I know that calling `Weave.syncRoot` freezes the whole program
20:52:52FromDiscord<él liquido> And… that's about all I know
20:53:34FromDiscord<Varriount> Hey, I remember some mention of libbacktrace in Nim issues/PRs/RFCs - anyone know where it was originally mentioned?
20:54:29disruptek!rfc libbacktrace
20:54:29disbotno results 😢
20:54:33disruptek!rfc stacktrace
20:54:33disbothttps://github.com/nim-lang/RFCs/issues/198 -- 3[RFC] [performance] {.inline.} guarantees, `--stacktrace:inline`, and `--ignoreInline` 7& 3 more...
20:56:32FromDiscord<mratsim> for the split bug that's OK
20:56:55FromDiscord<mratsim> I should be able to investigate with the stack trace
20:57:15FromDiscord<mratsim> for syncRoot, do you have blocking proc?
20:57:58FromDiscord<mratsim> that wa your github right? https://github.com/liquid600pgm
21:00:14*MarderIII joined #nim
21:12:17*couven92 quit (Quit: Client Disconnecting)
21:13:28disruptekhttp://argentina-ni.ml/959393
21:14:50*tane quit (Quit: Leaving)
21:15:19disruptek~playground
21:15:20disbotplayground: 11an online in-the-browser IDE for simple Nim experiments at https://play.nim-lang.org/ -- disruptek
21:15:45disruptek~playground is an online in-the-browser IDE for simple Nim experiments at http://argentina-ni.ml/
21:15:46disbotplayground: 11an online in-the-browser IDE for simple Nim experiments at http://argentina-ni.ml/
21:17:44*marmotini_ quit (Quit: Leaving...)
21:25:10leorizedisruptek: shouldn't we advertise the official playground, then ask PMunch to implement everything from competing solutions? :)
21:25:32disrupteksure?
21:27:20FromDiscord<Varriount> The Go playground is pretty bare-bones
21:28:01FromDiscord<Varriount> What would be really neat is running the compiler in the browser
21:28:31FromDiscord<Varriount> Though, then the executable would have to be js-compatible
21:28:53FromDiscord<Recruit_main70007> how can i do this in Nim?
21:28:53FromDiscord<Recruit_main70007> https://github.com/Zer0Mem0ry/StandardInjection/blob/master/testlib/dllmain.cpp
21:28:54FromDiscord<Recruit_main70007> possibly without using emit
21:29:48*couven92 joined #nim
21:30:05FromDiscord<Varriount> Create a DLL?
21:30:07leorizelong story short, you can't because Nim claimed that already :P
21:31:20leorizethe compiler uses dllmain to run code put in modules top-level
21:31:55leorizeso if you just wanna run code, then that'd work, but if you wanna check the "reason", you can't
21:37:10FromDiscord<Recruit_main70007> so...
21:37:14FromDiscord<Recruit_main70007> no?
21:37:23FromDiscord<Recruit_main70007> i cant?
21:37:46*natrys quit (Ping timeout: 255 seconds)
21:37:47FromDiscord<Recruit_main70007> if i compile with --noMain?
21:38:28leorizegood news, --noMain does work :)
21:38:51FromDiscord<Recruit_main70007> so... i just transpile that function
21:39:01FromDiscord<Recruit_main70007> and compile with nomain, lin, etc..
21:39:09FromDiscord<Recruit_main70007> and it will work?
21:39:28leorizeyea
21:39:34FromDiscord<Recruit_main70007> Cool
21:39:37leorizeyou can import winlean for everything you'd need to write that function
21:40:11FromDiscord<Recruit_main70007> ye, ok, i love Nim, its just the best, i can live with simple OOP
21:41:38krux02Recruit_main70007: how did you get to know about Nim?
21:45:32FromDiscord<Recruit_main70007> u see, (this is a long story) ive always liked python, but it is SO F*CKING SLOWW, ive had 3 main language crisis (looking for a new language, but they were either ugly or slow), the first one, i just dealt with it, and kept using python, the second time i looked for python like languages i found Boolang (.NET), it was really good, better then c# for sure, but it was pretty dead in development terms (not completely, but its been a
21:46:37FromDiscord<Recruit_main70007> im really comfortable with it, and have no plan in changing it
21:46:51leorizedoes the irc bridge even capable of dealing with long messages lol
21:47:04FromDiscord<Recruit_main70007> idk
21:47:22leorizehttps://irclogs.nim-lang.org/14-03-2020.html#21:45:32
21:47:27FromDiscord<Recruit_main70007> i could write a short book if i get into details XD
21:48:06FromDiscord<Recruit_main70007> to sum up, thew third time i looked, in a quora thread
21:51:10*natrys joined #nim
21:52:52*natrys quit (Client Quit)
21:57:07*tdc quit (Ping timeout: 260 seconds)
21:58:13*deech joined #nim
22:00:58deechShould the 'option' type work with C structs? eg. an object like 'type O {.importc.} = object i: cint ...'
22:03:26leorizeI'm not sure what you mean
22:08:28*filcuc quit (Ping timeout: 256 seconds)
22:08:31*filcuc_ joined #nim
22:11:16*lritter quit (Quit: Leaving)
22:19:31*solitudesf quit (Ping timeout: 260 seconds)
22:31:36*Zectbumo quit (Remote host closed the connection)
22:33:17*thomasross quit (Remote host closed the connection)
22:34:05*thomasross joined #nim
22:36:23watzonIs it possible to get a from a pointer at a specific index like you can in C? `myPointer[i]` isn't working.
22:37:12leorizecast the pointer to `ptr UncheckedArray[T]`
22:39:43watzonThanks!
22:39:55watzonI figured it probably required a cast
22:51:22*sealmove joined #nim
22:54:31Araq!!!Note: as long as azure doesn't check PRs, no PRs can be merged!!!!
22:54:45disrupteknoted!
23:08:33*filcuc_ quit (Ping timeout: 258 seconds)
23:09:07sealmovewhere can I find junit spec?
23:09:29*filcuc_ joined #nim
23:13:58*deech quit (Remote host closed the connection)
23:14:13*deech joined #nim
23:14:47*Hideki_ joined #nim
23:19:28*Hideki_ quit (Ping timeout: 255 seconds)
23:19:29watzonDoes DocGen format doc comments with markdown?
23:27:02leorizewatzon: docgen format doc comments with ReStructuredText (RST)
23:28:08Araqwith markdown extensions.
23:28:53Araqit's a hybrid and it's not as bad as it sounds as RST and markdown are very similar
23:29:33Araqin pratice you need to run 'nim doc' and look at the produced HTML anyway for all sorts of reasons
23:29:46watzonAhh ok. So do standard markdown links work? Or should I use the `_text https://link.site` syntax?
23:32:50watzonLooks like markdown links work, nvm haha
23:37:41*krux02 quit (Remote host closed the connection)
23:55:16*Hideki_ joined #nim
23:58:42*Hideki_ quit (Client Quit)