HN user

asaarinen

15 karma
Posts1
Comments10
View on HN

Hard to imagine what they could be adding to CSS3 transforms - composite transforms can be done efficiently without calculating them manually anyway (by using the DOM tree as a "scene graph"). I experimented with this some time ago as well [1]

But even bigger question than the performance is, what kind of 3D user interface would be more effective in conveying a message than a clean, regular 2D website that everybody feels familiar with. Curious to see if they will bring some UI design innovations here

[1] https://github.com/asaarinen/spherical-map

Frankly the fat arrow syntax adds so little value that it's not worth adding new syntax to JavaScript, just my humble opinion.

The fat arrow seems to be primarily about easier scoping when using this - so it's trying to patch the single most broken feature a language ever had.

The existing function syntax is fine, rather just avoid using "this" at all in your code.

After the incident they are shrugging it off. My guess is that they were trying their luck; had they found anything on his laptop which they could use against him - like any of the leaked documents - who knows where he would be detained right now.

I'd guess what they were looking for was any one of the leaked top-secret NSA documents on his laptop, the hard drive of which is being analyzed as we speak...

Had they found anything during the 9 hours, I'm afraid he wouldn't be flying to Brazil - he would have been detained indefinitely as a "terror" suspect in order to intimidate Greenwald even more.

You do it like this (using async):

  async.eachSeries(
      players,
      function(player, playercb) {
	  var valid = false;
	  async.whilst(
	      function() { return !valid; },
	      function(wcb) {
  		  Ask("What's your name", function(name) {
		      if( IsValidName(name) ) {
			  player.name = name;
			  valid = true;
		      }
		      wcb();
		  });
	      },
	      playercb);
      },
      function() { /* done */ }
  );
More lines than the foreach loop, but on the other hand, if this was an operation you wanted to do in parallel instead of sequentially, that'd be impossible with the simple loop construct.

Sure, but the language that _every_ developer will need to know is JavaScript, not OCaml or some other of the dozen alternatives that can be compiled to JS.

Besides, the ability to compile to JS is not enough; you will need to read it in JS, debug it in JS and let other developers work on it in JS (because they don't know OCaml).

I applaud the Node developers for their effort. While recent "competitors" like Go are fascinating and in some ways even arguably better, the fact that every device on earth runs JavaScript makes me bet that Node will prevail.

Computing will need to move fluently between the cloud and the terminal, and JavaScript is the only language which allows you to use a single codebase for both (in the foreseeable future). As developer time will stay the biggest expense when developing software, I am bullish on Node and JavaScript.

It might actually make sense to Snowden to get some level of guarantees of good treatment and fair trial from Holder, and then take a commercial flight to US of his free will

What an arrival it would be!

If he got to decide the choice of jurisdiction (or Hawaii), civil trial with a jury, fair treatment and legal advisory, he would even have a chance of getting the jury to nullify - and worst case of 10 years (?) would not be unbearable compared to a lifetime of exile

As a side note, I don't really know how Holder can state that US does not torture with a straight face