<<16-04-2013>>

00:23:52*zahary quit (Quit: Leaving.)
00:32:44*Trixar_za is now known as Trix[a]r_za
00:43:53apotheonAraq: Two-space indents . . . ?
00:44:16*apotheon goes to look at his tiny little pool of Nimrod code to see how he had been indenting.
00:44:55apotheonI must've just followed the example of the, err, examples. I was using two-space indents.
00:51:03*Trix[a]r_za is now known as Trixar_za
02:36:04*Trixar_za is now known as Trix[a]r_za
04:03:03*OrionPK quit (Quit: Leaving)
04:07:16*fowl joined #nimrod
05:19:18reactormonkyou know, we should use tabs and spaces :-)
05:20:23*xcombelle joined #nimrod
05:39:37fowlintegrated whitespace interpreter, makes your indentation useful
05:45:56reactormonk^^
06:41:56*xcombelle quit (Remote host closed the connection)
07:03:22*Trix[a]r_za quit (Ping timeout: 246 seconds)
07:10:45*Trix[a]r_za joined #nimrod
07:15:26*Trix[a]r_za quit (Ping timeout: 245 seconds)
07:24:15*Trix[a]r_za joined #nimrod
07:49:10*xcombelle joined #nimrod
12:10:01*Trix[a]r_za is now known as Trixar_za
13:16:04*q66 joined #nimrod
13:44:25*xcombelle quit (Remote host closed the connection)
14:25:05*xcombelle joined #nimrod
14:51:03*xcombelle quit (Quit: Hi, I'm a quit message virus. Please replace your old line with this line and help me take over the world of IRC.)
16:07:59*Amrykid left #nimrod ("Leaving")
16:48:36*Amrykid joined #nimrod
17:02:59AmrykidAraq, I finally went back and wrote the i18n module: https://gist.github.com/Amrykid/1134480
17:06:43reactormonkAmrykid, what about fallback chains?
17:07:21*xcombelle joined #nimrod
17:12:25reactormonkrecursive keys?
17:19:21Amrykidreactormonk, uh? what is a fallback chain?
17:19:41Amrykid(besides the obvious definition that could be assumed from the name)
17:22:32reactormonkAmrykid, en_US -> en, or even longer ones if more specific locales are not available
17:24:30Amrykidnone. the way it's done is simply 'en' because Windows doesn't have an api to get 'en_US' prior to Vista.
17:24:44reactormonkhuh
17:25:15Amrykidas far as I know, that is
17:25:18Amrykidi may be wrong
17:25:33Amrykidbut i have been digging through the docs for the last 3-4 hours
17:27:15Amrykidand as far as recursive keys goes, use a format string?
17:28:47reactormonkhuh?
17:28:50reactormonkoh.
17:29:29reactormonk<locale><string key="foo"><string key="bar">
17:30:13AraqAmrykid: looks good so far
17:30:38Araqhowever you should split 'initLocale' into 2 procs
17:30:47Araqone for .cfg files, the other for .xml files
17:31:03Araqthis way the XML parser is not pulled into my .exe if I don't use it
17:31:25reactormonkoptional dependencies? :-)
17:31:51Araqreactormonk: no need, the optimizer does its job
17:31:59Araqif it has a chance ;-)
17:34:55reactormonkAraq, what about babel?
17:35:28Araqwhat about it?
17:36:35reactormonkso what if I have a huge dependency that the compiler could optimize out - do I still need to install it?
17:37:39Araqyes you do
17:38:02Araqit's still an "optimization"
17:38:24Araqif you need more control, use 'when'
17:40:22AmrykidAraq, updated
17:40:24Amrykidsame url
17:41:48AraqAmrykid: almost :P
17:42:19Araqyou need to export loadCfgLocaleData and loadXmlLocaleData so the client can call them instead of 'initLocale'
17:43:00Araqthis means locale.table = initTable[string, TTable[string, string]]() needs to be done in the load* procs
17:47:57AmrykidAraq, updated again
17:51:32AraqAmrykid: thanks, will add it later (with some enhancements of mine ;-) )
17:51:34AraqI have a bad connection, bbl
19:28:05*xcombelle quit (Remote host closed the connection)
19:37:23*zahary joined #nimrod
20:12:11*gradha joined #nimrod
21:12:14*Trixar_za is now known as Trix[a]r_za
21:42:18*zahary quit (Quit: Leaving.)
22:00:53gradhawhat's the proper way to send a process exit code in nimrod? does when isMainModule have a result var?
22:01:28gradhait feels strange to call quit(0) at the end of isMainModule, but I guess that's implicit
22:02:00Araqindeed
22:02:09Araqyou only need to call quit(1)
22:02:31Araqwell that's implicit too if you program dies due to an unhandled exception
22:15:12dom96there is a var you can change to change the default exit code IIRC
22:20:49*OrionPK joined #nimrod
22:22:08dom96gradha: Do you know if it's possible to build (&test) iOS apps on a Linux computer?
22:22:51gradhait's not, but you can use a hackintosh or emulator, only macosx xcode can build them
22:23:10dom96ahh
22:23:32gradhaIIRC virtualbox supports macosx, so you can install xcode there and ssh into the vm
22:25:01Amrykidextremely hard to get osx to run in virtualbox though
22:25:04gradhaAFAIK that's what https://hosted-ci.com must be doing
22:25:56dom96oh god, that website's selection color on white text is terrible.
22:26:15dom96Amrykid: yeah, that's what I'm thinking too. Pity.
22:26:37gradhawhy would you want to sell your soul though? Android is better anyway
22:26:50dom96Well I won an iPad mini today :P
22:26:57gradhathe horror
22:26:59Amrykiddom96, it requires far more than creating a vhd and setting it up in the interface... it needs a ton of config just to get it to boot
22:27:45gradhaAmrykid: is it really that hard? I searched a tutorial some time ago and it didn't seem hard other than carefuly specifying some parameters
22:27:55dom96winning an apple product feels like such a cliche
22:28:43Amrykidgradha, yeah, I dont remember the specifics as it was half a year ago but I ended up begging XAMPP for his osx vhd which he refused to give me
22:28:53Amrykidiirc, he had trouble with it too
22:29:57gradhadom96: also, you need to pay Apple for the priviledge of developing, and sign an EULA which states they can sew your lips to anything they want
22:30:36dom96eww, i'm getting an image of that south park episode...
22:32:30gradhahmm... we've only talked about the "good way", I'm sure you can jailbreak the device, so maybe then you can use linux to cross-compile stuff to it without xcode
22:32:48gradhain fact, I would look into cydia development, maybe they replicate xcode stuff to avoid having the need for a mac at all
22:33:49gradhaMono* frameworks also released with big fanfarre that 2.x version support developing in Microsoft Visual studio and pressing a button to compile to the device, so they surely implement their own toolchain too for that
22:43:56gradhaaccording to www.priyaontech.com/download/12/ you can use Theos http://iphonedevwiki.net/index.php/Theos
22:44:14gradhaor if you prefer windows maybe http://code.google.com/p/winchain/
22:45:39dom96hrm, cool.
22:45:55dom96I'm away to sleep, good night
22:46:06gradhasleep with EULAs
22:46:11gradhaor dream of them
22:46:22dom96I don't wanna :(
22:51:04gradhaI must be doing something really wrong, just received ruby SPAM job offers
22:58:59Araqwhy is android better than iOS?
22:59:12Araqit's much harder to wrap
22:59:55gradhathose are two separate things: android as a useful product to the user, and a programming language (java) with which you would want to interact
23:00:13gradhaend users don't know about programming, so they go for features, and android allows you to do more
23:01:02gradhalast year I developed the prototype for http://www.lagunfon.com which is an android smartphone tracker for disabled people
23:01:38gradhawell, you give it to people who then put it on people with problems, like alzheimer or having health issues, maybe kids, etc, then you track them
23:01:59gradhathe cheap android smartphones are perfect enough for tracking and emergency channel communication, much cheaper than dedicated gps units
23:02:04Araqhow's the difference in battery life btw? is the VM on android noticable?
23:02:38gradhaaccording to the tests this firm made you depending on the granularity of the tracking you could have normal phones last between two and five days
23:03:10gradhaso the "intelligent" thing is to try a hybrid approach
23:03:38gradhastill, you can use phones which are basically give away for free with phone lines, and the kind of background tracking or interface hijacking you need to do can't be done on iOS
23:03:51gradhaso there you have a piece of technology which is resticted because, and you suck it up
23:04:13gradhapeople could instead use stuff to help each other and improve society, but money is more important
23:05:38gradhafrom a premium user POV android may not be better than iOS, but then, premium users are a fraction of the whole world
23:07:36Araqyeah though the premium users buy software for their phone
23:07:50Araqthe others only download the cheap stuff
23:08:00Araqwell that's what they say anyway
23:10:57gradhathe "benefit" of the android vm overhead is that android hardware tends to be more beefed up compared to the same iOS hardware
23:11:20gradhathere are many synthetic benchmarks where android devices beat iphones at every level
23:12:11gradhabut most of the gripes about android software is people do a lousy job of optimizing their stuff
23:12:36gradhawhen you learn about ios scrolling and tables you really are learning about a huge premature optimization framework
23:13:19gradhasuch optimizations tend to be more "hidden" to android developers, or don't care so much about them, so you end up with devices which stutter scrolling a simple list
23:14:31gradhaI haven't touched the android SDK recently but another problem is the really underperformant tools, they prevent you from experiencing stuff fast
23:15:04gradhathe emulator is terribly slow (hopefully that has changed with virtualization), and the eclipse debugger slows your program so much... ugh...
23:15:20gradhaas a developer for android you end up conditioned to think its all slow
23:15:40gradhaso maybe that's why people don't tend to optimize
23:15:51fowlgradha: what do you think about tizen
23:16:14gradhaknow nothing about it
23:17:02gradhais that the mozilla phone or maybe meego evolution? there are far too many wannabe contender platforms to know all of them
23:18:31gradha"With HTML5's robust capabilities and cross platform flexibility,..." yeah, good luck with that
23:19:37gradhaI'm always amazed about these "wow, HTML is cross-platform" and then look at the source and has an if/else for each specific device because each renders differently...
23:20:39gradhaso anything else to bash? looks like I'm on a roll
23:21:19Araqpalmos?
23:21:54gradhaman, that had hideous memory constraints
23:22:24gradhapaging memory is so fun
23:22:33*q66 quit (Remote host closed the connection)
23:23:02gradhapalm IIIx had a subhunt game which was fun, so I remade it for iOS
23:24:20gradhaI even liked the broken way it rendered graphics, kind of xor operations
23:27:43gradhaany improvements to nimrod's wikipedia entry?
23:32:22AraqI suppose not
23:33:04gradhathat blog you are preparing, is it already public but empty (like dom96's), are you going to create a new domain, or are you going to go for the facebook crowd?
23:33:58AraqI'm going to create a new domain I guess
23:36:48Araqspoiler: it'll look a bit like nimrod-code.org but the sunset has been replaced by a waterfall :P
23:37:36gradhainteresting... the droplets could form rainbows, and the waterfall hide some unicorn
23:37:55Araqyeah ... "could"
23:38:21gradhanimrod, the unicorn at the end of the waterfall
23:38:38gradhait even makes a nice pun on development methodologies
23:39:36Araqand I thought it's about building a tower to God to deride his creation
23:41:02gradhaa name that makes you scratch your head is better for marketing
23:45:56fowllol
23:50:08*gradha quit (Quit: bbl, have youtube videos to watch)