<< 13-10-2019 >>

00:00:01*junland quit (Quit: %ZNC Disconnected%)
00:00:49*junland joined #nim
00:02:15*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
00:02:51*laaron joined #nim
00:04:52*laaron quit (Remote host closed the connection)
00:05:22*laaron joined #nim
00:06:18*laaron quit (Client Quit)
00:07:04*laaron joined #nim
00:13:09*laaron quit (Remote host closed the connection)
00:16:05*nsf quit (Quit: WeeChat 2.6)
00:16:16FromGitter<aboisvert> if one were to want to try out --newruntime, what modules of the std library are known to work (read: compile) today?
00:23:07*Hideki joined #nim
00:24:47shashlick@disruptek there's already nimssh2 based on nimgen so it might be relatively easy
00:26:55*laaron joined #nim
00:30:10disruptekeverything's a challenge for me, so i defer to your expertise. 😛
00:31:50shashlickOk then I'll do two if one ends up too easy
00:32:52disrupteki figured the archive libs should be pretty easy since they are fairly modern and narrowly scoped.
00:33:45disruptekzstd depends on lz4, so...
00:33:49shashlickTrue that
00:34:01shashlickI just wonder who will use all this stuff
00:34:06disruptekpigz depends on zlib and ncompress.
00:34:32disruptekoh i thought you were mostly trying to document stuff.
00:35:30shashlickYes that is true but if I wrap nimarchive related stuff I won't be able to resist going all the way :)
00:36:11disrupteki should put nimarchive into my benchmark testsuite.
00:36:29shashlickAnyway, I agree it is for docs so will try keep focused
00:37:33*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
00:38:26*laaron joined #nim
00:39:31*laaron quit (Client Quit)
00:40:09*laaron joined #nim
00:41:27*laaron quit (Client Quit)
00:42:04*laaron joined #nim
01:04:37*thomasross quit (Ping timeout: 240 seconds)
01:11:27*thomasross joined #nim
01:17:14*NicQ joined #nim
01:18:30NicQMic check
01:28:47*NicQ quit (Ping timeout: 276 seconds)
01:29:55*NicQ joined #nim
01:31:17*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
01:31:40*lritter joined #nim
01:31:40*NicQ quit (Read error: Connection reset by peer)
01:32:46*laaron joined #nim
01:33:47*NicQ joined #nim
01:37:53*NicQ quit (Read error: Connection reset by peer)
01:39:04*NicQ joined #nim
01:42:19*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
01:42:31*NicQ quit (Read error: Connection reset by peer)
01:43:10*NicQ joined #nim
01:44:23*laaron joined #nim
01:47:01*laaron quit (Client Quit)
01:47:49*laaron joined #nim
01:48:17*NicQ quit (Ping timeout: 240 seconds)
01:49:57*minierolls quit (Ping timeout: 240 seconds)
01:50:31*NicQ joined #nim
01:53:28*laaron quit (Ping timeout: 260 seconds)
01:54:05*laaron joined #nim
01:54:10*theelous3 joined #nim
01:54:14*krux02_ quit (Remote host closed the connection)
02:00:20*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
02:00:56*laaron joined #nim
02:01:11*NicQ quit (Read error: Connection reset by peer)
02:01:24*NicQ joined #nim
02:14:17*NicQ quit (Ping timeout: 276 seconds)
02:14:41*NicQ joined #nim
02:15:09*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
02:15:45*laaron joined #nim
02:28:35*NicQ quit (Read error: Connection reset by peer)
02:29:38*NicQ joined #nim
02:32:45*NicQ quit (Read error: Connection reset by peer)
02:33:27*NicQ joined #nim
02:50:12FromDiscord<Lunar> The mic works on text :P
02:50:28FromDiscord<Lunar> Just curious, is there encryption support for Nim yet?
02:52:10*theelous3 quit (Ping timeout: 265 seconds)
02:52:26*lritter quit (Ping timeout: 240 seconds)
02:52:30disrupteklunar: there are a number of crypto packages for nim.
02:53:00FromDiscord<Lunar> Ah, that's good. I was just curious :P
02:53:10*lritter joined #nim
02:57:24disrupteknim-crypto has the best support.
02:57:38*NicQ quit (Ping timeout: 246 seconds)
02:58:33*NicQ joined #nim
03:00:14*Traviss__ quit (Quit: Leaving)
03:00:36*traviss joined #nim
03:03:19*NicQ quit (Read error: Connection reset by peer)
03:07:17*NicQ joined #nim
03:10:21jkenAnyone here any good with opengl?
03:10:31disruptekyep.
03:12:12jkenI've been trying to get started with sdl2 and opengl in nim, I can render things fine with legacy gl functions, but I am trying to learn modern opengl
03:12:32jkenI've pulled out all the opengl bits from my project into a minimal example
03:12:51jkenAny chance you could give it a once over?
03:13:02disruptekwell, i myself know nothing about opengl.
03:13:32disruptekbut there are a lot of folks in here who are familiar with it.
03:13:54disruptekkrux02, a nim maintainer, did the sdl2 port.
03:14:08disruptekthen there are a number of game creators who have extensive familiarity...
03:14:20jkenhttps://paste.debian.net/plain/1106243
03:14:47jkenThats my code, its pretty much in line with every modern opengl tutorial I've found
03:14:57leorizekrux02 also made a opengl shader dsl for nim iirc
03:15:20jkenI get my background clear color, but it does not draw my triangle
03:15:56*NicQ quit (Ping timeout: 240 seconds)
03:16:14jkenSome stack overflow posts led me to checking GL_CCW vs GL_CW and face culling, but no combination seems to work
03:16:31disruptekhave you looked at any nim-specific examples?
03:16:53*NicQ joined #nim
03:17:32jkenI've looked through all of the nim opengl code I could find in the examples folders for the opengl, nimgl, nim-glfw, and nim-image repos to try to find what I was doing wrong
03:17:40leorizenot a opengl master, but afaict you're trying to use a opengl 4.4 shader on 3.1 core context
03:18:06jkenleorize, I've tried using different versions (and matching shader version to gl version)
03:18:13disruptekif you can get other examples working, that would help increase your confidence in where the problem may lie.
03:20:04jkenThe examples in the opengl repo do work when I build them locally
03:20:04*NicQ quit (Read error: Connection reset by peer)
03:20:22*NicQ joined #nim
03:20:31disruptekthat's a good sign.
03:20:33jkenso I am likely making a noob mistake that I've failed to spot so far
03:21:21disrupteki have no idea what i'm looking at, but is sizeof(float) 8 or 4? do you think it matters?
03:21:32disruptekfloats are likely 8 on your platform.
03:22:53jkenLook like 8
03:23:30disruptekjust seems like the sort of thing that could be wrong if you ported it from C.
03:24:12*NicQ quit (Read error: Connection reset by peer)
03:24:28*NicQ joined #nim
03:24:36jkenAccording to the docs, that param is: Specifies the size in bytes of the buffer object's new data store.
03:25:10jkenand is a GLsizeiptr
03:25:54disrupteki can guess that much, it's just that this might be twice as big as it should be. but again, i don't know opengl.
03:30:09jkenI changed the calculation to 4 * positions.length, but still no luck
03:30:59*NicQ quit (Ping timeout: 250 seconds)
03:33:33*NicQ joined #nim
03:34:46*doesntgolf joined #nim
03:34:52jkenglGetError returns 0, so opengl says all my calls were vali
03:34:54jkenvalid*
03:36:27disrupteksounds like my debugging effort with libgit2. couldn't figure out why my error was empty. turns out it was 'cause it was working. 😀
03:37:16leorizejken: if you have a opengl sample of the same program that works, maybe try cross-referencing with it?
03:37:37jkeni have been, but will continue
03:38:00jkenbeen at this issue for a while now
03:38:03leorizemaybe I can take a look, can I have that sample?
03:38:05*NicQ quit (Read error: Connection reset by peer)
03:38:40*NicQ joined #nim
03:39:01jkensure
03:39:38jkenhttps://paste.debian.net/plain/1106244
03:39:52leorizei kinda found your bug
03:39:59*chemist69 quit (Ping timeout: 246 seconds)
03:40:07jkendo tell!
03:40:13leorizethe positions array
03:40:33leorizeadd this suffix to the first element `f32`
03:41:08jkenooooof
03:41:19disruptek4 byte floats. 🙄
03:42:12*chemist69 joined #nim
03:43:42leorizebetter yet, turn it into .Glfloat
03:43:54leorizeif you're working with opengl, you gotta play by it's rule :P
03:44:13disruptekgood job, leorize.
03:46:17jkenThank you for finding that
03:47:44leorizeyou're welcome :)
03:48:17*NicQ quit (Read error: Connection reset by peer)
03:50:43*NicQ joined #nim
03:54:04*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
03:55:16*laaron joined #nim
03:57:17*NicQ quit (Ping timeout: 240 seconds)
03:58:33*NicQ joined #nim
04:03:13*NicQ quit (Ping timeout: 265 seconds)
04:03:26*NicQ joined #nim
04:22:38*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
04:24:03*NicQ quit (Read error: Connection reset by peer)
04:24:14*NicQ joined #nim
04:52:02*doesntgolf quit (Ping timeout: 240 seconds)
05:47:47*radsoc joined #nim
06:01:55*solitudesf joined #nim
06:07:39*narimiran joined #nim
06:15:55*traviss quit (Quit: Leaving)
06:22:54*NicQ quit (Ping timeout: 265 seconds)
06:23:12*NicQ joined #nim
06:26:52*solitudesf quit (Ping timeout: 268 seconds)
06:35:50leorizeis there anyway to serialize nim's native set[T]?
06:41:59*nsf joined #nim
06:42:29Zevvserialize to what?
06:42:46Zevvyou want to parse it back in later presumable?
06:47:11leorizeyea, I want to store it in a sqlite db
06:47:51ZevvI guess you need to take them out or repr, and then put it back together yourself.
06:50:08leorizedoesn't sound like a good way
06:50:23ZevvI never said that :)
06:50:34leorizemaybe I can try to build an integer value out of the set :P
06:51:02Zevvunder the hood sets are array[char] I believe
06:51:07Zevvyou might be able to cast it out and back in
06:53:00Zevvyep
06:53:57Zevvhttp://ix.io/1Ytu
06:56:10*skoude joined #nim
06:57:57Zevvbut then do it with uint8 instead of 64 to make it more generic
06:59:24Zevvtoo bad: http://ix.io/1Ytx
07:00:00*gmpreussner quit (Quit: kthxbye)
07:00:33leorizelooks like a set can be as big as 32 bytes
07:00:53Zevvand as small as 1
07:01:14*skoude quit (Ping timeout: 240 seconds)
07:01:31Zevvoh the generic works with a proc instead of a template!
07:02:10leorizedo you think that a set is a good way to store permissions?
07:02:28Zevvwhat kind of permissions?
07:03:21leorizecan edit this/that, can create stuff, can read others stuff, etc.
07:03:43Zevvwell, in the end it's just a bitmap, so I think this should be pretty ok
07:04:27Zevvbut your serialization has no info in itself, so you can never change the meaning of your enum values
07:04:55*gmpreussner joined #nim
07:06:09FromGitter<zacharycarter> I feel so out of it, I haven't been active in chat for more than a week
07:06:21ZevvHola zacharycarter!
07:06:25leorizekeeping my enums static is no big deal
07:06:31FromGitter<zacharycarter> Hello!
07:06:37ZevvI saw you dude, in your suit and all
07:06:43FromGitter<zacharycarter> lol
07:06:43leorizeand I can always rebuild the db if I want to modify it
07:06:55FromGitter<zacharycarter> lies! I don't wear suits!
07:06:59Zevvleorize: well, than you should be fine I guess
07:07:15Zevvzacharycarter: I didn't recognize you at first, without the bird
07:07:20FromGitter<zacharycarter> :P
07:07:34FromGitter<zacharycarter> I haven't even been to your office yet though!
07:07:42FromGitter<zacharycarter> Unless you were watching the video chat
07:07:44Zevvoh, are you planning to?
07:07:54ZevvI hopped in for 5 secs to pick up something
07:07:54FromGitter<zacharycarter> I got invited to, but I just accepted an offer yesterday morning
07:08:00FromGitter<zacharycarter> ah okay haha
07:08:14ZevvOh, great man!
07:08:16FromGitter<zacharycarter> I'm going to work on these guys games - http://frogmind.com/
07:08:21FromGitter<zacharycarter> thanks!
07:08:55Zevvsweet, games again!
07:09:09FromGitter<zacharycarter> yeah :D they're funded by supercell and I get to stay in Helsinki
07:09:15FromGitter<zacharycarter> so it's a cool situation
07:09:31Zevvyou'll work from home then?
07:09:52FromGitter<zacharycarter> I could - but they have an office so I'll probably just go in there, especially at first
07:10:04FromGitter<zacharycarter> it's like 15 mins away from my apartment
07:10:08FromGitter<zacharycarter> metro + walking
07:10:51Zevvsounds like a great find
07:11:11Zevvoooh, it's the Badand guys!
07:11:20FromGitter<zacharycarter> yeah!
07:11:57Zevv*loved* that; very much like limbo and the other one with the little kid and the spiders
07:12:13FromGitter<zacharycarter> mmhmm, yeah it was a cool game
07:12:31FromGitter<zacharycarter> their newer games are f2p pvp mobile games, but they're still heavy in physics and IMO pretty fun
07:13:08FromGitter<zacharycarter> I'm going to be writing server code so it should be good game networking experience :D
07:13:27Zevvleorize: http://ix.io/1YtD
07:14:25Zevvzacharycarter: and bring some Nim in the house there!
07:15:10FromGitter<zacharycarter> definitely working on it :) I mentioned it a few times already and the other server guy showed some interest since he comes from a Python background
07:19:36ZevvAnd when do you start?
07:27:49FromGitter<zacharycarter> Not sure yet - figuring all of that out on Tuesday
07:36:32*laaron joined #nim
07:36:49*asymptotically joined #nim
07:37:26FromGitter<Varriount> @zacharycarter All I can say for game networking: use length prefixed strings on the wire, and don't use a thread-per-client model for the server
07:38:41*alexander92 joined #nim
07:40:02*laaron quit (Client Quit)
07:42:43*laaron joined #nim
07:47:07*fanta1 joined #nim
07:47:50FromGitter<zacharycarter> I will remember those two things :)
07:48:54*NicQ quit (Read error: Connection reset by peer)
07:49:54*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
07:50:59*laaron joined #nim
07:51:40*thomasross_ joined #nim
07:51:41*thomasross is now known as Guest63814
07:51:41*thomasross_ is now known as thomasross
07:52:26*Guest63814 quit (Ping timeout: 240 seconds)
07:52:58*NimBot joined #nim
07:53:59*laaron quit (Client Quit)
07:54:30*laaron joined #nim
07:58:11*laaron quit (Client Quit)
07:59:44*laaron joined #nim
08:03:14*gmpreussner quit (Quit: kthxbye)
08:03:32*gmpreussner joined #nim
08:06:11*laaron quit (Remote host closed the connection)
08:21:03*laaron joined #nim
08:21:55*laaron quit (Client Quit)
08:22:20*laaron joined #nim
08:28:29*laaron quit (Remote host closed the connection)
08:34:22*radsoc quit (Ping timeout: 265 seconds)
08:44:22*laaron joined #nim
08:53:39*sealmove joined #nim
08:59:39*Ven`` joined #nim
09:02:59*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
09:03:51*laaron joined #nim
09:05:07*laaron quit (Client Quit)
09:06:26*laaron joined #nim
09:14:27*laaron quit (Quit: ZNC 1.7.4 - https://znc.in)
09:14:49*laaron joined #nim
09:23:34*fredrik92 joined #nim
09:24:01*couven92 quit (Disconnected by services)
09:24:06*fredrik92 is now known as couven92
09:24:26*fredrik92 joined #nim
09:29:37*alexander92 quit (Read error: Connection reset by peer)
09:35:56*laaron quit (Ping timeout: 260 seconds)
09:39:42*krux02 joined #nim
09:54:55*radsoc joined #nim
10:21:23*radsoc quit (Quit: radsoc)
10:33:41*gangstacat quit (Ping timeout: 246 seconds)
10:34:06*gangstacat joined #nim
10:47:44*laaron joined #nim
10:49:13*narimiran quit (Ping timeout: 265 seconds)
10:50:14*laaron quit (Client Quit)
10:50:41*laaron joined #nim
10:53:35FromGitter<Lecale> Has anyone ever used the package nimsvg ? just tried to install and it failed
10:55:33*laaron quit (Client Quit)
11:15:01*laaron joined #nim
11:19:36FromDiscord<juan_carlos> I used it long time ago, I use `<>` from std lib xml.
11:25:25*fanta1 quit (Quit: fanta1)
11:30:48*fanta1 joined #nim
11:31:21*laaron quit (Remote host closed the connection)
11:31:32*laaron- joined #nim
11:33:21*zahary joined #nim
11:33:35*henriko joined #nim
11:34:25*dddddd quit (Remote host closed the connection)
11:34:54*laaron- quit (Client Quit)
11:35:36*henriko left #nim (#nim)
11:36:22*laaron joined #nim
11:37:16*laaron quit (Client Quit)
11:37:33*laaron joined #nim
11:39:47*laaron quit (Client Quit)
11:39:53*henriko_ joined #nim
11:40:30FromGitter<Lecale> seems to compiles locally, although can't find the ospaths module mentioned in its examples
11:41:03*henriko_ quit (Client Quit)
11:41:10FromDiscord<juan_carlos> `ospaths` is `os`
11:48:37FromGitter<Lecale> ah okay :)
11:48:54*couven92 quit (Remote host closed the connection)
11:49:17*couven92 joined #nim
11:53:11*fanta1 quit (Quit: fanta1)
11:58:12*fanta1 joined #nim
12:00:11FromGitter<Lecale> Animation examples always return "Invalid parameter - 5" ho hum.
12:01:06FromDiscord<juan_carlos> Report the bug to the developer.
12:16:17*lritter quit (Ping timeout: 240 seconds)
12:21:57FromGitter<Lecale> could just be a magick error actually, seems x11 lissing
12:34:26FromDiscord<juan_carlos> On `macro` how to remove keys from a `tuple`?, I try to get the value inside the `macro` and got `key: "value"` then thats invalid.
12:35:14FromDiscord<juan_carlos> `value[1]` wont work, is like 1 single thing.
12:37:46*couven92 quit (Read error: Connection reset by peer)
12:38:10*couven92 joined #nim
12:53:14*gangstacat quit (Ping timeout: 276 seconds)
12:53:21*couven92 quit (Read error: Connection reset by peer)
12:53:48*couven92 joined #nim
12:54:14*gangstacat joined #nim
12:55:43*couven92 quit (Read error: Connection reset by peer)
12:56:29*couven92 joined #nim
13:02:04FromGitter<dumjyl> just index it again.
13:06:27*asymptotically quit (Remote host closed the connection)
13:06:50*asymptotically joined #nim
13:28:20*gangstacat quit (Ping timeout: 246 seconds)
13:31:40*gangstacat joined #nim
13:49:24*gangstacat quit (Ping timeout: 252 seconds)
14:01:06*isaac[m] quit (*.net *.split)
14:01:06*lqdev[m] quit (*.net *.split)
14:01:06*macsek1911[m] quit (*.net *.split)
14:01:07*LEdoian[m] quit (*.net *.split)
14:01:07*k0mpjut0r quit (*.net *.split)
14:01:07*Demos[m] quit (*.net *.split)
14:03:29*Ven`` quit (Quit: Textual IRC Client: www.textualapp.com)
14:04:02*dom96 quit (Ping timeout: 240 seconds)
14:06:54*k0mpjut0r joined #nim
14:07:20*Demos[m] joined #nim
14:07:23*macsek1911[m] joined #nim
14:08:04*LEdoian[m] joined #nim
14:08:04*isaac[m] joined #nim
14:08:22*dom96 joined #nim
14:08:22*dom96 quit (Changing host)
14:08:22*dom96 joined #nim
14:09:37*lqdev[m] joined #nim
14:11:01*Vladar joined #nim
14:17:04FromDiscord<Rika> i dont understand the question
14:19:07Zevvbut zacharycarter, I am a bit sad, tho
14:29:05*fanta1 quit (Quit: fanta1)
14:30:57*solitudesf joined #nim
14:37:40*couven92 quit (Read error: Connection reset by peer)
14:38:08*couven92 joined #nim
14:40:27*narimiran joined #nim
14:57:05disruptek!eval echo "😉"
14:57:07NimBot😉
14:57:32disruptek!eval let 😉 = "hi"; echo 😉
14:57:34NimBothi
14:58:27Zevv!eval echo readfile("/etc/passwd")
14:58:29NimBotroot:x:0:0:root:/root:/bin/ash↔bin:x:1:1:bin:/bin:/sbin/nologin↔daemon:x:2:2:daemon:/sbin:/sbin/nologin↔adm:x:3:4:adm:/var/adm:/sbin/nologin↔lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin↔sync:x:5:0:sync:/sbin:/bin/sync↔shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown↔halt:x:7:0:halt:/sbin:/sbin/halt↔mail:x:8:12:mail:/var/spool/mail:/sbin/nologin↔news:x:9:13:news:/usr/lib/news:/sbin/nologin↔uucp:x:10:14:uucp:/var/spool/uucppublic:/sbin/n...
15:01:27FromGitter<chenbimo> hi
15:02:12Zevvhi chenbimo
15:02:13*couven92 quit (Read error: Connection reset by peer)
15:02:37*couven92 joined #nim
15:04:32disruptek!eval let ← = "foo"; echo ←
15:04:34NimBotfoo
15:04:40disruptekAHA!
15:04:50disruptekLIARS!
15:25:37Zevvnoo thats not an *operator*
15:26:04disruptekbut it's also not <-.
15:26:11FromDiscord<kodkuce> i alwies froget how do i get last elemnt or array shorter myarray[-1] << its not -1 so what is it?
15:26:17disruptek^1
15:26:21FromDiscord<kodkuce> ty
15:26:30FromDiscord<kodkuce> should tatto it in my arm
15:26:56Zevvyou dont have the nim cheat sheet coffee mug yet?
15:26:56disrupteki still don't understand what it means when used near a spawn.
15:27:00disruptekstupid.
15:27:21disrupteki mean, i never bothered to look it up. it's probably join. but why not just call it join.
15:27:24disruptekdumb.
15:31:49FromDiscord<kodkuce> guess will need to do a custom one
15:32:14FromDiscord<kodkuce> but oh noo i dont drink coffee 😩
15:33:46disrupteki was thinking about inventing a second beverage, but... meh. no one should need more than coffee.
15:39:41FromDiscord<kodkuce> but hmm i dont drink Coca Cola too, hmm i dont drink anything from small mugs, but guess can buy some big ale one or a proper bottle and engrave it
15:40:43*dddddd joined #nim
15:41:48disruptekcould use a chemical etch on metal; probably easier.
15:42:00*fanta1 joined #nim
15:42:33FromDiscord<kodkuce> lasers
15:43:00disrupteki almost gave my sister a mobile for her new baby with nim keywords and operators as the lil hanging doodads.
15:52:40*couven92 quit (Read error: Connection reset by peer)
15:53:08*couven92 joined #nim
15:54:17*fanta1 quit (Quit: fanta1)
15:56:42*couven92 quit (Read error: Connection reset by peer)
15:57:05*couven92 joined #nim
16:06:42*traviss joined #nim
16:09:55*fanta1 joined #nim
16:13:59federico3is there an `or` operator for strings to return b in "a or b" if a is empty?
16:16:33disrupteki couldn't find one, either, and it annoys me.
16:17:29FromDiscord<Rika> you mean python-style? where strings can be truthy or falsy?
16:17:41FromDiscord<Rika> afaik nim doesnt use the truthy or falsy concept
16:17:57FromDiscord<Rika> has to be explicitly a bool for boolean or
16:18:02FromGitter<AiguyGary_twitter> I started getting this error when trying to put a function pointer in a variable. The code works in other places. Just not sure what it's telling me.. ⏎ Error: type mismatch: got <proc (): int{.closure, locks: 0.}> but expected 'proc (): int{.locks: 0.}' ⏎ ⏎ Line of code the Error Message points to is ⏎ ... [https://gitter.im/nim-lang/Nim?at=5da34e3a39e2ef28add66775]
16:18:33FromDiscord<Rika> please use a paste next time, its hard to read in irc/discord w/o going to gitter
16:18:56FromGitter<AiguyGary_twitter> Ok thanks!
16:19:13FromDiscord<Rika> one sec though, ill try understanding it
16:20:53FromDiscord<Rika> okay i think the anonymous proc `proc() = ....` is by default given the {.closure.} pragma (someone verify, im not too good with closure/nimcall/...)
16:23:33leorize@AiguyGary_twitter: it'd be easier for us to debug this with a proper code snippet
16:25:54FromDiscord<Rika> yeah i dont see why the extra statement is giving you that error, we'll need more info
16:26:31FromDiscord<Rika> if possible, make a Minimal, reproducible example
16:29:58*fanta1 quit (Quit: fanta1)
16:39:50*asymptotically quit (Quit: Leaving)
16:40:59*traviss quit (Quit: Leaving)
16:53:29*fanta1 joined #nim
17:01:13*sealmove quit (Quit: WeeChat 2.6)
17:04:49*doesntgolf joined #nim
17:05:06*doesntgolf left #nim (#nim)
17:07:12*fanta1 quit (Quit: fanta1)
17:14:26*couven92 quit (Ping timeout: 240 seconds)
17:21:58FromDiscord<kodkuce> https://play.nim-lang.org/#ix=1Ywx
17:22:34FromDiscord<Rika> @kodkuce what's the issue
17:23:07FromDiscord<kodkuce> issue is it gives me error, i just wanted to concat 2 strings and cast them as int and return that int
17:23:12FromDiscord<kodkuce> but it gives error
17:23:21FromDiscord<kodkuce> and i dont get why
17:23:51FromDiscord<kodkuce> i even put ( ) to be sure order of operations is not troling me
17:24:01FromDiscord<Rika> did you try "string".parseInt (import strutils first)
17:24:46FromDiscord<kodkuce> did not
17:24:58FromDiscord<kodkuce> thinked this would work
17:25:26FromDiscord<Rika> https://play.nim-lang.org/#ix=1YwC
17:26:25FromDiscord<kodkuce> ($(int(input[0])) & $(int(input[1])) ).parseInt() << woks
17:26:38FromDiscord<Rika> okay what's the issue now
17:27:10FromDiscord<kodkuce> or like that, no issue, just dident get why my way didet work, guess i need strutils to pars string to int cant just cast it
17:27:26FromDiscord<Rika> yeah you cant pass a string to int() like in python
17:39:03leorizethis is just highly inefficent though...
17:39:53*symgryph joined #nim
17:47:18*symgryph quit (Remote host closed the connection)
17:51:10*npgm joined #nim
17:54:28*zahary quit (Quit: Leaving.)
17:54:39*zahary joined #nim
17:55:15*zahary quit (Client Quit)
17:56:37*asymptotically joined #nim
18:08:03*gangstacat joined #nim
18:23:52FromDiscord<kodkuce> what what
18:28:01leorizeyou're allocating strings, concatenating them (which allocates an another string), then parse that to get an int
18:28:39leorizeif that's not inefficient I don't know what is :P
18:54:20*couven92 joined #nim
19:02:07Zevv"if it works, it's not stupid"
19:03:38FromDiscord<kodkuce> am just soliving exercism stuff not writing perfomant code
19:04:00FromDiscord<kodkuce> but duno how else to connect 2 numbers together anyway
19:04:27FromDiscord<Chiqqum_Ngbata> Exorcise those demons
19:06:37*Tyresc joined #nim
19:07:46federico3is there no way to scan an OrderedTable in reverse?
19:10:41nixfreak_ls
19:20:55*abm joined #nim
19:28:26*Trustable joined #nim
19:30:45*gangstacat quit (Ping timeout: 252 seconds)
19:40:47*ng0 joined #nim
19:47:54*Trustable quit (Remote host closed the connection)
19:51:32*nif quit (Quit: ...)
19:51:42*nif_ joined #nim
19:55:53*couven92 quit (Read error: Connection reset by peer)
19:56:16*couven92 joined #nim
20:04:37*minierolls joined #nim
20:05:08*couven92 quit (Read error: Connection reset by peer)
20:05:32*couven92 joined #nim
20:18:22FromGitter<AiguyGary_twitter> Is there a way with a Macro to count how many times a particular variable name is referenced in the AST (Abstract Syntax Tree)? I have a section of repetitive tests that each reference the variable once in that test. It occurs to me that if I can count the variable reference in the AST with a Macro then I don't need to count and increment a variable counter for each section of code at runtime when it runs.
20:22:08*couven92 quit (Read error: Connection reset by peer)
20:22:19*narimiran quit (Remote host closed the connection)
20:22:32*couven92 joined #nim
20:26:38*couven92 quit (Read error: Connection reset by peer)
20:27:05*couven92 joined #nim
20:41:25*minierolls quit (Quit: WeeChat 2.4)
20:59:22*nsf quit (Quit: WeeChat 2.6)
21:04:39*traviss joined #nim
21:08:56*luis_ joined #nim
21:15:40*luis_ quit (Remote host closed the connection)
21:16:52*asymptotically quit (Quit: Leaving)
21:28:06*ng0 quit (Quit: Alexa, when is the end of world?)
21:29:36*couven92 quit (Read error: Connection reset by peer)
21:30:03*couven92 joined #nim
21:41:53*rockcavera joined #nim
21:43:09*salotz[m] joined #nim
21:46:17*solitudesf quit (Ping timeout: 240 seconds)
21:50:30*Vladar quit (Remote host closed the connection)
21:57:32*zahary joined #nim
22:06:29*couven92 quit (Quit: Client Disconnecting)
22:07:53*zahary quit (Quit: Leaving.)
22:13:36*NimBot joined #nim
22:35:18*pbb quit (Quit: http://quassel-irc.org - Chat comfortably. Anywhere.)
22:35:31*pbb joined #nim
22:41:17*noonien joined #nim
22:56:04*PrimHelios joined #nim
22:56:59PrimHeliosI noticed the POSIX module was lacking a lot of documentation. Anyone think there would be interest in a PR for that?
22:57:50disruptekyep.
22:58:06PrimHeliosJust figured I'd check before putting the time in lol
22:58:51disrupteknot only are docs almost always appreciated, they are almost always merged quickly. 😀
23:08:54dom96tbh writing POSIX docs manually shouldn't be done
23:09:09dom96posix module in Nim is just a wrapper, it's better to just read the official posix docs
23:09:29dom96if you want Nim to have these docs then you should figure out a way to grab them from POSIX's docs automatically
23:11:09PrimHeliosI just thought it would be nice to not have to constantly jump back and forth from the posix functions' C man pages to nim's wrapper, but I definitely agree with you
23:11:36*krux02 quit (Remote host closed the connection)
23:16:27PrimHeliosif I *were* to write some code to try and grab the docs from man pages, would that go in tools/kochdocs.nim?
23:26:32*Tyresc quit (Quit: WeeChat 2.7-dev)
23:43:30*abm quit (Quit: Leaving)