00:13:07 | * | tangentstorm quit (Ping timeout: 264 seconds) |
00:16:16 | * | tangentstorm joined #nimrod |
00:37:01 | reactormonk | "guarded" data flow analysis? |
01:03:03 | * | F0wl joined #nimrod |
01:03:45 | F0wl | Irc logs not working for yesterday |
01:04:13 | * | DAddYE quit (Remote host closed the connection) |
01:04:29 | F0wl | Did 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:55 | Araq | reactormonk: I'm not sure about the terms :P but I stole the idea from a guarded SSA representation |
05:08:23 | Araq | it'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:30 | reactormonk | Araq, what's it good for? |
06:10:18 | fowl | Araq, btw i tried it with var s: string; echo s and didnt get a warning |
06:10:35 | fowl | or 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:57 | Araq_ | fowl: for now it only checks 'not nil' annotated types |
08:46:34 | fowl | oh 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:28 | gsp | Is there a concise way of formatting real numbers (i.e. sprintf like substitutions) or should I use formatFloat(float, format, precision)? |
11:10:28 | gsp | Also, formatFloat is missing documentation on what ffDefault does exactly (switch between ffDecimal and ffScientific based on the value I guess?) |
11:12:23 | gradha | formatFloat is the way to go, the docstring for the proc tells the difference between the parameters |
11:12:48 | gradha | http://nimrod-code.org/strutils.html#171 |
11:13:10 | gradha | maybe example outputs should be added to the documentation |
11:13:42 | gsp | ... but there's three possible values for TFloatFormat: ffDecimal, ffScientific and ffDefault - the latter one isn't mentioned |
11:14:56 | gradha | true |
11:15:34 | gsp | alright, thanks for answering my question |
11:15:36 | gradha | for ffDefault you get the docstring at the beginning of the module "use the shorter floating point notation" |
11:16:35 | gsp | ah, right, missed that |
11:17:24 | gradha | looking at the implementation it seems like the only difference between types is the letter that gets formatted, since the precission is independant |
11:18:02 | gradha | https://github.com/Araq/Nimrod/blob/master/lib/pure/strutils.nim#L1038 |
11:18:33 | gradha | the "cut off" docstring is fun |
11:21:48 | fowl | gsp, hey did you get sfml working |
11:23:16 | fowl | btw i use template ff (f; prec = 3): string = formatFloat(f, ffDecimal, prec) then just call ff(somefloat) or ff(somefloat, 5) |
11:24:08 | gsp | fowl, yeah! bit of a struggle, but ultimately using this PPA [http://ppa.launchpad.net/sonkun/sfml/] it worked - thanks for the help! |
11:25:17 | gsp | also, 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:51 | fowl | :) i have a bad habit of using bleeding-edge-everything |
11:26:17 | fowl | but now that sfml2 is out, it should only be a couple years until its in ubuntu's repositories |
11:28:31 | gsp | yeah ... :-D |
11:28:31 | gsp | also, 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:37 | fowl | i dont have chipmunk installed currently, do you have a chipmunk.6.1.so or something that could be used |
11:30:50 | fowl | it would probably be a symlink |
11:32:28 | gsp | not 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:16 | fowl | oo chipmunk is on 6.1.5 already |
11:36:19 | fowl | im installing it right now to find out |
11:38:09 | gsp | heh, must have come out in the last 18 hours |
11:41:17 | fowl | hrm i dont have a babel package for this yet :/ |
11:43:26 | gsp | oh, btw, I also had to exchange the references to the sfml module to the csfml one |
11:43:46 | fowl | in the chipmunk examples?" |
11:44:20 | gsp | yup |
11:45:27 | gsp | and 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:23 | fowl | oh weird |
11:48:44 | fowl | a.data what was i thinking lol |
11:50:17 | fowl | yea thats right |
11:50:32 | fowl | changing it to chipmunk.PShape |
11:51:27 | fowl | i 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:01 | gsp | sure |
11:52:11 | gsp | gsps on github |
11:54:14 | fowl | im roughing it at the moment |
11:54:40 | fowl | i've been on mcdonalds internet for like 7 hours without buying anything x: |
11:55:24 | fowl | gsp, added you |
11:55:31 | gradha | how can you survive 7h in a mcdonalds? |
11:56:02 | gsp | also, how are your lungs not covered in grease |
11:56:33 | fowl | it was really nice until 1am when this group of drunk offlanders came in and were being hella loud |
11:56:50 | fowl | the chairs are pretty uncomfortable though |
12:01:15 | fowl | night all |
12:01:22 | * | fowl quit (Quit: EliteBNC free bnc service - http://elitebnc.org - be a part of the Elite!) |
12:01:54 | gradha | I 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:05 | NimBot | nimrod-code/packages master 0fc804b Billingsly Wetherfordshire [+0 ±1 -0]: add chipmunk |
16:32:05 | NimBot | nimrod-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:28 | Araq | hmm I used to have the same excuse ... "spent 7h in a 'McDonalds' " ... ;-) |
17:45:52 | tumak_ | is anyone using sublimetext3 here to edit .nim files? |
17:46:12 | tumak_ | for some reason the syntax hilite files know only 2 colors :/ |
17:49:27 | dom96 | maybe 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:52 | tumak_ | ah, turns out the syntax file is based on asp |
18:01:55 | tumak_ | poor choice :/ |
18:03:02 | dom96 | lol ASP, really? I can understand it being based on Python, but ASP... |
18:04:01 | tumak_ | yeah |
18:04:16 | tumak_ | pasted python's tmlanguage in there and looks much better |
18:04:24 | tumak_ | though obviously broken due to keyword mismatches |
18:04:25 | tumak_ | meh |
18:04:32 | tumak_ | why nimrod must be so obscure :( |
18:05:12 | dom96 | fix it :P |
18:05:57 | tumak_ | (no textmate synax available either) |
18:05:58 | tumak_ | but |
18:05:58 | tumak_ | but |
18:06:14 | tumak_ | i have no slightest clue how to edit .tmlanguage files |
18:06:19 | dom96 | or use Aporia instead :P |
18:06:23 | tumak_ | its like peg, except gone horribly wrong |
18:08:04 | tumak_ | dom96: do idetools know to reveal variable names in current (and parent) scopes? |
18:08:13 | tumak_ | thats what i'm missing in aporia the most :( |
18:08:56 | dom96 | what do you mean by 'reveal' |
18:08:57 | dom96 | ? |
18:09:01 | tumak_ | well |
18:09:03 | tumak_ | i type |
18:09:08 | tumak_ | var mylovelyvariable |
18:09:20 | tumak_ | and sometime later, at the same indentation level |
18:09:24 | tumak_ | want to autocomplete it |
18:09:46 | tumak_ | (same or deeper) |
18:09:57 | dom96 | ahh. I see, so you like sublime's auto complete. |
18:10:09 | tumak_ | well, its possible to do in vim too |
18:10:24 | tumak_ | except it's vim .. everything is in there, except only 90% done |
18:10:28 | dom96 | nah, aporia doesn't do that. It queries the idetools, but it's more annoying than useful currently. |
18:10:32 | tumak_ | "perfect is enemy of good" unix style |
18:10:57 | tumak_ | dom96: it must be context sensitive |
18:11:15 | tumak_ | ie 2 letters of word and only in place of lvalue/rvalue of exprsesion |
18:11:37 | tumak_ | (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:27 | reactormonk | tumak_, emacs queries the idetools too |
18:37:51 | Araq | tumak_: don't use mylovelyvariable, use single letter names instead ;-) |
18:38:40 | Araq | as a special bonus it will also annoy reactormonk |
18:39:58 | gradha | l |
18:40:13 | gradha | that's even better because you can confuse it with the number 1 |
18:40:35 | Araq | the compiler warns about l though |
18:40:35 | dom96 | You will be plagued by warnings though :P |
18:43:45 | * | gsp joined #nimrod |
19:22:58 | reactormonk | Araq, ... |
19:41:54 | gradha | has somebody used idetools commands other than the obvious --def and --suggest? |
20:41:15 | Araq | there is more than --def and --suggest? |
20:42:28 | gradha | context, usages and eval |
20:43:53 | Araq | I tested --usages once and it worked :P |
20:44:12 | Araq | I implemented --context iirc |
20:44:24 | Araq | never 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:54 | Araq | ping zahary_ |
22:41:33 | NimBot | Araq/Nimrod master dcc4eec Araq [+0 ±5 -0]: bugfixes for the guarded data flow analysis |