00:03:18 | * | vlad1777d joined #nim |
00:10:50 | skrylar | its pretty nice |
00:10:57 | skrylar | although i can't seem to get any polygons out of nim-bgfx |
00:13:32 | * | vlad1777d quit (Ping timeout: 260 seconds) |
00:21:43 | skrylar | guess i'll just do something else -shrug- |
00:21:58 | skrylar | its not even giving wireframes |
00:23:59 | * | ipjk_ quit (Quit: Leaving) |
00:28:10 | * | vlad1777d joined #nim |
00:29:48 | skrylar | yay wires. |
00:33:48 | couven92 | Can I get the type name of a variable? |
00:36:44 | couven92 | i.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:50 | FromGitter | <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:24 | FromGitter | <zacharycarter> (https://files.gitter.im/nim-lang/Nim/iYdi/Screen-Shot-2017-09-08-at-10.05.54-PM.png) |
02:06:46 | FromGitter | <zacharycarter> using zengine to write testris |
02:19:07 | FromGitter | <superfunc> @zacharycarter v cool :D |
02:19:29 | jsgrant | Why 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:41 | jsgrant | Actually one of (the dozen-or-so) reasons Nim interests me. |
02:22:00 | skrylar | jsgrant, indie gamedevs can use anything they want? |
02:23:26 | pydsigner | jsgrant: good SDL2 integrations |
02:23:42 | jsgrant | pydsigner: Ah, that is a simple but good/strong point. |
02:23:46 | pydsigner | So you can get C++ perf without the suck of C++ |
02:23:54 | FromGitter | <zacharycarter> thanks @superfunc |
02:23:58 | skrylar | well the realtime gc does help with that |
02:24:09 | FromGitter | <zacharycarter> yes it does |
02:24:19 | FromGitter | <superfunc> yeah, something easy+fun to write(like python), with better compiler help, and perf in the realm of c++ |
02:24:28 | FromGitter | <zacharycarter> not to mention c2nim |
02:24:34 | FromGitter | <zacharycarter> find a c library and bind to it |
02:24:40 | skrylar | bgfx is rustling my jimmies somewhat tho |
02:24:46 | skrylar | compatibility profile, ugh |
02:24:52 | FromGitter | <zacharycarter> skrylar I have a lot of bgfx experience |
02:25:25 | FromGitter | <zacharycarter> compat profile? that sounds like an OpenGL thing for OSX |
02:25:34 | skrylar | osx only supports core :^) |
02:25:59 | skrylar | 3.2 and beyond don't allow the silliness from 1.0-3.1 |
02:26:07 | FromGitter | <zacharycarter> right |
02:26:11 | skrylar | the "compatibility" profile is basically GL2/shitloads of exts |
02:26:16 | skrylar | BGFX from what i can tell uses this |
02:26:30 | skrylar | Which is not horrible in a sense that yes it does mean your games will run on potatos |
02:28:50 | jsgrant | pydsigner, 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:14 | skrylar | i would be using lisp if it wasn't ded |
02:29:25 | jsgrant | skrylar: Tell me about it... |
02:29:35 | FromGitter | <superfunc> well, depends on which lisp haha |
02:29:45 | skrylar | they're all derpy |
02:29:47 | FromGitter | <superfunc> clojure is doing well in the web space, but yeah CL is pretty much dead |
02:30:04 | jsgrant | CL21 is neat, but not only was did -- never lived. |
02:30:05 | skrylar | ecl is the most suitable for games in a sense that you can deploy it without a 100mb virtual machine image |
02:30:18 | skrylar | but lgpl |
02:30:19 | FromGitter | <superfunc> having good metaprogramming is actually one of my favorite things about nim |
02:30:22 | skrylar | so no consoles/phones |
02:30:24 | jsgrant | CEPL is pretty nice, before I game up Emacs + SBCL. |
02:30:44 | * | def-pri-pub joined #nim |
02:30:45 | FromGitter | <superfunc> my lisp days were mostly in scheme(chicken) |
02:30:45 | jsgrant | superfunc: That is one of my biggest draws; Same with Scala. |
02:30:47 | skrylar | this person who did nim-bgfx is bogus however |
02:30:56 | skrylar | he put all the proc calls in PascalCase |
02:31:01 | pydsigner | skrylar: use Arc!!! ...!! |
02:31:09 | FromGitter | <superfunc> jsgrant: scala is such a mess to me |
02:31:21 | skrylar | and because *someone* put in this first char case sensitivity cancer, now there's pascal case in here |
02:31:23 | skrylar | >:( |
02:32:02 | FromGitter | <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:04 | pydsigner | Style unawareness is one of the things my python brain hates the most |
02:32:08 | jsgrant | superfunc: Too much focus on and marketing to "Java Interop" imo; Clojure did that a tiny bit better. |
02:32:23 | skrylar | haskell is pretty cool though |
02:32:29 | skrylar | you just have to do a lot of LSD to understand it |
02:32:51 | FromGitter | <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:53 | skrylar | well i used sleep deprivation studying but that's not as funny |
02:33:09 | skrylar | although i wouldn't mind snitching functional reactive programming from the haskell people |
02:33:20 | skrylar | although every time i try to envision that in nim, it just ends up being basic syntax sugar |
02:33:42 | skrylar | I mean that's all FRP is? |
02:34:25 | jsgrant | Scala, more than anything I'm using as a "stepping stone" to be more pragmatic. |
02:34:55 | jsgrant | Basically that's been all this year has been. Taking a few paces back & reorienting. |
02:35:25 | FromGitter | <superfunc> Learning a few different things to recalibrate is always fun and useful :) |
02:35:30 | skrylar | i 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:59 | skrylar | SLIME was great. |
02:39:22 | skrylar | I guess we could have livecoding in nim as well, but it would require some heroic programming |
02:39:26 | jsgrant | After 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:52 | skrylar | i dunno how clean the backends are |
02:41:03 | skrylar | ostensibly you just need a backend emitter to IR or something, and an AST differ |
02:41:06 | jsgrant | skrylar: SLIME is probably (almost surely) the most fun I've had in any repl-driven/guided env. |
02:42:29 | skrylar | escaping the compile loop is pretty fun, yea. |
02:42:36 | skrylar | it's naughty dog's secret weapon on the PS3/4 |
02:42:47 | FromGitter | <superfunc> slime is cool af |
02:42:57 | skrylar | they 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:17 | jsgrant | Stumpwm connected to Slime is very fun too. |
02:44:49 | skrylar | I may have to downgrade my WM |
02:44:51 | jsgrant | Really 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:58 | skrylar | gnome has decided to crash intermittently for no reason |
02:45:15 | skrylar | although on a laptop i used nothing but i3 for a year |
02:45:22 | FromGitter | <superfunc> I use i3 at work and home |
02:45:32 | skrylar | i don't use it on a desktop |
02:45:44 | skrylar | mouse isn't as much of a pain. although i do flick top left on windows sometimes expecting it to do something |
02:45:46 | FromGitter | <superfunc> any particular reason? |
02:46:01 | skrylar | art and music software act stupid under i3 |
02:46:23 | skrylar | it 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:44 | jsgrant | skrylar: 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:50 | FromGitter | <superfunc> ah, yeah I'm lucky in that most of my apps are just terminal ones, minus browser |
02:47:10 | jsgrant | Which is sad, because it's the only opensource-DE I've been able to tolerate. |
02:47:14 | skrylar | jsgrant, time to go back to cinnamon :\ |
02:47:31 | skrylar | wanted to try deepin. half the UI segfaults on launch |
02:47:32 | skrylar | gg |
02:47:51 | FromGitter | <superfunc> I've heard good things about xmonad, but never used it personally |
02:48:12 | skrylar | i just want a mac tbh |
02:48:20 | jsgrant | On 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:23 | skrylar | elementaryOS is the closest thing and they're still doing it wrong |
02:48:47 | FromGitter | <superfunc> I have a mac from work, it makes me miss linux lol, brew is especially annoying |
02:48:56 | skrylar | they're pushing vala which is better than C++ i guess |
02:48:58 | jsgrant | Xmonad was pretty fun; Kinda the haskell analog of Stumpwm. Same I guess could be said about Awesome though. |
02:49:24 | skrylar | superfunc: but my 10 year old imac has shinies like audio hijack ._. |
02:49:31 | skrylar | or god forbid syncing audio to a phone |
02:49:40 | skrylar | android can't even figure that one out |
02:50:51 | FromGitter | <superfunc> I feel like my phone is actively discouraging bringing any files to it |
02:50:55 | skrylar | I 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:08 | skrylar | its just help > start typing "shuffle" and it SHOWS you where that button is |
02:51:53 | skrylar | it's one of those awesome things but the gtk devs care more about weird CSS bullshit instead of usability |
02:52:34 | subsetpark | Can I use pegs.nim to implement an interpreter-parser? |
02:52:45 | FromGitter | <superfunc> Priorities in that community, well a lot of tech communities, tend to be super weird like that @skrylar |
02:53:09 | skrylar | superfunc: well they tend to be of the "copy MS" mentality usually |
02:53:27 | FromGitter | <superfunc> cough * c++ adding tons of new features except for the one that would help horrendous compile times * cough |
02:53:29 | skrylar | like 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:13 | skrylar | subsetpark, i don't see why not; as long as it reads set patterns and does callbacks? |
02:54:58 | subsetpark | skrylar: 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:14 | skrylar | i've never used the pegs module :/ |
02:55:19 | subsetpark | but i don't know how to make it, like, go. And there's surprisingly little examples |
02:55:25 | skrylar | we should probably steal red/rebols parse dialect tho |
02:55:33 | skrylar | which 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:31 | subsetpark | Here's what I figured out: https://play.nim-lang.org/?gist=f6741a486700fe00bec4e726cf1c126e |
03:37:59 | subsetpark | That's not quite right... |
03:38:32 | subsetpark | Oh no actually, I wanted it that way. |
03:49:08 | shashlick | hey guys, why do you need to turn off overflowChecks to just do a shift right on an integer |
03:52:06 | FromGitter | <zacharycarter> (https://files.gitter.im/nim-lang/Nim/2QIT/zengine.gif) |
03:54:07 | * | def-pri-pub quit (Ping timeout: 248 seconds) |
04:03:02 | FromGitter | <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:34 | FromGitter | <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:41 | FromGitter | <zacharycarter> shashlick: looks like maybe a regression? |
04:16:03 | FromGitter | <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:22 | shashlick | zacharycarter: thank you |
04:19:44 | * | miran joined #nim |
04:21:10 | FromGitter | <zacharycarter> np |
04:21:17 | shashlick | zacharycarter: I was trying out https://stackoverflow.com/a/109025 |
04:23:32 | FromGitter | <zacharycarter> I'm pretty sure this should work, but I could be wrong |
04:25:47 | FromGitter | <zacharycarter> hrm doesn't work with 0.17.0 either |
04:26:22 | FromGitter | <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:11 | def-pri-pub | zacharycarter: hey |
04:37:27 | def-pri-pub | I just posted something in the issue tracker regarding the timer module |
04:41:48 | FromGitter | <mratsim> @yglukhov was sleeping |
04:48:12 | * | cspar joined #nim |
04:48:52 | * | harindu95 quit (Quit: harindu95) |
04:59:42 | subsetpark | do we have a pretty printer for objects? |
05:08:59 | * | def-pri-pub quit (Quit: leaving) |
05:30:46 | FromGitter | <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:48 | def- | 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:45 | FromGitter | <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:45 | salewski | Is there something like dec/inc available for enums and subranges that wraps arround? |
08:28:32 | * | yglukhov quit (Ping timeout: 240 seconds) |
08:41:07 | federico3 | SusWombat: 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:52 | deavmi | Hey all. |
09:53:16 | deavmi | Just wrote a networking program in Nim. Been doing a challenge where I do socket networking in many languages. |
09:53:29 | deavmi | From Python to Java to D to (now) Nim. Was fun :) |
09:58:49 | deavmi | |
10:04:20 | * | Yardanico joined #nim |
10:13:22 | * | BigEpsilon joined #nim |
10:14:31 | * | BigEpsilon quit (Client Quit) |
10:14:43 | FromGitter | <mratsim> repo or it didn’t happen ;) |
10:25:36 | * | ShalokShalom_ joined #nim |
10:26:41 | FromGitter | <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:28 | FromGitter | <Bennyelg> Hey all |
10:56:07 | FromGitter | <Bennyelg> Still facing the problem of trying to getting orderedTable.keys() when I do toSeq(x.keys()) I use dlevel |
10:56:15 | FromGitter | <Bennyelg> aka (0.17.2) |
10:56:26 | Yardanico | you didn't provide code |
10:56:31 | Yardanico | which is not working |
10:57:03 | Yardanico | can you provide it now? |
10:57:20 | FromGitter | <Bennyelg> I'll provide the code |
10:58:19 | FromGitter | <Bennyelg> This is the important part ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59b3c94b162adb6d2e834636] |
10:58:29 | FromGitter | <Bennyelg> the if is outside ofcourse |
10:59:26 | FromGitter | <Bennyelg> the error is: "Attempting to call undecleared routine keys()" |
10:59:39 | FromGitter | <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:49 | FromGitter | <Yardanico> just to check |
11:00:09 | FromGitter | <Bennyelg> yes |
11:00:11 | FromGitter | <Bennyelg> lol |
11:00:27 | Yardanico | well maybe you really forgot to import something? |
11:00:33 | FromGitter | <Bennyelg> sec |
11:00:44 | FromGitter | <Bennyelg> nop |
11:00:49 | FromGitter | <Bennyelg> they are there |
11:00:57 | FromGitter | <Bennyelg> maybe orderedTable and table are not the same |
11:01:14 | Yardanico | nah, this code still works for me with ordered table |
11:01:41 | FromGitter | <Bennyelg> very very interesting I'll try to copy the code to diff erent file |
11:03:49 | FromGitter | <Bennyelg> nop |
11:03:55 | * | sleepyqt joined #nim |
11:03:56 | FromGitter | <Bennyelg> bah I am going to put it on gist |
11:04:04 | Yardanico | yeah |
11:04:05 | Yardanico | do it |
11:04:05 | FromGitter | <Bennyelg> can you just validate this section for me? |
11:05:37 | FromGitter | <Bennyelg> https://gist.github.com/Bennyelg/bc540c24e440d1d1f04e2f23778cd206 |
11:06:04 | FromGitter | <Bennyelg> line 131 |
11:07:08 | FromGitter | <Yardanico> yeah |
11:07:24 | FromGitter | <Yardanico> it doesn't compile for me too, I'll try to make it work:0 |
11:07:31 | FromGitter | <Bennyelg> Thankss |
11:07:49 | Yardanico | ohh |
11:08:30 | Yardanico | it works if you don't import "nre" |
11:08:38 | FromGitter | <Bennyelg> lol |
11:08:43 | FromGitter | <Bennyelg> why is that |
11:08:43 | Yardanico | try to import only things that you need from nre |
11:08:50 | FromGitter | <Bennyelg> we found bug? |
11:08:54 | Yardanico | well report it |
11:09:16 | FromGitter | <Bennyelg> maybe there is a cycling |
11:09:23 | FromGitter | <Bennyelg> cycling import |
11:09:38 | FromGitter | <Yardanico> this is the repro - https://gist.github.com/Yardanico/e5a72275b6eecd7e8d333a8ac4e8c8e6 |
11:10:00 | FromGitter | <Bennyelg> now its work |
11:10:12 | FromGitter | <Bennyelg> I just imported the findAll from nre |
11:10:14 | FromGitter | <Yardanico> yeah |
11:10:17 | FromGitter | <Bennyelg> this is a bug |
11:10:19 | FromGitter | <Yardanico> yes |
11:10:20 | FromGitter | <Yardanico> report it |
11:10:25 | FromGitter | <Bennyelg> Iwill now |
11:10:31 | FromGitter | <Yardanico> ah |
11:10:31 | FromGitter | <Yardanico> no |
11:10:33 | FromGitter | <Yardanico> don't! |
11:10:35 | FromGitter | <Yardanico> we're both stupid |
11:10:44 | FromGitter | <Yardanico> did you read? https://nim-lang.org/docs/nre.html#what-is-nre |
11:10:51 | FromGitter | <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:53 | FromGitter | <Yardanico> import nre except toSeq |
11:11:09 | FromGitter | <Bennyelg> oh |
11:11:33 | FromGitter | <Bennyelg> I'm stupid, I did I miss tha |
11:11:33 | FromGitter | <Bennyelg> t |
11:26:24 | FromGitter | <mratsim> Should we report bugs to the JS backend? Closure iterators in JS cannot use “finished()” —> Error: undeclared identifier: 'finished' |
11:27:15 | Yardanico | well it's not a bug, but it's unimplemented I think :) |
11:27:25 | Yardanico | but yeah |
11:32:33 | FromGitter | <mratsim> Well, I guess it’s no: https://github.com/nim-lang/Nim/issues/4695 |
11:34:02 | FromGitter | <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:15 | Araq | sequtils.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:20 | Yardanico | Araq, you mean https://nim-lang.org/docs/re.html ? |
12:02:49 | FromGitter | <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:14 | Yardanico | well you can already use wasm |
12:06:18 | Yardanico | via emscripten |
12:06:29 | * | nsf quit (Quit: WeeChat 1.9) |
12:14:56 | Araq_ | 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:36 | FromGitter | <Bennyelg> Thanks |
13:30:37 | couven92 | Cookies!... Time to implement CookieMonster! :D |
13:35:57 | FromGitter | <Bennyelg> Anyone face issue which suddenly vscode not autocomplete and explain ? |
13:37:41 | FromGitter | <Bennyelg> the goto option not working too.. |
13:40:57 | FromGitter | <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:42 | couven92 | happens with me too... I just open up the Pallette, and choose to Reload Window... that usually helps |
13:42:11 | FromGitter | <Bennyelg> strange everything worked for me till today |
13:42:24 | couven92 | With 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:04 | FromGitter | <ephja> ok now it failed to find the definition |
14:01:46 | FromGitter | <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:46 | FromGitter | <mratsim> nimble publish |
14:07:05 | FromGitter | <mratsim> Nice package, did you check NimData by the way? https://github.com/bluenote10/NimData |
14:07:57 | FromGitter | <mratsim> It has in-browser display/search of CSV/Dataframes: https://github.com/bluenote10/NimData/raw/master/docs/viewer_example.png |
14:13:26 | subsetpark | So 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:46 | FromGitter | <ephja> right |
15:18:49 | dom96 | subsetpark: what language are you parsing? |
15:19:31 | subsetpark | One that I'm writing |
15:20:01 | * | chemist69_ quit (Ping timeout: 246 seconds) |
15:20:34 | * | haha_ joined #nim |
15:21:46 | FromGitter | <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:45 | dom96 | subsetpark: a programming language? |
15:26:53 | dom96 | If so you should create a lexer/parser combo |
15:27:20 | dom96 | Take a look at how I parse my own little language https://github.com/dom96/nael/tree/master/src |
15:31:26 | subsetpark | Yeah 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:12 | FromGitter | <ephja> would getting rid of old naming conventions from the compiler break too many things? :-) |
16:03:33 | Yardanico | well it would be fine to do them for 1.0 |
16:03:45 | Yardanico | rename all old types, remove all deprecated types |
16:03:51 | Yardanico | and 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:45 | FromGitter | <ephja> ok |
16:24:39 | Yardanico | well it's my IMO but really why should we have a lot of deprecated TFoo types? |
16:27:40 | Yardanico | after 3 years :) |
16:28:34 | FromGitter | <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:21 | federico3 | +1 Yardanico |
16:42:35 | FromGitter | <ephja> I should work on more useful things :p |
16:50:50 | * | Jesin quit (Quit: Leaving) |
17:01:34 | FromGitter | <mratsim> Naming something is art, who are you to say that art is not useful? |
17:02:32 | Araq_ | 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:55 | Araq_ | it would be a constant source of friction for years... |
17:02:58 | Yardanico | lol, im really getting angry reading comments about nim release (on russian websites), I shouldn't read them :P |
17:03:34 | Araq_ | you need to fight until every Russian believes in Nim |
17:04:19 | Yardanico | well it's even worse because everyone *hates* xored for no reason now (for some few obscure articles on habrahabr) |
17:05:18 | Araq_ | скажите им, что Ним превосходит |
17:05:49 | Araq_ | huh? some guy who got fired started a shitstorm or something |
17:05:53 | Yardanico | yeah |
17:06:18 | Yardanico | and everyone is hating xored because they don't want to understand this situation fully |
17:06:30 | Araq_ | wtf |
17:07:15 | Araq_ | how unprofessional can you get, it's the internet, it's full of questionable sources |
17:08:12 | Yardanico | well, an article written by this guy who got fired got fucking 392 upvotes (it's an extremely big number for this website) |
17:08:22 | Yardanico | also 1167 comments |
17:08:23 | Yardanico | https://habrahabr.ru/post/335876/ |
17:08:27 | Yardanico | your browser would lag :P |
17:08:30 | Yardanico | (probably) |
17:09:54 | Yardanico | and this article got 100 downvotes: https://habrahabr.ru/post/336270/ |
17:10:07 | Yardanico | so you get the idea about how good russian community can be |
17:12:15 | dom96 | wow |
17:12:49 | dom96 | So what's the story with this guy? |
17:13:00 | federico3 | Yardanico: what are the articles about? |
17:14:03 | FromGitter | <zacharycarter> tetris almost done |
17:14:22 | FromGitter | <zacharycarter> (https://files.gitter.im/nim-lang/Nim/QNOd/zengine.gif) |
17:14:38 | Yardanico | dom96, well I can't explain fully, but you can ask endragor or someone else from xored |
17:15:28 | FromGitter | <zacharycarter> laptop is dying so gif is potato |
17:18:31 | Yardanico | why it's dying? |
17:18:35 | Yardanico | ah, battery? |
17:24:43 | FromGitter | <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:35 | Araq_ | nimgrep? |
17:32:33 | * | Sentreen quit (Ping timeout: 252 seconds) |
17:32:45 | Yardanico | Araq_, also, why are you using Araq_ and not Araq? just curious |
17:34:01 | Araq_ | changed the bouncer |
17:34:07 | Araq_ | 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:55 | PMunch | Hmm, have anyone here tried doing sound manipulation (simple pitch shifts and such) for SDL based games? |
18:45:12 | PMunch | I'm looking at zacharycarters soloud wrapper which is interesting |
18:48:28 | Yardanico | PMunch, well I know who known everything about that, but not for SDL :) |
18:49:24 | Yardanico | https://github.com/ftsf |
18:51:24 | * | ryanhowe joined #nim |
18:52:50 | * | mahmudov joined #nim |
18:53:11 | PMunch | Hmm |
18:53:27 | Yardanico | https://github.com/ftsf/nimsynth |
18:53:36 | Yardanico | it's using his own nico framework |
18:53:41 | Yardanico | https://github.com/ftsf/nico |
18:53:46 | Yardanico | but wait |
18:53:50 | Yardanico | probably he uses pure sdl for musing |
18:53:53 | Yardanico | music |
18:53:54 | * | def-pri-pub joined #nim |
18:54:01 | def-pri-pub | zacharycarter: you online? |
18:55:34 | Yardanico | PMunch, also, his game: https://www.youtube.com/watch?v=WmRV89TXMpM |
18:55:49 | Yardanico | just look at the gameplay :) |
18:55:54 | Yardanico | it's all about sound |
18:55:56 | * | yglukhov joined #nim |
18:57:25 | PMunch | Very interesting |
18:57:43 | PMunch | This is for a game jam though. So I'm really pressed for time in getting this up and running :P |
18:58:02 | Yardanico | well 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:40 | skrylar | ah pixel art |
19:08:43 | PMunch | This is 42 :P |
19:09:01 | PMunch | And more or less just 12 left :P |
19:09:50 | skrylar | eh, 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:26 | FromGitter | <zacharycarter> def-pri-pub: I am now |
19:23:56 | FromGitter | <zacharycarter> going to finish this tetris clone and make a big commit |
19:25:03 | * | cspar joined #nim |
19:31:14 | PMunch | https://pastebin.com/2kbNwCXJ |
19:31:19 | PMunch | What's going on there? |
19:32:17 | PMunch | Hi 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:20 | PMunch | Hi 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:15 | PMunch | Aah, the callback has to be declared as top-level |
19:40:04 | skrylar | i've been curious about soloud |
19:40:32 | skrylar | have 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:01 | skrylar | those things make life SO MUCH nicer |
19:41:35 | FromGitter | <zacharycarter> Hey PMunch |
19:41:43 | FromGitter | <zacharycarter> please @ me if you can so I get pinged |
19:41:57 | def-pri-pub | zacharycarter: hey, I'll have the fixed up timer module to you in about 5 minutes |
19:41:59 | FromGitter | <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:06 | skrylar | no |
19:42:13 | FromGitter | <zacharycarter> def-pri-pub: okay sweet |
19:42:39 | PMunch | Not really |
19:42:39 | FromGitter | <zacharycarter> def-pri-pub: I think we should be using uint32s in it isntead of float64s |
19:42:41 | def-pri-pub | You'll probably have to adjust the examples again, and maybe that one `boneTransformation()` function again, but I think you |
19:42:45 | def-pri-pub | 'you'll like it again |
19:42:49 | PMunch | And I don't have a lot of time so I might not even get around to it |
19:42:51 | FromGitter | <zacharycarter> okay cool |
19:42:51 | def-pri-pub | like it better* |
19:43:01 | def-pri-pub | (just some last minute testing) |
19:43:05 | FromGitter | <zacharycarter> well if you have questions or need help with soLoud I can give a hand |
19:43:24 | FromGitter | <zacharycarter> but I have no experience with it outside of trivial examples, I haven't played with pitch shifting |
19:43:24 | skrylar | sound libraries are.. interesting |
19:43:38 | skrylar | Pitch shifting is just playing back faster iirc |
19:43:38 | FromGitter | <zacharycarter> you might want to look at yuri's sound library |
19:43:48 | FromGitter | <zacharycarter> @yglukhov |
19:44:00 | def-pri-pub | Can 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:03 | skrylar | Well 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:16 | FromGitter | <zacharycarter> def-pri-pub: yeah I can do the pr whenever, I'll be around all afternoon / evening |
19:44:25 | skrylar | https://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:16 | FromGitter | <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:13 | def-pri-pub | @zacharycarter: PR is up: https://github.com/zacharycarter/zengine/pull/35 |
19:53:31 | def-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:56 | FromGitter | <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:53 | Arrrr | no idea, maybe `nimble test nidb?` |
20:23:09 | dom96 | xmonader: withDir "tests"... and then you're executing "tests/tester" |
20:24:56 | FromGitter | <xmonader> nimble test and nimble test nidb give the same error |
20:25:11 | FromGitter | <xmonader> @dom96 yup ⏎ ⏎ ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59b44e27cfeed2eb65ed1bf7] |
20:27:57 | * | haha_ quit (Quit: haha_) |
20:29:31 | dom96 | remove the `tests/` and it should work |
20:30:57 | * | Vladar quit (Quit: Leaving) |
20:31:52 | FromGitter | <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:16 | FromGitter | <Bennyelg> Guys, Before I look deep into the book, any quick example of generics and macros? |
20:34:53 | * | haha_ joined #nim |
20:39:18 | FromGitter | <zacharycarter> def-pri-pub: tetris is all done |
20:44:39 | FromGitter | <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:22 | FromGitter | <zacharycarter> I'm just going to go with uint64 and we can revert back if need be |
20:51:23 | tjyoco | I 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:23 | FromGitter | <Bennyelg> not working https://nim-lang.org/docs/db_odbc.html |
20:59:28 | FromGitter | <zacharycarter> what's not? |
20:59:32 | FromGitter | <zacharycarter> oh |
20:59:47 | FromGitter | <Bennyelg> cant read docs |
20:59:54 | FromGitter | <zacharycarter> https://nim-lang.org/docs/odbcsql.html |
21:00:10 | FromGitter | <Bennyelg> thanks |
21:00:14 | FromGitter | <zacharycarter> |
21:00:51 | * | haha_ quit (Quit: haha_) |
21:01:14 | FromGitter | <zacharycarter> yay tetris done |
21:04:43 | FromGitter | <zacharycarter> (https://files.gitter.im/nim-lang/Nim/UX5J/tetris.gif) |
21:05:28 | FromGitter | <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:53 | FromGitter | <ephja> nice |
21:40:35 | FromGitter | <zacharycarter> thanks |
21:40:45 | * | claudiuinberlin quit (Quit: Textual IRC Client: www.textualapp.com) |
21:47:06 | FromGitter | <ephja> implement efficient light refraction next! we need a killer app |
21:48:28 | FromGitter | <zacharycarter> I'm curious to see what people can cook up with Nim godot |
21:48:49 | FromGitter | <zacharycarter> that new renderer they have looks noice |
21:49:53 | * | solitudesf quit (Ping timeout: 248 seconds) |
21:50:01 | federico3 | godot? |
21:50:22 | FromGitter | <zacharycarter> https://www.youtube.com/watch?v=XptlVErsL-o |
21:50:37 | FromGitter | <zacharycarter> they have a way to write code in Nim for this engine now |
21:51:31 | FromGitter | <zacharycarter> @endragor published the bindings, I haven't used them yet |
21:52:01 | FromGitter | <zacharycarter> def makes me question whether I should continue with zengine or not :P |
21:52:12 | FromGitter | <zacharycarter> but I have nothing better to do so I might as well |
21:56:20 | FromGitter | <ephja> https://github.com/djbozkosz/Light-Propagation-Volumes |
21:57:00 | FromGitter | <zacharycarter> good link |
21:57:17 | FromGitter | <ephja> I just found that thesis and one of the scenes is similar |
21:57:43 | FromGitter | <zacharycarter> I def need to do more with lighting with zengine |
21:57:49 | FromGitter | <zacharycarter> I was going to start looking into PBR materials soon |
21:57:50 | FromGitter | <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:36 | def-pri-pub | zacharycarter: 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:51 | def-pri-pub | Can you go back and reset it |
21:59:52 | def-pri-pub | ? |
22:00:07 | def-pri-pub | I have to run off now, but we can discuss this in the commit comments or over IRC later |
22:00:23 | FromGitter | <zacharycarter> yeah let's talk about it because I made a few changes, one is totally necessary |
22:00:28 | FromGitter | <zacharycarter> the data type conversions can be discussed |
22:00:38 | FromGitter | <zacharycarter> but I had to remove that division by timer frequency as that logic isn't correct |
22:01:00 | FromGitter | <zacharycarter> I'll leave some comments in the commit |
22:01:06 | FromGitter | <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:24 | FromGitter | <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:55 | def-pri-pub | zacharycarter: 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:20 | def-pri-pub | But right now with the `* 1000`, it's giving of time in milliseonds (where it needs to be seconds) |
23:10:14 | FromGitter | <zacharycarter> okay I gotcha |
23:10:20 | * | yglukhov joined #nim |
23:10:21 | FromGitter | <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:13 | FromGitter | <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:28 | FromGitter | <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:22 | skrylar | boop |
23:15:42 | FromGitter | <zacharycarter> nm def-pri-pub we're good |
23:16:03 | * | Jesin quit (Quit: Leaving) |
23:16:30 | FromGitter | <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 |