<< 09-06-2016 >>

00:04:41*desophos joined #nim
00:17:37*yglukhov joined #nim
00:21:45*yglukhov quit (Ping timeout: 246 seconds)
00:26:25*gokr quit (Ping timeout: 260 seconds)
00:37:18*k0pernicus quit (Quit: This computer has gone to sleep)
00:39:20*k0pernicus joined #nim
00:41:53*yglukhov joined #nim
00:46:03*yglukhov quit (Ping timeout: 244 seconds)
00:49:52*akaisora__ joined #nim
00:49:59*akaisora_ quit (Ping timeout: 258 seconds)
00:50:01*ics joined #nim
00:55:21*MyMind quit (Ping timeout: 244 seconds)
00:55:54*brson quit (Ping timeout: 276 seconds)
01:05:19*chemist69 quit (Ping timeout: 258 seconds)
01:05:37*MyMind joined #nim
01:18:05*yglukhov joined #nim
01:18:31*chemist69 joined #nim
01:22:21*yglukhov quit (Ping timeout: 240 seconds)
01:27:36*desophos_ joined #nim
01:32:13*desophos_ quit (Ping timeout: 252 seconds)
01:34:54*akaisora__ is now known as akaisora_
01:38:14*k0pernicus quit (Quit: Quitte)
01:42:18*yglukhov joined #nim
01:46:31*yglukhov quit (Ping timeout: 252 seconds)
02:01:27*jeffc_ joined #nim
02:02:48*chemist69 quit (Ping timeout: 250 seconds)
02:04:04*jeffc quit (Ping timeout: 244 seconds)
02:06:33*yglukhov joined #nim
02:11:18*yglukhov quit (Ping timeout: 276 seconds)
02:16:57*chemist69 joined #nim
02:30:45*yglukhov joined #nim
02:36:00*yglukhov quit (Ping timeout: 276 seconds)
02:51:07*user joined #nim
02:59:57*girvo joined #nim
03:00:03girvoCongrats on v0.14!
03:00:26girvoI'm stoked: my Result[T, E] implementation now works due to the generics fixes!
03:00:43girvohttp://hastebin.com/bunemipeqi.nim
03:01:00*_samdev_ joined #nim
03:02:26_samdev_just started taking a peak at this language, what are some things you have done with nim?
03:03:10girvoWritten a CLI tool for managing docker containers for web development, and am working on a daemon for automated deployment of docker images/containers across fleets of machines
03:06:52*yglukhov joined #nim
03:06:54_samdev_that's neat, TIL what docker was too
03:11:26*yglukhov quit (Ping timeout: 272 seconds)
03:14:43girvoI'm spoiled, my work lets me play with whatever I want for the most part ;)
03:20:53_samdev_I envy that. My work just has me pushing out boring .net apps
03:22:34_samdev_although i got lucky once and they let me make an angular site
03:31:15*yglukhov joined #nim
03:36:07*yglukhov quit (Ping timeout: 260 seconds)
03:39:35*brson joined #nim
03:48:01*brson quit (Ping timeout: 240 seconds)
03:55:29*yglukhov joined #nim
03:57:59*user quit (Remote host closed the connection)
03:59:47*yglukhov quit (Ping timeout: 250 seconds)
04:11:35*akaisora_ quit (Read error: Connection reset by peer)
04:15:13*_samdev_ quit (Quit: Page closed)
04:16:44*chug joined #nim
04:31:48*yglukhov joined #nim
04:36:09*yglukhov quit (Ping timeout: 258 seconds)
04:50:02*der-landgraf quit (Quit: WeeChat 1.5)
04:50:36*chug quit (Quit: Leaving)
04:53:42*der-landgraf joined #nim
04:53:58*der-landgraf quit (Changing host)
04:53:58*der-landgraf joined #nim
04:57:56*endragor joined #nim
05:08:01*yglukhov joined #nim
05:12:50*yglukhov quit (Ping timeout: 260 seconds)
05:23:23*r4vi quit (Ping timeout: 250 seconds)
05:23:23*DecoPerson_ quit (Ping timeout: 250 seconds)
05:23:23*zielmicha quit (Ping timeout: 250 seconds)
05:24:15*ivan quit (Ping timeout: 250 seconds)
05:25:05*ics quit (Ping timeout: 260 seconds)
05:25:40*NhanH quit (Ping timeout: 260 seconds)
05:26:36*DecoPerson_ joined #nim
05:31:51*ics joined #nim
05:32:23*yglukhov joined #nim
05:32:44*zielmicha joined #nim
05:33:30*NhanH joined #nim
05:33:55*r4vi joined #nim
05:36:34*ivan joined #nim
05:36:45*yglukhov quit (Ping timeout: 246 seconds)
06:06:43*ivan quit (Ping timeout: 250 seconds)
06:08:24*yglukhov joined #nim
06:12:41*endragor_ joined #nim
06:13:06*yglukhov quit (Ping timeout: 276 seconds)
06:16:01*endragor quit (Ping timeout: 240 seconds)
06:20:27*ivan joined #nim
06:28:24*endragor_ quit (Remote host closed the connection)
06:29:03*endragor joined #nim
06:32:47*yglukhov joined #nim
06:37:03*yglukhov quit (Ping timeout: 244 seconds)
06:56:57*yglukhov joined #nim
07:01:51*yglukhov quit (Ping timeout: 276 seconds)
07:02:44*zodiak joined #nim
07:04:56*zodiak_ quit (Ping timeout: 244 seconds)
07:05:23*gokr joined #nim
07:06:02*miere joined #nim
07:07:25miereTIME
07:07:41miereUSERINFO
07:09:56*Trustable joined #nim
07:23:26girvoHoly god-damn the generics system is way better than before.
07:24:03girvoI implemented a right-biased Either functor (not a monad yet, got some more methods to implement) and it works perfectly, including map!
07:27:54*PMunch joined #nim
07:28:17girvoOnly slightly awkward part is needing to let the "Left" and "Right" procs the full type signature, but that's honestly not too surprising
07:28:41girvoOptional[T] can elide it, because it's only ever getting a single type, whereas we have two types to deal with
07:32:41girvohttps://gist.github.com/girvo/81f96c0fcddccb4541ae59287f999a0b
07:33:06*yglukhov joined #nim
07:33:41girvoBuilt on top of "optional_t" for now -- I think with v0.14 it'll become far easier to implement applicatives et al.
07:37:29*yglukhov quit (Ping timeout: 244 seconds)
07:45:23girvoHeck you even even pattern match on "kind"! Gosh this is awesome. I'm super happy now, all my code that I wrote and wondered why it wasn't working is working now heh
07:48:14Araqwell 260 bugfixes surely make a difference
07:49:29*yglukhov joined #nim
07:53:54*euantor joined #nim
07:54:28*yglukhov quit (Ping timeout: 264 seconds)
08:00:13*girvo quit (Ping timeout: 244 seconds)
08:13:42*bjz_ joined #nim
08:15:01*bjz quit (Ping timeout: 250 seconds)
08:21:08*irrequietus joined #nim
08:31:10*desophos quit (Read error: Connection reset by peer)
08:45:35*yglukhov joined #nim
08:48:22euantorI assume it's intended that varargs cannot be passed to an async proc?
08:48:35euantorKind of scuppered my plans :(
08:49:29*Arrrr joined #nim
08:52:09euantorThere's also no way to add extra headers tp requests with AsyncHttpClient by the look of it.
08:52:56Araqso pass a seq instead
08:54:28euantorYep, I can do that, or refactor
08:54:40euantorWhich is what I'm now doing
08:55:20euantorBefore I had a proc `get()` that took a path and `varargs[GetParameter]` (where `GetParameter` is a tuple of key/value.
08:55:31euantorNow I build the URL before the get and just pass the path
09:09:09*gokr quit (Ping timeout: 250 seconds)
09:09:33*endragor quit (Ping timeout: 246 seconds)
09:09:59*Salewski joined #nim
09:11:46*Jesin quit (Ping timeout: 258 seconds)
09:12:27Salewski"Which allows you to specify the amount of time that it should spend collecting memory." Is "collecting memory" the best term available in native English?
09:14:47SalewskiAt least, asking Google showed that it is not used that often, and in german it sounds a bit strange. But seems to be fine for Manning people.
09:14:56*ics quit (Quit: Connection closed for inactivity)
09:21:02*filcuc joined #nim
09:22:38SalewskiWell not easy, I think I would write "time that it should spend for the garbage collection process"
09:25:15SalewskiAnd of course, it is more "the uninteruptable time period" but maybe uninteruptable is not an english word. Bye
09:25:18*Salewski quit ()
09:27:05*Sembei joined #nim
09:29:59*euantor quit (K-Lined)
09:32:09*Pisuke joined #nim
09:34:30*fastrom joined #nim
09:34:46*Sembei quit (Ping timeout: 244 seconds)
09:34:51*endragor joined #nim
09:35:03*gokr joined #nim
09:40:04*Pisuke quit (Ping timeout: 264 seconds)
09:40:09*Jesin joined #nim
09:40:32*Sembei joined #nim
09:40:53*gokr quit (Read error: Connection reset by peer)
09:45:39*Sembei quit (Ping timeout: 276 seconds)
10:00:08*gokr joined #nim
10:00:57*Sembei joined #nim
10:13:57*Sembei quit (Ping timeout: 246 seconds)
10:32:31*Sembei joined #nim
10:41:55*bjz joined #nim
10:43:38*bjz_ quit (Ping timeout: 272 seconds)
10:47:15*elrood joined #nim
10:53:08*Gonzih quit (Ping timeout: 272 seconds)
10:56:37*girvo joined #nim
11:00:41*girvo quit (Ping timeout: 240 seconds)
11:04:32*arnetheduck joined #nim
11:10:04*Gonzih joined #nim
11:21:30*Sembei quit (Ping timeout: 246 seconds)
11:30:26*Demon_Fox quit (Quit: Leaving)
11:44:22*SirCmpwn quit (Ping timeout: 252 seconds)
11:47:30*nsf quit (Quit: WeeChat 1.4)
11:55:34*Arrrr quit (Quit: WeeChat 1.4)
11:56:28*gokr quit (Ping timeout: 252 seconds)
11:57:25*girvo joined #nim
12:01:36*SirCmpwn joined #nim
12:02:03*girvo quit (Ping timeout: 250 seconds)
12:10:33*akaisora_ joined #nim
12:13:44*xet7 quit (Ping timeout: 244 seconds)
12:20:48*Sembei joined #nim
12:32:21*xet7 joined #nim
12:34:39*akaisora_ quit (Ping timeout: 246 seconds)
12:35:12*akaisora__ joined #nim
12:43:41*Sembei quit (Ping timeout: 250 seconds)
12:43:45*zama quit (Ping timeout: 276 seconds)
12:51:28*zama joined #nim
12:58:19*girvo joined #nim
12:59:52*xet7 quit (Ping timeout: 264 seconds)
13:00:25*Sembei joined #nim
13:02:00*xet7 joined #nim
13:03:15*girvo quit (Ping timeout: 276 seconds)
13:06:44*endragor quit (Remote host closed the connection)
13:28:09*endragor joined #nim
13:36:58*xet7 quit (Ping timeout: 260 seconds)
13:39:42*xet7 joined #nim
13:47:12arnetheduckis it normal that nim apps log lots of valgrind errors?
13:56:40*xet7 quit (Ping timeout: 260 seconds)
13:57:00*bjz_ joined #nim
13:57:08*PMunch quit (Quit: leaving)
13:57:48Araqyes, you need to tech valgrind about Nim's stack marking
13:57:56Araqsomebody had a patch for it.
13:58:02Araq*teach
13:58:33*bjz quit (Ping timeout: 240 seconds)
13:59:02arnetheduckah ok.. btw, fixed all known issues with ansi_c, anything else that needs doing?
13:59:10*girvo joined #nim
14:03:26*girvo quit (Ping timeout: 244 seconds)
14:04:24Araqno, but I will merge it after 0.14.2 is out
14:06:02arnetheduckok cool.. I'll keep an eye out for issues when you do, might be some more lurking behind unusual when(xxx)
14:07:15arnetheducksystem is pretty hard to follow because of all the js & nimscript exceptions mixed with platform specific stuff and whatnot :/
14:07:39Araqevery attempt to improve it failed though :P
14:09:43arnetheduckI think the best improvement would be to cut out half of it and stick it in a module.. say all io stuff ;)
14:18:55Araqas more and more edge cases are covered by our tests, it should at one day be easy enough to refactor it.
14:19:12Araqbut today it not that day.
14:22:42arnetheduckyeah, the test suite is good.. I did try to make tester run tests in parallel but that didn't work too well, kept crashing randomly..
14:24:38arnetheduckie I tried to patch it to use the spawn stuff
14:27:57cheatfate_arnetheduck, do you have place where it crashed?
14:28:28arnetheduckI can upload the patch
14:31:06arnetheduckcheatfate_, https://github.com/arnetheduck/Nim/tree/wip-parallel-tester
14:31:49arnetheduckattempts to run the tests each category in a spawned task, to avoid nimcache issues
14:32:07arnetheduckI didn't have time to dive into it though, maybe it's something silly
14:32:48arnetheducknlvm is easier that way, only generates one file in nimcache ;)
14:33:13arnetheduck(and that file should really go in some tmp folder and be deleted afterwards)
14:37:41cheatfate_arnetheduck, but why not spawn processes for every category?
14:37:50cheatfate_why threads?
14:38:37arnetheduckI dunno... I asked what the easiest way in nim to run independent stuff in parallell was, and spawn came up as the answer
14:40:05arnetheduckafair the test runner blocks while running the tests, so rather than making it deal with all the mess of reading stdins async etc, I figured each thread would process one category then collect the results
14:40:37cheatfate_i like threads, but not pthreads... so its better to allow os to handle parallel on linux and you can easily capture output of worker processes and show them
14:41:11cheatfate_maybe we just needs some kind of testamentMaster.nim :)
14:41:30cheatfate_which will run many testaments
14:41:48arnetheduckwell, conceptually, my thing should work
14:42:43arnetheduckI shouldn't really have to care if there are processes or threads or whatevers underneath.. I generate tasks, these tasks run and give me data back
14:49:32*Senketsu quit (Read error: Connection reset by peer)
14:52:52arnetheduckthen those testaments would have to talk to the master, or compete for the db.. just running the tests themselves in parallel seems more reasonable
14:54:10*pregressive joined #nim
14:57:10*nsf joined #nim
15:00:02*girvo joined #nim
15:04:29*girvo quit (Ping timeout: 250 seconds)
15:12:11*akaisora__ is now known as akaisora
15:17:51*yglukhov quit (Ping timeout: 244 seconds)
15:25:19*irrequietus quit ()
15:27:06namnguyenis "testament" a pun?
15:29:18endragorcan I specify additional paths when building with Nimble? i.e. custom --path option(s).
15:35:24Araqnamnguyen: yeah a bad one.
15:35:25Araqbbl
15:42:30*benwbooth quit (Ping timeout: 276 seconds)
15:43:55*arnetheduck quit (Ping timeout: 250 seconds)
15:45:00*benwbooth joined #nim
15:47:01*benwbooth quit (Max SendQ exceeded)
15:47:46*benwbooth joined #nim
15:48:30dom96endragor: you can if building with `nimble c`
15:48:43dom96endragor: otherwise you might want to just add it to a .nim.cfg file
15:49:34endragordom96: thanks!
15:54:58*Jesin quit (Quit: Leaving)
15:59:18*yglukhov joined #nim
16:00:52*girvo joined #nim
16:03:39*yglukhov quit (Ping timeout: 244 seconds)
16:05:35*girvo quit (Ping timeout: 250 seconds)
16:14:27*Sembei quit (Ping timeout: 260 seconds)
16:16:00*yglukhov joined #nim
16:20:11*yglukhov quit (Ping timeout: 244 seconds)
16:25:13*PMunch joined #nim
16:32:49*Jesin joined #nim
16:44:38*endragor quit (Ping timeout: 272 seconds)
16:46:38*filcuc quit (Read error: Connection reset by peer)
16:55:05*gokr joined #nim
16:59:00*brson joined #nim
17:00:35PMunchI'm trying to use the xlib from the x11 package to implement a version of TinyWM in Nim (might grow to a larger project). But I have some questions
17:00:55PMunchNow, this line in C: XGrabKey(dpy, XKeysymToKeycode(dpy, XStringToKeysym("F3")), AnyModifier, root, True, GrabModeAsync, GrabModeAsync);
17:01:46*girvo joined #nim
17:01:46PMunchI would assume would convert to something like this in Nim: discard XGrabKey(display,XKeysymToKeycode(display, XStringToKeysym("F3")),AnyModifier,root,true,GrabModeAsync,GrabModeAsync)
17:02:29PMunchBut I have to cast every other value, how come?
17:03:11PMunchWhich makes the line rather messy: discard XGrabKey(display,XKeysymToKeycode(display, XStringToKeysym("F3")).cint,AnyModifier.cuint,root,true.TBool,GrabModeAsync.cint,GrabModeAsync.cint)
17:04:11cheatfate_PMunch, better start with xcb
17:04:14cheatfate_not x11
17:05:16PMunchWell, as I said I wanted to try and implement TinyWM which uses X11 incise.org/tinywm.html
17:06:21*girvo quit (Ping timeout: 244 seconds)
17:06:51PMunchPlus x11 is already a package
17:06:58PMunchWhich made it seem convenient
17:07:53*gokr quit (Ping timeout: 244 seconds)
17:09:29dom96PMunch: I guess the wrapper returns inconsistent types, does XKeystmToKeycode return 'int'?
17:09:37dom96whereas XGrabKey wants a 'cint'?
17:10:09PMunchIt return a TKeyCode
17:10:24PMunchAnd XGrabKey wants a cint
17:10:29*gokr joined #nim
17:10:59dom96ahh, and TKeyCode is a cuchar https://github.com/nim-lang/x11/blob/master/src/x.nim#L48
17:13:26dom96so far it seems the x11 docs agree http://linux.die.net/man/3/xkeysymtokeycode
17:13:38dom96http://systemmanager.ru/svcsunix.en/extfile/x11/xgrabkey.htm
17:13:49PMunchYeah
17:13:56PMunchSo it isn't really Nims fault..
17:14:31PMunchIs there a way to let Nim implicitly convert the values like C apparently does?
17:14:38dom96Not really, but at the same time I still feel like Nim is too strict with int type conversions.
17:14:54dom96Although, you can use a 'converter' to make it implicit.
17:15:21dom96converter toCint(x: TKeyCode): cint = x.cint
17:15:33dom96That wrapper does need to be fixed to get rid of those type prefixes...
17:16:01*dom96 remembers someone volunteering to get rid of these for every Nimble package
17:16:40PMunchWhat do you mean with getting rid of prefixes?
17:16:48dom96The 'T' in 'TKeyCode'
17:17:06dom96it should just be 'KeyCode'
17:17:31PMunchOh yeah, I was wondering about that
17:17:35dom96the proc names are also wrong because they start with an uppercase letter
17:17:36PMunchPDisplay as well
17:17:58dom96I think nimfix performs these changes automatically
17:18:06dom96but it deprecates the old names
17:18:13dom96so you should be fine to use them until someone fixes this
17:21:01PMunchOkay, so by adding two converters, the one you gave me and one to convert bools to TBools it works fine
17:22:14PMunchSo apparently it doesn't care about the int -> cint/cuint conversion
17:22:36PMunchI've got to go for a little while. Be back soon
17:45:42namnguyenwhile we're on the subject of naming: https://whathecode.wordpress.com/2013/02/16/camelcase-vs-underscores-revisited/
17:46:44PMunchOkay back now. I feel like at least the bool -> TBool binding should be part of the x11 wrapper
17:47:27*Jesin quit (Quit: Leaving)
17:47:46*EastByte_ is now known as EastByte
17:47:48*sanika joined #nim
17:49:05PMunchHmm namnguyen didn't read the papers he referenced but the findings surprise me a bit
17:49:32PMunchIt would be interesting to see though if the font you use matter
17:49:46*Jesin joined #nim
17:49:58PMunchFonts with greater height difference between upper and lowercase letters should make camelCase easier to read
17:50:21namnguyenyeah, agreed.
17:50:35namnguyenbut there's that extra dependency.
17:51:03PMunchTrue
17:51:19PMunchLet's just use both_Case
17:51:54PMunchPITA to type but it might be easier to read..
17:52:59*yglukhov joined #nim
17:54:30wuehlmauswith tcl even spaces in variable names are possible :)
17:54:46wuehlmausfeels natural :P
17:56:38PMunchTCL?
17:57:05PMunchSpaces in variable names would be super confusing :P
17:57:40namnguyenPMunch, what font are you using?
17:57:49PMunchInconsolata
17:58:15PMunchPretty font, but doesn't really fit the bill for a font with big difference between upper and lower case
17:58:28namnguyenyeah, was going to say the same.
17:58:45namnguyenlooks nice. but a little compact
18:00:01PMunchIt's actually pretty good looking
18:00:10PMunchI don't find it compact when I use it
18:00:38*themagician quit (Ping timeout: 272 seconds)
18:00:45PMunchWhat are you using?
18:00:57*r4vi quit (Ping timeout: 276 seconds)
18:01:03namnguyenwhatever the system defaults to.
18:01:08namnguyeni don't know :-D
18:01:12namnguyenprobably consolas?
18:02:38*girvo joined #nim
18:03:13PMunchOr Monospace
18:03:48*r4vi joined #nim
18:04:32namnguyenthis looks pretty good. round, spacious, clear 0 and O, I and 1 and l and i http://typecast.com/preview/google/anonymous%20pro:400:normal
18:05:35PMunchHmm, yeah
18:05:49PMunchAll those issues are fine in Inconsolata as well by the way :)
18:06:52PMunch0 has a slash through it, O is wider than you would expect a 0 to be. I has serifs top and bottom, 1 has tick on top but no serifs on the feet, l has serifs on it's feet, and i looks like a smaller l but with a dot over it.
18:06:55*CARAM__ quit (Ping timeout: 260 seconds)
18:07:08*girvo quit (Ping timeout: 244 seconds)
18:10:23*ivan quit (Ping timeout: 250 seconds)
18:10:56*CARAM__ joined #nim
18:12:35*ivan joined #nim
18:23:24*benwbooth quit (Ping timeout: 250 seconds)
18:25:56*der-landgraf quit (Quit: WeeChat 1.5)
18:26:15*benwbooth joined #nim
18:26:41PMunchHmm, ev.xkey doesn't work either (ev is a TXEvent)
18:27:39*der-landgraf joined #nim
18:30:59PMunchError: undeclared field: 'xkey'
18:37:15*akaisora quit (Ping timeout: 246 seconds)
18:37:27*akaisora_ joined #nim
18:38:22*Senketsu joined #nim
18:40:44*PMunch quit (Ping timeout: 250 seconds)
18:44:03*Sembei joined #nim
18:51:01*aziz joined #nim
18:52:27*Jesin quit (Quit: Leaving)
18:54:05cheatfate_dom96, interesting does nimble has statistics of downloaded packages?
19:02:58federico3cheatfate_: locally to the user or centrally?
19:03:37*girvo joined #nim
19:03:57cheatfate_federico3, i mean like this https://packagecontrol.io/browse/popular
19:05:51*Sembei quit (Ping timeout: 250 seconds)
19:08:10*girvo quit (Ping timeout: 260 seconds)
19:09:40*benwbooth quit (Ping timeout: 272 seconds)
19:11:14federico3centrally then
19:12:56*benwbooth joined #nim
19:13:20federico3Nimble does not spy on the user activity afaik, but opt-in statistics reporting would be nice
19:14:21dom96cheatfate_: no
19:25:10dom96Implementing a packagecontrol.io-like website is a better use of our time than implementing opt-in statistics (that no one will enable anyway).
19:33:10*Sembei joined #nim
19:50:36*desophos joined #nim
19:55:11*Jesin joined #nim
20:04:25*girvo joined #nim
20:06:33*TheLemonMan joined #nim
20:07:41*Sembei quit (Ping timeout: 240 seconds)
20:07:48*yglukhov quit (Remote host closed the connection)
20:09:39*girvo quit (Ping timeout: 276 seconds)
20:12:43*mollsuk joined #nim
20:13:04mollsukMay I have Nim logo (PNG and SVG)?
20:14:06*resuna joined #nim
20:14:12mollsukI mean there is no downloads for the logo
20:14:21*resuna left #nim (#nim)
20:16:37*Jesin quit (Quit: Leaving)
20:16:51mollsukHELLO!!!
20:17:05mollsukIs anyone theri?
20:17:48namnguyenhere
20:17:59namnguyenperhaps no one knows the answer?
20:18:39mollsukI need the logo, both PNG and SVG.
20:18:49mollsukFor a presentation
20:20:21mollsukCome on guys.
20:22:19*Jesin joined #nim
20:22:35mollsukI have another question, will Nim language relies on an external compiler for ever?
20:24:32namnguyeni think that's the cool part.
20:24:52mollsukYes,
20:25:08mollsukBut I just want to know more and more about Nim
20:25:11namnguyenNim source includes TCC.
20:25:16elroodactually, what you are looking for isn't that hard to find if you have a look at the repo. you might want to check https://github.com/nim-lang/Nim/tree/devel/web/assets/images
20:26:28mollsukYes, thank you elrood, I found exactly what I wanted it.
20:28:57mollsukNim's logo is copyrighted, yes?
20:29:07*yglukhov joined #nim
20:29:25*yglukhov quit (Remote host closed the connection)
20:29:40*yglukhov joined #nim
20:30:18*Sembei joined #nim
20:32:53*Sembei quit (Client Quit)
20:34:40*zodiak_ joined #nim
20:35:18*mollsuk quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
20:36:54*gokr ended up yapping about Nim on #swift-lang...
20:37:40*zodiak quit (Ping timeout: 264 seconds)
20:38:04*Matthias247 joined #nim
20:47:35namnguyenwouldn't it be good for new language like Nim to have a page of "Who uses Nim"?
20:48:07namnguyencompanies get some recruiting words out, and Nim gets some credibility
20:51:17*Demon_Fox joined #nim
20:54:51*namnguyen is falling in love with Anonymous Pro
20:57:11*pregressive quit (Read error: Connection reset by peer)
20:57:39*pregressive joined #nim
21:01:15Araqnamnguyen: yeah, that would be cool.
21:01:36Araqit's consensus we desperately need a new website
21:01:50Araqat least when 1.0 arrives, maybe sooner
21:02:48cheatfate_Araq, is easy way exist to just proxify varargs argument to another proc?
21:03:31dom96This repo contains a lot more logos/images https://github.com/nim-lang/assets
21:05:16*girvo joined #nim
21:07:18elroodfascinating how some people start acting impatient when their demands aren't answered immediately but apparently haven't even tried the most basic steps to solve their problems unassistedly
21:08:16dom96gokr: what did they think of it? :)
21:09:03gokrWell, we talked a bit about the fact that Nim compiles via C etc, had to stop before it turned into "spamming"
21:09:21*PMunch joined #nim
21:10:05*girvo quit (Ping timeout: 260 seconds)
21:15:03Araqwe have an LLVM backend in the works
21:19:56PMunchWhat's up with the TXEvent object from the x11/xlib package?
21:22:33PMunchIt doesn't appear to have all the members of the C union bearing the same name
21:23:00PMunchBut rather a long case thing commented out..
21:23:30PMunchdef- you want to shed some light on this?
21:23:34*TheLemonMan left #nim (#nim)
21:23:34*TheLemonMan joined #nim
21:26:22def-PMunch: looks like someone just used padding instead of having the original fields encoded there. Maybe it didn't work or there are getters for those
21:28:20PMunchHmm
21:28:59PMunchSo it has the theType field which apparently shows you what kind of event it is
21:29:05Araqiirc there is a better X11 wrapper in nimble :P
21:29:18PMunchSo if I could cast the TXEvent to a TXKeyEvent then it should be good?
21:29:35Araqyou need to do the casting properly
21:29:37PMunchThere is? I just went with the one named x11 figuring that would be the best :P
21:29:42Araqvia 'addr' and stuff
21:30:19PMunchHmm, I tried something, but I'm not that in the know when it comes to how Nim does casting and pointer stuff..
21:31:28PMunchThe x11 package is the only place in packages.json were X11 is referenced..
21:35:01PMunchIs there a way to create a type based on a pointer. Basically what "int c = &intpointer;" would do in C
21:35:44*xet7 joined #nim
21:36:17cheatfate_poor PMunch, if you had listened to me and started with xcb, i think your tinywm will be already made... just because size of xcb library is much less, then xlib
21:36:45PMunchcheatfate_, I've been away squashing so I haven't really worked on it for much more than half an hour :P
21:37:08PMunchBut you're probably right when it comes to going for xcb instead of xlib
21:38:16*miere quit (Ping timeout: 264 seconds)
21:38:48PMunchThink I figured it out: var kev:TXKeyEvent = cast[PXKeyEvent](ev.addr)[]
21:39:35cheatfate_var kev = cast[PXKeyEvent](addr(ev[0]))
21:39:39cheatfate_var kev = cast[PXKeyEvent](addr(ev[]))
21:40:27PMunchCould not resolve e[]
21:40:29PMunchev*
21:40:58PMunchBut I'm going to hit the shower, be right back
21:41:29*TheLemonMan quit (Quit: "It's now safe to turn off your computer.")
21:44:02*xet7 quit (Ping timeout: 260 seconds)
21:56:52*pregressive quit (Remote host closed the connection)
21:59:05*xet7 joined #nim
22:06:11*girvo joined #nim
22:11:12*girvo quit (Ping timeout: 276 seconds)
22:11:19def-PMunch: oh, that reminds me that I played around with Nim+WM once, didn't do much though: https://github.com/def-/niwm
22:14:02*xet7 quit (Quit: Leaving)
22:15:11PMunchOh cool, I'll definitely have a look at that def-
22:15:25def-just a few lines
22:15:30def-then i noticed that an xlib wrapper already existed
22:15:33PMunchYou even have a working tinywm.nim :)
22:15:47PMunchOh yeah, you wrote your own
22:17:44*PMunch quit (Quit: leaving)
22:18:06*elrood quit (Quit: Leaving)
22:20:24Araqcheatfate_: pass varargs like openarrays around
22:20:36Araqproc foo(a: varargs[int]) =
22:20:40Araq bar(a)
22:21:24cheatfate_yeah but if `proc bar(a: varargs[int])` too
22:35:45*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
22:52:01*shodan45 joined #nim
22:53:13*BlaXpirit quit (Quit: Bye)
22:53:28*BlaXpirit joined #nim
22:54:26Araqcheatfate_: that should just work
22:57:03*fastrom quit (Quit: Leaving.)
22:58:32*BlaXpirit quit (Quit: Bye)
22:58:48*BlaXpirit joined #nim
23:00:11*bjz joined #nim
23:04:37*Nim joined #nim
23:05:34NimIs the meta-programming paradigm of Nim the best?
23:06:16Araqyes. next question! :-)
23:06:58*girvo joined #nim
23:08:07NimExcuse me Araq, but how?
23:11:34*girvo quit (Ping timeout: 250 seconds)
23:12:08NimAraq, you still their?
23:12:46Araqsure but working
23:12:56Araqwhat do you want to know about meta programming?
23:13:42NimI want to know how Nim's meta programming paradigm is different from others
23:14:05*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
23:14:51Araqdepends on the 'others', but Nim is one of the few languages where you can construct ASTs imperatively
23:16:24Nimfor example LISP families (Common LISP, Hy, Clojure.....)
23:16:59NimHow is Nim's meta-programming paradigm better than those?
23:20:30*aziz quit (Remote host closed the connection)
23:24:12*Nim quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
23:25:52*Trustable quit (Remote host closed the connection)
23:41:59*Matthias247 quit (Read error: Connection reset by peer)
23:51:11*yglukhov quit (Remote host closed the connection)