News for hackers. Stuff that matters.

aa0

Re:Surface Blades – true innovation from Microsoft on Wednesday September 25, 2013 @11:34AM (#6445183)
This isn't SurfaceReviews.com
Re:Surface Blades – true innovation from Microsoft on Wednesday September 25, 2013 @11:29AM (#6445157)
Seriously?
Re:Surface Blades – true innovation from Microsoft on Wednesday September 25, 2013 @11:23AM (#6445130)
And it's not cheap, $35..
Re:The Second Coming of Java on Wednesday September 25, 2013 @10:59AM (#6444966)
Java is slow. It's going nowhere fast. LLVM on the other hand...
Re:Show HN: Saved.io on Wednesday September 25, 2013 @02:24AM (#6442975)
You need a bookmarklet.
Amazon has always seemed to me to offer the best support of any industry. They truly are honorary when it comes to customer treatment
Re:The Rest of the Lenna Story on Sunday September 01, 2013 @05:11AM (#6309600)
You're such a brave white knight aren't you.
Re:Linus: bool is dangerous in C if you don't understand it on Sunday September 01, 2013 @04:57AM (#6309569)
You forget you're on HN where slow ass designer languages are all the hail. Sigh..
Re:Linus: bool is dangerous in C if you don't understand it on Sunday September 01, 2013 @04:55AM (#6309568)
Ruby on Rails and your single-origin latte is calling. C is the most performant for years now, a large part of the kernel is in assembly. Remember to download your gems tonight, rude boy.
Re:A question on public/private key encryption on Saturday August 31, 2013 @07:05AM (#6306498)
I see, makes sense - it is easy to multiply big nums together but insane to factor the bignums out of them. You explained it more succinctly than I've ever understood it, thanks a ton!
Re:Poverty causes a 13-point drop in IQ (due to stress) on Thursday August 29, 2013 @09:24PM (#6299708)
No shit, you don't have time to do what you want when you're strapped for cash. What's new aristocat?
Re:A question on public/private key encryption on Thursday August 29, 2013 @03:35AM (#6294707)
Couldn't a cross-comparison be used, encrypting different known blocks and observing certain key properties? I would imagine that any kind of reversible operation would be able to be deduced if it can be applied to specific data that reveals its true form/operation.
Re:A Palatable Javascript Pattern on Saturday August 24, 2013 @03:43PM (#6269573)
This pattern is egregious and shows a lack of knowledge of the architecture and language.

All these private methods are going to be duplicated for every object created. The whole point of the 'this' magic in javascript is to allow the same function, ie. the same memory usage, to be used with 1000s of objects with no hit. Here, you're going to get unique functions, extra memory, for just having the 'this' operator substituted by a variable named _elem. This code is fundamentally flawed and I severely suggest to never use closures for shared object methods when instead a shared method that is bound using '.bind' will ensure much better performance and memory usage.

Re:Toward Modern Web Apps with ECMAScript 6 on Monday August 19, 2013 @12:59PM (#6238238)
Emscripten is far more worthy of the phrase 'saved JS dev.'
Re:Javascript asynchronous problems on Monday August 19, 2013 @07:46AM (#6236658)
Yes, render,reflow,timeouts,event handling, etc happens.. You might need to set a CSS property and then animate it. In this case you'll need to wait for a render in between the two steps

Also useful if you need to wait until after all event handlers are executed in the current context

Re:Toward Modern Web Apps with ECMAScript 6 on Monday August 19, 2013 @06:39AM (#6236462)
CoffeeScript is a debauchery of JS. With ECMAScript 6 you won't need CoffeeScript for anything except maybe it's inline printf-like string substitution.
Re:Javascript asynchronous problems on Monday August 19, 2013 @06:31AM (#6236445)
Timeouts are not checked on every event loop, hence the 4ms delay. And no, setTimeout is asynchronous and processed during the event loop.

Basic event loop is; timeouts, js execution, repaint, reflow, etc

Re:An Inventor Wants One Less Wire to Worry About on Sunday August 18, 2013 @06:11PM (#6234479)
You wouldn't if the whole house is metallic would you?
Re:What colour are your bits? (2004) on Sunday August 18, 2013 @05:47AM (#6232213)
This article is great because it doesn't argue for piracy or against it. I do feel that it is missing a discussion about the colour of bits being amalgated by other bits. IE, if I buy a movie and then I torrent that same movie, is the torrented copy still illegal? Cloudy at best, I'd say.
Ah I see, thanks it's working now.
Re:How Kal Compiles Itself on Sunday August 18, 2013 @03:24AM (#6231986)
While it may be cool that Kal compiles itself, unless there is a source tree for the Kal binaries themselves, there is a indubitably huge issue of trust with distributing binaries.

Relevant: http://cm.bell-labs.com/who/ken/trust.html

Nothing is interactive for me except for the email input and subscribe button
This just brings me to some spam about subscribing for a scala tutorial, c'mon HN.
Re:Five Hundred and Seven Mechanical Movements on Sunday August 18, 2013 @01:35AM (#6231787)
That was a great video, thank you! Knowing basic gear mechanics helps a lot in understanding how cars function.

This 1937 video about differentials is also enlightening:

http://www.youtube.com/watch?v=yYAw79386WI

Why is it that old tutorial videos are so thorough and informative?

You're wrong. The relationship is different, the graph of the speed limit vs velocity would also be different, for the same masses/cars.
Re:Callbacks are Pretty Okay on Saturday August 17, 2013 @02:14AM (#6228346)
An operation queue where dependencies can be set is also very relevant. For example, if you have to do 2 different json requests, followed by a render - but they are mutually exclusive, you can do a 2->1 dependency. If they do depend on each other's result, you can do a 1->1->1

I like this async syntax but I'm more fond of native JS generator trampoline. I think the JSOperation with dependencies could even use generators in its implementation.

All these solutions coming about after the C# async article are very enlightening to this problem of the synchronic vs diachronic vs asynchronic.

The JSOperations lib is in alpha but can be found here https://github.com/iandrewfuchs/JSOperations/blob/master/REA...

Re:Why I should have written ZeroMQ in C, not C++ (2012) on Friday August 16, 2013 @01:39AM (#6222358)
Microsoft pretty much let their c compiler rot. It doesn't support dynamic allocation, ie, int arr[numElts];, it doesn't even support var declaration anywhere but at the beginning of a function. Making code I've been writing compatible with msvc has been a pure headache.

Older »