HNHacker News
TopNewBestAskShowJobs

BonsaiDen

700 karma · joined August 8, 2010

submissionscomments
BonsaiDen··on Xcode, GCC, and Homebrew
Indeed, this also gives me some confidence that there are still a few people around at Apple who don't like walls around their gardens :)
BonsaiDen··on Procedural Textures in HTML5 Canvas
Took the time and refactored the perlin-noise port in the post to make it look a bit more like JavaScript.

As a small side effect I got a 3x speed increase.

JS Engines are good at optimizing, but having a senseless 256 copy loop in every call doesn't really work out that well if you can have a memcpy with Array.slice().

See: http://jsperf.com/perlin-noise

BonsaiDen··on Ivo – a reimagined Unix terminal system
While I like the terminal... I don't want to be one.

Best Ivo

BonsaiDen··on Microsoft UI has officially entered the realm of self-parody
Dunno... but I get the feeling that everyone thinks that computers should be easier, and nobody should have to learn anything in order to use the. Uh, what?

We're living in a world where digital technology more and more becomes the dominant driving force of our society. We already lost the ability to change hardware to a - relatively small - group of people (yes, considering the amount of people using the stuff, the group is tiny).

So what now? Make sure there's only an elitist circle of high paid, influential "technology gods" left? While I definitely consider my self as a geek, I would not like such a society at all. It can be the target of humanity that ordinary people get even "dumber" than they're now.

Sorry, but I think people should strife for new knowledge, they should keep their spirit of discovery. By simplyfing the whole world around them, at least in my eyes, it becomes harder and harder for kids to figure out all these things on their own. And once all the knowledge is locked away from them, the elitist will choose who gets insight into the then "magical" workings of the world.

Yeah, maybe my picture of the future has a little bit of a dark taint, but well that's what you get when even your colleagues, which are the same age as yourself, are light years behind in terms of thirst for knowledge.

BonsaiDen··on Coders choosing Mac OS over Linux environment
Completely agree. OSX hides so many things away from me. It would take days of configuration of a fresh OSX install to get to a state where I could work with. Having to install 10 payed 3rd party programs to make the system itself usable(SFTP, File manager, KEEP A WINDOW A TOP(!)) is ridiculous. Also, having a Unix where half of the stuff was moved around is not a good starting point in case you're working with a ton of Linux Servers.
BonsaiDen··on Kickstarter for an Open Source Programmer's Text Editor using HTML5
Finally someone who's going to port VIM! to the browser ...right? Right? RIGHT? :(
BonsaiDen··on IBM patent trolling patent application
Fighting fire with fire hmmmm....
BonsaiDen··on JavaScript Garden
We have a newer version of the website in the works, but it's getting delayed to my new job. I hardly have anytime at the moment to work with Yi Jiang on the style since I spend 5 hours a day sitting in a train. But that will change as soon as I manage to move.
BonsaiDen··on JavaScript Garden
The statement comes from experience, extended stuff is bad just bad for you. jQuery and others are dropping the use of hasOwnProperty. So if you extend stuff and include one of these libs, they will break. The devs just don't care anymore. Also, there are people who are even more against it that really say NEVER EVER extend them, not even for the sake of backwards compatability.

Also, my guide isn't even need the controversity of some of the statements that Crockford has made ;) In the end it's all advice, I'm not forcing you to write code this way.

In fact, I like it when people question the stuff I write, the worst thing that can happen is that people pick one book/guide whatever and just follow it 100% without ever thinking on their own.

BonsaiDen··on One page: Javascript in 10 minutes
The whole page disqualified itself instantly, not a single note about `hasOwnProperty` on the whole page :(
BonsaiDen··on W3Fools Takes on W3Schools
It only is a valid statement if you add the notes about always doing the validation server side too, and only using the JS one for improve UX.

But w3schools is read by beginners, they don't have any clue about web security whatsoever, if you don't tell them everything they will just go with the few things that you've told them.

BonsaiDen··on W3Fools Takes on W3Schools
Another great quote from w3schools:

> JavaScript can be used to validate data - A JavaScript can be used to validate form data before it is submitted to a server. This saves the server from extra processing

Sure! Always trust the client :)

BonsaiDen··on W3Fools Takes on W3Schools
> The web site is easy to use and a great resource for beginners.

Yep a great resource, for wasting a ton of precious time in which they could have learned how to do things right instead of using techniques from ca. 2000.

> ...interested in the actual tutorials.

Which are still the worst part of the site.

Example (just clicked on one of their JS tutorials):

> JavaScript statements can be grouped together in blocks. > Blocks start with a left curly bracket {, and ends with a right curly bracket }. > The purpose of a block is to make the sequence of statements execute together.

Pure BS. JavaScript has no block scope. {} aren't needed for "executing stuff together".

Another thing they tell people is that "var foo = 2;" and "foo = 2;", are equal, more BS.

> If table based layout invalidates a site...

There is a difference in using a table layout because it's a good choice (Google doesn't validate in any way, the just want to cut down traffic, which makes sense for them) and just using it because, well... because one has no better idea.

BonsaiDen··on W3Fools Takes on W3Schools
Well there's a reason why everything that mentions w3schools gets down voted into oblivion over at Stackoverflow.

The site is horrible. Period.

> Completely irrelevant. Don't shoot the messenger.

Aha. Well, if they can't even get their own site right, why should I listen to them in the first place?

Sorry, but that's like hiring a Web Design whose own Web Site consists of nothing more than yellow 20px Comic Sans text on a blue background that uses a million blink tags.

BonsaiDen··on Mozilla’s Rejection of NativeClient Hurts the Open Web
Well JS is very dynamic, people have for a long time focused on the optimization of static typed compiled languages. The JVM did awesome things in the area of JITs, V8 Crankshaft is already pushing the limits once again, up to 3x gains over the current version in the Browser. There's still a lot of potential in optimizing a language like JavaScript, but Rome wasn't built over night, give JS some more time.
BonsaiDen··on Mozilla’s Rejection of NativeClient Hurts the Open Web
I don't worry about NaCI itself, I worry about someone who's too stupid to implement it correctly. And those people are everywhere, especially in big companies. i.e. Nintendo, broken (self built!) RSA in the Wii or even better Sony, using the same "random" number for all their crypto on the PS3... yes FX and Chrome are Open Source, but MS and Opera are not.

Anyways, I'd rather spent a lot of time improving the JITs instead of writing "optimized" low level code myself these days.

BonsaiDen··on Mozilla’s Rejection of NativeClient Hurts the Open Web
> like the ones I listed (games, simulations, video, DSP).

Those should not run in a Browser, they should on a real OS (or Emacs).

What's next VMWare inside your Browser? Then it's OS -> Browser -> VM -> OS -> Browser...

Sorry but just because things are possible, doesn't mean that they should be done...

BonsaiDen··on Mozilla’s Rejection of NativeClient Hurts the Open Web
> The author fails to point out why would anyone want low level memory access.

To get out of the sandbox and wreak havoc? No really, NativeClient is the __last__ thing the Web needs. In the end people will either port their old, bug ridden and insecure C++ code to that thing or they will write new platform dependent code... or both at the same time. That's completely against the OpenWeb.

BonsaiDen··on Mozilla's David Mandelin on Crankshaft
Huh, that's strange Firefox nightly here is slower than Crankshaft:

http://krakenbenchmark.mozilla.org/kraken-1.0/results.html?%...

BonsaiDen··on Mozilla's David Mandelin on Crankshaft
Chrome 9.0.587.0 dev: http://krakenbenchmark.mozilla.org/kraken-1.0/results.html?%...

Chromium 10.0.605.0 (68575) with Crankshaft: http://krakenbenchmark.mozilla.org/kraken-1.0/results.html?%...

Overall Crankshaft is 2.13x FASTER.

Ubuntu 10.04, old Core 2 Duo.

BonsaiDen··on Apple Pulls BitTorrent iPhone App from Store
Apple just doesn't like BitTorrent. Well actually it's their partners in the music industry which don't like it.
BonsaiDen··on Copyright will bring the end of ownership
That the whole copyright thing is getting out of control, soon words will be copyrighted... Just now some german newspapers plan on copyrighting the stuff the use in their headlines, yes the sentences/words in the headlines.
BonsaiDen··on Copyright will bring the end of ownership
The Video in the article is a great example! "This Video contains content from UMG. It is not available in your country"
BonsaiDen··on Review my weekend HTML5 project: DropMocks
Firefox 4b7pre is still loading up the image file after I dropped in on the page, so in fact it doesn't work at all.
← PreviousPage 3 of 3