00:02:07 | dom96 | yep |
00:04:30 | PMunch | Hmm /home/peter/.nimble/pkgs/jester-#head/jester.nim(351, 11) Error: undeclared field: 'data' |
00:05:43 | * | scriptkiddy quit (Quit: Leaving) |
00:05:52 | PMunch | Created by this: http://ix.io/t2E |
00:06:10 | PMunch | Full error message: http://ix.io/t2F |
00:06:41 | PMunch | I'm guessing that it's the data:JsonNode which it has trouble with |
00:07:45 | PMunch | Apparently not, tried renaming it to dataJSON and I got the same error (with 'data') |
00:09:23 | PMunch | Huh, doesn't nimble have a way to upgrade packages? |
00:09:54 | FromGitter | <zacharycarter> upgrade packages? |
00:09:59 | FromGitter | <zacharycarter> you can specify the version |
00:10:21 | PMunch | What do you mean? |
00:10:37 | FromGitter | <zacharycarter> I don't really understand what you mean by upgrade packages |
00:10:37 | PMunch | I was thinking that maybe this has been fixed in a newer version of jester |
00:11:06 | FromGitter | <zacharycarter> you can specify the version of a dependency you want to use, or if you're talking about being able to upgrade the version of an already public package, I think you just bump the version |
00:11:09 | PMunch | So I wanted to get nimble to upgrade that package |
00:11:12 | FromGitter | <stisa> I think `nimble install <pkg>` installs latest, or `nimble install <pkg>#head` to install from head |
00:11:52 | PMunch | So to upgrade you simply run "nimble install <pkg>" and it pulls the newest |
00:11:53 | PMunch | Hmm |
00:12:16 | PMunch | No.. That just installed a new version along with the old.. |
00:12:29 | PMunch | Well, I guess that is better than nothing.. |
00:15:42 | PMunch | Found what was wrong by the way. Jester uses response for it's responses, so when I created a variable response and did resp $(response) it got confused.. |
00:27:48 | PMunch | http://ix.io/t2J |
00:28:24 | PMunch | Hmm, line 49: Error: type mismatch: got (bool) but expected 'FutureBase = ref FutureBase:ObjectType' |
00:28:35 | PMunch | What's that about |
00:39:31 | PMunch | dom96, any ideas? |
00:41:22 | * | Tiberium quit (Ping timeout: 258 seconds) |
01:01:50 | * | chemist69 quit (Disconnected by services) |
01:01:55 | * | chemist69_ joined #nim |
01:10:24 | * | rauss quit (Quit: WeeChat 1.7.1) |
01:11:17 | * | rauss joined #nim |
01:20:44 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
01:24:02 | * | Snircle joined #nim |
01:36:25 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
01:39:35 | * | Snircle joined #nim |
01:44:37 | * | pie_ quit (Remote host closed the connection) |
02:03:18 | * | chemist69_ quit (Ping timeout: 264 seconds) |
02:04:25 | * | Trioxin joined #nim |
02:06:30 | * | xaxisx joined #nim |
02:08:22 | * | xaxisx quit (Client Quit) |
02:08:45 | * | xaxisx joined #nim |
02:12:33 | * | dddddd quit (Remote host closed the connection) |
02:16:59 | * | chemist69 joined #nim |
02:20:46 | Trioxin | gonna try to make a sick variation of game of life in Nim. probably gonna fail |
02:25:13 | zachcarter | Trioxin: what are you going to use for rendering? |
02:25:27 | Trioxin | was looking at https://github.com/fragworks/frag |
02:25:34 | zachcarter | oh that’s my framework haha |
02:25:41 | Trioxin | :P |
02:26:11 | zachcarter | it’s still very rough around the edges but I’ve managed to build a space invaders clone with it |
02:26:53 | zachcarter | I’m working on documentation and more samples atm / also easing distribution to more platforms |
02:27:04 | Trioxin | nice |
02:27:22 | zachcarter | but if you do want to try making games with Nim there are definitely some options out there, which one suits you best probably depends on what you’re trying to build |
02:27:52 | Trioxin | I was thinking a game of life with a more complex ruleset. maybe 3d |
02:28:08 | Trioxin | like my own petre dish |
02:28:11 | zachcarter | currently there aren’t a lot of 3d options for Nim |
02:28:16 | zachcarter | the only one I know of is : |
02:28:51 | zachcarter | https://github.com/krux02/opengl-sandbox |
02:29:02 | zachcarter | I plan on adding 3d to frag, but that’s far off in the future |
02:30:07 | Trioxin | oo that looks nice too |
02:30:33 | zachcarter | yeah krux02 has done good work on it |
02:31:00 | zachcarter | there’s also nimgame2 which is once again 2d only |
02:31:10 | zachcarter | https://vladar4.github.io/nimgame2/index.html |
02:31:33 | Trioxin | maybe I could actually get a 2d android game that will sell though |
02:32:03 | Trioxin | 2d much easier than what this opengl code looks to be |
02:32:15 | zachcarter | I’m not sure anything supports android all that well yet - maybe nimgame2 but I”m not sure |
02:32:22 | zachcarter | frag has run on android but I’m working on improving it atm |
02:32:29 | zachcarter | I don’t think everything works yet / has been tested on android |
02:33:38 | zachcarter | the main difference between nimgame2 and frag is nimgame2 uses the sdl2 renderer while frag uses |
02:33:51 | zachcarter | https://github.com/bkaradzic/bgfx |
02:41:57 | Trioxin | I intend to use this project to fully learn Nim. I've only used it to speed up some rudimentary backend components of projects thus far. I was using Go for a while too. The speed at which I could get things running in that was impressive but Nim is a far more impressive language. Is concurrency as easy in Nim? I haven't done that yet. |
02:43:00 | * | sz0 quit (Quit: Connection closed for inactivity) |
02:48:48 | PMunch | zachcarter, SDLGamelib was written with Android in mind :P |
02:49:25 | PMunch | Coming with some inputs on that soon as well I hope :) |
02:50:42 | FromGitter | <ftsf> o/ good morning |
02:51:15 | PMunch | Morning :S Does that mean I should've been to bed O_o |
02:54:18 | FromGitter | <ftsf> at some point it's recommended |
03:09:53 | FromGitter | <zacharycarter> morning |
03:16:22 | * | couven92 quit (Quit: Client Disconnecting) |
03:52:17 | * | PMunch quit (Quit: leaving) |
04:31:54 | Trioxin | is there anything in the Nim standard library to detect if a Windows user moves the mouse or presses a key on the keyboard? I don't mean in any specific application window. In general |
04:52:38 | * | Snircle quit (Quit: Textual IRC Client: www.textualapp.com) |
04:53:05 | * | chemist69 quit (Ping timeout: 240 seconds) |
05:13:20 | * | chemist69 joined #nim |
05:16:49 | * | BennyElg_ joined #nim |
05:19:37 | * | BennyElg quit (Ping timeout: 240 seconds) |
05:33:28 | * | sz0 joined #nim |
05:46:13 | * | m712 quit (Quit: bye-nyan!) |
05:49:49 | * | m712 joined #nim |
05:50:16 | * | nsf joined #nim |
06:16:28 | * | rauss quit (Quit: WeeChat 1.7.1) |
06:19:19 | * | sz0 quit (*.net *.split) |
06:19:19 | * | zachcarter quit (*.net *.split) |
06:19:19 | * | EastByte quit (*.net *.split) |
06:19:19 | * | jtremback_____ quit (*.net *.split) |
06:19:25 | * | EastByte_ joined #nim |
06:19:27 | * | zachcarter joined #nim |
06:20:05 | * | sz0 joined #nim |
06:20:54 | * | jtremback_____ joined #nim |
06:34:40 | * | vlad1777d joined #nim |
06:49:36 | * | Vladar joined #nim |
06:54:02 | * | gokr joined #nim |
07:09:46 | * | yglukhov joined #nim |
07:19:59 | * | yglukhov quit (Remote host closed the connection) |
07:29:37 | FromGitter | <ftsf> Trioxin, there's a wrapper for WinAPI which I'm sure can do that? |
08:05:57 | euantor | dom96: Unfortunately Norton dislikes the choosenim-0.1.0_windows_1386.exe provided on GitHub :( Not sure if there's anything you can do about that, just thought it best to warn you |
08:06:17 | euantor | https://usercontent.irccloud-cdn.com/file/dol5LB9R/Norton%20Choosenim |
08:07:09 | euantor | Also seems like it installs Mingw32 even if it's already in the PATH. Not a big deal, I can work with that |
08:09:11 | * | yglukhov joined #nim |
08:15:45 | * | yeeve quit (Remote host closed the connection) |
08:23:24 | FromGitter | <andreaferretti> any chance https://github.com/nim-lang/Nim/pull/5677 will be merged soon? |
08:23:52 | FromGitter | <andreaferretti> a lot of my libraries are broken on devel, but I do not dare to fix them until this PR lands |
08:42:28 | * | pie_ joined #nim |
08:45:36 | * | pie_ quit (Client Quit) |
08:49:01 | FromGitter | <andreaferretti> a separate question: if I run this example ⏎ ⏎ ```code paste, see link``` ⏎ ⏎ I get `ref 0x7f417b16c050 --> [1, 2]`. I would expect to see 10 values: the first five being 1, 2, 3, 4, 5 and the rest garbage (or zero). Is this just a bug in `repr` or is there a problem with the pointer allocation? [https://gitter.im/nim-lang/Nim?at=5910310033e9ee771c85552f] |
09:22:46 | * | Arrrr joined #nim |
09:22:46 | * | Arrrr quit (Changing host) |
09:22:46 | * | Arrrr joined #nim |
09:24:51 | FromGitter | <Araq> good question. I would expect the same as you, your mental model seems spot on |
09:30:51 | * | couven92 joined #nim |
09:35:33 | * | Trioxin quit (Remote host closed the connection) |
09:37:40 | FromGitter | <andreaferretti> I think this may be related to some memory corruption bugs I was experiencing with CUDA |
09:37:45 | FromGitter | <andreaferretti> but I cannot tell for sure |
09:42:20 | * | yeeve joined #nim |
10:20:30 | * | fredrik92 joined #nim |
10:25:09 | * | zachcarter quit (Quit: zachcarter) |
10:37:40 | * | arnetheduck joined #nim |
10:50:03 | * | zachcarter joined #nim |
11:02:07 | * | Snircle joined #nim |
11:02:32 | * | fredrik92 quit (Quit: Disconnecting) |
11:31:14 | * | Tiberium joined #nim |
11:45:21 | * | gokr quit (Ping timeout: 260 seconds) |
12:04:02 | * | gokr joined #nim |
12:12:42 | * | zachcarter quit (Quit: zachcarter) |
12:32:02 | * | gokr quit (Read error: Connection reset by peer) |
12:34:07 | * | zahary quit () |
12:34:20 | * | zahary joined #nim |
12:43:46 | dom96 | euantor: stupid norton ;\ |
12:44:17 | euantor | Yep, unfortunately we're stuck with it at work |
12:51:25 | * | gokr joined #nim |
12:56:17 | * | Vladar quit (Quit: Leaving) |
12:57:09 | dom96 | euantor: Does Norton also complain about the zip file? |
12:58:33 | euantor | Once I unzip it it complains about the .exe included within the zip |
13:02:03 | * | ftsf_ joined #nim |
13:03:04 | * | PMunch joined #nim |
13:03:19 | * | zachcarter joined #nim |
13:10:26 | FromGitter | <ftsf> what is the complaint? |
13:11:14 | euantor | It reckons it's a Heur.AdvMLB (Heuristic Virus) |
13:11:22 | euantor | I included a screenshot above |
13:15:44 | Tiberium | maybe it's because "Very few users" and "very new" |
13:15:56 | dom96 | hrm |
13:16:14 | dom96 | That's weird. I thought it was because of the self-extracting archive. |
13:16:21 | Tiberium | you can send this file to them maybe |
13:16:33 | dom96 | Maybe it's because I statically compiled zlib in there? |
13:16:42 | dom96 | oh no, I know why. |
13:17:02 | dom96 | The .exe includes another .exe (for the proxy) |
13:17:07 | dom96 | That's probably why :\ |
13:19:25 | Tiberium | dom96, oh, https://virustotal.com/file/d763f5b255187d6db8459406b1ea0f78d005772c77fe48a6cf83da7d018cf670/analysis/1494249471/ |
13:19:47 | Tiberium | only unpopular antiviruses lol |
13:21:23 | dom96 | Yeah, they must be detecting the embedded .exe |
13:21:34 | dom96 | That's annoying |
13:37:44 | * | bbl__ quit (Ping timeout: 245 seconds) |
14:05:21 | * | rauss joined #nim |
14:06:08 | * | Tiberium quit (Quit: Leaving) |
14:11:46 | * | gokr quit (Ping timeout: 240 seconds) |
14:17:01 | FromGitter | <evacchi> hey @dom96 how I can help you track down my problem choosenim ? it happened to me consistently with both my machines (both macos) |
14:17:21 | FromGitter | <evacchi> (re: https://github.com/dom96/choosenim/issues/10#issuecomment-299864314) |
14:18:26 | dom96 | what messages does ``choosenim`` output when you run ``choosenim stable``? |
14:19:02 | FromGitter | <evacchi> % choosenim stable ⏎ ⏎ ``` Info: Version 0.16.0 already selected``` [https://gitter.im/nim-lang/Nim?at=59107e59d1a7716a0aa54948] |
14:19:16 | FromGitter | <evacchi> when it built nim the first time I didn't see anything strange |
14:21:02 | dom96 | Are you sure it didn't give you any warnings? |
14:21:22 | dom96 | anyway, check ``which nimble`` and see where that points to. |
14:21:32 | FromGitter | <evacchi> let me run it again |
14:21:33 | FromGitter | <evacchi> /Users/evacchi/.nimble/bin/nimble |
14:21:49 | FromGitter | <evacchi> how do I erase the installed version ? |
14:22:01 | FromGitter | <evacchi> rm -r ~/.nimble ? |
14:23:02 | dom96 | rm -r ~/.choosenim |
14:23:05 | dom96 | keep the ~/.nimble |
14:23:32 | FromGitter | <evacchi> alright |
14:25:05 | FromGitter | <evacchi> nope |
14:25:35 | FromGitter | <evacchi> no warnings, still the same error |
14:26:12 | FromGitter | <evacchi> btw `/Users/evacchi/.nimble/lib/system.nim` really is missing |
14:26:43 | FromGitter | <evacchi> actually there is no `lib` |
14:27:49 | FromGitter | <evacchi> maybe it is supposed to symlink `~/.choosenim/toolchains/nim-0.16.0/lib` ? |
14:29:59 | dom96 | what was the output? |
14:30:13 | FromGitter | <evacchi> same as on github |
14:30:29 | FromGitter | <evacchi> ```code paste, see link``` [https://gitter.im/nim-lang/Nim?at=59108108c89bb14b5ae109eb] |
14:30:29 | dom96 | no, output from choosenim |
14:31:06 | dom96 | oh right, sorry. |
14:31:40 | dom96 | Sadly 0.16.0 includes Nimble 0.8.2 which is so outdated that it cannot find Nim's standard library. |
14:32:48 | dom96 | so there isn't much I can do expect re-release 0.16.0 |
14:32:53 | dom96 | *except |
14:33:29 | dom96 | or maybe I could get choosenim to install a newer Nimble no matter the Nim version |
14:33:33 | FromGitter | <evacchi> oh! |
14:33:39 | FromGitter | <evacchi> that's why |
14:34:27 | dom96 | and no, the standard library isn't supposed to be in `/Users/evacchi/.nimble/lib/` |
14:34:28 | FromGitter | <evacchi> in fact, if I build `#head`, it works ( well actually nim c sefgaults, but might be another bug :D ) |
14:34:41 | dom96 | yeah |
14:34:47 | dom96 | 'devel' and #head will work |
14:35:06 | dom96 | in fact, '#v0.16.0' should work too :P |
14:35:34 | FromGitter | <evacchi> huh! |
14:35:59 | FromGitter | <evacchi> let's see |
14:39:09 | FromGitter | <evacchi> nimble `#v0.16.0` works perfectly |
14:39:12 | dom96 | hrm, so what should I do. I guess grabbing the latest Nimble version would be fine, or better yet, I will create a 'stable' channel for Nimble too. |
14:40:13 | dom96 | Thanks for the bug report. Suggestions on how to fix this welcome :) |
14:42:36 | FromGitter | <evacchi> well IIRC in stable v0.16.0 nimsuggest was broken as well |
14:42:47 | FromGitter | <evacchi> how about release v0.16.1 with stable tools ? |
14:43:46 | FromGitter | <evacchi> then just point stable to that |
14:44:12 | * | zahary quit (Quit: Connection closed for inactivity) |
14:44:53 | dom96 | we need to release 0.17.0 anyway |
14:46:04 | * | vlad1777d_ joined #nim |
14:46:55 | FromGitter | <evacchi> then I guess you might hold the release for 0.17.0 |
14:47:07 | * | vlad1777d quit (Ping timeout: 240 seconds) |
14:48:29 | dom96 | hold the release of what? |
14:48:57 | FromGitter | <evacchi> I mean holding the announcement of `choosenim` as the official version picker |
14:50:05 | FromGitter | <evacchi> otherwise the default choice (0.16.0) would be broken, which isn't great IMO |
14:51:30 | dom96 | oh sure |
14:52:00 | dom96 | When 0.17.0 is released I might present it as an "experimental new way to install and keep Nim up to date" |
14:52:33 | dom96 | as long as no major bugs pop up |
14:53:00 | dom96 | but for now I just want you guys to test it :) |
14:53:24 | FromGitter | <evacchi> heh |
14:54:40 | FromGitter | <andreaferretti> is there a reason why libsvm lives in stdlib? |
14:54:46 | FromGitter | <andreaferretti> it seems abandoned and without tests |
14:55:06 | FromGitter | <andreaferretti> and it does not look like a core module for a stdlib |
14:55:37 | FromGitter | <evacchi> btw it is already looking good :-) |
14:59:26 | dom96 | andreaferretti: I'm guessing it's been in there for many years and can be moved to a Nimble package. |
15:00:47 | FromGitter | <andreaferretti> I think it would make more sense to move it |
15:01:11 | FromGitter | <andreaferretti> it is just a low level wrapper, so it is not very friendly anyway |
15:01:29 | FromGitter | <andreaferretti> I was trying to figure out how to use it, but there are no tests |
15:01:34 | dom96 | andreaferretti: please create an issue/PR |
15:03:07 | * | couven92 quit (Read error: Connection reset by peer) |
15:08:33 | * | nsf quit (Quit: WeeChat 1.7.1) |
15:14:50 | * | Jipok[m] quit (Ping timeout: 252 seconds) |
15:14:50 | * | ehmry[m] quit (Ping timeout: 252 seconds) |
15:14:50 | * | gggs quit (Ping timeout: 252 seconds) |
15:14:51 | * | gggs joined #nim |
15:14:51 | * | gggs quit (Changing host) |
15:14:52 | * | gggs joined #nim |
15:19:11 | * | Jipok[m] joined #nim |
15:20:56 | FromGitter | <andreaferretti> done |
15:21:01 | * | PMunch quit (Quit: leaving) |
15:21:32 | * | ehmry[m] joined #nim |
15:24:25 | * | adeohluwa joined #nim |
15:30:43 | * | Tiberium joined #nim |
15:37:05 | dom96 | thanks! |
15:43:02 | * | vopi181[m] quit (Read error: Connection reset by peer) |
15:43:02 | * | MrAxilus[m] quit (Remote host closed the connection) |
15:43:03 | * | dyce[m] quit (Read error: Connection reset by peer) |
15:43:03 | * | M-Quora quit (Read error: Connection reset by peer) |
15:43:04 | * | TheManiac quit (Write error: Connection reset by peer) |
15:43:04 | * | Guest73656[m] quit (Write error: Connection reset by peer) |
15:43:04 | * | erwana[m] quit (Read error: Connection reset by peer) |
15:43:05 | * | mindB quit (Remote host closed the connection) |
15:43:06 | * | jivank[m] quit (Read error: Connection reset by peer) |
15:43:08 | * | stisa quit (Read error: Connection reset by peer) |
15:43:13 | * | ehmry[m] quit (Read error: Connection reset by peer) |
15:43:13 | * | Jipok[m] quit (Read error: Connection reset by peer) |
15:43:13 | * | hohlerde quit (Read error: Connection reset by peer) |
15:43:31 | * | couven92 joined #nim |
15:43:50 | * | PMunch joined #nim |
15:44:32 | * | gggs quit (Ping timeout: 252 seconds) |
15:44:45 | * | gggs joined #nim |
15:46:44 | * | erwana[m] joined #nim |
15:46:54 | * | arnetheduck quit (Ping timeout: 240 seconds) |
15:50:13 | * | xaxisx quit (Quit: Leaving) |
15:50:17 | * | jtremback_____ quit () |
15:50:31 | * | jtremback_____ joined #nim |
15:51:53 | * | xaxisx joined #nim |
15:52:18 | * | MrAxilus[m] joined #nim |
15:52:18 | * | dyce[m] joined #nim |
15:52:19 | * | M-Quora joined #nim |
15:52:19 | * | ehmry[m] joined #nim |
15:52:24 | * | hohlerde joined #nim |
15:52:25 | * | jivank[m] joined #nim |
15:52:26 | * | stisa joined #nim |
15:52:26 | * | Jipok[m] joined #nim |
15:52:26 | * | vopi181[m] joined #nim |
15:52:26 | * | Guest73656[m] joined #nim |
15:52:26 | * | TheManiac joined #nim |
15:52:27 | * | mindB joined #nim |
15:57:31 | * | Trustable joined #nim |
16:04:10 | * | couven92 quit (Quit: Client Disconnecting) |
16:04:28 | * | couven92 joined #nim |
16:24:24 | * | ftsf_ quit (Ping timeout: 268 seconds) |
16:32:42 | * | Ven joined #nim |
16:33:06 | * | Ven is now known as Guest99433 |
16:48:09 | * | gokr joined #nim |
16:48:10 | * | xet7 quit (Quit: Leaving) |
16:50:28 | * | xet7 joined #nim |
16:52:23 | * | Arrrr quit (Read error: Connection reset by peer) |
17:16:27 | * | nsf joined #nim |
17:23:17 | * | yglukhov quit (Remote host closed the connection) |
17:31:35 | * | yglukhov joined #nim |
17:34:55 | * | brson joined #nim |
17:36:17 | * | yglukhov quit (Ping timeout: 272 seconds) |
17:40:29 | * | Guest99433 quit (Ping timeout: 260 seconds) |
17:41:41 | * | Ven joined #nim |
17:42:05 | * | Ven is now known as Guest31051 |
17:51:33 | * | BennyElg_ quit (Remote host closed the connection) |
17:52:08 | * | BennyElg joined #nim |
17:54:10 | * | adeohluwa quit (Quit: Connection closed for inactivity) |
17:56:54 | * | BennyElg quit (Ping timeout: 268 seconds) |
17:58:57 | * | Matthias247 joined #nim |
18:02:32 | * | Arrrr joined #nim |
18:03:39 | euantor | https://nim-lang.org/docs/lib.html is currently throwing a 404 - I assume that's not intentional? |
18:03:53 | * | user__ joined #nim |
18:05:35 | * | Trustable quit (Ping timeout: 240 seconds) |
18:13:39 | Tiberium | euantor, for index it's the same |
18:13:55 | Tiberium | dom96, Araq, something happened with a website? 404 for lib.html and https://nim-lang.org/docs/theindex.html |
18:14:04 | Tiberium | for every link under docs/ |
18:14:45 | dom96 | oops, sorry guys |
18:14:54 | dom96 | Trying to set up automatic rebuilds of the site |
18:15:09 | Tiberium | dom96, ah, ok :) |
18:16:18 | PMunch | Speaking of websites. I set up a webserver yesterday with a MySQL data storage and JSON API output, super simple! |
18:16:30 | dom96 | Should be restored now |
18:37:13 | * | couven92 quit (Quit: Client Disconnecting) |
18:37:52 | * | yglukhov joined #nim |
18:40:39 | * | Guest31051 quit (Ping timeout: 245 seconds) |
18:41:14 | * | Ven joined #nim |
18:41:38 | * | Ven is now known as Guest39520 |
19:05:03 | * | BennyElg joined #nim |
19:05:56 | * | vlad1777d_ quit (Quit: Leaving) |
19:11:25 | * | Guest39520 quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
19:12:09 | dom96 | Okay, looks like it's definitely working now :) |
19:12:15 | * | nsf quit (Quit: WeeChat 1.7.1) |
19:21:33 | * | freevryheid joined #nim |
19:21:39 | * | freevryheid is now known as fvs |
19:22:55 | FromGitter | <maiermic> is this a bug: http://stackoverflow.com/questions/43855621/conflicting-types-when-compiling-nim-and-sdl2-image-with-emscripten |
19:23:40 | fvs | hi, any suggestion on how to pass a callback to a karak component. I have a button component that sets text, style, etc but cannot figure out how to pass a cb proc to it so that different buttons can run different functions. |
19:24:13 | fvs | *karax |
19:25:54 | PMunch | fvs, did you look at the mediaplayer example? |
19:26:28 | PMunch | It has button(onclick=handler, key=Play) which then calls the handler proc |
19:26:38 | PMunch | And passes key as an argument to it |
19:26:53 | PMunch | https://github.com/pragmagic/karax/blob/master/examples/mediaplayer/mediaplayer.nim#L30 |
19:27:06 | fvs | PMunch, yes, it defines the callback within the component. I'd rather pass the callback to the component as I don't want to keep editing the component to define new functions. |
19:27:24 | PMunch | And that doesn't work? |
19:31:49 | Araq | fvs: the .component annoation |
19:31:55 | Araq | is currente |
19:31:59 | Araq | omg |
19:34:01 | Araq | is currently under-developed because I dunno how to do it really. IMO components are a contradiction to the whole immediate mode virtual DOM diff paradigm |
19:35:44 | * | dddddd joined #nim |
19:40:24 | * | Arrrr quit (Quit: Leaving.) |
19:42:57 | * | brson quit (Ping timeout: 272 seconds) |
19:50:52 | * | rauss quit (Quit: WeeChat 1.7.1) |
19:53:10 | * | rauss joined #nim |
19:53:32 | * | dddddd quit (Read error: Connection reset by peer) |
19:55:29 | yglukhov | Araq: hi, I'm trying to redo my type "mangling" macro that recursively traverses the type. it used getType, i'm changing it to getTypeImpl. is typeKind supposed to work in such context? it looks useful but behaves a bit flaky =) |
19:55:47 | FromGitter | <Varriount> @maiermic Looks like emscripten is picking up a different version of SDL than Nim |
20:01:28 | Araq | yglukhov: what do you mean? |
20:02:15 | yglukhov | Araq: getType is kinda deprecated, right? is `typeKind` deprecated as well or should i report bugs against it? |
20:03:30 | Araq | what's the alternative to typeKind? it's the thing you're supposed to use |
20:04:35 | PMunch | Hmm, I have a tween function which takes four parameters to describe the curve. Now I want to have something (like an enum) that holds commonly used curves, what would be the best thing to define that as? |
20:05:44 | * | brson joined #nim |
20:06:37 | Araq | PMunch: one idea, make the paramters a tuple/object and have common combination const tuples/objects that you can pass to it easily |
20:07:27 | PMunch | Yeah I've already defined a EaseParameters tuple type which can hold the parameters. |
20:09:10 | PMunch | But I was wondering what I should put it in |
20:10:04 | PMunch | A const object? |
20:12:44 | PMunch | An enum and a table? |
20:27:55 | Araq | I don't understand the question. const roundCurve = (1, 2, 3, 4); curve(roundCurve) |
20:28:30 | PMunch | Hmm |
20:28:42 | PMunch | That would make a whole lot of consts though.. |
20:29:13 | PMunch | I kind wanted to have the user call something like "initTween(EaseFunctions.easeInSine)" |
20:30:16 | PMunch | There are 24 preset curves |
20:30:51 | * | zachcarter quit (Ping timeout: 258 seconds) |
20:38:18 | yglukhov | Araq: ok thanks, i guess ill open an issue then |
20:42:28 | * | yglukhov quit (Remote host closed the connection) |
20:43:35 | * | rauss quit (Quit: WeeChat 1.7.1) |
20:47:58 | * | fvs left #nim ("leaving") |
21:05:21 | * | Tiberium quit (Remote host closed the connection) |
21:05:51 | PMunch | https://github.com/PMunch/SDLGamelib/commit/1d5c5998cae17795c47f3ce7203cb7db717e744d |
21:06:10 | PMunch | Updated my SDLGamelib. Now with many more features :) |
21:08:46 | * | yglukhov joined #nim |
21:20:45 | * | user__ quit (Remote host closed the connection) |
21:31:09 | * | zachcarter joined #nim |
21:32:12 | zachcarter | grr |
21:32:17 | zachcarter | I”m losing PMs from people with my irc client |
21:32:26 | zachcarter | federico3: did you PM me? |
21:33:16 | * | zachcarter quit (Client Quit) |
21:33:58 | * | zachcarter joined #nim |
21:45:18 | * | missingm8 joined #nim |
21:45:44 | * | missingm8 left #nim (#nim) |
21:50:17 | * | nsf joined #nim |
22:55:10 | * | rauss joined #nim |
23:01:25 | * | PMunch quit (Quit: leaving) |
23:02:55 | * | r4vi quit () |
23:03:12 | * | r4vi joined #nim |
23:06:19 | * | nsf quit (Quit: WeeChat 1.7.1) |
23:11:54 | * | def-pri-pub joined #nim |
23:15:54 | * | Matthias247 quit (Read error: Connection reset by peer) |
23:22:54 | * | gokr quit (Ping timeout: 240 seconds) |
23:25:22 | * | sz0 quit (Quit: Connection closed for inactivity) |