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:03 | girvo | Congrats on v0.14! |
03:00:26 | girvo | I'm stoked: my Result[T, E] implementation now works due to the generics fixes! |
03:00:43 | girvo | http://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:10 | girvo | Written 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:43 | girvo | I'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:25 | miere | TIME |
07:07:41 | miere | USERINFO |
07:09:56 | * | Trustable joined #nim |
07:23:26 | girvo | Holy god-damn the generics system is way better than before. |
07:24:03 | girvo | I 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:17 | girvo | Only 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:41 | girvo | Optional[T] can elide it, because it's only ever getting a single type, whereas we have two types to deal with |
07:32:41 | girvo | https://gist.github.com/girvo/81f96c0fcddccb4541ae59287f999a0b |
07:33:06 | * | yglukhov joined #nim |
07:33:41 | girvo | Built 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:23 | girvo | Heck 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:14 | Araq | well 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:22 | euantor | I assume it's intended that varargs cannot be passed to an async proc? |
08:48:35 | euantor | Kind of scuppered my plans :( |
08:49:29 | * | Arrrr joined #nim |
08:52:09 | euantor | There's also no way to add extra headers tp requests with AsyncHttpClient by the look of it. |
08:52:56 | Araq | so pass a seq instead |
08:54:28 | euantor | Yep, I can do that, or refactor |
08:54:40 | euantor | Which is what I'm now doing |
08:55:20 | euantor | Before I had a proc `get()` that took a path and `varargs[GetParameter]` (where `GetParameter` is a tuple of key/value. |
08:55:31 | euantor | Now 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:27 | Salewski | "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:47 | Salewski | At 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:38 | Salewski | Well not easy, I think I would write "time that it should spend for the garbage collection process" |
09:25:15 | Salewski | And 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:12 | arnetheduck | is 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:48 | Araq | yes, you need to tech valgrind about Nim's stack marking |
13:57:56 | Araq | somebody had a patch for it. |
13:58:02 | Araq | *teach |
13:58:33 | * | bjz quit (Ping timeout: 240 seconds) |
13:59:02 | arnetheduck | ah 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:24 | Araq | no, but I will merge it after 0.14.2 is out |
14:06:02 | arnetheduck | ok cool.. I'll keep an eye out for issues when you do, might be some more lurking behind unusual when(xxx) |
14:07:15 | arnetheduck | system is pretty hard to follow because of all the js & nimscript exceptions mixed with platform specific stuff and whatnot :/ |
14:07:39 | Araq | every attempt to improve it failed though :P |
14:09:43 | arnetheduck | I think the best improvement would be to cut out half of it and stick it in a module.. say all io stuff ;) |
14:18:55 | Araq | as more and more edge cases are covered by our tests, it should at one day be easy enough to refactor it. |
14:19:12 | Araq | but today it not that day. |
14:22:42 | arnetheduck | yeah, 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:38 | arnetheduck | ie I tried to patch it to use the spawn stuff |
14:27:57 | cheatfate_ | arnetheduck, do you have place where it crashed? |
14:28:28 | arnetheduck | I can upload the patch |
14:31:06 | arnetheduck | cheatfate_, https://github.com/arnetheduck/Nim/tree/wip-parallel-tester |
14:31:49 | arnetheduck | attempts to run the tests each category in a spawned task, to avoid nimcache issues |
14:32:07 | arnetheduck | I didn't have time to dive into it though, maybe it's something silly |
14:32:48 | arnetheduck | nlvm is easier that way, only generates one file in nimcache ;) |
14:33:13 | arnetheduck | (and that file should really go in some tmp folder and be deleted afterwards) |
14:37:41 | cheatfate_ | arnetheduck, but why not spawn processes for every category? |
14:37:50 | cheatfate_ | why threads? |
14:38:37 | arnetheduck | I 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:05 | arnetheduck | afair 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:37 | cheatfate_ | 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:11 | cheatfate_ | maybe we just needs some kind of testamentMaster.nim :) |
14:41:30 | cheatfate_ | which will run many testaments |
14:41:48 | arnetheduck | well, conceptually, my thing should work |
14:42:43 | arnetheduck | I 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:52 | arnetheduck | then 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:06 | namnguyen | is "testament" a pun? |
15:29:18 | endragor | can I specify additional paths when building with Nimble? i.e. custom --path option(s). |
15:35:24 | Araq | namnguyen: yeah a bad one. |
15:35:25 | Araq | bbl |
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:30 | dom96 | endragor: you can if building with `nimble c` |
15:48:43 | dom96 | endragor: otherwise you might want to just add it to a .nim.cfg file |
15:49:34 | endragor | dom96: 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:35 | PMunch | I'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:55 | PMunch | Now, this line in C: XGrabKey(dpy, XKeysymToKeycode(dpy, XStringToKeysym("F3")), AnyModifier, root, True, GrabModeAsync, GrabModeAsync); |
17:01:46 | * | girvo joined #nim |
17:01:46 | PMunch | I would assume would convert to something like this in Nim: discard XGrabKey(display,XKeysymToKeycode(display, XStringToKeysym("F3")),AnyModifier,root,true,GrabModeAsync,GrabModeAsync) |
17:02:29 | PMunch | But I have to cast every other value, how come? |
17:03:11 | PMunch | Which makes the line rather messy: discard XGrabKey(display,XKeysymToKeycode(display, XStringToKeysym("F3")).cint,AnyModifier.cuint,root,true.TBool,GrabModeAsync.cint,GrabModeAsync.cint) |
17:04:11 | cheatfate_ | PMunch, better start with xcb |
17:04:14 | cheatfate_ | not x11 |
17:05:16 | PMunch | Well, 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:51 | PMunch | Plus x11 is already a package |
17:06:58 | PMunch | Which made it seem convenient |
17:07:53 | * | gokr quit (Ping timeout: 244 seconds) |
17:09:29 | dom96 | PMunch: I guess the wrapper returns inconsistent types, does XKeystmToKeycode return 'int'? |
17:09:37 | dom96 | whereas XGrabKey wants a 'cint'? |
17:10:09 | PMunch | It return a TKeyCode |
17:10:24 | PMunch | And XGrabKey wants a cint |
17:10:29 | * | gokr joined #nim |
17:10:59 | dom96 | ahh, and TKeyCode is a cuchar https://github.com/nim-lang/x11/blob/master/src/x.nim#L48 |
17:13:26 | dom96 | so far it seems the x11 docs agree http://linux.die.net/man/3/xkeysymtokeycode |
17:13:38 | dom96 | http://systemmanager.ru/svcsunix.en/extfile/x11/xgrabkey.htm |
17:13:49 | PMunch | Yeah |
17:13:56 | PMunch | So it isn't really Nims fault.. |
17:14:31 | PMunch | Is there a way to let Nim implicitly convert the values like C apparently does? |
17:14:38 | dom96 | Not really, but at the same time I still feel like Nim is too strict with int type conversions. |
17:14:54 | dom96 | Although, you can use a 'converter' to make it implicit. |
17:15:21 | dom96 | converter toCint(x: TKeyCode): cint = x.cint |
17:15:33 | dom96 | That 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:40 | PMunch | What do you mean with getting rid of prefixes? |
17:16:48 | dom96 | The 'T' in 'TKeyCode' |
17:17:06 | dom96 | it should just be 'KeyCode' |
17:17:31 | PMunch | Oh yeah, I was wondering about that |
17:17:35 | dom96 | the proc names are also wrong because they start with an uppercase letter |
17:17:36 | PMunch | PDisplay as well |
17:17:58 | dom96 | I think nimfix performs these changes automatically |
17:18:06 | dom96 | but it deprecates the old names |
17:18:13 | dom96 | so you should be fine to use them until someone fixes this |
17:21:01 | PMunch | Okay, so by adding two converters, the one you gave me and one to convert bools to TBools it works fine |
17:22:14 | PMunch | So apparently it doesn't care about the int -> cint/cuint conversion |
17:22:36 | PMunch | I've got to go for a little while. Be back soon |
17:45:42 | namnguyen | while we're on the subject of naming: https://whathecode.wordpress.com/2013/02/16/camelcase-vs-underscores-revisited/ |
17:46:44 | PMunch | Okay 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:05 | PMunch | Hmm namnguyen didn't read the papers he referenced but the findings surprise me a bit |
17:49:32 | PMunch | It would be interesting to see though if the font you use matter |
17:49:46 | * | Jesin joined #nim |
17:49:58 | PMunch | Fonts with greater height difference between upper and lowercase letters should make camelCase easier to read |
17:50:21 | namnguyen | yeah, agreed. |
17:50:35 | namnguyen | but there's that extra dependency. |
17:51:03 | PMunch | True |
17:51:19 | PMunch | Let's just use both_Case |
17:51:54 | PMunch | PITA to type but it might be easier to read.. |
17:52:59 | * | yglukhov joined #nim |
17:54:30 | wuehlmaus | with tcl even spaces in variable names are possible :) |
17:54:46 | wuehlmaus | feels natural :P |
17:56:38 | PMunch | TCL? |
17:57:05 | PMunch | Spaces in variable names would be super confusing :P |
17:57:40 | namnguyen | PMunch, what font are you using? |
17:57:49 | PMunch | Inconsolata |
17:58:15 | PMunch | Pretty font, but doesn't really fit the bill for a font with big difference between upper and lower case |
17:58:28 | namnguyen | yeah, was going to say the same. |
17:58:45 | namnguyen | looks nice. but a little compact |
18:00:01 | PMunch | It's actually pretty good looking |
18:00:10 | PMunch | I don't find it compact when I use it |
18:00:38 | * | themagician quit (Ping timeout: 272 seconds) |
18:00:45 | PMunch | What are you using? |
18:00:57 | * | r4vi quit (Ping timeout: 276 seconds) |
18:01:03 | namnguyen | whatever the system defaults to. |
18:01:08 | namnguyen | i don't know :-D |
18:01:12 | namnguyen | probably consolas? |
18:02:38 | * | girvo joined #nim |
18:03:13 | PMunch | Or Monospace |
18:03:48 | * | r4vi joined #nim |
18:04:32 | namnguyen | this 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:35 | PMunch | Hmm, yeah |
18:05:49 | PMunch | All those issues are fine in Inconsolata as well by the way :) |
18:06:52 | PMunch | 0 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:41 | PMunch | Hmm, ev.xkey doesn't work either (ev is a TXEvent) |
18:27:39 | * | der-landgraf joined #nim |
18:30:59 | PMunch | Error: 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:05 | cheatfate_ | dom96, interesting does nimble has statistics of downloaded packages? |
19:02:58 | federico3 | cheatfate_: locally to the user or centrally? |
19:03:37 | * | girvo joined #nim |
19:03:57 | cheatfate_ | 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:14 | federico3 | centrally then |
19:12:56 | * | benwbooth joined #nim |
19:13:20 | federico3 | Nimble does not spy on the user activity afaik, but opt-in statistics reporting would be nice |
19:14:21 | dom96 | cheatfate_: no |
19:25:10 | dom96 | Implementing 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:04 | mollsuk | May I have Nim logo (PNG and SVG)? |
20:14:06 | * | resuna joined #nim |
20:14:12 | mollsuk | I mean there is no downloads for the logo |
20:14:21 | * | resuna left #nim (#nim) |
20:16:37 | * | Jesin quit (Quit: Leaving) |
20:16:51 | mollsuk | HELLO!!! |
20:17:05 | mollsuk | Is anyone theri? |
20:17:48 | namnguyen | here |
20:17:59 | namnguyen | perhaps no one knows the answer? |
20:18:39 | mollsuk | I need the logo, both PNG and SVG. |
20:18:49 | mollsuk | For a presentation |
20:20:21 | mollsuk | Come on guys. |
20:22:19 | * | Jesin joined #nim |
20:22:35 | mollsuk | I have another question, will Nim language relies on an external compiler for ever? |
20:24:32 | namnguyen | i think that's the cool part. |
20:24:52 | mollsuk | Yes, |
20:25:08 | mollsuk | But I just want to know more and more about Nim |
20:25:11 | namnguyen | Nim source includes TCC. |
20:25:16 | elrood | actually, 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:28 | mollsuk | Yes, thank you elrood, I found exactly what I wanted it. |
20:28:57 | mollsuk | Nim'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:35 | namnguyen | wouldn't it be good for new language like Nim to have a page of "Who uses Nim"? |
20:48:07 | namnguyen | companies 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:15 | Araq | namnguyen: yeah, that would be cool. |
21:01:36 | Araq | it's consensus we desperately need a new website |
21:01:50 | Araq | at least when 1.0 arrives, maybe sooner |
21:02:48 | cheatfate_ | Araq, is easy way exist to just proxify varargs argument to another proc? |
21:03:31 | dom96 | This repo contains a lot more logos/images https://github.com/nim-lang/assets |
21:05:16 | * | girvo joined #nim |
21:07:18 | elrood | fascinating 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:16 | dom96 | gokr: what did they think of it? :) |
21:09:03 | gokr | Well, 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:03 | Araq | we have an LLVM backend in the works |
21:19:56 | PMunch | What's up with the TXEvent object from the x11/xlib package? |
21:22:33 | PMunch | It doesn't appear to have all the members of the C union bearing the same name |
21:23:00 | PMunch | But rather a long case thing commented out.. |
21:23:30 | PMunch | def- you want to shed some light on this? |
21:23:34 | * | TheLemonMan left #nim (#nim) |
21:23:34 | * | TheLemonMan joined #nim |
21:26:22 | def- | 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:20 | PMunch | Hmm |
21:28:59 | PMunch | So it has the theType field which apparently shows you what kind of event it is |
21:29:05 | Araq | iirc there is a better X11 wrapper in nimble :P |
21:29:18 | PMunch | So if I could cast the TXEvent to a TXKeyEvent then it should be good? |
21:29:35 | Araq | you need to do the casting properly |
21:29:37 | PMunch | There is? I just went with the one named x11 figuring that would be the best :P |
21:29:42 | Araq | via 'addr' and stuff |
21:30:19 | PMunch | Hmm, I tried something, but I'm not that in the know when it comes to how Nim does casting and pointer stuff.. |
21:31:28 | PMunch | The x11 package is the only place in packages.json were X11 is referenced.. |
21:35:01 | PMunch | Is 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:17 | cheatfate_ | 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:45 | PMunch | cheatfate_, I've been away squashing so I haven't really worked on it for much more than half an hour :P |
21:37:08 | PMunch | But 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:48 | PMunch | Think I figured it out: var kev:TXKeyEvent = cast[PXKeyEvent](ev.addr)[] |
21:39:35 | cheatfate_ | var kev = cast[PXKeyEvent](addr(ev[0])) |
21:39:39 | cheatfate_ | var kev = cast[PXKeyEvent](addr(ev[])) |
21:40:27 | PMunch | Could not resolve e[] |
21:40:29 | PMunch | ev* |
21:40:58 | PMunch | But 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:19 | def- | 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:11 | PMunch | Oh cool, I'll definitely have a look at that def- |
22:15:25 | def- | just a few lines |
22:15:30 | def- | then i noticed that an xlib wrapper already existed |
22:15:33 | PMunch | You even have a working tinywm.nim :) |
22:15:47 | PMunch | Oh yeah, you wrote your own |
22:17:44 | * | PMunch quit (Quit: leaving) |
22:18:06 | * | elrood quit (Quit: Leaving) |
22:20:24 | Araq | cheatfate_: pass varargs like openarrays around |
22:20:36 | Araq | proc foo(a: varargs[int]) = |
22:20:40 | Araq | bar(a) |
22:21:24 | cheatfate_ | 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:26 | Araq | cheatfate_: 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:34 | Nim | Is the meta-programming paradigm of Nim the best? |
23:06:16 | Araq | yes. next question! :-) |
23:06:58 | * | girvo joined #nim |
23:08:07 | Nim | Excuse me Araq, but how? |
23:11:34 | * | girvo quit (Ping timeout: 250 seconds) |
23:12:08 | Nim | Araq, you still their? |
23:12:46 | Araq | sure but working |
23:12:56 | Araq | what do you want to know about meta programming? |
23:13:42 | Nim | I 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:51 | Araq | depends on the 'others', but Nim is one of the few languages where you can construct ASTs imperatively |
23:16:24 | Nim | for example LISP families (Common LISP, Hy, Clojure.....) |
23:16:59 | Nim | How 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) |