<< 06-07-2014 >>

00:29:27*OrionPK quit (Remote host closed the connection)
00:29:41*OrionPK joined #nimrod
00:45:54*darkf joined #nimrod
00:49:28*Matthias247 quit (Read error: Connection reset by peer)
01:09:37*brson quit (Quit: leaving)
01:32:25*OrionPK quit (Remote host closed the connection)
01:32:41*OrionPK joined #nimrod
01:34:21*OrionPK quit (Remote host closed the connection)
01:34:39*OrionPK joined #nimrod
01:35:09def-should there be "sorted" and "reversed" procs in the standard lib so you don't have to copy before sorting/reversing?
01:35:52*OrionPK quit (Remote host closed the connection)
01:36:09*OrionPK joined #nimrod
01:38:33*OrionPK quit (Remote host closed the connection)
01:38:47*OrionPK joined #nimrod
02:18:04OrionPKDemos when are we getting visual studio with the integrated debugger goin for nimrod huh?
02:18:32Demosoh I was working on that!. Well it actually works now if you just turn on --debuginfo and --lineDir:on
02:18:44DemosI guess I can rewrite my syntax highlighting to be less insane
02:20:55OrionPKnice!
02:21:06OrionPKdo you have a repo?
02:21:21OrionPKhave you been using it?
02:22:23fowldef-, there is an inline sort func iirc
02:23:07fowldef-, i'd like an inline distnct
02:23:15fowler not inline, in-place?
02:23:20def-fowl: yeah, but you need to copy first, and can only sort afterwards
02:23:59fowldef-, pass var then >_>
02:24:29def-fowl: then my original seq is manipulated afterwards
02:25:25DemosOrionPK, I do, it is https://github.com/barcharcraz/VisualNimrod, but it is pretty buggy, and you do not need it to use the debugger
02:25:47Demosjust compile as above and open the executable in the VS debugger
02:26:09fowldef-, then what you want is a copy..
02:26:12Demosthe stuff in the watch window is a little wierd, but I dont know how to fix that even with a plugin
02:27:59*OrionPK quit (Remote host closed the connection)
02:28:12*OrionPK joined #nimrod
02:34:47def-fowl: yes, but i want it more performant. if i explicitly make a copy, and then sort it, i iterate over the seq twice, and i want it just in one step
02:35:46fowldef-, ahh
02:36:25fowlis it better to sort or deduplicate first
02:38:06OrionPKcool
02:38:07def-fowl: if you need to do both, sort first, then you can deduplicate more efficiently
02:38:11OrionPKdemos you're still workin on it though?
02:38:23def-fowl: (but distnct doesn't do that)
02:38:50DemosOrionPK, I have not really been, although it looks like I will not be getting into the compiler so it may make a good project
02:38:58Demosto resome
02:39:08Demos*resume
02:43:27*OrionPK quit (Remote host closed the connection)
02:43:42*OrionPK joined #nimrod
02:44:15*lorxu quit (Ping timeout: 255 seconds)
02:44:29OrionPKah yeah
02:44:34OrionPKit'd be super nice to have available
02:44:39OrionPK;)
02:44:39*OrionPK quit (Remote host closed the connection)
02:44:52*OrionPK joined #nimrod
02:48:34fowldafuq, glossolalia.nim(21, 22) Error: '|' expected
02:48:50fowlthat line, and all the ones around it, are comments -_-
02:53:47fowl##comments are checked for RST syntax.. nice
02:54:00fowli need a drink
03:19:21*superfunc joined #nimrod
03:19:47superfuncyo honeybadgers
03:20:45flaviuhi superfunc
03:24:47superfunchows it going?
03:26:47flaviuGreat, I'm currently playing a game of TF2 before bed
03:29:45superfuncnice, I'm finally getting a chance to make some progress on some of my nimrod projects. turns out I am not so productive on planes
03:31:39flaviuSame, here, not very productive, although not on planes.
03:31:50flaviuI might have to mess up my internet configuration to get things done
03:35:00superfunclol, I probably would too
03:45:18superfuncwhat is the syntax for a sequence of procedures?
03:46:18superfuncnvm
03:46:42superfuncswitching contexts from work-code had me all screwy
03:50:12*OrionPK quit (Remote host closed the connection)
03:50:29*OrionPK joined #nimrod
03:59:19*lorxu joined #nimrod
03:59:59*OrionPK quit (Remote host closed the connection)
04:00:12*OrionPK joined #nimrod
04:13:56*vendethiel quit (Ping timeout: 260 seconds)
04:14:52*vendethiel joined #nimrod
04:25:46*OrionPK quit (Remote host closed the connection)
04:26:00*OrionPK joined #nimrod
04:27:04*OrionPK quit (Remote host closed the connection)
04:27:20*OrionPK joined #nimrod
04:29:57*vendethiel quit (Ping timeout: 272 seconds)
04:31:17*flaviu quit (Ping timeout: 248 seconds)
04:31:34*OrionPK quit (Remote host closed the connection)
04:31:48*OrionPK joined #nimrod
04:35:03*superfunc quit (Ping timeout: 240 seconds)
04:48:51*icebattl1 joined #nimrod
04:54:25*xenagi quit (Quit: Leaving)
04:58:14*icebattle quit (Write error: Broken pipe)
04:58:33*BitPuffin quit (Ping timeout: 240 seconds)
05:00:06lorxuHey, I hava a question about style
05:01:05lorxuWhen you put and when not the T in front type?
05:24:41*BitPuffin joined #nimrod
05:25:19*OrionPK quit (Remote host closed the connection)
05:25:34*OrionPK joined #nimrod
05:26:42Demoslorxu, I use T all the time, and I never use ref or ptr type aliases, but there seems to be some disagreement there
05:27:02*Demos quit (Read error: Connection reset by peer)
05:28:13*OrionPK quit (Remote host closed the connection)
05:28:30*OrionPK joined #nimrod
05:30:26*OrionPK quit (Remote host closed the connection)
05:30:42*OrionPK joined #nimrod
05:31:35*BitPuffin quit (Ping timeout: 252 seconds)
05:31:46*OrionPK quit (Remote host closed the connection)
05:32:00*OrionPK joined #nimrod
05:32:42lorxuFor example in the utils.nim file of Aporia the types MainWin, Temp and Tap not have T
05:34:55lorxuThanks demos
05:35:26*superfunc joined #nimrod
06:02:03*lorxu quit (Ping timeout: 240 seconds)
06:14:25*boydgreenfield joined #nimrod
06:15:26*OrionPK quit (Remote host closed the connection)
06:15:41*OrionPK joined #nimrod
06:19:19*OrionPK quit (Remote host closed the connection)
06:19:34*boydgreenfield quit (Quit: boydgreenfield)
06:19:37*OrionPK joined #nimrod
06:26:13superfuncIf I want to negate a predicate passed in to a proc, should (not p) work?
06:31:57fowlsuperfunc, yes, not(true) == false and not(false) == true
06:32:24superfuncok, I must be doing something odd
06:33:24fowli can take a look
06:40:23superfuncproc remove_if[T](s: seq[T], predicate: proc(elt: T):bool) : seq[T] = filter(s, not(predicate))
06:42:13fowlsuperfunc, ah no
06:42:31fowlfilter(s) do (item:T)->bool: not(predicate(item))
06:44:01fowlotherwise, you could define `not` to work the way you had it: proc `not`* [T] (f: proc(some:T):bool): proc(some:T):bool = return proc(some:T):bool = not(f(some))
06:44:39superfuncwow, thanks
06:47:07*boydgreenfield joined #nimrod
06:47:12fowlsure
06:48:01*boydgreenfield quit (Client Quit)
06:53:57superfuncfowl: Why can't we just return not(f(some))
06:56:38fowlsuperfunc, there is no "some" to operate on at that point, filter wants a function that it can call on the item to test it
06:57:50fowlsuperfunc, when we do `filter(myseq) do (item:int)->bool: item < 10` the do:.. part is just a function
07:00:00superfuncthat makes sense
07:00:12*superfunc needs more coffee
07:00:19fowl:p
07:01:00fowltheres not really any difference between that `not` and inlining it, though if you have that not function you might be able to do weird things like not(isNil)(myPtr)
07:01:26fowllet notNil = not(isNil); echo notNil(myPtr)
07:08:39superfuncI wouldn't export it
07:09:01superfuncjust use it in the remove_if, which I only want because I'm picky
07:28:20*BitPuffin joined #nimrod
07:33:21*BitPuffin quit (Ping timeout: 264 seconds)
07:40:18*foodoo joined #nimrod
08:03:03*superfunc quit (Ping timeout: 240 seconds)
08:07:47*io2 joined #nimrod
08:14:00*superfunc joined #nimrod
08:19:51*superfunc quit (Ping timeout: 272 seconds)
08:24:19*foodoo quit (Quit: leaving)
08:52:14*io2 quit (Remote host closed the connection)
08:53:43*io2 joined #nimrod
09:07:28*io2 quit (Ping timeout: 260 seconds)
09:15:30*ics quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
09:29:52*BitPuffin joined #nimrod
09:36:29*BitPuffin quit (Ping timeout: 272 seconds)
09:41:50*superfunc joined #nimrod
09:44:50*kunev joined #nimrod
09:49:46*Matthias247 joined #nimrod
09:55:31*superfunc quit (Quit: leaving)
09:59:20*io2 joined #nimrod
10:19:33*gsingh93_ quit (Quit: Connection closed for inactivity)
10:32:07*BitPuffin joined #nimrod
10:36:45*BitPuffin quit (Ping timeout: 255 seconds)
10:40:59*Trustable joined #nimrod
10:53:54*Utkan joined #nimrod
11:04:33*milosn quit (Ping timeout: 240 seconds)
11:20:56*Utkan quit (Read error: Connection reset by peer)
11:32:53*BitPuffin joined #nimrod
11:38:09*BitPuffin quit (Ping timeout: 264 seconds)
12:07:51*darkf quit (Quit: Leaving)
12:26:33*untitaker quit (Ping timeout: 240 seconds)
12:31:25*untitaker joined #nimrod
12:33:29*saml_ joined #nimrod
12:43:36*Trustable quit (Quit: Leaving)
12:47:27*flaviu joined #nimrod
12:52:03*kunev quit (Quit: leaving)
13:01:14*BitPuffin joined #nimrod
13:07:27*Trustable joined #nimrod
13:11:54*Utkan joined #nimrod
13:12:25*saml_ quit (Quit: Leaving)
13:20:22*Utkan is now known as utkan
13:40:05*utkan quit (Ping timeout: 248 seconds)
13:46:28*utkan joined #nimrod
13:54:18*utkan quit (Ping timeout: 255 seconds)
13:56:50*io2 quit (Quit: ...take irc away, what are you? genius, billionaire, playboy, philanthropist)
14:02:31*Jesin joined #nimrod
14:08:08*io2 joined #nimrod
14:31:48*io2 quit (Remote host closed the connection)
14:34:39*Matthias247_ joined #nimrod
14:40:02*io2 joined #nimrod
14:40:59*Matthias247_ quit (Read error: Connection reset by peer)
14:41:47*skyfex_ joined #nimrod
14:41:55*flaviu quit (*.net *.split)
14:41:55*Matthias247 quit (*.net *.split)
14:41:55*skyfex quit (*.net *.split)
14:41:55*EXetoC quit (*.net *.split)
14:47:45*xenagi joined #nimrod
14:49:30*flaviu joined #nimrod
14:54:08*EXetoC joined #nimrod
15:02:24*xenagi|2 joined #nimrod
15:05:47*xenagi quit (Ping timeout: 252 seconds)
15:10:48*xenagi|2 quit (Ping timeout: 255 seconds)
15:30:22*milosn joined #nimrod
15:48:51*boydgreenfield joined #nimrod
15:51:25*q66 joined #nimrod
15:53:38*boydgreenfield quit (Ping timeout: 252 seconds)
15:54:48*io2 quit (Quit: ...take irc away, what are you? genius, billionaire, playboy, philanthropist)
15:55:38*io2 joined #nimrod
15:57:19*io2 quit (Read error: Connection reset by peer)
15:58:59*io2 joined #nimrod
15:59:03*io2 quit (Client Quit)
16:00:22*io2 joined #nimrod
16:01:44*io2 quit (Remote host closed the connection)
16:02:17*io2 joined #nimrod
16:16:52*io2 quit (Quit: ...take irc away, what are you? genius, billionaire, playboy, philanthropist)
16:30:31*xenagi joined #nimrod
16:33:29*xenagi quit (Client Quit)
16:44:05*ics joined #nimrod
16:45:03*lorxu joined #nimrod
17:05:00*superfunc joined #nimrod
17:15:17*vendethiel joined #nimrod
17:19:45*gkoller joined #nimrod
17:19:57*vendethiel quit (Ping timeout: 255 seconds)
17:20:49*vendethiel joined #nimrod
17:24:17*OrionPK quit (Remote host closed the connection)
17:24:30*OrionPK joined #nimrod
17:33:27lorxuThere are plan to compile direct to machine instead of c
17:33:31lorxu?
17:37:04dom96lorxu: likely not before 1.0, but someday perhaps.
17:37:34lorxuOK
17:37:59lorxuOr may be a c compiler
17:43:17*gkoller quit (Ping timeout: 248 seconds)
17:55:01*vendethiel quit (Ping timeout: 248 seconds)
17:55:09*vendethiel joined #nimrod
18:03:31*ARCADIVS joined #nimrod
18:05:37*gkoller joined #nimrod
18:07:35*gkoller quit (Client Quit)
18:07:48*gkoller joined #nimrod
18:14:33*vendethiel quit (Ping timeout: 240 seconds)
18:14:43*vendethiel joined #nimrod
18:18:29*gkoller quit (Ping timeout: 248 seconds)
18:19:01*vendethiel quit (Ping timeout: 248 seconds)
18:19:39*vendethiel joined #nimrod
18:46:45AraqError: VM is not allowed to 'cast' when using regex
18:47:00Araqwell yes. how can anybody think that's a bug?
18:52:23*vendethiel quit (Remote host closed the connection)
18:52:44*vendethiel joined #nimrod
18:56:45*Varriount|Mobile joined #nimrod
19:14:37*Matthias247 joined #nimrod
19:43:21fowlwe should make flyx the master of tests
19:45:37*Anna_Jokela joined #nimrod
19:50:16*boydgreenfield joined #nimrod
19:53:20*superfunc quit (Ping timeout: 260 seconds)
19:56:58*boydgreenfield quit (Ping timeout: 264 seconds)
20:02:19*saml_ joined #nimrod
20:09:11*Jesin quit (Ping timeout: 272 seconds)
20:17:06*gkoller joined #nimrod
20:17:25*utkan joined #nimrod
20:18:45*io2 joined #nimrod
20:21:41*gkoller quit (Ping timeout: 248 seconds)
20:39:44*lorxu quit (Remote host closed the connection)
20:45:56*utkan quit (Ping timeout: 264 seconds)
20:47:42*gkoller joined #nimrod
20:50:24*gkoller1 joined #nimrod
20:52:05*gkoller quit (Ping timeout: 248 seconds)
20:54:02*Jesin joined #nimrod
21:01:01*Jesin quit (Quit: Leaving)
21:03:35*Jesin joined #nimrod
21:36:18*boydgreenfield joined #nimrod
21:46:12*feuloren joined #nimrod
21:50:53*lorxu joined #nimrod
21:51:54*untitaker quit (Excess Flood)
21:52:30*untitaker joined #nimrod
21:53:54*boydgreenfield quit (Quit: boydgreenfield)
21:56:47*boydgreenfield joined #nimrod
21:57:15Araqhi feuloren welcome
21:57:51feulorenhi Araq, hi everyone !
21:58:56*boydgreenfield quit (Client Quit)
22:10:56*Anna_Jokela quit (Quit: Page closed)
22:12:36*perturbation joined #nimrod
22:18:33*Trustable quit (Quit: Leaving)
22:20:35*Jesin quit (Quit: Leaving)
22:22:45perturbationIs there a good tutorial for simple use case of threading (supervisor process + n workers for I/O bound task)?
22:22:46*Jesin joined #nimrod
22:22:54*io2 quit (Quit: ...take irc away, what are you? genius, billionaire, playboy, philanthropist)
22:23:44perturbationI'm writing a really dumb web scraper and it would be good if I could have (say) 5 current worker processes to do downloading after I get the list of urls
22:28:13Araqperturbation: with devel you can do: import threadpool and then use spawn
22:36:20def-Araq: are you sure? says "undeclared identifier: 'fence'" for me
22:37:19Araqwell win64 ain't implemented yet
22:37:32AraqI think
22:37:33def-linux x86_64 too?
22:37:37perturbationI was just trying that and got the same error (I'm updating my nimrod installation now though, and I'm on amd64 linux)
22:37:45def-perturbation: ah, same
22:38:28Araq--threads:on used?
22:38:33def-oops
22:38:44def-now it works
22:38:49perturbationah, same :)
22:40:53*Stefan__ joined #nimrod
22:41:14Stefan__Hello
22:41:19def-hi Stefan__
22:41:43*utkan joined #nimrod
22:42:50Stefan__Some Nimrod vs. Rust discussion, in german language: http://www.mikrocontroller.net/topic/338188#new
22:44:08Stefan__You may post without login -- in case they write too stupid thinks about Nimrod.
22:45:12Stefan__I will read it also of course. but I do not know too much about Nimrod already, still learning...
22:45:24Stefan__Goodby
22:45:28Stefan__\quit
22:45:34def-thanks for the notice, bye
22:45:45utkanwish I knew German :P
22:46:01*Matthias247 quit (Read error: Connection reset by peer)
22:46:34*Stefan__ quit (Quit: Page closed)
23:12:32*utkan quit (Quit: Lingo - http://www.lingoirc.com)
23:14:48*superfunc joined #nimrod
23:19:06*dom96 quit (Excess Flood)
23:19:33*feuloren quit (Ping timeout: 240 seconds)
23:20:00*perturbation quit (Quit: Leaving)
23:20:20*dom96 joined #nimrod
23:20:30dom96hi
23:20:49lorxuHi
23:23:03*Jesin quit (Quit: Leaving)
23:25:12*Jesin joined #nimrod
23:25:36*brson joined #nimrod
23:27:40*Metantoine joined #nimrod
23:28:05*Metantoine left #nimrod (#nimrod)
23:29:44*superfunc quit (Ping timeout: 264 seconds)
23:42:33*Jesin quit (Ping timeout: 240 seconds)
23:53:45*darkf joined #nimrod
23:54:26*Jesin joined #nimrod
23:55:33*lorxu quit (Ping timeout: 248 seconds)