<< 14-10-2017 >>

00:02:29*JappleAck quit (Quit: Leaving)
00:08:39tj_yocoso I just updated nim and not the nimx test is giving me an error: `C:\Users\Tyler\.nimble\pkgs\ttf-0.2.3\ttf.nim(1439, 33) Error: type mismatch: got (None) but expected 'cint = int32'`
00:08:52tj_yocowas working just before I updated
00:12:56*nsf quit (Quit: WeeChat 1.9)
00:15:12tj_yocooh I see ttf is part of yglukhov's package
00:17:31FromGitter<gogolxdong> !eval "echo 2- 1"
00:17:32NimBotCompile failed: in.nim(1, 1) Error: expression '"echo 2- 1"' is of type 'string' and has to be discarded
00:29:01*tj_yoco quit (Quit: Leaving)
00:48:38*def-pri-pub quit (Quit: Leaving.)
01:06:16*Jesin joined #nim
01:12:32*darkn0de quit (Quit: Leaving)
01:25:15*d10n-work quit (Quit: Connection closed for inactivity)
01:28:52*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
01:34:44*yglukhov joined #nim
01:39:13*yglukhov quit (Ping timeout: 255 seconds)
01:44:05*chemist69 quit (Ping timeout: 258 seconds)
01:51:15*ipjk quit (Read error: Connection reset by peer)
01:57:48*chemist69 joined #nim
02:05:31shashlick!eval echo (2-1)
02:05:33NimBot1
02:18:06*Serenitor quit (Quit: Leaving)
02:51:24*def-pri-pub joined #nim
03:12:36*vlad1777d quit (Remote host closed the connection)
03:13:00FromGitter<zacharycarter> hrmmm so if I use assets from the unity store I can't redistribute them, which means I can't open source the game
03:16:57FromGitter<zacharycarter> my buddy has a bunch of CC0 isometric assets here - http://tommyettinger.github.io/home/PixVoxel/
03:17:15FromGitter<zacharycarter> lmk what you guys think I should do
03:40:56*def-pri-pub quit (Quit: Leaving.)
03:45:24shashlickcannot you open source the code but keep the assets closed?
03:49:14FromGitter<zacharycarter> I could but that makes it tough for anyone to contribute
03:49:21FromGitter<zacharycarter> that's the only thing :/
03:57:59*def-pri-pub joined #nim
04:07:58*Nobabs27 quit (Quit: Leaving)
04:10:46*def-pri-pub quit (Quit: Leaving.)
04:23:28FromGitter<zacharycarter> I think I'm going to go with the humans & orcs and then supplement with my own art eventually
04:24:29FromGitter<Sud0nim> I'm trying (and failing) to wrap decNumber library from C - has anyone here successfully wrapped a decimal class/library (e.g for financial calculations) or does Nim have one hidden away in the standard library? If not, are there plans to add this at some point? From my own experience these last few weeks: I tried to convert the decNumber library in to dll's and wrap those with c2nim. After a bit of tinkering I can at
04:24:29FromGitter... least use some of the functions from the library, but the results that I am getting do not fill me with confidence or differ from a pure C implementation.
04:30:41FromGitter<zacharycarter> maybe your bindings aren't correct?
04:31:53FromGitter<zacharycarter> @Sud0nim are they published somewhere?
04:33:12FromGitter<zacharycarter> also, can you be more specific about what is leading to you questioning the sanity of your bindings?
04:33:47FromGitter<zacharycarter> if you want to search for nimble packages, the best place is http://nimble.directory/
04:44:08*jivank[m] quit (Ping timeout: 252 seconds)
04:46:42*jivank[m] joined #nim
04:52:10*miran joined #nim
05:13:14*vlad1777d joined #nim
05:18:57FromGitter<Sud0nim> Yes it could definitely be that the bindings are wrong - I found it a little tricky to work out (not being a C programmer). Also it could be that the DLL was not compiled correctly - I found most examples of nim C wrappers used a shared library rather than just a header file and c file, and I had more trouble trying to use just the header and c files so I gave up and went the DLL route. I did search for a decimal
05:18:58FromGitter... library, but I couldn't find one in github or Nimble. I think I am probably not the best person to make one (being more a consumer of libraries than a creator skill wise), so I was hoping someone else had already done it.
05:19:03*dddddd quit (Remote host closed the connection)
05:30:03*tylerm joined #nim
05:30:44*tylerm left #nim (#nim)
06:19:52*huonw quit (Ping timeout: 260 seconds)
06:23:53*huonw joined #nim
06:44:21*miran quit (Ping timeout: 240 seconds)
06:50:42*gokr joined #nim
06:56:32*Arrrr joined #nim
06:59:17*Vladar joined #nim
07:18:42*nsf joined #nim
07:54:41*miran joined #nim
07:55:07FromGitter<mratsim> Is there a way to tell nim to change the file extension of .cpp files to .cu? I managed to mix C and C++ targets, but nvidia compiler either treat everything as Cuda code (C++) or only .cu files. The issue is that C++ prevents implicit casting of void pointers which are used when the stdlib is compiled to C (and fpermissive didn’t seem to help)
07:56:01*Trustable joined #nim
07:59:14FromGitter<mratsim> Other alternative would be to generate the .cu file from Nim templates and use {.compile.} at the proper place I think. I’m trying to find some examples of dynamic external language source generation (css, html …) if you have a good ressource that would be awesome
08:02:36*jjido joined #nim
08:05:27*libman quit (Quit: Connection closed for inactivity)
08:22:50FromGitter<mratsim> Ahah, is there a “staticWrite” https://nim-lang.org/docs/system.html#staticRead,string ?
08:34:08Araqmratsim requires a compiler patcn
08:35:06*jjido quit (Read error: Connection reset by peer)
08:35:33*yglukhov joined #nim
08:36:09*yglukhov quit (Remote host closed the connection)
08:36:22*yglukhov joined #nim
08:36:28*rauss quit (Read error: Connection reset by peer)
08:38:50*rauss joined #nim
08:41:57FromGitter<mratsim> Thanks, I’ll cheat with staticExec calling the nim compiler I guess (so much hacks)
08:43:51*jjido joined #nim
09:52:14*jjido quit (Read error: Connection reset by peer)
09:55:18*nsf quit (Quit: WeeChat 1.9)
10:21:22*Laon joined #nim
10:21:59*Trustable quit (Remote host closed the connection)
10:35:35*Laon quit (Ping timeout: 240 seconds)
10:38:33*JappleAck joined #nim
10:45:57*yglukhov quit (Remote host closed the connection)
10:55:03*azur_kind joined #nim
10:56:51*Snircle joined #nim
11:04:41koppeh1I'm using vscode-nim on Arch. Anyone know if I'm going to install nimsuggest separately? I was of the impression that nim is bundled with nimsuggest now..?
11:05:43koppeh1going to have to*
11:11:45dom96koppeh1: yes, nimsuggest should be bundled. How did you install Nim?
11:13:16koppeh1Using the official nim package on Arch.
11:14:03*aziz joined #nim
11:14:40*koppeh1 is now known as koppeh
11:14:59*aziz quit (Client Quit)
11:21:05FromGitter<zacharycarter> Araq: I think i'm going back to orcs vs humans
11:29:43*PMunch joined #nim
11:45:10*azur_kind quit (Remote host closed the connection)
11:52:34*sleepyqt joined #nim
11:52:35Araqzacharycarter: meh :P
11:54:34FromGitter<mvlootman> hello, does anyone know if there is a reformat document option in Visual Studio Code for Nim? I have installed vscode-nim
11:58:13*Yardanico joined #nim
11:58:47FromGitter<Yardanico> Koppeh1: afaik nim
11:58:58Yardanicokoppeh1: AFAIK nim package in Arch doesn't have nimsuggest
11:59:00Yardanicokoppeh,
11:59:20Yardanicoyeah
11:59:21Yardanicohttps://www.archlinux.org/packages/community/x86_64/nim/files/
11:59:31Yardanicoit only installs "nim" and "nimgrep" binaries
12:00:13Yardanicowell I just use devel nim
12:05:34*couven92 joined #nim
12:07:01*Arrrr quit (Ping timeout: 240 seconds)
12:08:43*PMunch quit (Quit: leaving)
12:08:55*Arrrr joined #nim
12:08:55*Arrrr quit (Changing host)
12:08:55*Arrrr joined #nim
12:11:01dom96koppeh: packager's fault it seems :)
12:11:31dom96mvlootman: there isn't AFAIK
12:12:36koppehMaybe not fault but oversight. I guess they didn't realize the change from Nim including nimsuggest by default now or so.
12:12:52dom96true
12:13:21*adam12 left #nim ("Leaving...")
12:13:28koppehI guess "devel nim" would equal using the nim-git package?
12:13:44koppehI should probably file a this as an issue.
12:13:46FromGitter<mvlootman> OK then its not me 
12:14:36Yardanicokoppeh, well I don't use AUR for Nim
12:14:41Yardanicoit's easier to update it manually
12:14:46FromGitter<zacharycarter> Araq: Finding a second faction for the modern / futuristic RTS is hard
12:15:19FromGitter<zacharycarter> also the orc and human RTS asset packs have more diversity in terms of character moels
12:15:21FromGitter<zacharycarter> models*
12:15:38koppehYardanico: Mhm, agreed.
12:16:22*Trioxin joined #nim
12:18:44TrioxinThere's something strange going on with my code: https://pastebin.com/S1bHnx31 if I run that from the CLI, it works fine and loops through all the tables. If I put it in the cron job, it only loops through the first table and the program exits with no errors. I don't understand what would it could be
12:21:27FromGitter<zacharycarter> I could use these - http://tommyettinger.github.io/home/PixVoxel/ - and then they could be distributed with the game
12:22:38Yardanicoare you guys fine with that? https://github.com/nim-lang/Nim/pull/6504
12:22:52Yardanicoit was discussed yesterday at dom96's twitch stream
12:22:58*ShalokShalom_ joined #nim
12:23:39dom96zacharycarter: this is what always keeps me from making games, assets are hard :\
12:24:14FromGitter<zacharycarter> dom96: yeah they are :/
12:24:24dom96Yardanico: looks good to me
12:24:29dom96But what about getNum?
12:24:35Yardanicoyeah I also thought about it
12:25:15Yardanicobut getNum returns BiggestInt
12:25:22Yardanicowell, getFNum returns biggestfloat too
12:25:32Yardanicoso change getNum -> getInt ?
12:25:48*ShalokShalom quit (Ping timeout: 240 seconds)
12:26:20dom96yeah
12:28:42Yardanicodom96, well the reason I'm not sure it's good to rename it because getNum returns BiggestInt
12:28:50Yardanicoint64 on almost all platforms
12:29:03dom96I think that's fine
12:29:06Yardanicoso even examples from your book would look a bit weird:
12:29:07Yardanico`cfgIdent`.`fieldNameIdent` = `objIdent`[`fieldName`].getInt().int
12:29:13Yardanicothat's from configurator.nim
12:29:21dom96hrm
12:29:32Yardaniconow it's getNum().int
12:30:40dom96In fact, I've got a better idea.
12:30:48dom96make it getBiggestInt
12:30:57Yardanicoyeah I wanted to do that too
12:30:59dom96but also add getInt which returns int :)
12:31:03Yardanicoah, ok
12:31:17Yardanicolet's also cc Araq :)
12:31:49AraqgetNum reads better though
12:31:59Araqbut alright
12:32:04dom96float is a number too though
12:32:13Yardanicoso getNum -> getBiggestInt, and also add getInt?
12:33:24Yardanicowould return int(n.num) be sufficient to convert BiggestInt to int?
12:33:56Araqshouldn't it be asInt, asBool, asX instead?
12:34:18Araqobject["field"].asInt reads better
12:34:25Yardanicolet's change that! :P
12:34:56Yardanicoand what about getFields and getElems?
12:35:27dom96meh
12:35:39dom96It reads better but the action is a "get"
12:35:49dom96getInt describes what it does better
12:36:18dom96Let's keep the change simple
12:36:36Araqok
12:36:44Yardanicojust merge https://github.com/nim-lang/Nim/pull/6504 then :)
12:37:16dom96what about getInt/getBiggestInt?
12:37:31dom96Also, please apply the changes to bountysource.nim in the website repo
12:37:37YardanicoI did
12:37:43Yardanicoalready
12:37:48dom96That file needs to be removed from the Nim repo (you can do that in your PR)
12:38:11dom96I don't see it
12:38:35Yardanicoehm?
12:38:35Yardanicohttps://github.com/nim-lang/Nim/pull/6504/files#diff-54fb9629816bc2f9f3f067170e8c5d82
12:38:56YardanicoI'll change getNum when I push it
12:39:09YardanicoI mean I'll search for all occurencies of getNum in main nim repo
12:39:38Yardanicobtw, should getBiggestInt have this doc: "Retrieves the BiggestInt value of a `JInt JsonNode`." ?
12:46:32*yglukhov joined #nim
12:47:09*Arrrr quit (Read error: Connection reset by peer)
12:50:28*yglukhov quit (Ping timeout: 240 seconds)
12:50:45Yardanicodom96, Araq, I've added getInt and getBiggestInt
12:54:54*nsf joined #nim
12:56:01*marcux quit (Ping timeout: 255 seconds)
12:57:52*ShalokShalom_ is now known as ShalokShalom
13:01:38dom96Yardanico: made comments
13:02:00Yardanicodom96, ok, fine
13:04:16Yardanicodom96, done
13:05:16dom96Thanks, merged
13:07:01Yardanicodom96, will make a small PR for nimble now
13:07:40dom96thx
13:08:50Yardanicodom96, https://github.com/nim-lang/nimble/pull/415
13:09:21dom96I'll have to merge that later.
13:10:04dom96Because Nimble must compile with the latest Nim version
13:10:23Yardanicoah
13:12:14Yardanico:D https://twitter.com/yardanic0/status/919189001776586754
13:12:27Yardanicooh
13:12:54Yardanicohttps://twitter.com/yardanic0/status/919189247478976512
13:18:05dom96?
13:19:34Yardanicohttps://twitter.com/yardanic0/status/919189366978772992
13:27:56dom96nice
13:40:17*miran quit (Ping timeout: 248 seconds)
13:41:29*azur_kind joined #nim
14:03:15*zolk3ri joined #nim
14:14:46*azur_kind quit (Quit: Leaving)
14:20:30FromGitter<mratsim> I’m making PR to my own repo >_>
14:21:17Yardanicoecksdee
14:25:11*smt` joined #nim
14:25:41*smt quit (Ping timeout: 240 seconds)
14:45:02zolk3ri!
14:46:22FromGitter<krux02> do I get beer at Hacktoberfest?
14:49:32*Trustable joined #nim
15:03:43*dddddd joined #nim
15:16:08*TjYoco joined #nim
15:31:40*xet7 quit (Quit: Leaving)
15:33:15Yardanicois there a way to tell nim to not inline constants into my procs?
15:33:22Yardanicowell, not constants
15:33:29Yardanicobut "let" variables with constant value
15:41:05*Trioxin quit (Ping timeout: 240 seconds)
15:42:29FromGitter<mratsim> Is there a way to avoid Nim from creating a “NimMainModule”? I’m compiling part in C++ and part in C and trying to link them together but I have NimMain module conflicts ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59e23065210ac26920e67e80]
15:43:16Yardanicoyes
15:43:19Yardanico--noMain IIRC
15:43:45FromGitter<mratsim> doesn’t work, it doesn’t strip everything :/
15:44:00FromGitter<mratsim> https://github.com/nim-lang/Nim/issues/3874
15:47:27*Trioxin joined #nim
15:49:24*ryanhowe joined #nim
15:53:57*ryanhowe quit (Client Quit)
15:54:13*ryanhowe joined #nim
15:54:32*ryanhowe quit (Remote host closed the connection)
15:56:28*Yardanico quit (Ping timeout: 240 seconds)
16:02:16*Yardanico joined #nim
16:08:43*xet7 joined #nim
16:13:11*ryanhowe joined #nim
16:19:35*yay joined #nim
16:20:28*yay quit (Client Quit)
16:20:35*yay_ joined #nim
16:26:14*yay_ quit (Quit: Textual IRC Client: www.textualapp.com)
16:27:08*def-pri-pub joined #nim
16:32:07*miran joined #nim
16:33:45*yglukhov joined #nim
16:39:56*Yardanico_ joined #nim
16:40:26*Yardanico_ quit (Client Quit)
16:42:22*Yardanico quit (Ping timeout: 255 seconds)
16:45:33*Yardanico joined #nim
16:47:24*nsf quit (Quit: WeeChat 1.9)
16:50:46*ryanhowe quit (Quit: WeeChat 1.7)
16:51:33*ofelas joined #nim
16:58:35*TjYoco quit (Ping timeout: 240 seconds)
17:05:48*user0_ quit (Remote host closed the connection)
17:06:20*user0_ joined #nim
17:23:52dom96https://www.youtube.com/watch?v=583BwZ7uSro
17:24:31dom96oops, accidental mIRC italics there
17:24:44dom96Yesterday's livestream -> https://www.youtube.com/watch?v=583BwZ7uSro
17:26:11Yardanicohttps://www.youtube.com/watch?v=c18JPQrFa6s
17:26:13Yardanico10 years ago, dom!
17:26:19Yardanicowindows xp!
17:26:32Yardanicounregistered hypercam 2 :)
17:26:35*couven92 quit (Ping timeout: 240 seconds)
17:28:18Yardanicodom96, for future - configure twitch chat plugin!
17:28:29dom96I'd lose screen then though
17:28:31Yardanicodom96, https://nightdev.com/kapchat/
17:28:33Yardanicowhy?
17:28:35Yardanicohttps://nightdev.com/kapchat/
17:28:40Yardanicoit would be only visible to us
17:28:42Yardaniconot for you
17:29:00dom96it would cover up the screen
17:29:03dom96for you guys
17:29:12Yardanicodom96, well you can have some space for it
17:29:35dom96well that's what I mean
17:30:20*TjYoco joined #nim
17:35:17miranhey guys, another beginner question incoming:
17:36:28miranhow do you create an empty table of tables? (a table where values will be tables)
17:36:52miranand how do you populate such tables?
17:37:18dom96if not table.hasKey("asdf"): table["asdf"] = initTable[string]()
17:39:07mirandom96: and the outer table is initialized with: `initTable[string, Table[string, int]]()`?
17:39:15Yardanicomiran, https://gist.github.com/Yardanico/369b0ad221edc9ea4a20d78229659360
17:39:30dom96sure
17:39:39Yardanicomiran, maybe you want to use Json instead?
17:39:47Yardanicowell just maybe
17:40:13miranthanks Yardanico, i'll try this from the gist and see if i can make it work for my case
17:40:21Yardanicomiran, what's your case?
17:40:46miranadvent of code 2015, day 09 :D
17:41:11mirani need to store the distances between cities (traveling salesman problem)
17:41:22Yardanicoare tables good for this?
17:41:27Yardanicomaybe something like a graph is better?
17:41:59FromGitter<zacharycarter> trying to learn 3d modelling - first model
17:42:13Yardanicozacharycarter: post it!
17:42:29mirani thought something like {'a': {'b': 3, 'c': 7}, 'b': {'a': 3, 'c': 10}, 'c': {'a': 7, 'b': 10}}
17:42:46Yardanicowell did you do the same in python?
17:43:17FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/8y1y/SolarPanelRender.png)
17:43:20mirani didn't solve 2015's tasks in python, so this is all from the beginning
17:43:49mirani thought either using the table as shown above, or maybe some kind of matrix
17:43:57Yardanicowell I don't think it would be good to solve it using tables
17:44:22Yardanicobut yeah
17:44:24miranok, what do you propose?
17:44:26Yardanicoyou can do it with tables too
17:45:02Yardanicoyeah
17:45:05Yardanicodo it with tables then
17:45:34TjYoco@zacharycarter nice! but all those details in the lights should rpobably just be normaltextures or whatever
17:46:11*ryanhowe joined #nim
17:46:44FromGitter<zacharycarter> thanks :D yeah I was following along w/ a pluralsight tutorial and I think they just want to convey the basics of modo / modeling to the user
17:46:52FromGitter<zacharycarter> so I'm guessing that's why they didn't do any normal mapping
17:47:48*ryanhowe left #nim ("WeeChat 1.7")
17:51:15TjYocoare you using blender? or you hooked up with something fancy like Maya?
17:51:36FromGitter<zacharycarter> even fancier
17:51:37FromGitter<zacharycarter> Modo
17:51:58TjYocooh i see! didnt even know that was the actual application
17:52:10FromGitter<zacharycarter> yup!
17:53:15Yardanicohow much does it cost?
17:53:31Yardanico$599 annually
17:53:37Yardanicobut it has free 30-day trial
17:53:47TjYocoholy fudge
17:53:51FromGitter<zacharycarter> $1800 for a perpetual license
17:53:54Yardanicoyeah
17:53:58Yardanicoand 600 annually :)
17:54:04Yardanicodid you buy a perpetual license?
17:54:12FromGitter<zacharycarter> not yet but I probably will end up doing that once I get better
17:54:36FromGitter<zacharycarter> I already own a full license to zbrush - I need to get cracking on that program too once I get a bit more comfortable with modo
17:54:40Yardanicowhy not blender really?
17:54:46FromGitter<zacharycarter> I can't stand blender
17:54:49FromGitter<zacharycarter> worst UI in existence
17:54:53Yardanicoif you learn it, it would be more powerful than modo I think
17:55:06FromGitter<zacharycarter> I don't think so
17:55:12TjYocothe ui is horrible but i think they want you to use all the keyboard shortcuts instead anyway
17:55:25FromGitter<krux02> I use emacs, I will never complain about bad UI in my life anymore
17:55:33FromGitter<zacharycarter> I've used blender before and 3ds max and maya
17:55:39FromGitter<zacharycarter> Modo IMO has the best user experience
17:55:59FromGitter<krux02> then I hope your money is well spent
17:56:00FromGitter<zacharycarter> not just from a UI perspective but from a task accomplishing perspective
17:56:33FromGitter<zacharycarter> well if I actually get decent at modelling it might be :P no money spent yet though
17:57:17FromGitter<krux02> well if you actually get decent at modelling, it might be irrelevant what application you use
17:57:37FromGitter<krux02> I've seen very nice drawings in PS Paint (the old one)
17:58:02FromGitter<zacharycarter> sure but I bet if you ask the artists if they prefer working in Paint or Photoshop they're going to say photoshop
17:58:21FromGitter<krux02> I think most important is accuiring the skill to draw and model, and then the application is secondary
17:58:36FromGitter<zacharycarter> that'st rue
17:58:38FromGitter<zacharycarter> true
17:58:45FromGitter<krux02> well at least paint is simple
17:59:00FromGitter<krux02> honestly photoshop is ok to use
17:59:07FromGitter<krux02> I used it once and I could actually use it
17:59:11FromGitter<krux02> gimp is horrible
17:59:47FromGitter<zacharycarter> I equate blender to gimp :P
18:00:10FromGitter<krux02> well I used blender a bit, and it reall is nice to use, if you know the hotkeys
18:00:35FromGitter<krux02> the important stuff you use regularly is all bound to keys
18:00:50FromGitter<krux02> if you don't know the keys, yea it is bad
18:01:02FromGitter<krux02> so there is actual work you to learn all the keys
18:01:10FromGitter<krux02> but after that it really feels good
18:01:23FromGitter<krux02> not like something you have to fight
18:04:04TjYocoPersonally I use mspaint to draw every conceivable angle of a 3d model in 2d then slerp between frames using a program
18:06:47FromGitter<zacharycarter> it's worse than bad, all the mode swlol
18:06:51FromGitter<zacharycarter> whoops
18:07:08FromGitter<zacharycarter> lol @ TjYoco
18:14:13TjYocomiran did the tables work out for you
18:15:00miranTjYoco: yeah, i've managed to create the tables as per Yardanico's and dom96's advice
18:19:38Araqhmmm
18:20:01Araqshould I announce some live coding
18:23:30dom96do it
18:23:38dom96We might clash though :P
18:23:44dom96or maybe i'll just watch you
18:24:00TjYocoyou mean a stream? thatd be cool to watch
18:24:20Araqwhy clash?
18:24:27Araqwhat will you talk about?
18:24:45dom96I mean we'll be doing one at the same time
18:24:49dom96if you decide to do one now
18:24:58Araq30 minutes left
18:25:06Araqyou can vote about the topic
18:25:25Araqmy proposals are:
18:25:32dom96Are you doing it then or not?
18:25:36Araq- working on "nimpretty"
18:25:45Araq- making the tester run in parallel
18:25:54*Vladar quit (Quit: Leaving)
18:25:55Araq- random Nim bugfixing
18:26:19Araq- creating state machines for games
18:26:42Araqdom96: I'm doing it if enough people here show some excitement :P
18:27:09dom96Just do it, people will show up to watch
18:27:13dom96and if not you can save a recording
18:27:23TjYocothink of the vods!
18:28:04YardanicoAraq, random nim bugfixing :P
18:28:13Yardanico(my vote)
18:28:22Yardanicoeh
18:28:24Yardanicojust use http://www.strawpoll.me/
18:28:26YardanicoAraq, ^
18:28:34miranyeah, please save and make it possible to watch later
18:28:34TjYocostate machines or bugfixiing would be cool
18:28:57miranmy vote goes to bugfixing too
18:29:16*def-pri-pub quit (Quit: Leaving.)
18:30:15Yardanico:D
18:30:15Yardanicohttp://www.strawpoll.me/14148233
18:30:25Araqhttp://www.strawpoll.me/14148231
18:30:25Yardanicogo guys
18:30:29Yardanicook araq's one
18:30:45AraqI even voted for my favourite :P
18:31:16zolk3rihow about optimization?!
18:31:17zolk3ri:P
18:31:26Yardanicozolk3ri, "make nim tester run in parallel"
18:31:29Yardanicotester optimization :)
18:31:53zolk3ribut but but... that part doesn't affect me.. :(
18:32:05Araqhmm I'd better get some beer then
18:32:12zolk3rithat wasn't on the list!
18:32:53YardanicoAraq, do you have a microphone? :)
18:33:07TjYocois there a nim discord or any discussion for one? I think it could pull in more people than IRC
18:33:18YardanicoTjYoco, I don't think it would
18:33:26Yardanicogitter is sufficient
18:33:29Yardanico(IMO)
18:33:47Yardanicoalso we would need to create IRC-Discord or Gitter-Discord bridge
18:34:07pydsignerThere's an IRC-Discord bridge already
18:34:16Yardanicowell I mean it wouldn't look very good
18:34:21pydsignerRuns in Node though
18:34:48Yardanicoyes, we can add slack, facebook, vk, telegram, etc
18:34:54Araqyay, 4 votes
18:35:07YardanicoAraq, 5 :)
18:35:15Araqmine doesn't count
18:35:18TjYocoJust saying I think discord is more accessible, I understand gitter is integrated into github but still
18:35:20Araqcome on guys
18:35:44YardanicoTjYoco, well why it is more accesible really?
18:35:57Yardanicobut yeah, you can volunteer :)
18:36:12YardanicoAraq, 7 votes
18:36:26pydsignerApparently no-one cares about parallel testers at all
18:36:27Yardanicovery controversal
18:36:32Yardanicopydsigner, xD
18:36:44zolk3rilolol
18:37:26zolk3riuh only 3 votes?
18:37:38Yardanicono
18:37:42Yardanicozolk3ri, http://www.strawpoll.me/14148231
18:37:49Yardanicohttp://www.strawpoll.me/14148231/r - results
18:37:54TjYocoyardanico, not me lol but still, can't say more options is a bad thing. There could be dif channels for game-dev, language-dev, annoucements, etc. A little easier than running through irc-logs too
18:37:56zolk3riahh
18:38:24YardanicoTjYoco, well one bad thing about that: these channels would be dead almost all time
18:38:42Yardanicowe don't have a big enough community to really split chat into topics
18:38:55TjYocotrue enough, for now
18:39:12TjYocoif things go well for nim that is
18:39:18Yardanicoand if you would add these rooms to discord - you would need to add them to the gitter too
18:39:19Yardanicoand irc
18:40:14pydsignerThis channel is still pretty manageable as far as throughput
18:40:34Yardanicolol
18:40:45Yardanicoboth 4 votes for nimpretty and bugfixing
18:41:01YardanicoAraq, will you talk with us?
18:41:09Yardanicoon stream I mean
18:41:41Araqsure, isn't that the whole point?
18:41:47YardanicoAraq, yay!
18:42:12YardanicoI only heard your voice from a youtube recording of nim conference in ukraine
18:42:33*NimBot joined #nim
18:43:04miranAraq: will the video be available later on for us who can't watch it right now? pretty please :)
18:43:18Yardanico!eval import random; random(["random nim bugfixing", "work on nimpretty", "creating state machines for games", "make nim tester run in parallel"]
18:43:19NimBotCompile failed: in.nim(1, 140) Error: ')' expected
18:43:21Yardanico!eval import random; random(["random nim bugfixing", "work on nimpretty", "creating state machines for games", "make nim tester run in parallel"])
18:43:23NimBotCompile failed: in.nim(1, 22) Error: expression 'random(["random nim bugfixing", "work on nimpretty",
18:43:38Yardanico!eval import random; random(@["random nim bugfixing", "work on nimpretty", "creating state machines for games", "make nim tester run in parallel"])
18:43:39NimBotCompile failed: in.nim(1, 22) Error: expression 'random(@ ["random nim bugfixing", "work on nimpretty",
18:43:44TjYocoyou broke it
18:43:46Yardanicoah
18:43:46Yardanicoecho
18:43:52Yardanico!eval import random; echo random(["random nim bugfixing", "work on nimpretty", "creating state machines for games", "make nim tester run in parallel"])
18:43:54NimBotmake nim tester run in parallel
18:44:05Yardanico:D
18:44:19Yardanicoah
18:44:21Yardanicorandomize
18:44:27Yardanico!eval import random; randomize(); echo random(["random nim bugfixing", "work on nimpretty", "creating state machines for games", "make nim tester run in parallel"])
18:44:30NimBotcreating state machines for games
18:44:37TjYocothats the one i did!
18:45:36Araqmiran: I'm tinkering with the twitch software
18:45:44Araqand will try my best
18:45:58YardanicoAraq, OBS can be configured fairly easy if you won't go into complicated topics
18:46:36miranthanks!
18:46:58Yardanicomiran, twitch would save it too
18:47:20YardanicoAraq, enable this - https://help.twitch.tv/customer/portal/articles/1575302-videos-on-demand
18:47:29Yardanico"store past broadcasts"
18:47:34miranok, i'll ask you guys for a link, now i must go to the real world.... :)
18:47:43Araqseriously "random bugfixing" ?
18:47:51Yardanicobut it only stores your vid for 14 days
18:49:02TjYocoyou were incharge of the topics lol
18:50:24*miran quit (Quit: Leaving)
18:50:49AraqI hope you know it's not about Nim's "random" module
18:51:04YardanicoxD
18:53:12YardanicoAraq, you can do some nim bugfixing and then start working on nimpretty :D
18:53:57TjYocoor just do the next voted topic and purposley introduce bugs to fix
18:54:02Yardanicolol
18:54:11TjYocorandomly on purpose of course
18:54:33YardanicoI would really like "random"
18:54:38Yardanicoso random issues page
18:55:09*Trioxin quit (Remote host closed the connection)
18:56:52*SusWombat quit (Remote host closed the connection)
18:57:02Yardanicoand it would be funny if someone votes for nimpretty now :)
18:57:04Yardanicohttp://www.strawpoll.me/14148231 go guys
18:57:06YardanicoxD
19:02:26Araqcan't set it up lol
19:02:48YardanicoAraq, what error are you getting?
19:05:05Araqnone, the UI is overwhelming me ... where is the 'record' button?
19:05:42YardanicoAraq, in main window, in the right lower corner, there's "start streaming" and "start recording"
19:06:32FromGitter<Varriount> Araq is doing a live stream?!
19:06:47YardanicoYES!
19:06:51Yardanicohttp://www.strawpoll.me/14148231
19:06:52Yardanicovote!
19:07:06Araqwhat's the "main window"
19:07:07*nsf joined #nim
19:07:27YardanicoAraq, the thing where you have a preview of your "scene"
19:07:40Yardanicohttp://i.imgur.com/XdKaGel.jpg
19:07:45Yardaniconot nime, but still
19:07:48TjYocoare you using OBS Studio or Classic OBS?
19:07:52Yardanicoah, yes
19:08:07YardanicoAraq, use OBS Studio instead of Classic OBS (if you've downloaded classic obs)
19:09:30dom96when is this live stream starting?
19:09:40Yardanicodom96, at ~ 10 pm :)
19:09:44Yardanicooh
19:09:45Yardanicosorry
19:09:48Yardaniconow
19:09:57Yardanicoit's 10pm here, so 7PM UTC
19:10:33Yardanicoaraq wanted to start it already, but he has some issues with recording currently
19:11:25YardanicoAraq, livehack: you can enable the twitch feature to save past broadcasts
19:11:27dom96I can host him on my Twitch
19:11:32Yardanicoand then you can export that broadcast to youtube
19:11:36dom96but currently chatting with my gf
19:11:37Yardanicowithout recording it yourself
19:11:37Araqno I'm figuring this out
19:11:42TjYocoThe "scenes" tab is for switching up layouts and intro and outro screens and stuff. So just adding "Display Capture" to the "Sources" tab should be the easiest way to start streaming
19:13:57Yardanicoyay
19:13:59Yardaniconotification
19:14:21YardanicoAraq, your screen is black :)
19:14:39Yardanicoadd display capture as TjYoco suggested
19:16:01Araqcan you see my screen now?
19:16:03TjYocoyep
19:16:06Araqand hear my voice?
19:16:10dom96where is the link?
19:16:11Yardanico+++
19:16:14Yardanicohttps://go.twitch.tv/araq4k
19:16:14Yardanicohttps://go.twitch.tv/araq4k
19:19:29dom96Araq: Do you have the chat on another screen?
19:19:37Araqno
19:19:59dom96lol
19:20:08dom96love how you just went silent and answered me
19:21:12TjYocoI thought you could pop out twitch chat into a different window cant find the button now
19:21:23YardanicoTjYoco, you can
19:21:27dom96Araq: You should rename the `input` in the code
19:21:31dom96not the params
19:21:44Yardanicowell it still works
19:22:22dom96yeah, but params can be specified by name in Nim
19:22:26dom96keeping them right makes sense :)
19:24:22dom96omg, why is it so amazingly difficult to host people on Twitch
19:25:11TjYocodo you have to be streaming to host
19:25:57planetis[m]are y streaming rnow?
19:26:18Yardanicoplanetis[m], yes he is
19:26:20Yardanicohttps://go.twitch.tv/araq4k
19:26:20dom96ahh, I literally type /host <username> into my chat
19:26:27Yardanicoyes !
19:26:36dom96yeah, so I'm hosting him now
19:26:47dom96Gonna tweet about it too
19:27:41Yardanicodom96, ehm
19:27:45Yardanicowrong description? :) https://twitter.com/nim_lang/status/919265093694746624
19:27:51Yardanicoah, sorry
19:30:07*dom96 is lost
19:30:12dom96No idea what he's fixing heh
19:31:05Yardanicodom96, he's fixing a bug when gcsafe warning isn't printed
19:31:07Yardanicobut it should
19:37:11dom96Araq: `gg`?
19:37:46dom96yes, I can hear you clearly
19:37:50dom96There is a delay
19:42:47dom96Sadly I must go and make some food
19:50:34YardanicoAraq, maybe you can also use markGcUnsafe here?
19:50:44Yardanicoso it would emit a warning
19:51:58Yardanicoah, thanks
19:54:39dom96awww, not using isNil? :)
19:55:26dom96whoa, my stream just skipped
19:56:11dom96so many aliases :)
19:56:23YardanicoAraq, how do you remember all those names from the compiler src ? for example "inEnforcedGcsafe" ?
19:57:51dom96oooh
19:57:57dom96time to find bugs
19:58:20dom96hrm, dunno if it's just me but my stream froze :\
19:58:34TjYocojust you
19:58:47dom96Araq: https://github.com/nim-lang/Nim/issues/6455
19:59:15FromGitter<Bennyelg> Nice session 
19:59:25YardanicoAraq, no, look down in this issue
19:59:34Yardanicothere's a smaller snippet
19:59:58dom96^^
20:00:41dom96Araq: well... look up a bit more
20:00:49dom96there is a small snippet in that issue
20:00:56Yardanicowell he looked it already
20:01:03dom96he didn't see the snippet
20:01:05Yardanicoit's just a mitems which doesn't work with C++
20:01:07Yardanicohe saw
20:01:09Yardanicoin other issue
20:01:19dom96but maybe it's not related
20:01:27dom96maybe it's a completely different issue
20:02:04dom96oh and relating to the test spec: I documented that :P
20:02:54dom96bah, fix the one I linked not some other random one :P
20:03:39YardanicoAraq, maybe you can change the localError call so proc body isn't displayed in that call? or that is not possible?
20:03:51Yardanicobtw there's only a 3-4 second delay
20:03:55TjYocobut its *random* bug fix!
20:04:22dom96Yardanico: I'm sure that depends, mine buffered a bit
20:04:31Yardanicodom96, yeah, probably depends on the location
20:04:40Yardanicobut I live in Russia, so I should have higher delay :D
20:09:46YardanicoLOL
20:10:38YardanicoAraq, maybe check jester?
20:10:48Yardanicoif it works with your changes
20:11:16dom96what was funny? I misse dit
20:11:19dom96*missed it
20:12:32Yardanicodom96, he has fixed a bug, but there still was an error in asyncdispatch (he fixed it already). so he just recompiled the nim compiler again and it all worked
20:12:47Yardanicobut he recompiled it before too
20:17:49*TjYoco quit (Quit: Leaving)
20:19:18Yardanicooh
20:19:21Yardanicoit started buffering for me
20:21:13*Yardanico_ joined #nim
20:22:14*Yardanico_ quit (Client Quit)
20:22:39*Yardanico_ joined #nim
20:22:39*couven92 joined #nim
20:22:45*Yardanico_ quit (Remote host closed the connection)
20:24:01*Yardanico quit (Ping timeout: 248 seconds)
20:24:35*Yardanico joined #nim
20:26:27dom96Araq: Can you apply it to only one file?
20:26:41dom96to see if it's breaking other places
20:27:07*Trustable quit (Remote host closed the connection)
20:27:45dom96yes
20:27:50dom96lol, this is going to be so delayed
20:28:04dom96you should ask me in IRC
20:28:08dom96and then that way it's faster
20:28:11dom96Araq:
20:29:23Yardanicowtf is happening with araq's voice?
20:29:27dom96lol
20:29:29dom96sudden echo
20:29:34Yardanicoah, yes :)
20:29:52jsn-is there a way to create a unix domain socket with asyncnet? I think you need Protocol = 0 for that, and there's no 0 in Protocol enum in e.g. nativesockets.nim
20:30:14dom96If that's what you need then add it and create a PR
20:30:24dom96Araq: Yeah, your voice is all weird and echoing
20:31:11dom96jsn-: but look in the currently open PRs, IIRC there is a PR to add support for this already
20:31:37dom96Araq: huh, it stopped
20:32:31dom96aww, don't go
20:33:05Yardanicoor stream tomorrow please, and a bit eariler if you can :)
20:33:10Araqis my voice ok again?
20:33:15YardanicoAraq, yeah it is
20:35:57dom96what is this mysterious dfa.nim?
20:36:06Yardanicodom96, "data write tracking"
20:36:19Yardanicohttps://github.com/nim-lang/Nim/blob/devel/compiler/dfa.nim
20:36:53Araq"dataflow analysis"
20:36:58YardanicoAraq, why you don't push your changes?
20:37:17Araqbecause I'm scared
20:37:20Yardanicoah, ok
20:38:21dom96problem with async tests is that they have to be run twice :)
20:38:32YardanicoAraq, I think you should make tester run in parallel on a next stream :) BTW do you know when you'll be streaming next time?
20:50:16FromGitter<mratsim> I spent hours, and I’m left completely stuck. Someone has an alternative to suggest besides going nuclear and writing C++ by hand:
20:50:29FromGitter<mratsim> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59e27895f7299e8f53e9ea29]
20:51:13*yay joined #nim
20:51:23Yardanicobtw, Araq , sadly tests failed :( https://travis-ci.org/nim-lang/Nim/builds/288025985 lib/pure/httpclient gc safety again
20:51:35Yardanicolib/pure/httpclient.nim(867, 44) Error: client.contentProgress is not GC safe
20:53:30Yardanicoso I see now that effects system is very hard
20:54:33*rauss quit (Read error: Connection reset by peer)
20:55:01YardanicoAraq, don't bother yourself fixing it now, anyway it's devel branch, so it can be broken sometimes.
20:55:02dom96mratsim: seems like it might be a good idea to work a bit more on your second attempt
20:55:17dom96mratsim: there probably is a (fairly easy) way to fix that NimMain conflict.
20:55:27Yardanicotake a rest and fix it tomorrow :P
20:56:19dom96so many edge cases :)
20:56:26dom96Poor Araq
20:56:59*rauss joined #nim
21:00:57FromGitter<mratsim> —noMain still generates a NimMain so I don’t know where to start to solve this conflict.
21:05:57YardanicoAraq, yeah, that's fine, good night! bye :) Your stream was cool!
21:08:57*Jesin quit (Quit: Leaving)
21:14:05Araqmratsim: I fixed a C++ codegen problem
21:14:17Araqbut you reported crashes, right? these are harder I bet
21:20:44FromGitter<mratsim> Crash due to rawAlloc trying to read from nil randomly, expected exceptions not thrown, and also the mitems not working (which is solvable but I have to “when not defined(cpp)"
21:21:18Yardanicoaraq fixed mitems
21:21:30FromGitter<mratsim> ohohoh, now you’re talking !
21:26:27*sleepyqt quit (Quit: Leaving)
21:35:21*PMunch joined #nim
21:42:43FromGitter<mratsim> 122 lines of specific C++ handling deleted
21:44:06Yardanicodoes it work for you?
21:44:46FromGitter<zacharycarter> Was Araq's stream recorded?
21:44:53FromGitter<zacharycarter> Stupid me for taking a nap :/
21:45:00Yardanicoyes, he recorded it himself
21:45:06Yardanicoprob he'll upload a recording soon
21:45:13Araqyeah, I have a 500MB file lying around here now
21:49:48shashlickPlease upload so that we can check it out.
21:50:11FromGitter<mratsim> I didn't try since devel is broken but mitems is in the test suite so I guess it works
21:50:38Araqtomorrow, I need to cut the bad jokes and swear words :P
21:51:49Yardaniconoo, whyyy :D
21:51:57Yardanicoand your only sweard word was about maxsplit IIRC
21:52:00Yardanico:)
21:52:05Yardanico*swear
21:53:09dom96I'll most definitely do a stream tomorrow afternoon-ish
21:53:17dom96UK time
21:53:41Yardanicook that's fine
21:54:34YardanicoBTW Araq is UTC+2, I'm UTC+3, but we are ~2700km away from each other
21:54:40Yardanico(assuming he lives somewhere in Germany)
21:54:49PMunchHaha, Araq you should leave the bad jokes and swear words in :P
21:54:49*def-pri-pub joined #nim
21:55:12FromGitter<zacharycarter> I took more screenshots of my first model - https://imgur.com/a/OiOkA
21:55:19FromGitter<zacharycarter> now you can see the back and the panel rotation
21:55:44dom96zacharycarter: ever considered doing a livestream? :)
21:57:25FromGitter<zacharycarter> hrmmm maybe I should look into it
22:08:59FromGitter<zacharycarter> I need to learn to not request multiple things in a single ticket - people seem unable to process an entire e-mail these days :/
22:09:19FromGitter<zacharycarter> Regardless I should have a copy of zbrush on my mac very soon
22:09:22FromGitter<zacharycarter> I'm excited :D
22:10:27*gokr quit (Ping timeout: 240 seconds)
22:12:23*gokr joined #nim
22:25:29shashlickquick help, is there a proc to get the full path to a file from a relative path?
22:26:10AraqexpandFilename
22:27:03shashlickthanks!
22:27:40shashlickanother question, related to above, I'm trying to build a nimble lib which downloads portions of OpenSSL as a dependency
22:28:08shashlickthe C/H files will live within the nimble directory
22:28:44shashlickis it possible to include --passC include path directives as relative paths or do they need to be absolute
22:28:50shashlickrelative doesn't work at least
22:30:37shashlickI don't mean on the command line as --passC, but rather as pragmas within the .nim wrappers so that consumers don't need to include that to compile
22:32:48dom96what pragma are you planning to use?
22:32:55dom96the {.compile.} pragma supports this at least: https://github.com/dom96/untar/blob/master/src/untar/gzip.nim#L4
22:33:46shashlick{.passC.}
22:34:10shashlick{.compile.} does pick up the files from the nimble dir, instead of local dir of the app that depends on the nimble lib
22:34:15dom96I don't think so
22:34:27shashlickpassC does not, and if I want to put in absolute paths, I need to know where nimble is going to put the files
22:35:02shashlickif I use "after install:" in the nimble file, it doesn't run in the installed path
22:36:00dom96You might need to fix that in Nimble or create an issue and be patient I'm afraid
22:36:11dom96Unless passC pragma supports some magical $vars that I'm not aware of
22:36:30dom96You might be able to use a hack, at least on Unix
22:36:46shashlickwell, I'm doing [.passC:"-I"openssl\include"".}
22:36:51dom96{.passC: "-I`nimble path mypkg`/blah"/}
22:37:00shashlickand passC can be any variety of things
22:37:15shashlickso if nimble can tell me where it is going to install the package, it might help
22:37:34dom96Nimble can, using the `path` command
22:37:34shashlickbasically I've written some code that automates the generation of wrappers from the H files
22:37:43dom96question is whether you can run that
22:39:18shashlickhow do you run that? I don't see it in the docs
22:39:46shashlicknever mind, found it
22:41:36shashlicklet me see if I can use it
22:45:31*vlad1777d quit (Ping timeout: 255 seconds)
22:46:50*Yardanico quit (Remote host closed the connection)
22:48:16*couven92 quit (Quit: Client Disconnecting)
23:00:35*zolk3ri quit (Quit: leaving)
23:05:57*gokr quit (Ping timeout: 240 seconds)
23:18:54*yglukhov quit (Remote host closed the connection)
23:26:39*def-pri-pub quit (Quit: Leaving.)
23:28:05*nsf quit (Quit: WeeChat 1.9)
23:48:10*PMunch quit (Quit: leaving)
23:49:47*Jesin joined #nim