News for hackers. Stuff that matters.

asaarinen

Re:Did these guys just reinvent the Web? on Thursday October 17, 2013 @10:31AM (#6565565)
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

Re:Fat arrow functions in Javascript on Friday September 20, 2013 @01:15PM (#6419062)
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.

Re:White House Had Advance Notice on Heathrow Detention on Monday August 19, 2013 @03:38PM (#6239254)
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.
Re:Detaining my partner: a failed attempt at intimidation on Monday August 19, 2013 @09:45AM (#6237140)
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.

Re:Callbacks as our Generation's Goto Statement on Friday August 16, 2013 @01:59AM (#6222416)
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.
Re:The Future of Programming in Node.js on Tuesday August 13, 2013 @04:02PM (#6207908)
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).

Re:The Future of Programming in Node.js on Tuesday August 13, 2013 @03:28PM (#6207719)
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

Read: Snowden should publish everything he has, because after that he will be granted asylum.

What better way to get everything out of Snowden, still stay "neutral" and give USG the diplomatic finger

Re:Mercator Puzzle on Friday February 08, 2013 @05:11AM (#5187119)
Just in case somebody's interested, here's a related experiment we made to generate and display map tiles in a "google earth-style" projection using CSS transforms:

https://github.com/asaarinen/spherical-map