<< 17-07-2015 >>

00:06:19*thalesr joined #nim
00:16:30*jaco60 quit (Ping timeout: 246 seconds)
00:17:09*mt_desktop quit (Remote host closed the connection)
00:18:06*X67r quit (Quit: leaving)
00:20:05*jaco60 joined #nim
00:32:09*dom96_ quit (Ping timeout: 246 seconds)
00:42:05*jaco60 quit (Ping timeout: 244 seconds)
00:44:33*elbow joined #nim
01:04:46*vendethiel joined #nim
01:07:58*gyeates quit (Ping timeout: 248 seconds)
01:08:12*BitPuffin|osx quit (Ping timeout: 264 seconds)
01:15:15*dalarmmst quit (Ping timeout: 255 seconds)
01:28:59*vendethiel quit (Ping timeout: 265 seconds)
01:37:51*johnsoft quit (Ping timeout: 264 seconds)
01:38:44*johnsoft joined #nim
01:41:14*thalesr quit (Quit: Leaving)
02:01:36*ChrisMAN quit (Ping timeout: 255 seconds)
02:12:39*brson quit (Quit: leaving)
02:16:04*ChrisMAN joined #nim
02:24:50*EXetoC quit (Ping timeout: 240 seconds)
02:32:15*drewsrem quit (Quit: Leaving)
03:06:09*rgv151 quit (Remote host closed the connection)
03:27:21*darkf joined #nim
04:01:48*BitPuffin|osx joined #nim
04:23:26*doxavore quit (Quit: I said good day, sir.)
04:47:56*yglukhov_____ joined #nim
05:09:01*aziz joined #nim
05:16:04*gyeates joined #nim
05:22:10*n1ftyn8__ joined #nim
05:22:50*EastByte_ joined #nim
05:23:09*cyraxjoe_ joined #nim
05:23:24*n1ftyn8_ quit (Ping timeout: 252 seconds)
05:23:25*Heartmender quit (Ping timeout: 252 seconds)
05:23:25*biscarch quit (Ping timeout: 252 seconds)
05:23:26*EastByte quit (Ping timeout: 252 seconds)
05:23:26*cyraxjoe quit (Read error: Connection reset by peer)
05:23:40*Heartmender joined #nim
05:23:44*Heartmender quit (Changing host)
05:23:44*Heartmender joined #nim
05:23:44*Heartmender quit (Changing host)
05:23:44*Heartmender joined #nim
05:24:35*n1ftyn8__ is now known as n1ftyn8_
05:30:09*biscarch joined #nim
05:30:28*yglukhov_____ quit (Quit: Be back later ...)
05:46:10*bjz joined #nim
06:11:25*zephyz quit ()
06:15:29*zephyz joined #nim
06:16:04*zephyz quit (Client Quit)
06:21:51*dv-_ quit (Changing host)
06:21:51*dv-_ joined #nim
06:30:28*darkf quit (Quit: Leaving)
06:30:57*darkf joined #nim
06:33:11*mt_laptop quit (Quit: Leaving)
06:38:27*gyeates quit (Ping timeout: 264 seconds)
06:44:00*FedeOmoto quit (Quit: Leaving)
06:51:10*polde joined #nim
06:52:42*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
06:54:12*bjz joined #nim
07:00:25r-kupython folk heard of our efforts and they race to beat us to it http://www.infoq.com/news/2015/07/Python-35
07:01:23r-kuAccording to Selivanov, "native coroutines and the associated new syntax features make it possible to define context manager and iteration protocols in asynchronous terms." Making it possible for Python programs to perform asynchronous calls when entering and exiting a runtime context, to perform asynchronous calls in iterators.
07:26:24*bjz quit (Quit: My MacBook Pro has gone to sleep. ZZZzzz…)
07:54:47*apense_ quit (Ping timeout: 240 seconds)
07:56:06*jszymanski joined #nim
07:56:42*dalarmmst joined #nim
07:57:55*strcmp1 quit (Quit: Leaving)
08:07:00*jszymanski1 joined #nim
08:07:00*jszymanski quit (Read error: Connection reset by peer)
08:08:06*OnwardEuler joined #nim
08:09:55*strcmp1 joined #nim
08:12:05*coffeepot joined #nim
08:20:00*jez0990_ joined #nim
08:20:06*Trustable joined #nim
08:20:22*jez0990 quit (Ping timeout: 244 seconds)
08:24:24*BitPuffin|osx quit (Ping timeout: 264 seconds)
08:37:45*xet7 joined #nim
08:39:33*Onward_Euler joined #nim
08:43:02*OnwardEuler quit (Ping timeout: 244 seconds)
08:44:40*bjz joined #nim
08:53:10Araqr-ku: meh, do we need mCurrentmoduleDir?
08:54:23r-kuargument to {.compile.} is also relative to where compiler is invoked. got better ideas how to point it to file in stdlib?
08:54:55Araqit should be relative to the file that has the .compile pragma
08:55:24Araqbut also subject to --path if it cannot be found relatively to that file
08:55:43r-kuthat would make more sense yes
08:56:10Araqmake it happen :-)
08:56:35Araqarguably every bug marked as "path handling" is a showstopper for version 1.
08:56:54Araqpath handling must be correct.
08:57:20r-kuyou are totally not helping me be lazy
09:05:15*Jehan_ joined #nim
09:09:11*nande quit (Remote host closed the connection)
09:13:29*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
09:14:12*coffeepot joined #nim
09:14:58*Onward__Euler joined #nim
09:15:12*Onward_Euler quit (Read error: Connection reset by peer)
09:22:23*vendethiel joined #nim
09:33:34*thotypous quit (Ping timeout: 248 seconds)
09:34:35*aziz quit (Remote host closed the connection)
09:40:12*Onward_Euler joined #nim
09:43:09*Onward__Euler quit (Ping timeout: 246 seconds)
09:43:55*jaco60 joined #nim
09:51:47*vega joined #nim
09:54:57*vega quit (Client Quit)
09:55:24*vega joined #nim
10:01:21*thotypous joined #nim
10:09:08*sepisoad joined #nim
10:11:10*sepisoad quit (Client Quit)
10:27:58*Jehan_ quit (Quit: Leaving)
10:36:23*UberLambda joined #nim
10:55:21*xcombelle joined #nim
11:10:38*Onward__Euler joined #nim
11:11:16*Onward__Euler is now known as OnwardEuler
11:12:04*OnwardEuler quit (Read error: Connection reset by peer)
11:13:48*Onward_Euler quit (Ping timeout: 246 seconds)
11:16:34*boopsies quit (Quit: WeeChat 1.2)
11:16:41*boop joined #nim
11:51:41*someplace quit (Quit: poof)
11:52:56*vega quit (Quit: Ухожу я от вас (xchat 2.4.5 или старше))
11:54:01*someplace joined #nim
11:55:48*boop quit (Quit: WeeChat 1.2)
11:58:00*Pisuke quit (Quit: WeeChat 1.2-dev)
11:59:04*boop joined #nim
12:21:47*dalarmmst quit (Remote host closed the connection)
12:35:05federico3Araq: is your talk on Monday going to be recorded?
12:39:29bogenwell, I've been using nim at work the past week (JS back end), currently to write GreaseMonkey userscripts to augment company pages for our team's specific use cases. Sure beats doing them in straight JS.
12:50:16fowlGood old js
12:50:43fowlWhere [] != [] and 1+1=11 if one of the ones is a string
13:06:37wuehlmausfederico3: i think, that a video on youtube about nim would really help making nim more popular
13:08:34federico3Yes! And a mailing list :)
13:09:28federico3fowl: or maybe the number are in gray code
13:12:22*doxavore joined #nim
13:14:55*xcombelle quit (Quit: Leaving)
13:18:47*UberLambda quit (Ping timeout: 240 seconds)
13:19:18*EXetoC joined #nim
13:26:51def-federico3: there is a mailing list, it's just not widely used
13:27:41federico3def-: yep - maybe mirroring the forum will help
13:32:51*Sembei joined #nim
13:46:19wuehlmausi like news.gmane.org to read about a language. it mirrors mailinglists as newsgroups
13:50:24*yglukhov_____ joined #nim
14:02:28*UberLambda joined #nim
14:15:34*Demos joined #nim
14:19:26*FedeOmoto joined #nim
14:20:36federico3NNTP is the most underrated protocol
14:27:25*yglukhov_____ quit (Quit: Be back later ...)
14:31:59*BitPuffin|osx joined #nim
14:51:53*Demos quit (Remote host closed the connection)
14:53:57*Demos joined #nim
15:04:18*yglukhov_____ joined #nim
15:14:27*drewsrem joined #nim
15:18:09*yglukhov_____ quit (Quit: Be back later ...)
15:18:27*FedeOmoto quit (Ping timeout: 246 seconds)
15:27:10*coffeepot quit (Quit: http://www.kiwiirc.com/ - A hand crafted IRC client)
15:29:39*gyeates joined #nim
15:35:04*FedeOmoto joined #nim
15:36:44Demosnobody uses NNTP because we have web forums now
15:37:02Demosand ISPs stopped offering newservers
15:47:10*UberLambda quit (Remote host closed the connection)
15:48:29federico3nntp is not dead, there are survivors; however it was very unpopular years before forums :)
15:54:18wuehlmausi was deeply saddened when spammers came to overtake newsgroups i loved reading
15:55:26wuehlmausand i always hated the quoting of many users that quoted much too much.
15:56:09wuehlmausbut that's where a news reader can really help at least.
16:01:01*NimBot joined #nim
16:04:08*Matthias247 joined #nim
16:07:33*boop is now known as boopisaway
16:11:12*Demos quit (Remote host closed the connection)
16:16:06Araqfederico3: I don't know if it will be recorded. if not, I'll produce a youtube video on my own, if my contract allows this. (I have no idea ...)
16:29:18federico3put it on kickstarter and we'll provide funding
16:32:02*jszymanski1 is now known as jszymanski
16:34:33Araq:-)
16:35:24*cyraxjoe_ is now known as cyraxjoe
16:39:12*drewsrem quit (Quit: Leaving)
16:41:39*Demos joined #nim
17:07:05*boopisaway is now known as boop
17:07:38*Demos quit (Remote host closed the connection)
17:10:42*Demos joined #nim
17:19:48*Matthias247 quit (Read error: Connection reset by peer)
17:20:20*doxavore quit (Quit: I said good day, sir.)
17:33:51*doxavore joined #nim
17:52:23*flaviu quit (Remote host closed the connection)
17:52:39*flaviu joined #nim
18:06:02*brson joined #nim
18:10:58*bogen-work joined #nim
18:13:12bogen-workhow does one prevent a procedure from being eliminated (when dead code elimination is enabled). I have a proc that is `reffered` to to within JS asm, but nim does not know I'm using it, so it eliminates it.
18:14:10*sparrk joined #nim
18:15:15sparrkWhat is the recommended way to chomp a string in Nim? In Ruby I would do "chairs".chomp("s") # => "chair"
18:25:23Araqbogen-work: use .exportc: "export_as_this_name" for that
18:25:39Araqsparrk: not sure, system.setlen?
18:34:58bogen-workAraq: hmmm... ok, these are local procedures (closures), so my "export_as_this_name" will need to come from a macro to add a unique id. I liked the names nim was giving them, because they were unique.
18:35:07bogen-workbut that does work
18:43:03*X67r joined #nim
18:50:40*Demos quit (Remote host closed the connection)
18:51:21Araqhrm? you access closures from JS?
18:51:56*Demos joined #nim
18:52:24bogen-workYes, I do all the time. They have been working well. in the dom js dom you have ro reference timeout callbacks with "`callbackproc`();" which is why I'm having to do a workaround. (all the other event handlers you pass in a proper nim proc, but not for the timeout handler)
18:52:25*darkf quit (Quit: Leaving)
18:52:57bogen-works/dom js dom/nim js dom/
18:53:17sparrkAraq that would be fine for the chomp! equiv (in place alteration vs copy) I'm happy to make a pull request for chomp for the strutils module if there is interest. I'd model it directly after Ruby's chomp (see here: http://ruby-doc.org/core-2.2.0/String.html#method-i-chomp)
18:54:25def-sparrk: see also strutils.strip, but would be nice if it worked with non-whitespace like chomp
18:55:03sparrkYeah def- exactly
18:55:13bogen-workAraq: well, I use nested nim procs that access parent's scope to js event handlers, then exit the parent procs.
18:55:31def-sparrk: and writing "foobar".strip(leading = false) is a bit awkward as well
18:55:54Araqhey, I think it's nice
18:56:18def-Araq: I'd rather write which part to strip than the one not to strip
18:56:48Araqso the default should be to strip nothing?
18:57:04bogen-workAraq: so, am I not supposed to be able to do that? (pass local procs as callbacks, then return from the parent)
18:57:04def-no, that would be even worse
18:57:44Araqbogen-work: add a testcase for it so we can ensure it keeps working. I certainly didn't have that in mind when writing the JS codegen
18:58:31bogen-workAraq: Thanks. Ok, since I do that extensively in my code, I'll want to make sure that does not break.
19:00:04*gyeates quit (Ping timeout: 246 seconds)
19:08:07*anthgur joined #nim
19:41:01*Demos quit (Read error: Connection reset by peer)
19:41:07*Demos_ joined #nim
19:47:14sparrkOk, so I have code that matches Ruby's chomp behavior, should I put it in a pull request to String utils, or do should I paste it into a code window first?
19:48:00sparrkI have doAsserts to make sure it mirrors Ruby behavoir (although, that might not even be what the Nim language wants, I can always just update it to what the intended behavior is)
19:51:41sparrklet me just post it somewhere first I'm sure I'm missing some pragmas or something
19:55:11EXetoCPRs can of course be changed if necessary
19:59:24EXetoCstrip can mimic that behavior I think
20:01:14*anthgur quit (Quit: My Mac has gone to sleep. ZZZzzz…)
20:05:10sparrkYeah, but it is kinda akward if you just want to remove an "s" or just one new line because you took in standard input. Ok so question, what is with the rsu____ pragmas?
20:05:21*Trustable quit (Remote host closed the connection)
20:05:42sparrkbecause I can get everything to work until I try rebuilding my executable with those pragmas following the pattern.
20:05:56sparrk(I'm trying to set rsuChomp pragmas)
20:12:58*doxavore quit (Quit: I said good day, sir.)
20:16:07*anthgur joined #nim
20:19:14sparrkWhat is the difference between assert and doAssert?
20:20:59def-http://nim-lang.org/docs/system.html#doAssert.t,bool,string
20:21:08def-sparrk: so assert isn't run with -d:release, doAssert is
20:22:25sparrkah, gotcha
20:28:07EXetoCsparrk: that'd be the argument rather than the pragma. it's for giving the proc a specific name
20:28:28EXetoCit's a way to circumvent name-mangling
20:30:06sparrkhttps://github.com/nim-lang/Nim/pull/3131
20:30:32sparrklet me know what you guys think! It's miller time here on the east coast so I'll be back later :)
20:31:00Araqwhat is miller time?
20:31:43sparrkBeer time :)
20:31:48sparrk(because work is over)
20:32:01Araqsparrk: btw stdin.readline doesn't produce a newline to chomp
20:32:08sparrk(but I own my own company, so I can afford to take a week off to start learning the next big thing)
20:32:12baabelfishsparrk: beer time because just beer time
20:32:42baabelfishsparrk: doesn't friday mean anything? :)
20:32:46sparrk:)
20:32:53sparrkI'm very excited for Nim
20:33:18sparrkAraq: that is good to know! I still like having chomp around for dealing with other types of input and from other sources
20:33:21sparrkbut I really have to go now
20:33:47sparrkif you don't feel like chomp should be in the language then no worries! And please let me know if I'm screwing up how I am writing the language
20:33:47Araqcheers
20:33:52sparrk:)
20:34:21AraqI don't mind chomp but I think everything is getting too bloated :P
20:36:42*doxavore joined #nim
20:37:35bogen-workAraq: alright, here is a test case. https://github.com/nim-lang/Nim/issues/3132
20:38:21*sparrk quit (Ping timeout: 265 seconds)
20:39:33Araqbogen-work: that's a start but not a test case ;-) read this please https://github.com/nim-lang/Nim/blob/devel/contributing.rst#compiler
20:42:33bogen-workOk, I'll look into that when I get home. At least I partially documented what needs to be included in the test case.
20:50:20*Jesin joined #nim
21:00:57*FedeOmoto quit (Quit: Leaving)
21:18:16*Varriount|Laptop joined #nim
21:19:17Varriount|LaptopAraq: I wish I had enough money to go to OSCon. >_<
21:20:36*bogen-work quit (Quit: Lost terminal)
21:20:44*Demos_ quit (Remote host closed the connection)
21:21:56*Demos joined #nim
21:22:53*Demos quit (Remote host closed the connection)
21:41:59*bogen-work joined #nim
21:56:21*vendethiel quit (Ping timeout: 255 seconds)
22:00:30*Varriount|Laptop quit (Ping timeout: 246 seconds)
22:07:26*doxavore quit (Remote host closed the connection)
22:11:59*jszymanski quit (Quit: computer sleeps...)
22:16:57*bogen-work quit (Ping timeout: 265 seconds)
22:19:38*vendethiel joined #nim
22:24:33*dwight joined #nim
22:24:33*dwight is now known as bogen-work
22:28:49*Matthias247 joined #nim
22:29:06*anthgur quit (Quit: My Mac has gone to sleep. ZZZzzz…)
22:31:47*saml quit (Quit: Leaving)
22:33:28*bogen-work left #nim (#nim)
22:33:48*boop is now known as boopisaway
22:44:21*vendethiel quit (Ping timeout: 256 seconds)
23:06:56*Varriount joined #nim
23:14:17*Matthias247 quit (Read error: Connection reset by peer)
23:20:36*X67r quit (Quit: leaving)
23:28:45*brson quit (Quit: leaving)
23:34:14*anthgur joined #nim
23:52:38*vendethiel joined #nim