<< 11-06-2013 >>

00:13:07*tangentstorm quit (Ping timeout: 264 seconds)
00:16:16*tangentstorm joined #nimrod
00:37:01reactormonk"guarded" data flow analysis?
01:03:03*F0wl joined #nimrod
01:03:45F0wlIrc logs not working for yesterday
01:04:13*DAddYE quit (Remote host closed the connection)
01:04:29F0wlDid gsp(?) get the example working?
01:18:19*F0wl quit (Quit: Bye)
02:14:26*DAddYE joined #nimrod
02:14:33*DAddYE quit (Remote host closed the connection)
02:27:23*q66 quit (Remote host closed the connection)
04:08:20*OrionPK quit (Ping timeout: 255 seconds)
05:05:55Araqreactormonk: I'm not sure about the terms :P but I stole the idea from a guarded SSA representation
05:08:23Araqit's actually a very weak analysis but it's good enough and requires a single pass over the AST
05:12:46*Endeg joined #nimrod
06:09:30reactormonkAraq, what's it good for?
06:10:18fowlAraq, btw i tried it with var s: string; echo s and didnt get a warning
06:10:35fowlor maybe i did and i didnt see it from all the system.nim warnings >_>
07:22:16*XAMPP quit (Ping timeout: 246 seconds)
07:37:02*Araq_ joined #nimrod
08:03:16*gsp joined #nimrod
08:41:54*Araq_ quit (Read error: Connection timed out)
08:44:20*Araq_ joined #nimrod
08:45:57Araq_fowl: for now it only checks 'not nil' annotated types
08:46:34fowloh that makes sense
08:56:08*Araq_ quit (Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931])
09:00:11*gsp quit (Quit: Leaving.)
09:45:06*Araq_ joined #nimrod
09:51:57*XAMPP joined #nimrod
09:54:16*Araq_ quit (Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931])
10:22:39*gsp joined #nimrod
10:26:01*Araq_ joined #nimrod
10:47:40*Araq_ quit (Quit: ChatZilla 0.9.90 [Firefox 19.0.2/20130307023931])
10:50:14*gradha joined #nimrod
11:07:01*q66 joined #nimrod
11:10:28gspIs there a concise way of formatting real numbers (i.e. sprintf like substitutions) or should I use formatFloat(float, format, precision)?
11:10:28gspAlso, formatFloat is missing documentation on what ffDefault does exactly (switch between ffDecimal and ffScientific based on the value I guess?)
11:12:23gradhaformatFloat is the way to go, the docstring for the proc tells the difference between the parameters
11:12:48gradhahttp://nimrod-code.org/strutils.html#171
11:13:10gradhamaybe example outputs should be added to the documentation
11:13:42gsp... but there's three possible values for TFloatFormat: ffDecimal, ffScientific and ffDefault - the latter one isn't mentioned
11:14:56gradhatrue
11:15:34gspalright, thanks for answering my question
11:15:36gradhafor ffDefault you get the docstring at the beginning of the module "use the shorter floating point notation"
11:16:35gspah, right, missed that
11:17:24gradhalooking at the implementation it seems like the only difference between types is the letter that gets formatted, since the precission is independant
11:18:02gradhahttps://github.com/Araq/Nimrod/blob/master/lib/pure/strutils.nim#L1038
11:18:33gradhathe "cut off" docstring is fun
11:21:48fowlgsp, hey did you get sfml working
11:23:16fowlbtw i use template ff (f; prec = 3): string = formatFloat(f, ffDecimal, prec) then just call ff(somefloat) or ff(somefloat, 5)
11:24:08gspfowl, yeah! bit of a struggle, but ultimately using this PPA [http://ppa.launchpad.net/sonkun/sfml/] it worked - thanks for the help!
11:25:17gspalso, I checked out your chipmunk binding, invested some more time in compiling the current version the library myself and ultimately got that to work for me too
11:25:51fowl:) i have a bad habit of using bleeding-edge-everything
11:26:17fowlbut now that sfml2 is out, it should only be a couple years until its in ubuntu's repositories
11:28:31gspyeah ... :-D
11:28:31gspalso, would there be a way to make a binding (i.e. the chipmunk one) compatible across all minor version of a lib? I had to explicitly change the reference from 6.1.1 to 6.1.4 (assuming he's adhering to semantic versioning)
11:30:37fowli dont have chipmunk installed currently, do you have a chipmunk.6.1.so or something that could be used
11:30:50fowlit would probably be a symlink
11:32:28gspnot currently as it's really makeshift, but on a proper install, sure - so basically you'd just rely on the naming/linking convention, got it
11:33:16fowloo chipmunk is on 6.1.5 already
11:36:19fowlim installing it right now to find out
11:38:09gspheh, must have come out in the last 18 hours
11:41:17fowlhrm i dont have a babel package for this yet :/
11:43:26gspoh, btw, I also had to exchange the references to the sfml module to the csfml one
11:43:46fowlin the chipmunk examples?"
11:44:20gspyup
11:45:27gspand the line "template USERDATA(a: pointer): PUserData = cast[PUserData](a.data)" in debugdraw_test.nim wouldn't work unless I changed the pointer the "interface" to a chipmunk.PShape (perhaps you used to cast it beforehand?)
11:48:04*Trix[a]r_za is now known as Trixar_za
11:48:23fowloh weird
11:48:44fowla.data what was i thinking lol
11:50:17fowlyea thats right
11:50:32fowlchanging it to chipmunk.PShape
11:51:27fowli just pushed a fix for chipmunk.nim and debugdraw, can i give you commit access and you'll fix the rest of them? :)
11:52:01gspsure
11:52:11gspgsps on github
11:54:14fowlim roughing it at the moment
11:54:40fowli've been on mcdonalds internet for like 7 hours without buying anything x:
11:55:24fowlgsp, added you
11:55:31gradhahow can you survive 7h in a mcdonalds?
11:56:02gspalso, how are your lungs not covered in grease
11:56:33fowlit was really nice until 1am when this group of drunk offlanders came in and were being hella loud
11:56:50fowlthe chairs are pretty uncomfortable though
12:01:15fowlnight all
12:01:22*fowl quit (Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!)
12:01:54gradhaI wonder if fowl will dream with fast food tonight
13:49:02*Trixar_za is now known as Trix[a]r_za
13:58:36*zahary joined #nimrod
14:09:07*zahary quit (Ping timeout: 260 seconds)
14:45:42*gsp quit (Quit: Leaving.)
15:57:17*gsp joined #nimrod
16:00:53*XAMPP_ joined #nimrod
16:11:16*XAMPP quit (Ping timeout: 246 seconds)
16:11:16*_ponce quit (Ping timeout: 246 seconds)
16:12:55*Endy joined #nimrod
16:20:49*DAddYE joined #nimrod
16:32:05NimBotnimrod-code/packages master 0fc804b Billingsly Wetherfordshire [+0 ±1 -0]: add chipmunk
16:32:05NimBotnimrod-code/packages master 0da50d4 Dominik Picheta [+0 ±1 -0]: Merge pull request #14 from fowlmouth/patch-5... 2 more lines
16:34:49*[1]Endy joined #nimrod
16:34:49*DAddYE quit (Read error: Connection reset by peer)
16:34:58*DAddYE joined #nimrod
16:38:56*Endy quit (Ping timeout: 255 seconds)
16:38:56*[1]Endy is now known as Endy
17:16:28Araqhmm I used to have the same excuse ... "spent 7h in a 'McDonalds' " ... ;-)
17:45:52tumak_is anyone using sublimetext3 here to edit .nim files?
17:46:12tumak_for some reason the syntax hilite files know only 2 colors :/
17:49:27dom96maybe you need to fix the highlight file, it might need some work, but I don't know the state of it.
17:59:33*zahary__ quit (Read error: No route to host)
18:00:00*zahary__ joined #nimrod
18:00:11*zahary__ is now known as zahary_
18:01:52tumak_ah, turns out the syntax file is based on asp
18:01:55tumak_poor choice :/
18:03:02dom96lol ASP, really? I can understand it being based on Python, but ASP...
18:04:01tumak_yeah
18:04:16tumak_pasted python's tmlanguage in there and looks much better
18:04:24tumak_though obviously broken due to keyword mismatches
18:04:25tumak_meh
18:04:32tumak_why nimrod must be so obscure :(
18:05:12dom96fix it :P
18:05:57tumak_(no textmate synax available either)
18:05:58tumak_but
18:05:58tumak_but
18:06:14tumak_i have no slightest clue how to edit .tmlanguage files
18:06:19dom96or use Aporia instead :P
18:06:23tumak_its like peg, except gone horribly wrong
18:08:04tumak_dom96: do idetools know to reveal variable names in current (and parent) scopes?
18:08:13tumak_thats what i'm missing in aporia the most :(
18:08:56dom96what do you mean by 'reveal'
18:08:57dom96?
18:09:01tumak_well
18:09:03tumak_i type
18:09:08tumak_var mylovelyvariable
18:09:20tumak_and sometime later, at the same indentation level
18:09:24tumak_want to autocomplete it
18:09:46tumak_(same or deeper)
18:09:57dom96ahh. I see, so you like sublime's auto complete.
18:10:09tumak_well, its possible to do in vim too
18:10:24tumak_except it's vim .. everything is in there, except only 90% done
18:10:28dom96nah, aporia doesn't do that. It queries the idetools, but it's more annoying than useful currently.
18:10:32tumak_"perfect is enemy of good" unix style
18:10:57tumak_dom96: it must be context sensitive
18:11:15tumak_ie 2 letters of word and only in place of lvalue/rvalue of exprsesion
18:11:37tumak_(which is why those crazy scopes thing is used in sublime/textmate)
18:20:25*Endy quit (Ping timeout: 276 seconds)
18:24:41*tumak_ sticks with vim
18:26:04*gsp quit (Quit: Leaving.)
18:33:27reactormonktumak_, emacs queries the idetools too
18:37:51Araqtumak_: don't use mylovelyvariable, use single letter names instead ;-)
18:38:40Araqas a special bonus it will also annoy reactormonk
18:39:58gradhal
18:40:13gradhathat's even better because you can confuse it with the number 1
18:40:35Araqthe compiler warns about l though
18:40:35dom96You will be plagued by warnings though :P
18:43:45*gsp joined #nimrod
19:22:58reactormonkAraq, ...
19:41:54gradhahas somebody used idetools commands other than the obvious --def and --suggest?
20:41:15Araqthere is more than --def and --suggest?
20:42:28gradhacontext, usages and eval
20:43:53AraqI tested --usages once and it worked :P
20:44:12AraqI implemented --context iirc
20:44:24Araqnever heard of 'eval'
21:00:58*gradha quit (Quit: bbl, have youtube videos to watch)
21:30:32*gsp quit (Quit: Leaving.)
22:08:05*OrionPK joined #nimrod
22:13:54Araqping zahary_
22:41:33NimBotAraq/Nimrod master dcc4eec Araq [+0 ±5 -0]: bugfixes for the guarded data flow analysis