<< 19-10-2015 >>

00:03:26*coryg quit (Ping timeout: 246 seconds)
00:04:52*brson quit (Quit: leaving)
00:16:03*strcmp1 quit (Remote host closed the connection)
00:18:38*strcmp1 joined #nim
00:20:39*jaco60 quit (Ping timeout: 240 seconds)
00:25:11desophosor a way to import only a type plus its methods (the procs which take that type as their first argument)
00:25:19desophosthat would be cool
00:26:50*vqrs quit (Ping timeout: 240 seconds)
00:28:40*vqrs joined #nim
01:07:39desophosit sure is quiet here
01:23:01*yglukhov joined #nim
01:24:45*luyifan joined #nim
01:27:06*yglukhov quit (Ping timeout: 240 seconds)
01:36:29*Jesin joined #nim
01:39:00gmpreussner_hey desophos, just hang in there... people will respond later
01:41:42gmpreussner_desophos: this might help with the workings of import: http://nim-lang.org/docs/manual.html#modules-import-statement
01:43:20desophosyeah gmpreussner_ i read that; i understand that there are alternatives, i was just commenting on the default import
01:50:40gmpreussner_you can fully qualify exported symbols, but it's not required
01:50:47gmpreussner_only if there is an ambiguity
01:51:01gmpreussner_i.e. when you import 'foo' from two different modules
01:52:09desophosi think importing names as unqualified is confusing; in python it's `from mod import *` which is explicit and discouraged
01:58:58gmpreussner_i haven't used python, but i guess it depends on what you're used to
01:59:41desophosi think that it's important to know where symbols come from
02:00:22gmpreussner_i wouldn't want to qualify all the time (my main background is C++ and C#)
02:00:35desophosif you're importing five different modules, why would you want your global namespace filled with unqualified symbols? for convenience? what happens when you forget where some proc is from and have to look through every single one of your imports?
02:01:04gmpreussner_you cannot use unqualified symbols if there are ambiguities
02:01:18gmpreussner_if you import the same symbol twice, you MUST qualify
02:01:38gmpreussner_i think the expectation is that this will rarely happen
02:02:21gmpreussner_it could be more likely if you're using third party packages that are not part of your ecosystem
02:02:48gmpreussner_but even then you'd most likely encapsulate and hide away those specifics before they leak into your main code base
02:03:58gmpreussner_i'm probably not the best person to ask though. i'm used to code bases where third-party dependencies and platform specifics are abstracted away
02:04:52gmpreussner_we also chose quite specific names for everything, so we don't even need namespaces
02:04:59gmpreussner_for better or worse :)
02:05:32gmpreussner_even in C#, which is namespace heavy, you don't need to fully qualify though
02:05:40gmpreussner_it makes the code very noisy and adds little
02:08:16cazovright but the point desophos is making is that it may not be easy to determine the origin of unqualified names _so_ a `better default` would be similar to how python does imports, where the names from `import some_module` are referred to like `some_module.some_name` and if you _don't_ want to refer to the fully qualified name then you should have to use a secondary form of import
02:08:39desophosright cazov
02:09:00cazovinstead, with nim, if you want to require to fully qualify your names then you need to do like `from some_module import nil` or whatever it is which is weird and confusing
02:09:06desophosyep
02:09:31cazovthe argument could be made that if you're worried about not knowing where names come from then you fully qualify everything as you're writing the code
02:09:45desophosthat's what i'm doing but it's a huge pain
02:10:10cazovyeah, since you don't have the compiler to complain to you about that unless you use the confusing import syntax
02:10:30desophosbecause it means you can't write `an_obj.a_proc` if both an_obj and a_proc are defined in another module
02:10:50desophosi mean if a_proc is
02:11:00cazovalso that
02:11:10desophosyou have to write `other_mod.a_proc(an_obj)`, which i brought up earlier
02:11:29cazovi don't know a good way around that
02:11:54cazovnamespaces solve the problem but they are kind of clunky
02:12:06desophosi suggested that there be a way to import only a type plus its methods (the procs which take that type as their first argument)
02:12:34cazovthat would be pretty good
02:12:56cazovyou can hack that by creating an intermediary .nim but it'd be better if you could use a macro or something on the import itself
02:14:48desophosthere's probably a way to do it with a macro
02:32:08*coryg joined #nim
02:46:15*kulelu88 quit (Quit: Leaving)
02:48:19*coryg quit (Ping timeout: 240 seconds)
03:04:09*luyifan quit (Quit: Textual IRC Client: www.textualapp.com)
03:06:16*luyifan joined #nim
03:06:16*luyifan quit (Client Quit)
03:24:26*yglukhov joined #nim
03:28:08*strcmp2 joined #nim
03:29:09*yglukhov quit (Ping timeout: 256 seconds)
03:32:12*strcmp1 quit (Ping timeout: 272 seconds)
03:57:44*darkf joined #nim
04:05:48*strcmp2 quit (Quit: bbs)
04:07:25*strcmp1 joined #nim
04:59:06*vqrs quit (Ping timeout: 240 seconds)
04:59:52*Varriount quit (Read error: Connection reset by peer)
05:00:30*yglukhov joined #nim
05:01:55*vqrs joined #nim
05:04:58*yglukhov quit (Ping timeout: 250 seconds)
05:05:21*gokr joined #nim
05:06:20*zepolen joined #nim
05:09:22gmpreussner_desophos, cazov: might wanna start a forum discussion on that topic. i'm not really qualified to comment on that :)
05:11:39*jakesyl quit (Ping timeout: 240 seconds)
05:23:39*desophos quit (Read error: Connection reset by peer)
05:57:12*gmpreussner_ quit (Ping timeout: 244 seconds)
05:57:29*gmpreussner_ joined #nim
06:13:21*yglukhov joined #nim
06:22:25*yglukhov quit (Remote host closed the connection)
06:40:07*Ven joined #nim
06:51:36*bjz joined #nim
07:02:44*bjz quit (Ping timeout: 246 seconds)
07:22:04*yglukhov joined #nim
07:26:35*edin joined #nim
07:29:51*gokr left #nim (#nim)
07:40:11*Ven quit (Read error: Connection reset by peer)
07:40:46*Ven joined #nim
07:47:15*Ven quit (Read error: Connection reset by peer)
07:47:38*Ven joined #nim
07:51:01*Ven quit (Read error: Connection reset by peer)
07:51:07*Ven_ joined #nim
07:54:31*polde quit (Ping timeout: 250 seconds)
08:06:34*bjz joined #nim
08:09:39*coffeepot joined #nim
08:11:44*Ven_ quit (Read error: Connection reset by peer)
08:12:00*Ven joined #nim
08:14:04*Ven quit (Read error: Connection reset by peer)
08:14:08*Ven_ joined #nim
08:16:04*Ven_ quit (Read error: Connection reset by peer)
08:16:32*Ven joined #nim
08:24:32*edin quit (Quit: leaving)
08:27:23*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
08:27:35*yourname_ joined #nim
08:29:09yourname_\quit
08:29:13*yourname_ quit (Client Quit)
08:31:33*Ven joined #nim
08:33:28*Ven quit (Read error: Connection reset by peer)
08:33:39*Ven joined #nim
08:37:14*Ven quit (Read error: Connection reset by peer)
08:37:51*Ven joined #nim
08:43:54*zepolen quit (Ping timeout: 265 seconds)
08:45:45*strcmp1 quit (Remote host closed the connection)
08:49:49*Ven quit (Read error: Connection reset by peer)
08:50:15*Ven joined #nim
08:53:18*Ven quit (Read error: Connection reset by peer)
08:53:48*Ven joined #nim
09:08:00*Ven quit (Read error: Connection reset by peer)
09:08:03*Ven_ joined #nim
09:10:54*Ven_ quit (Read error: Connection reset by peer)
09:11:24*Ven joined #nim
09:11:30*Pisuke joined #nim
09:12:50*MyMind quit (Ping timeout: 250 seconds)
09:13:34*bjz quit (Ping timeout: 272 seconds)
09:14:43*Ven_ joined #nim
09:14:57*bjz joined #nim
09:15:51*Ven quit (Read error: Connection reset by peer)
09:31:34NimBotnim-lang/Nim devel e84a411 JamesP [+0 ±1 -0]: add example to proc headings for... 1 more lines
09:31:34NimBotnim-lang/Nim devel 1f3e473 Dominik Picheta [+0 ±1 -0]: Merge pull request #3458 from jlp765/systemExamples... 2 more lines
09:39:39*wan quit (Quit: WeeChat 1.3)
09:46:14*strcmp1 joined #nim
09:46:14*strcmp1 quit (Remote host closed the connection)
10:13:20*Ven_ quit (Read error: Connection reset by peer)
10:13:31*Ven joined #nim
10:25:51*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
10:25:52Araqif you need to figure out where a symbol comes from, maybe you should press F2 to jump to the definition... but hey, why not use notepad for programming. we don't need no stinkin' Photoshop, MS Paint works great.
10:38:42*bjz_ joined #nim
10:38:50*bjz quit (Ping timeout: 260 seconds)
10:50:00AraqOnO: terminal.nim doesn't work with --app:gui anymore
10:50:33Araqand stuff I'm importing ends up importing terminal.nim, so it's not like I can simply not import terminal.nim ...
10:51:16Araqbut hey, better have colors than a compiler usable as a library, right? ;-)
10:57:38*razaaa joined #nim
11:04:16*edaaa_ joined #nim
11:18:29*Ven joined #nim
11:22:01*vega_nsk joined #nim
11:31:31*strcmp1 joined #nim
11:31:53*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
11:32:34*strcmp1 quit (Remote host closed the connection)
11:33:23*strcmp1 joined #nim
11:33:29*strcmp1 quit (Remote host closed the connection)
11:37:49*Kingsquee joined #nim
11:51:04*Kingsquee quit (Quit: http://i.imgur.com/EsXzoum.png)
11:55:44*BitPuffin joined #nim
12:09:08*polde joined #nim
12:14:32*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
12:15:18*ayia joined #nim
12:16:11ayiahi guys, are there any alternative to car/cdr (first/rest) in nim?
12:34:34ayiais anybody here? :)
12:38:13*elrood joined #nim
12:39:50*strcmp1 joined #nim
12:40:03*boopsiesisaway quit (Quit: WeeChat 1.3)
12:41:30*strcmp2 joined #nim
12:43:49*strcmp1 quit (Ping timeout: 244 seconds)
12:53:12flyxayia: well there are a[a.low] and a[a.high], is that what you're looking for?
12:58:04Araqayia: usually 'seq' is preferred over list in Nim. a[0] is first, a[^1] is the last element
12:59:12flyxI didn't know about ^ syntax, is that documented somewhere?
13:00:43flyxah, found it
13:01:26ayiaAraq: can I do something like first(@["a", "b", "c"]) => "a" and rest(@["a", "b", "c"]) => @["b", "c"] ?
13:02:12ayiaa[0] is instead of first i guess... what about rest?
13:02:21flyxa[1..^1] ?
13:03:51ayiahm... `@["a", "b", "c"][1..^2]` didn't work in repl (`nim i`)
13:05:45*flyx is not sure if `^` works in this context, as he never used it before
13:05:56ayiaworked via normal compilation: `@["a", "b", "c"][1..2]` but function alternative instead of [] syntax would be preferable
13:06:24flyxif not, the traditional way is a[1..a.high]
13:09:12Araqayia: with devel, `[]`(a, i) works. sort of. it's not a first class proc, but you can pass it to a template this way
13:12:54ayiagot it, thanks!
13:23:19*vega_nsk quit (Quit: Connection closed for inactivity)
13:27:42*Ven joined #nim
13:53:09*edaaa_ quit (Quit: leaving)
14:00:10*Jehan_ joined #nim
14:04:29Jehan_Araq dom96: Current devel HEAD is broken because the last PR had # instead of ## for a couple of the examples. Just FYI. :)
14:04:50Araqhrm?
14:04:55Araqyou mean docgen is broken?
14:04:59Araqor everything?
14:07:18Jehan_Araq: I mean you can't build anything because lib/system.nim is broken. :)
14:07:29Araqo.O
14:07:30Jehan_Hint: system [Processing]
14:07:30Jehan_lib/system.nim(867, 3) Error: invalid indentation
14:07:40Araqlovely
14:07:54Jehan_Eh, it happens, and it's trivial to fix. :)
14:08:03Jehan_But I thought you might want to know anyway. :)
14:10:10*pregressive joined #nim
14:12:26*pregressive quit (Client Quit)
14:12:56NimBotnim-lang/Nim devel c977daf Araq [+0 ±2 -0]: added poDemon flag for process management
14:12:56NimBotnim-lang/Nim devel 03550f1 Araq [+0 ±1 -0]: createThread is more convenient to use with a proc taking no arguments
14:12:56NimBotnim-lang/Nim devel 3ccd5ca Araq [+0 ±1 -0]: make terminal.nim work with --app:gui
14:12:56NimBotnim-lang/Nim devel d221241 Araq [+0 ±1 -0]: fixes wrong doc comments
14:14:06*pregressive joined #nim
14:26:04*smodo joined #nim
14:27:49*HaCk3D joined #nim
14:28:00HaCk3DAraq: ping
14:28:10Araqpong
14:28:32HaCk3Dur suggestions for unicode fix to nimcurses doesnt worked
14:28:50HaCk3Dive tried {. emit "c code" .}
14:29:04HaCk3Dso as posix setlocale
14:29:41HaCk3Dso, pdcurses isn't working properly on *nix
14:30:54Araqwell if I had a dollar for everything that doesn't work properly on *nix I'd be a millionaire.
14:31:00HaCk3Dcan u advice me where too look and what to fix on nimcurses
14:31:02HaCk3D:DDDD
14:31:35Araqwell it IS a unicode problem, right?
14:31:43HaCk3D+
14:32:10HaCk3Dive tried even LC_ALL("RU_ru.utf8") ./main
14:32:11Araqfirst of all, check your input .nim files are stored in UTF-8. (the compiler doesn't check for this)
14:32:17HaCk3Decho works perfect
14:32:28HaCk3Dk, w8 a bit
14:33:40HaCk3Dfile main.nim -> main.nim: UTF-8 Unicode text
14:34:11HaCk3Dbtw it shows only some letters
14:34:28HaCk3Dlike "иве" instead of "Привет"
14:34:46HaCk3Dso setlocale helped a bit, but not so good :)
14:34:54Araqwhat do you mean? it shows?
14:35:07Araqecho shows this? pdcurses shows this?
14:35:25HaCk3Dprintw("Привет") = "_ @иве B"
14:35:36Araqdoes echo "Привет" without cursing work?
14:35:38HaCk3Dsome other letters work too
14:35:42HaCk3Dofc
14:35:49HaCk3Decho works perfect
14:36:00Araqok, that's good to hear.
14:36:10HaCk3Dbut in curses mode printw() doesnt
14:36:37HaCk3Dand btw echo in curses mode works too, but it messed all the text
14:37:00HaCk3Didk where to dig
14:37:47HaCk3Dtried everything: all variants of setlocale, changed the wrapper lib from "ncurses" to "ncursesw" (w - for wide char)
14:39:13HaCk3Dbtw rnowley, the author of nimcurses doesnt reply to my PR
14:39:20HaCk3Ddo u know him?
14:42:05*pregressive quit (Remote host closed the connection)
14:45:00*strcmp2 quit (Quit: bbs)
14:53:57*HaCk3D left #nim (#nim)
14:56:57Araqno.
14:59:21*Jehan_ quit (Quit: Leaving)
15:00:53*Ven_ joined #nim
15:01:26*Ven quit (Read error: Connection reset by peer)
15:02:21*askatasuna quit (Quit: WeeChat 1.3)
15:03:46*Ven_ quit (Read error: Connection reset by peer)
15:03:56*Ven joined #nim
15:10:04*keypusher joined #nim
15:12:37*gmpreussner_ quit (Ping timeout: 244 seconds)
15:35:59*razaaa quit (Ping timeout: 240 seconds)
15:36:22*razaaa joined #nim
15:42:32*Ven quit (Quit: My MacBook has gone to sleep. ZZZzzz…)
15:44:59*strcmp1 joined #nim
15:46:43*darkf quit (Quit: Leaving)
15:47:35*yglukhov quit (Ping timeout: 264 seconds)
16:03:05*vqrs quit (Ping timeout: 268 seconds)
16:04:42*ayia quit (Remote host closed the connection)
16:05:47*vqrs joined #nim
16:05:57*strcmp1 quit (Quit: bbs)
16:18:49*desophos joined #nim
16:20:40*pregressive joined #nim
16:20:53*barosl quit (Quit: Leaving)
16:23:38*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
16:28:22*barosl joined #nim
16:29:36*xet7 quit (Ping timeout: 264 seconds)
16:29:37*taotetek1 quit (Ping timeout: 264 seconds)
16:29:37*profan quit (Ping timeout: 264 seconds)
16:30:54*profan joined #nim
16:39:41*yglukhov joined #nim
16:41:49*xet7 joined #nim
16:42:41*taotetek1 joined #nim
16:42:52*pregressive quit (Remote host closed the connection)
16:43:56*yglukhov quit (Ping timeout: 250 seconds)
16:51:53*pregressive joined #nim
17:03:51*desophos quit (Remote host closed the connection)
17:04:12*yglukhov joined #nim
17:08:17*desophos joined #nim
17:29:30*vqrs quit (Ping timeout: 240 seconds)
17:31:50*boop joined #nim
17:31:51*boop quit (Client Quit)
17:32:09*boop joined #nim
17:32:14*boop is now known as Guest46705
17:35:55*vqrs joined #nim
17:39:44*gmpreussner|work joined #nim
17:47:31*smodo quit (Quit: Leaving)
17:51:44*desophos quit (Remote host closed the connection)
17:54:12*desophos joined #nim
17:57:35*Matthias247 joined #nim
18:05:18*vendethiel joined #nim
18:09:55*desophos quit (Remote host closed the connection)
18:10:52*smodo joined #nim
18:11:34*jaco60 joined #nim
18:13:12*desophos joined #nim
18:14:24*desophos quit (Remote host closed the connection)
18:19:40*desophos joined #nim
18:23:24xet7Is there wiki software programmed with nim ?
18:28:25AraqI use "nim rst2html" for every document I write
18:29:03Araqthat's not really "wiki" software, but I prefer static web pages.
18:32:40*desophos quit (Remote host closed the connection)
18:36:34*Trustable joined #nim
18:37:43*brson joined #nim
18:38:21*BitPuffin quit (Ping timeout: 255 seconds)
18:48:47*taotetek1 is now known as taotetek
18:49:16*taotetek is now known as Guest70365
18:51:00*Guest70365 is now known as taotetek
18:53:08*desophos joined #nim
18:55:53*desophos quit (Remote host closed the connection)
19:15:45*pregressive quit (Remote host closed the connection)
19:16:29*pregressive joined #nim
19:16:59*desophos joined #nim
19:19:37*yglukhov quit (Remote host closed the connection)
19:23:41*nande joined #nim
19:46:55*vqrs quit (Ping timeout: 250 seconds)
19:47:20*vqrs joined #nim
19:57:32*Sembei joined #nim
19:59:19*Pisuke quit (Ping timeout: 260 seconds)
20:03:25*strcmp1 joined #nim
20:06:09*Jesin quit (Quit: Leaving)
20:08:47*strcmp1 quit (Quit: bbs)
20:17:17*razaaa quit (Quit: Leaving)
20:24:37*brson quit (Ping timeout: 256 seconds)
20:32:39*brson joined #nim
20:40:44*brson quit (Quit: leaving)
20:54:52*nande quit (Read error: Connection reset by peer)
20:57:50*smodo quit (Ping timeout: 272 seconds)
21:02:15*Jesin joined #nim
21:04:50*bjz_ quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
21:09:26*HaCk3D joined #nim
21:09:53HaCk3Dhm, does any1 know why execCmdEx "echo -e 'lines\ncols'|tput -S" shows wrong amount of columns and rows?
21:17:29Araquse r"echo ... " for raw string literals?
21:20:00HaCk3Dit shows me the default size of terminal, i think, coz it print "24 80" all the time
21:20:08HaCk3Deven if i resize the term
21:20:54HaCk3Dr"..."
21:20:58HaCk3Ddoesnt help
21:22:04HaCk3Dand "stty size" shows stty: standard input: Inappropriate ioctl for device
21:22:36*pregressive quit (Remote host closed the connection)
21:24:23*HaCk3D left #nim (#nim)
21:45:56*jakesyl joined #nim
21:57:25*Trustable quit (Remote host closed the connection)
21:58:01*brson joined #nim
22:17:21*elrood quit (Quit: Leaving)
22:33:09*Jesin quit (Quit: Leaving)
22:33:52*wan joined #nim
22:45:02*Guest46705 is now known as Guest46705isaway
22:45:46*vendethiel quit (Ping timeout: 268 seconds)
23:11:01*nande joined #nim
23:22:19*Matthias247 quit (Read error: Connection reset by peer)
23:32:16*coryg joined #nim
23:34:26*desophos quit (Remote host closed the connection)
23:42:19*coryg quit (Ping timeout: 240 seconds)
23:43:28*coryg joined #nim
23:49:22*desophos joined #nim
23:52:50*coryg quit (Ping timeout: 246 seconds)
23:53:59*coryg joined #nim
23:58:26*coryg quit (Ping timeout: 246 seconds)