HNHacker News
TopNewBestAskShowJobs

pmuellr

4 karma · joined March 11, 2011

submissionscomments
pmuellr··on Codename: BlueMix – IBM's New PaaS Offering
There's a sample hello world node demo, with a README.md that explains all the bits, here:

https://hub.jazz.net/project/pmuellr/bluemix-hello-node/over...

The goal with the demo is just to show you how to get node code running on BlueMix; what code (in what language) you run is up to you!

pmuellr··on Why Trigger.io doesn’t use PhoneGap – 5x faster native bridge
re: "This approach is heavier and hackier, but a decision they made in order to sideline a bug in the Android 2.3 simulation. It’s not a bug that affects actual Android 2.3 devices, so we take this to be a bit of overkill."

From what I could tell, the bug was shipped starting with some version of Android 2.x (I'm thinking 2.2) where JSC was used as the internal JS engine for WebKit instead of V8. When the Android devs added V8 support, they actually broke JSC support. It's a device manufacturer choice (or was) as to which JS engine to use. Curiously, Android shipped the 2.3 simulator image (guess that was the version) with JSC support, thus, "it was broken".

The API in question is `WebView.addJavascriptInterface()`. That method returned successfully, but whenever you accessed the interface from JS, you'd trap.

Could be this was only on the simulator, but - I'm thinking folks saw this on devices as well. Maybe those devices are no longer relevant?

Presumably Cordova will revert back to using `WebView.addJavascriptInterface()` when it's safe to do. The problem is, it's not clear when it's safe to do so. It's also not clear how you can test your JS environment to see if "it's safe", programmatically. Or maybe you can (eg, throw an Error, check for existence of error.stack), but ... it's wasn't a comfortable situation to be in.

Do you have some references that the 'bug' doesn't ship on devices, or that it no longer ships on simulator images?

What versions of Android SDK/simulator/devices does Trigger.io support? Presumably you don't support running Android 2.3 on the simulator, as your code would trap?

pmuellr··on A Case Against Using CoffeeScript
If you want to help with the debugging aspect, the current bug in CoffeeScript is here:

   https://github.com/jashkenas/coffee-script/issues/558
There are relevant bugs open in WebKit-land, and Mozilla-land as well, and should be pointers to those in the comments of the referenced bug.
pmuellr··on Weinre - Debug Mobile Websites from your Desktop
some links:

downloads - https://github.com/pmuellr/weinre/downloads

doc - http://pmuellr.github.com/weinre/