<< 09-09-2017 >>

00:03:18*vlad1777d joined #nim
00:10:50skrylarits pretty nice
00:10:57skrylaralthough i can't seem to get any polygons out of nim-bgfx
00:13:32*vlad1777d quit (Ping timeout: 260 seconds)
00:21:43skrylarguess i'll just do something else -shrug-
00:21:58skrylarits not even giving wireframes
00:23:59*ipjk_ quit (Quit: Leaving)
00:28:10*vlad1777d joined #nim
00:29:48skrylaryay wires.
00:33:48couven92Can I get the type name of a variable?
00:36:44couven92i.e. `var x: int`, `typeof(x) # should return "int"`
00:44:57*BitPuffin|osx quit (Ping timeout: 252 seconds)
00:50:54*nattefrost quit (Remote host closed the connection)
00:53:00*relax joined #nim
01:00:47*vlad1777d quit (Ping timeout: 260 seconds)
01:19:20*enthus1ast- quit (Ping timeout: 255 seconds)
01:19:51*chemist69 quit (Disconnected by services)
01:19:56*chemist69_ joined #nim
01:23:39*yglukhov joined #nim
01:27:35*yglukhov quit (Ping timeout: 240 seconds)
01:28:50FromGitter<superfunc> @couven92 `type(x)`?
01:42:25*dddddd quit (Read error: Connection reset by peer)
01:48:02*relax quit (Ping timeout: 240 seconds)
02:06:05*sz0 quit (Quit: Connection closed for inactivity)
02:06:24FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/iYdi/Screen-Shot-2017-09-08-at-10.05.54-PM.png)
02:06:46FromGitter<zacharycarter> using zengine to write testris
02:19:07FromGitter<superfunc> @zacharycarter v cool :D
02:19:29jsgrantWhy does Nim seem to fit into such a nice 'gamedev' niche? There seems to be a disproportionate amount of enthusiasm there compared to the size of the community.
02:19:41jsgrantActually one of (the dozen-or-so) reasons Nim interests me.
02:22:00skrylarjsgrant, indie gamedevs can use anything they want?
02:23:26pydsignerjsgrant: good SDL2 integrations
02:23:42jsgrantpydsigner: Ah, that is a simple but good/strong point.
02:23:46pydsignerSo you can get C++ perf without the suck of C++
02:23:54FromGitter<zacharycarter> thanks @superfunc
02:23:58skrylarwell the realtime gc does help with that
02:24:09FromGitter<zacharycarter> yes it does
02:24:19FromGitter<superfunc> yeah, something easy+fun to write(like python), with better compiler help, and perf in the realm of c++
02:24:28FromGitter<zacharycarter> not to mention c2nim
02:24:34FromGitter<zacharycarter> find a c library and bind to it
02:24:40skrylar bgfx is rustling my jimmies somewhat tho
02:24:46skrylarcompatibility profile, ugh
02:24:52FromGitter<zacharycarter> skrylar I have a lot of bgfx experience
02:25:25FromGitter<zacharycarter> compat profile? that sounds like an OpenGL thing for OSX
02:25:34skrylarosx only supports core :^)
02:25:59skrylar3.2 and beyond don't allow the silliness from 1.0-3.1
02:26:07FromGitter<zacharycarter> right
02:26:11skrylarthe "compatibility" profile is basically GL2/shitloads of exts
02:26:16skrylarBGFX from what i can tell uses this
02:26:30skrylarWhich is not horrible in a sense that yes it does mean your games will run on potatos
02:28:50jsgrantpydsigner, superfunc: Python-like syntax was obviously a boon to/for Pygame, I guess; Yeah, having something approximating that with much better performance -- I can see that.
02:29:14skrylari would be using lisp if it wasn't ded
02:29:25jsgrantskrylar: Tell me about it...
02:29:35FromGitter<superfunc> well, depends on which lisp haha
02:29:45skrylarthey're all derpy
02:29:47FromGitter<superfunc> clojure is doing well in the web space, but yeah CL is pretty much dead
02:30:04jsgrantCL21 is neat, but not only was did -- never lived.
02:30:05skrylarecl is the most suitable for games in a sense that you can deploy it without a 100mb virtual machine image
02:30:18skrylarbut lgpl
02:30:19FromGitter<superfunc> having good metaprogramming is actually one of my favorite things about nim
02:30:22skrylarso no consoles/phones
02:30:24jsgrantCEPL is pretty nice, before I game up Emacs + SBCL.
02:30:44*def-pri-pub joined #nim
02:30:45FromGitter<superfunc> my lisp days were mostly in scheme(chicken)
02:30:45jsgrantsuperfunc: That is one of my biggest draws; Same with Scala.
02:30:47skrylarthis person who did nim-bgfx is bogus however
02:30:56skrylarhe put all the proc calls in PascalCase
02:31:01pydsignerskrylar: use Arc!!! ...!!
02:31:09FromGitter<superfunc> jsgrant: scala is such a mess to me
02:31:21skrylarand because *someone* put in this first char case sensitivity cancer, now there's pascal case in here
02:31:23skrylar>:(
02:32:02FromGitter<superfunc> beyond the typical things I don't want like being on the jvm, the community is intent on making it a really bad version of haskell
02:32:04pydsignerStyle unawareness is one of the things my python brain hates the most
02:32:08jsgrantsuperfunc: Too much focus on and marketing to "Java Interop" imo; Clojure did that a tiny bit better.
02:32:23skrylarhaskell is pretty cool though
02:32:29skrylaryou just have to do a lot of LSD to understand it
02:32:51FromGitter<superfunc> haskell is really neat haha, at one point I was doing grad school work in it. scala is just a really bad way to write haskell.
02:32:53skrylarwell i used sleep deprivation studying but that's not as funny
02:33:09skrylaralthough i wouldn't mind snitching functional reactive programming from the haskell people
02:33:20skrylaralthough every time i try to envision that in nim, it just ends up being basic syntax sugar
02:33:42skrylarI mean that's all FRP is?
02:34:25jsgrantScala, more than anything I'm using as a "stepping stone" to be more pragmatic.
02:34:55jsgrantBasically that's been all this year has been. Taking a few paces back & reorienting.
02:35:25FromGitter<superfunc> Learning a few different things to recalibrate is always fun and useful :)
02:35:30skrylari still should possibly use the stdlib more than i do
02:37:02*def-pri-pub quit (Ping timeout: 260 seconds)
02:38:36*jsgrant was writing a CL21 Implementation & Lisp Centered Distro-Builder On Top-Of Gentoo, For my Tiling-Desktop-Environment that stared as a large factorized Emacs + Stumpwm configuraiton-set... was quickly moving to a more purist approach on-top of Second-Climacs + Paulownia.
02:38:59skrylarSLIME was great.
02:39:22skrylarI guess we could have livecoding in nim as well, but it would require some heroic programming
02:39:26jsgrantAfter a certain point, I was like "...okay, where is this going to end"; Then literally "rm -rf'd " a couple 100,000 loc by the end of it.
02:40:52skrylari dunno how clean the backends are
02:41:03skrylarostensibly you just need a backend emitter to IR or something, and an AST differ
02:41:06jsgrantskrylar: SLIME is probably (almost surely) the most fun I've had in any repl-driven/guided env.
02:42:29skrylarescaping the compile loop is pretty fun, yea.
02:42:36skrylarit's naughty dog's secret weapon on the PS3/4
02:42:47FromGitter<superfunc> slime is cool af
02:42:57skrylarthey livecode most of uncharted
02:43:19*jsgrant wishes he still had his CL21 implementation; Was MASSIVE for what was implemented ... when I know a little (a lot) more in a few years about pl-implemntation ... would be fun to cringe over.
02:44:17jsgrantStumpwm connected to Slime is very fun too.
02:44:49skrylarI may have to downgrade my WM
02:44:51jsgrantReally that whole stack, haven't found anything like it (and maybe that's a good thing ... given how much of a time-sink it became).
02:44:58skrylargnome has decided to crash intermittently for no reason
02:45:15skrylaralthough on a laptop i used nothing but i3 for a year
02:45:22FromGitter<superfunc> I use i3 at work and home
02:45:32skrylari don't use it on a desktop
02:45:44skrylarmouse isn't as much of a pain. although i do flick top left on windows sometimes expecting it to do something
02:45:46FromGitter<superfunc> any particular reason?
02:46:01skrylarart and music software act stupid under i3
02:46:23skrylarit tries to put qjackctl in a pane and then qjackctl hates it. or a pop-up window will get docked instead of floated
02:46:44jsgrantskrylar: I have it on this box (Fedora 26, ultrabook) & sometimes the whole environment will completely lock-up ... for seemingly no reason. 8gb of ram & ssd. Shouldn't freak out switching to swap & this isn't anything but my light-computing machine ... so really don't run through that 8gb of ram proper.
02:46:50FromGitter<superfunc> ah, yeah I'm lucky in that most of my apps are just terminal ones, minus browser
02:47:10jsgrantWhich is sad, because it's the only opensource-DE I've been able to tolerate.
02:47:14skrylarjsgrant, time to go back to cinnamon :\
02:47:31skrylarwanted to try deepin. half the UI segfaults on launch
02:47:32skrylargg
02:47:51FromGitter<superfunc> I've heard good things about xmonad, but never used it personally
02:48:12skrylari just want a mac tbh
02:48:20jsgrantOn my other gui-boxes, my prog workstation & laptop I'm running AwesomeWM right now; Which is okay. Not a fan of Lua though.
02:48:23skrylarelementaryOS is the closest thing and they're still doing it wrong
02:48:47FromGitter<superfunc> I have a mac from work, it makes me miss linux lol, brew is especially annoying
02:48:56skrylarthey're pushing vala which is better than C++ i guess
02:48:58jsgrantXmonad was pretty fun; Kinda the haskell analog of Stumpwm. Same I guess could be said about Awesome though.
02:49:24skrylarsuperfunc: but my 10 year old imac has shinies like audio hijack ._.
02:49:31skrylaror god forbid syncing audio to a phone
02:49:40skrylarandroid can't even figure that one out
02:50:51FromGitter<superfunc> I feel like my phone is actively discouraging bringing any files to it
02:50:55skrylarI mean Sierra has this thing where you can just search the menus from Help if you know the name and not the location
02:51:08skrylarits just help > start typing "shuffle" and it SHOWS you where that button is
02:51:53skrylarit's one of those awesome things but the gtk devs care more about weird CSS bullshit instead of usability
02:52:34subsetparkCan I use pegs.nim to implement an interpreter-parser?
02:52:45FromGitter<superfunc> Priorities in that community, well a lot of tech communities, tend to be super weird like that @skrylar
02:53:09skrylarsuperfunc: well they tend to be of the "copy MS" mentality usually
02:53:27FromGitter<superfunc> cough * c++ adding tons of new features except for the one that would help horrendous compile times * cough
02:53:29skrylarlike if you talk about global menubars they assume you mean apple. and its like no, that was THE STANDARD before windows
02:53:53*vivus joined #nim
02:54:13skrylarsubsetpark, i don't see why not; as long as it reads set patterns and does callbacks?
02:54:58subsetparkskrylar: I'm still trying to figure out how it works. I had naively assumed that I could write a big grammar description, wrap it in a `peg"""` call, and then it would consume text and spit out ASTs
02:55:14skrylari've never used the pegs module :/
02:55:19subsetparkbut i don't know how to make it, like, go. And there's surprisingly little examples
02:55:25skrylarwe should probably steal red/rebols parse dialect tho
02:55:33skrylarwhich is basically a PEG generator
02:57:39*couven92 quit (Quit: Client Disconnecting)
03:03:02*skrylar quit (Remote host closed the connection)
03:05:48*def-pri-pub joined #nim
03:12:36*Snircle joined #nim
03:13:32*shashlick joined #nim
03:15:02*Snircle quit (Client Quit)
03:37:31subsetparkHere's what I figured out: https://play.nim-lang.org/?gist=f6741a486700fe00bec4e726cf1c126e
03:37:59subsetparkThat's not quite right...
03:38:32subsetparkOh no actually, I wanted it that way.
03:49:08shashlickhey guys, why do you need to turn off overflowChecks to just do a shift right on an integer
03:52:06FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/2QIT/zengine.gif)
03:54:07*def-pri-pub quit (Ping timeout: 248 seconds)
04:03:02FromGitter<zacharycarter> is there a way to verify what version of nim you're running programmatically?
04:05:17*jsgrant quit (Quit: jsgrant)
04:05:38*jsgrant joined #nim
04:06:34FromGitter<zacharycarter> found it
04:07:51*endragor joined #nim
04:12:01*endragor quit (Ping timeout: 240 seconds)
04:14:54*jonafato quit (Ping timeout: 246 seconds)
04:15:41FromGitter<zacharycarter> shashlick: looks like maybe a regression?
04:16:03FromGitter<zacharycarter> I'll check out 17.0 and test
04:16:57*def-pri-pub joined #nim
04:16:57*def-pri-pub quit (Changing host)
04:16:57*def-pri-pub joined #nim
04:19:22shashlickzacharycarter: thank you
04:19:44*miran joined #nim
04:21:10FromGitter<zacharycarter> np
04:21:17shashlickzacharycarter: I was trying out https://stackoverflow.com/a/109025
04:23:32FromGitter<zacharycarter> I'm pretty sure this should work, but I could be wrong
04:25:47FromGitter<zacharycarter> hrm doesn't work with 0.17.0 either
04:26:22FromGitter<zacharycarter> I guess you can't
04:29:31*ShalokShalom joined #nim
04:31:03*harindu95 joined #nim
04:34:18*cspar quit (Ping timeout: 252 seconds)
04:37:11def-pri-pubzacharycarter: hey
04:37:27def-pri-pubI just posted something in the issue tracker regarding the timer module
04:41:48FromGitter<mratsim> @yglukhov was sleeping
04:48:12*cspar joined #nim
04:48:52*harindu95 quit (Quit: harindu95)
04:59:42subsetparkdo we have a pretty printer for objects?
05:08:59*def-pri-pub quit (Quit: leaving)
05:30:46FromGitter<mratsim> They print as a one-liner, if $ is implemented for subfields it prints, otherwise it displays … not sure how it works for cyclical objects though
05:32:35*miran quit (Ping timeout: 240 seconds)
05:42:03*shashlick quit (Quit: Leaving)
05:45:36*miran joined #nim
05:45:48def-subsetpark: repr?
05:56:34*haha_ joined #nim
06:09:07*jsgrant quit (Remote host closed the connection)
06:13:27*cspar quit (Ping timeout: 260 seconds)
06:19:15*Trustable joined #nim
06:42:02*cspar joined #nim
06:54:31*haha_ quit (Quit: haha_)
06:56:33*nsf joined #nim
07:02:53*claudiuinberlin joined #nim
07:09:57*obadz joined #nim
07:09:58*Vladar joined #nim
07:11:12*enthus1ast- joined #nim
07:15:55*BigEpsilon joined #nim
07:55:45FromGitter<mratsim> @couven92 "*<couven92>* Can I get the type name of a variable?” You can with yourvar.type.name or something, you need module typetraits
08:09:16*haha_ joined #nim
08:13:32*haha_ quit (Read error: Connection reset by peer)
08:21:32*PMunch joined #nim
08:23:52*salewski joined #nim
08:24:27*yglukhov joined #nim
08:24:45salewskiIs there something like dec/inc available for enums and subranges that wraps arround?
08:28:32*yglukhov quit (Ping timeout: 240 seconds)
08:41:07federico3SusWombat: there was a bug involving the first random() call
08:41:31*mahtob quit (Remote host closed the connection)
08:41:58*yglukhov joined #nim
08:43:42*salewski quit (Quit: WeeChat 1.4)
08:46:05*cspar quit (Ping timeout: 240 seconds)
08:59:24*yglukhov quit (Remote host closed the connection)
09:06:09*vlad1777d joined #nim
09:07:06*BigEpsilon quit (Ping timeout: 252 seconds)
09:08:48*dddddd joined #nim
09:25:52*Arrrr joined #nim
09:25:52*Arrrr quit (Changing host)
09:25:52*Arrrr joined #nim
09:29:29*BitPuffin|osx joined #nim
09:52:49*deavmi joined #nim
09:52:52deavmiHey all.
09:53:16deavmiJust wrote a networking program in Nim. Been doing a challenge where I do socket networking in many languages.
09:53:29deavmiFrom Python to Java to D to (now) Nim. Was fun :)
09:58:49deavmi
10:04:20*Yardanico joined #nim
10:13:22*BigEpsilon joined #nim
10:14:31*BigEpsilon quit (Client Quit)
10:14:43FromGitter<mratsim> repo or it didn’t happen ;)
10:25:36*ShalokShalom_ joined #nim
10:26:41FromGitter<mratsim> Which language did you prefer to code in (and what’s your background/the language you were familiar with before starting that)
10:29:36*ShalokShalom quit (Ping timeout: 252 seconds)
10:30:03*ShalokShalom_ is now known as ShalokShalom
10:55:28FromGitter<Bennyelg> Hey all
10:56:07FromGitter<Bennyelg> Still facing the problem of trying to getting orderedTable.keys() when I do toSeq(x.keys()) I use dlevel
10:56:15FromGitter<Bennyelg> aka (0.17.2)
10:56:26Yardanicoyou didn't provide code
10:56:31Yardanicowhich is not working
10:57:03Yardanicocan you provide it now?
10:57:20FromGitter<Bennyelg> I'll provide the code
10:58:19FromGitter<Bennyelg> This is the important part ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59b3c94b162adb6d2e834636]
10:58:29FromGitter<Bennyelg> the if is outside ofcourse
10:59:26FromGitter<Bennyelg> the error is: "Attempting to call undecleared routine keys()"
10:59:39FromGitter<Yardanico> does this code work for you? ⏎ ⏎ ```import sequtils, tables ⏎ ⏎ let t = {"1": "2", "2": "3"}.toTable ⏎ echo toSeq(t.keys)``` [https://gitter.im/nim-lang/Nim?at=59b3c99bc101bc4e3aa75ed9]
10:59:49FromGitter<Yardanico> just to check
11:00:09FromGitter<Bennyelg> yes
11:00:11FromGitter<Bennyelg> lol
11:00:27Yardanicowell maybe you really forgot to import something?
11:00:33FromGitter<Bennyelg> sec
11:00:44FromGitter<Bennyelg> nop
11:00:49FromGitter<Bennyelg> they are there
11:00:57FromGitter<Bennyelg> maybe orderedTable and table are not the same
11:01:14Yardaniconah, this code still works for me with ordered table
11:01:41FromGitter<Bennyelg> very very interesting I'll try to copy the code to diff erent file
11:03:49FromGitter<Bennyelg> nop
11:03:55*sleepyqt joined #nim
11:03:56FromGitter<Bennyelg> bah I am going to put it on gist
11:04:04Yardanicoyeah
11:04:05Yardanicodo it
11:04:05FromGitter<Bennyelg> can you just validate this section for me?
11:05:37FromGitter<Bennyelg> https://gist.github.com/Bennyelg/bc540c24e440d1d1f04e2f23778cd206
11:06:04FromGitter<Bennyelg> line 131
11:07:08FromGitter<Yardanico> yeah
11:07:24FromGitter<Yardanico> it doesn't compile for me too, I'll try to make it work:0
11:07:31FromGitter<Bennyelg> Thankss
11:07:49Yardanicoohh
11:08:30Yardanicoit works if you don't import "nre"
11:08:38FromGitter<Bennyelg> lol
11:08:43FromGitter<Bennyelg> why is that
11:08:43Yardanicotry to import only things that you need from nre
11:08:50FromGitter<Bennyelg> we found bug?
11:08:54Yardanicowell report it
11:09:16FromGitter<Bennyelg> maybe there is a cycling
11:09:23FromGitter<Bennyelg> cycling import
11:09:38FromGitter<Yardanico> this is the repro - https://gist.github.com/Yardanico/e5a72275b6eecd7e8d333a8ac4e8c8e6
11:10:00FromGitter<Bennyelg> now its work
11:10:12FromGitter<Bennyelg> I just imported the findAll from nre
11:10:14FromGitter<Yardanico> yeah
11:10:17FromGitter<Bennyelg> this is a bug
11:10:19FromGitter<Yardanico> yes
11:10:20FromGitter<Yardanico> report it
11:10:25FromGitter<Bennyelg> Iwill now
11:10:31FromGitter<Yardanico> ah
11:10:31FromGitter<Yardanico> no
11:10:33FromGitter<Yardanico> don't!
11:10:35FromGitter<Yardanico> we're both stupid
11:10:44FromGitter<Yardanico> did you read? https://nim-lang.org/docs/nre.html#what-is-nre
11:10:51FromGitter<Yardanico> Note: If you love sequtils.toSeq we have bad news for you. This library doesn't work with it due to documented compiler limitations. As a workaround, use this:
11:10:53FromGitter<Yardanico> import nre except toSeq
11:11:09FromGitter<Bennyelg> oh
11:11:33FromGitter<Bennyelg> I'm stupid, I did I miss tha
11:11:33FromGitter<Bennyelg> t
11:26:24FromGitter<mratsim> Should we report bugs to the JS backend? Closure iterators in JS cannot use “finished()” —> Error: undeclared identifier: 'finished'
11:27:15Yardanicowell it's not a bug, but it's unimplemented I think :)
11:27:25Yardanicobut yeah
11:32:33FromGitter<mratsim> Well, I guess it’s no: https://github.com/nim-lang/Nim/issues/4695
11:34:02FromGitter<mratsim> I’m eagerly waiting for inline iterator chaining to work so I can do away with closure iterators https://github.com/nim-lang/Nim/issues/4516
11:43:54*haha_ joined #nim
11:53:15Araqsequtils.toSeq vs nre.toSeq should work but nre should be deprecated again, IMO. 're.nim' just works better
11:59:13*couven92 joined #nim
12:01:20YardanicoAraq, you mean https://nim-lang.org/docs/re.html ?
12:02:49FromGitter<mratsim> I was browsing about WebAssembly and found this nice Unity demo+tuto http://webassembly.org/demo/ (I’m waiting for the Nim port ;) )
12:06:14Yardanicowell you can already use wasm
12:06:18Yardanicovia emscripten
12:06:29*nsf quit (Quit: WeeChat 1.9)
12:14:56Araq_yardanico: yes
12:17:41*Arrrr quit (Ping timeout: 240 seconds)
12:24:33*gokr quit (Ping timeout: 252 seconds)
12:34:45*Ven`` joined #nim
12:38:18*kunev quit (Ping timeout: 252 seconds)
12:40:08*kunev joined #nim
12:42:18*nsf joined #nim
12:44:35*kunev quit (Ping timeout: 240 seconds)
12:44:52*Yardanico quit (Remote host closed the connection)
12:45:44*kunev joined #nim
12:50:29*sleepyqt quit (Quit: WeeChat 1.9)
12:54:49*Arrrr joined #nim
13:25:36FromGitter<Bennyelg> Thanks
13:30:37couven92Cookies!... Time to implement CookieMonster! :D
13:35:57FromGitter<Bennyelg> Anyone face issue which suddenly vscode not autocomplete and explain ?
13:37:41FromGitter<Bennyelg> the goto option not working too..
13:40:57FromGitter<ephja> it has happened to me for months, but I'm testing the vscode plugin again and I haven't run into it yet
13:41:42couven92happens with me too... I just open up the Pallette, and choose to Reload Window... that usually helps
13:42:11FromGitter<Bennyelg> strange everything worked for me till today
13:42:24couven92With the new version of vscode, they have added a new prompt that comes up when an extension crashes, allowing you to immediately reload the extension host
13:43:04FromGitter<ephja> ok now it failed to find the definition
14:01:46FromGitter<Bennyelg> https://github.com/Bennyelg/csvql ⏎ Finished my 1st package,just need to load it to nimble but I still need to read about how
14:02:41*def-pri-pub joined #nim
14:04:46FromGitter<mratsim> nimble publish
14:07:05FromGitter<mratsim> Nice package, did you check NimData by the way? https://github.com/bluenote10/NimData
14:07:57FromGitter<mratsim> It has in-browser display/search of CSV/Dataframes: https://github.com/bluenote10/NimData/raw/master/docs/viewer_example.png
14:13:26subsetparkSo it looks like I can't really make a language parser with `pegs`... It doesn't support recursion
14:16:05*BitPuffin|osx quit (Ping timeout: 240 seconds)
14:18:36*def-pri-pub quit (Quit: leaving)
14:26:02*gokr joined #nim
14:30:59*haha_ quit (Quit: haha_)
14:41:35*couven92 quit (Ping timeout: 248 seconds)
14:53:03*vivus quit (Quit: Leaving)
15:16:46FromGitter<ephja> right
15:18:49dom96subsetpark: what language are you parsing?
15:19:31subsetparkOne that I'm writing
15:20:01*chemist69_ quit (Ping timeout: 246 seconds)
15:20:34*haha_ joined #nim
15:21:46FromGitter<ephja> https://github.com/Araq/lexim is nice, but it's broken atm. I got https://github.com/fowlmouth/glossolalia to work on recent versions of Nim. let me know if you want to try it.
15:26:45dom96subsetpark: a programming language?
15:26:53dom96If so you should create a lexer/parser combo
15:27:20dom96Take a look at how I parse my own little language https://github.com/dom96/nael/tree/master/src
15:31:26subsetparkYeah I've written parsers by hand before, I was just wondering if I had access to any kind of generator
15:32:49*chemist69 joined #nim
15:42:48*gokr quit (Remote host closed the connection)
15:49:49*Yardanico joined #nim
16:02:12FromGitter<ephja> would getting rid of old naming conventions from the compiler break too many things? :-)
16:03:33Yardanicowell it would be fine to do them for 1.0
16:03:45Yardanicorename all old types, remove all deprecated types
16:03:51Yardanicoand procs
16:12:41*pilne joined #nim
16:19:32*ShalokShalom quit (Read error: Connection reset by peer)
16:21:50*ShalokShalom joined #nim
16:23:45FromGitter<ephja> ok
16:24:39Yardanicowell it's my IMO but really why should we have a lot of deprecated TFoo types?
16:27:40Yardanicoafter 3 years :)
16:28:34FromGitter<ephja> I don't think the compiler API is used by that many third parties, but who knows
16:32:35*cspar joined #nim
16:34:35*arnetheduck quit (Ping timeout: 240 seconds)
16:35:01*dddddd quit (Remote host closed the connection)
16:39:21federico3+1 Yardanico
16:42:35FromGitter<ephja> I should work on more useful things :p
16:50:50*Jesin quit (Quit: Leaving)
17:01:34FromGitter<mratsim> Naming something is art, who are you to say that art is not useful?
17:02:32Araq_the problem with renaming things in the compiler is that I'm so used to the old names
17:02:48*Matthias247 joined #nim
17:02:55Araq_it would be a constant source of friction for years...
17:02:58Yardanicolol, im really getting angry reading comments about nim release (on russian websites), I shouldn't read them :P
17:03:34Araq_you need to fight until every Russian believes in Nim
17:04:19Yardanicowell it's even worse because everyone *hates* xored for no reason now (for some few obscure articles on habrahabr)
17:05:18Araq_скажите им, что Ним превосходит
17:05:49Araq_huh? some guy who got fired started a shitstorm or something
17:05:53Yardanicoyeah
17:06:18Yardanicoand everyone is hating xored because they don't want to understand this situation fully
17:06:30Araq_wtf
17:07:15Araq_how unprofessional can you get, it's the internet, it's full of questionable sources
17:08:12Yardanicowell, an article written by this guy who got fired got fucking 392 upvotes (it's an extremely big number for this website)
17:08:22Yardanicoalso 1167 comments
17:08:23Yardanicohttps://habrahabr.ru/post/335876/
17:08:27Yardanicoyour browser would lag :P
17:08:30Yardanico(probably)
17:09:54Yardanicoand this article got 100 downvotes: https://habrahabr.ru/post/336270/
17:10:07Yardanicoso you get the idea about how good russian community can be
17:12:15dom96wow
17:12:49dom96So what's the story with this guy?
17:13:00federico3Yardanico: what are the articles about?
17:14:03FromGitter<zacharycarter> tetris almost done
17:14:22FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/QNOd/zengine.gif)
17:14:38Yardanicodom96, well I can't explain fully, but you can ask endragor or someone else from xored
17:15:28FromGitter<zacharycarter> laptop is dying so gif is potato
17:18:31Yardanicowhy it's dying?
17:18:35Yardanicoah, battery?
17:24:43FromGitter<ephja> are there any multi-file regex replace tools that can process multiple replace operations in bulk and that can preview the changes? :p
17:25:35Araq_nimgrep?
17:32:33*Sentreen quit (Ping timeout: 252 seconds)
17:32:45YardanicoAraq_, also, why are you using Araq_ and not Araq? just curious
17:34:01Araq_changed the bouncer
17:34:07Araq_will be araq soon again
17:45:48*Sentreen joined #nim
18:08:49*couven92 joined #nim
18:11:09*claudiuinberlin quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
18:24:54*haha_ quit (Quit: haha_)
18:28:06*haha_ joined #nim
18:37:03*skrylar joined #nim
18:38:57*haha_ quit (Quit: haha_)
18:44:26*pilne quit (Quit: Quitting!)
18:44:55PMunchHmm, have anyone here tried doing sound manipulation (simple pitch shifts and such) for SDL based games?
18:45:12PMunchI'm looking at zacharycarters soloud wrapper which is interesting
18:48:28YardanicoPMunch, well I know who known everything about that, but not for SDL :)
18:49:24Yardanicohttps://github.com/ftsf
18:51:24*ryanhowe joined #nim
18:52:50*mahmudov joined #nim
18:53:11PMunchHmm
18:53:27Yardanicohttps://github.com/ftsf/nimsynth
18:53:36Yardanicoit's using his own nico framework
18:53:41Yardanicohttps://github.com/ftsf/nico
18:53:46Yardanicobut wait
18:53:50Yardanicoprobably he uses pure sdl for musing
18:53:53Yardanicomusic
18:53:54*def-pri-pub joined #nim
18:54:01def-pri-pubzacharycarter: you online?
18:55:34YardanicoPMunch, also, his game: https://www.youtube.com/watch?v=WmRV89TXMpM
18:55:49Yardanicojust look at the gameplay :)
18:55:54Yardanicoit's all about sound
18:55:56*yglukhov joined #nim
18:57:25PMunchVery interesting
18:57:43PMunchThis is for a game jam though. So I'm really pressed for time in getting this up and running :P
18:58:02Yardanicowell ludum dare is 48 hours
19:00:22*def-pri-pub quit (Ping timeout: 264 seconds)
19:02:14*def-pri-pub joined #nim
19:02:31*Yardanico quit (Remote host closed the connection)
19:04:01*cspar quit (Ping timeout: 248 seconds)
19:04:40skrylarah pixel art
19:08:43PMunchThis is 42 :P
19:09:01PMunchAnd more or less just 12 left :P
19:09:50skrylareh, it's just that i have a particularly difficult time with physical skills like drawing :(
19:15:07*def-pri-pub quit (Ping timeout: 260 seconds)
19:16:43*def-pri-pub joined #nim
19:21:26FromGitter<zacharycarter> def-pri-pub: I am now
19:23:56FromGitter<zacharycarter> going to finish this tetris clone and make a big commit
19:25:03*cspar joined #nim
19:31:14PMunchhttps://pastebin.com/2kbNwCXJ
19:31:19PMunchWhat's going on there?
19:32:17PMunchHi zacharycarter :) I was just asking questions about pitch shifting and such in a SDL game. And I was looking at your soloud wrapper
19:34:20PMunchHi zacharycarter :) I was just asking questions about pitch shifting and such in a SDL game. And I was looking at your soloud wrapper
19:38:15PMunchAah, the callback has to be declared as top-level
19:40:04skrylari've been curious about soloud
19:40:32skrylarhave to figure out what i'm doing today though. might get a vat of coffee and look in to a finite state machine macro
19:41:01skrylarthose things make life SO MUCH nicer
19:41:35FromGitter<zacharycarter> Hey PMunch
19:41:43FromGitter<zacharycarter> please @ me if you can so I get pinged
19:41:57def-pri-pubzacharycarter: hey, I'll have the fixed up timer module to you in about 5 minutes
19:41:59FromGitter<zacharycarter> yeah the soloud wrapper works to my knowledge, the library is a bit shaky though, have you played around with it at all?
19:42:06skrylarno
19:42:13FromGitter<zacharycarter> def-pri-pub: okay sweet
19:42:39PMunchNot really
19:42:39FromGitter<zacharycarter> def-pri-pub: I think we should be using uint32s in it isntead of float64s
19:42:41def-pri-pubYou'll probably have to adjust the examples again, and maybe that one `boneTransformation()` function again, but I think you
19:42:45def-pri-pub'you'll like it again
19:42:49PMunchAnd I don't have a lot of time so I might not even get around to it
19:42:51FromGitter<zacharycarter> okay cool
19:42:51def-pri-publike it better*
19:43:01def-pri-pub(just some last minute testing)
19:43:05FromGitter<zacharycarter> well if you have questions or need help with soLoud I can give a hand
19:43:24FromGitter<zacharycarter> but I have no experience with it outside of trivial examples, I haven't played with pitch shifting
19:43:24skrylarsound libraries are.. interesting
19:43:38skrylarPitch shifting is just playing back faster iirc
19:43:38FromGitter<zacharycarter> you might want to look at yuri's sound library
19:43:48FromGitter<zacharycarter> @yglukhov
19:44:00def-pri-pubCan you also try to give me a quick turn around on this so I can sync up the changes with the sprite stuff.
19:44:03skrylarWell there are better methods (sinc, etc) but you need to use FFTs and such. I think games use cheap pitch shifts
19:44:14*ryanhowe quit (Quit: ryanhowe)
19:44:16FromGitter<zacharycarter> def-pri-pub: yeah I can do the pr whenever, I'll be around all afternoon / evening
19:44:25skrylarhttps://gist.github.com/Skrylar/fae89168d08e1351c21942917922fbfa will probably use this syntax for fsms since it seems straight forward
19:44:28*ryanhowe joined #nim
19:45:16FromGitter<zacharycarter> def-pri-pub: I'll merge in your changes then commit the tetris example
19:48:57*def-pri-pub quit (Ping timeout: 260 seconds)
19:53:02*def-pri-pub joined #nim
19:53:13def-pri-pub@zacharycarter: PR is up: https://github.com/zacharycarter/zengine/pull/35
19:53:31def-pri-pub(crappy public library wifi screwing with my IRC connection...)
19:53:56*haha_ joined #nim
19:54:48*haha_ quit (Read error: Connection reset by peer)
19:55:07*haha_ joined #nim
19:59:29*haha_ quit (Ping timeout: 248 seconds)
20:02:06*haha_ joined #nim
20:07:56*dddddd joined #nim
20:10:56FromGitter<xmonader> I'm having problems with executing test task through nimble can someone take a look? ⏎ https://gist.github.com/xmonader/fc0b0c1c1b88eb4666f8caaaecb45b37
20:10:58*Sembei joined #nim
20:12:36*Pisuke quit (Ping timeout: 252 seconds)
20:13:51*def-pri-pub quit (Ping timeout: 248 seconds)
20:16:44*solitudesf joined #nim
20:21:53Arrrrno idea, maybe `nimble test nidb?`
20:23:09dom96xmonader: withDir "tests"... and then you're executing "tests/tester"
20:24:56FromGitter<xmonader> nimble test and nimble test nidb give the same error
20:25:11FromGitter<xmonader> @dom96 yup ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59b44e27cfeed2eb65ed1bf7]
20:27:57*haha_ quit (Quit: haha_)
20:29:31dom96remove the `tests/` and it should work
20:30:57*Vladar quit (Quit: Leaving)
20:31:52FromGitter<xmonader> @dom96 you're right as always, problem is in my tester.nim i have a failing test case which means it actually ran the tests but it never caught my eyes .. sorry!
20:34:16FromGitter<Bennyelg> Guys, Before I look deep into the book, any quick example of generics and macros?
20:34:53*haha_ joined #nim
20:39:18FromGitter<zacharycarter> def-pri-pub: tetris is all done
20:44:39FromGitter<zacharycarter> def-pri-pub: can the timer use uint64s instead of float64s? since that's what the sdl time methods return naturally?
20:49:21*tjyoco joined #nim
20:51:22FromGitter<zacharycarter> I'm just going to go with uint64 and we can revert back if need be
20:51:23tjyocoI was in the middle of writing some tests when suddenly I got this error: "Error: internal error: openArrayLoc: ResourceType; No stack traceback available; To create a stacktrace, rerun compilation with ./koch temp c <file>" All other nimfiles compile except this one. I'm not sure what that issue means.
20:52:48*cspar quit (Quit: Leaving)
20:58:23FromGitter<Bennyelg> not working https://nim-lang.org/docs/db_odbc.html
20:59:28FromGitter<zacharycarter> what's not?
20:59:32FromGitter<zacharycarter> oh
20:59:47FromGitter<Bennyelg> cant read docs
20:59:54FromGitter<zacharycarter> https://nim-lang.org/docs/odbcsql.html
21:00:10FromGitter<Bennyelg> thanks
21:00:14FromGitter<zacharycarter>
21:00:51*haha_ quit (Quit: haha_)
21:01:14FromGitter<zacharycarter> yay tetris done
21:04:43FromGitter<zacharycarter> (https://files.gitter.im/nim-lang/Nim/UX5J/tetris.gif)
21:05:28FromGitter<superfunc>
21:08:04*mahmudov quit (Remote host closed the connection)
21:08:41*claudiuinberlin joined #nim
21:09:24*solitude joined #nim
21:10:12*solitude quit (Remote host closed the connection)
21:16:00*grape joined #nim
21:16:28*grape quit (Client Quit)
21:17:23*Arrrr quit (Quit: Leaving.)
21:27:58*mahmudov joined #nim
21:34:23*couven92 quit (Ping timeout: 248 seconds)
21:36:00*tjyoco quit (Quit: Page closed)
21:38:31*miran quit (Ping timeout: 240 seconds)
21:38:53FromGitter<ephja> nice
21:40:35FromGitter<zacharycarter> thanks
21:40:45*claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com)
21:47:06FromGitter<ephja> implement efficient light refraction next! we need a killer app
21:48:28FromGitter<zacharycarter> I'm curious to see what people can cook up with Nim godot
21:48:49FromGitter<zacharycarter> that new renderer they have looks noice
21:49:53*solitudesf quit (Ping timeout: 248 seconds)
21:50:01federico3godot?
21:50:22FromGitter<zacharycarter> https://www.youtube.com/watch?v=XptlVErsL-o
21:50:37FromGitter<zacharycarter> they have a way to write code in Nim for this engine now
21:51:31FromGitter<zacharycarter> @endragor published the bindings, I haven't used them yet
21:52:01FromGitter<zacharycarter> def makes me question whether I should continue with zengine or not :P
21:52:12FromGitter<zacharycarter> but I have nothing better to do so I might as well
21:56:20FromGitter<ephja> https://github.com/djbozkosz/Light-Propagation-Volumes
21:57:00FromGitter<zacharycarter> good link
21:57:17FromGitter<ephja> I just found that thesis and one of the scenes is similar
21:57:43FromGitter<zacharycarter> I def need to do more with lighting with zengine
21:57:49FromGitter<zacharycarter> I was going to start looking into PBR materials soon
21:57:50FromGitter<ephja> I dunno if it uses any of the algorithms or if it's a coincidence. I think I've seen other similar demos
21:58:51*def-pri-pub joined #nim
21:58:51*def-pri-pub quit (Changing host)
21:58:51*def-pri-pub joined #nim
21:59:36def-pri-pubzacharycarter: Hey, I left a note on the latest commit about the changes you made to the `Timer` module. They're breaking what I've got and the interface we decicded upon.
21:59:51def-pri-pubCan you go back and reset it
21:59:52def-pri-pub?
22:00:07def-pri-pubI have to run off now, but we can discuss this in the commit comments or over IRC later
22:00:23FromGitter<zacharycarter> yeah let's talk about it because I made a few changes, one is totally necessary
22:00:28FromGitter<zacharycarter> the data type conversions can be discussed
22:00:38FromGitter<zacharycarter> but I had to remove that division by timer frequency as that logic isn't correct
22:01:00FromGitter<zacharycarter> I'll leave some comments in the commit
22:01:06FromGitter<zacharycarter> and please ping me on here when you return
22:03:49*Trustable quit (Remote host closed the connection)
22:04:52*def-pri-pub quit (Ping timeout: 260 seconds)
22:09:49*yglukhov quit (Remote host closed the connection)
22:16:24FromGitter<zacharycarter> reverted def-pri-pub and I put in a fix for timeElapsed. It hink we're all good now
22:28:23*vlad1777d quit (Remote host closed the connection)
22:30:08*vlad1777d joined #nim
22:41:04*Jesin joined #nim
22:44:27*Matthias247 quit (Read error: Connection reset by peer)
23:03:18*def-pri-pub joined #nim
23:03:18*def-pri-pub quit (Changing host)
23:03:18*def-pri-pub joined #nim
23:08:55def-pri-pubzacharycarter: Hey, I have to head out soon again (and I just got in too). You didn't revert line 65 of `timer.nim`. I should be back in about 30 minutes if you want to discuss this further.
23:09:20def-pri-pubBut right now with the `* 1000`, it's giving of time in milliseonds (where it needs to be seconds)
23:10:14FromGitter<zacharycarter> okay I gotcha
23:10:20*yglukhov joined #nim
23:10:21FromGitter<zacharycarter> I'll make the appropriate fixes
23:11:41*Sembei quit (Ping timeout: 240 seconds)
23:13:35*def-pri-pub quit (Ping timeout: 248 seconds)
23:14:13FromGitter<zacharycarter> we'll have to talk about this more when you get back as I don't know how to fix it since the multiplication is performed before the division
23:14:28FromGitter<zacharycarter> we're not going to get back to the same value simply by multiplying by 0.001
23:14:35*yglukhov quit (Ping timeout: 240 seconds)
23:15:22skrylarboop
23:15:42FromGitter<zacharycarter> nm def-pri-pub we're good
23:16:03*Jesin quit (Quit: Leaving)
23:16:30FromGitter<zacharycarter> sup skrylar: how goes bgfx?
23:26:34*mahmudov quit (Remote host closed the connection)
23:32:19*ShalokShalom is now known as haywire
23:32:45*haywire is now known as heywire
23:42:27*nsf quit (Quit: WeeChat 1.9)
23:51:52*heywire is now known as ShalokShalom