<<21-01-2017>>

00:05:31*Trustable quit (Remote host closed the connection)
00:15:36*bjz quit (Ping timeout: 240 seconds)
00:16:06*bjz joined #nim
00:20:42*Vladar quit (Quit: Leaving)
00:36:29*adeohluwa joined #nim
00:38:08*libman joined #nim
00:44:12*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
00:48:45*bjz joined #nim
00:52:11*vlad1777d quit (Quit: Leaving)
00:56:01*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
01:04:35*chemist69 quit (Ping timeout: 256 seconds)
01:06:07*bjz joined #nim
01:07:24*libman quit (Ping timeout: 240 seconds)
01:12:29*libman joined #nim
01:16:58*libman quit (Ping timeout: 248 seconds)
01:19:56*adeohluwa quit (Remote host closed the connection)
01:21:42*libman joined #nim
01:27:15*kunev quit (Ping timeout: 252 seconds)
01:28:29*kunev joined #nim
01:30:23*handlex joined #nim
01:31:39*chemist69 joined #nim
01:33:06*handlex quit (Client Quit)
01:45:31FromGitter<timeyyy> Ha
01:46:16FromGitter<timeyyy> You can use an else with for in python
01:46:19*couven92 quit (Read error: Connection reset by peer)
02:04:55*eizua joined #nim
02:27:40*chemist69 quit (Ping timeout: 240 seconds)
02:41:49*chemist69 joined #nim
03:10:05*Snircle quit (Ping timeout: 255 seconds)
03:22:32*dddddd quit (Remote host closed the connection)
03:33:36*rtr_ quit (Remote host closed the connection)
03:35:26*Snircle joined #nim
03:43:14*Snircle quit (Quit: Textual IRC Client: www.textualapp.com)
04:05:40*libman quit (Ping timeout: 240 seconds)
04:06:06FromGitter<Varriount> @timeyyy I use that occasionally.
04:07:30*rtr_ joined #nim
04:07:43FromGitter<zacharycarter> Hi - I'm trying to wrap a C header file with nim and I'm running into some errors I'm not sure how to solve. I've created a gist with the header file, nim file created by c2nim, and an error log - https://gist.github.com/zacharycarter/5f49108595fee8437a82ae78a0f614c2
04:10:42*libman joined #nim
04:15:13FromGitter<zacharycarter> not sure how to mix two bitmasks :/
04:20:20Araqzacharycarter: you need to modify the 'enum' definitions so that they produce valid Nim enums
04:20:28Araqusually this means something like
04:21:46Araqenum nk_widget_states {
04:21:46Araq NK_WIDGET_STATE_MODIFIED = (1 << (1)),
04:21:46Araq NK_WIDGET_STATE_INACTIVE = (1 << (2)),
04:21:48Araq NK_WIDGET_STATE_ENTERED = (1 << (3)),
04:21:50Araq NK_WIDGET_STATE_HOVER = (1 << (4)),
04:21:52Araq NK_WIDGET_STATE_ACTIVED = (1 << (5)),
04:21:54Araq NK_WIDGET_STATE_LEFT = (1 << (6))
04:21:56Araq};
04:22:18FromGitter<zacharycarter> gotcha thank you @Araq
04:23:14Araq#define NK_WIDGET_STATE_HOVERED = orflags(NK_WIDGET_STATE_HOVER|NK_WIDGET_STATE_MODIFIED)
04:23:28Araqthen have something like
04:24:08Araqtemplate orflags(a, b): untyped = type(a)(a.cint or b.cint)
04:24:34AraqI mean
04:25:02Araq#define NK_WIDGET_STATE_HOVERED = orflags(NK_WIDGET_STATE_HOVER, NK_WIDGET_STATE_MODIFIED)
04:25:23Araqhttp://nim-lang.org/docs/c2nim.html#embedding-nim-code
04:25:42Araqyou can have this template definition in the C code :-)
04:26:10FromGitter<zacharycarter> okay awesome thank you :) I'll give that a shot
04:26:54Araqthe goal should always be to modify the header file so that it produces a Nim file that must not be modified at all
04:26:57*eizua quit (Remote host closed the connection)
04:27:11FromGitter<zacharycarter> gotcha
04:27:29Araqso that you can diff & patch against a new version of the header file easily
04:28:56FromGitter<zacharycarter> makes sense
04:29:39*chemist69 quit (Ping timeout: 276 seconds)
04:31:30*chemist69 joined #nim
04:37:20*arnetheduck quit (Ping timeout: 245 seconds)
04:48:11*rtr_ quit (Quit: Leaving...)
04:57:13FromGitter<Varriount> And now for something different: https://www.youtube.com/watch?v=hHRy-gA9rTU
05:03:02*abruanese quit (Read error: Connection reset by peer)
05:08:13*brson quit (Quit: leaving)
05:26:37*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
05:48:47*bjz joined #nim
06:34:42*chemist69 quit (Ping timeout: 252 seconds)
06:35:18*chemist69 joined #nim
07:04:05Araqhttps://github.com/nim-lang/ui
07:04:10Araqhigh level wrapper has arrived
07:53:47libmanYaaay!
07:56:41*Sembei joined #nim
08:02:32libman(Although it's really just a GTK wrapper, right? No reason for me to get too excited.)
08:08:00*rokups joined #nim
08:12:01*libman quit (Ping timeout: 255 seconds)
08:15:51*Kingsquee quit (Quit: https://i.imgur.com/qicT3GK.gif)
08:17:17*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
08:23:11*Sembei quit (Ping timeout: 256 seconds)
08:28:44*bjz joined #nim
08:48:10FromGitter<Varriount> libman: It's not a GTK wrapper (or at least not directly) it uses LonG I
08:48:18FromGitter<Varriount> *libui
08:56:49*Trustable joined #nim
09:13:08*yglukhov joined #nim
09:13:32*yglukhov quit (Remote host closed the connection)
09:15:28*yglukhov joined #nim
09:19:31*yglukhov quit (Ping timeout: 240 seconds)
09:22:31*GustavoLapasta joined #nim
09:30:55*yglukhov joined #nim
09:51:13*yglukhov quit (Remote host closed the connection)
09:58:35*Vladar joined #nim
10:12:53*yglukhov joined #nim
10:13:39*yglukhov quit (Remote host closed the connection)
10:14:16*yglukhov joined #nim
10:16:51FromGitter<timeyyy> One issue left in the roadmap for 1.0!
10:16:58FromGitter<ephja> it wouldn't be very suitable as an official candidate had it only supported GTK
10:18:24*yglukhov quit (Ping timeout: 240 seconds)
10:22:13FromGitter<ephja> I'm sure many people appreciate such an addition. the various low level bindings that we have are tedious to use. I like nimx since it also supports js/canvas, but it's still in development and might not ever have a particularly native look
10:34:34dom96Araq: no readme?
10:35:14dom96lol https://github.com/nim-lang/ui/pull/1/files
10:35:17dom96I totally forgot I made this