HNHacker News
TopNewBestAskShowJobs

mantrax5

386 karma · joined April 29, 2014

submissionscomments
mantrax5··on Intel Bringing SIMD to JavaScript
Considering the architecture of Node.JS is not suited to compute-heavy tasks, I wonder what kind of code are you willing to optimize in Node.JS with SIMD?
mantrax5··on Intel Bringing SIMD to JavaScript
"There is encouraging evidence that SIMD will enable a whole new class of application domains and high-performance libraries in JavaScript."

Anyone take a guess what those might be (honest question)?

In the past SIMD has been the primary way to accelerate audio and graphics related compute tasks, but with WebGL and shaders, JS users already have a very powerful vector processing unit at their fingertips.

mantrax5··on Protests against Uber are heating up in Europe
> It's easy to dismiss off the protestors as old hat for not reacting gracefully to a changing market, but the issue at least in London seems to largely be with the fact that their existing businesses are subject to more costs and regulations than the kinds that Uber and other services are facing.

If they're not old hat, and so on, and their business pays more taxes, why not branch off into Uber clones? If Uber does it, they can too.

mantrax5··on Protests against Uber are heating up in Europe
Taxi drivers in Europe are paid a fraction of the profits they get from clients, most of it goes to taxes and the operators running the cab networks.

Uber's drivers are in a similar position.

So what do we have here? Another example of pitting poor against poor, for the interests of one group of rich against another, emerging, group of rich.

I almost admire the skillful orchestration at play here, although probably I shouldn't.

mantrax5··on HFS+ Bit Rot
Can we please stop using lottery/lightning/meteor analogies?

A modern computer does more operations in a single second, than a small country can buy lottery tickets in a lifetime.

Many wildly unlikely things become quite likely with computers.

mantrax5··on Trashing Chromebooks
I like how any interesting article I've seen about Chromebooks in the last year or two starts with removing Chrome OS from the machines.
mantrax5··on Netflix responds to Verizon
It's becoming a habit that every week either telco responds to Netflix, or Netflix responds to telco.

I'm slightly sick of these silly public letters. Why the hell either Netflix or said telcos feel like they need to bother the public with their internal problems, instead of solving them privately like adults?

This is not about net neutrality. It's about who foots the bill for upgrading the network to handle the capacity that Netflix users need.

Meter the damn traffic and let Netflix (and other heavy) users pay the telco and be done with it. God damn.

mantrax5··on Who Needs Git When You Got ZFS? (2013)
There was a joke when Microsoft was pushing Zune that it has the fastest sales growth "in the brown MP3 players market".

The category you define may be seen as arbitrary, first because existing filesystems have not stopped evolving. HFS, NTFS and so on have been significantly improved over time, including after 2005.

ZFS is a categorically different concept than said examples, in that it's distributed.

But the file system has not been shown to be the best (or let alone only) way to have distributed data, you can easily put that at a higher level, and retain the flexibility of defining your own protocol with the consistency, consensus algorithm and other properties you precisely need.

Why solve this at the file system and lock yourself to a single system-wide way of doing it, versus have the best solution for each part of the system? I feel like it causes more troubles than it solves.

mantrax5··on Who Needs Git When You Got ZFS? (2013)
I get the joke, but I don't think we read about technology for the comedy of it.

People who would've found ZFS interesting on its own merit won't read about it, and those who are interested in Git would.

mantrax5··on Who Needs Git When You Got ZFS? (2013)
> "Using ZFS as a replacement of Git for is probably not a good idea."

Uhm.

> "I’m not sure of the stability on Mac at this time. Using ZFS as a root file system on Linux is still slightly problematic at this moment."

And Windows? Never mind.

Ok, so the author wrote an article called "Who Needs Git When you Got ZFS", and then in the body of the article the conclusion is more like "Who needs ZFS When You Got Git".

ZFS does a bunch of cool stuff in a generic way as a file system, sure. But we already have apps doing it better in a way specific to real-world needs (i.e. Git), on more platforms, and I don't have to fear if I'll corrupt my boot volume if Git is buggy.

mantrax5··on Firefox 30.0
Correction, it's Fw, not FF.
mantrax5··on Firefox 30.0
It was only yesterday when Firefox was 3 and look at it now. Isn't it about time we start telling it to get married and have children or?
mantrax5··on Why Perl Didn't Win
Perl's brand is damaged. No amount of explaining fixes a broken brand.

The best that can probably be done is to create a new language which is, say, a clean subset of Perl 6 and call it something new, focusing the message on how readable and intuitive it is.

mantrax5··on Creating a Swift syntax extension: the Lisp 'cond' function
The idea that writing a framework means you smart wouldn't explain why there's such a proliferation of badly written frameworks, particularly in easy to pick up languages like JavaScript, Python and PHP.

We're not special. Like everything else in the world, developers follow Sturgeon's law.

mantrax5··on Creating a Swift syntax extension: the Lisp 'cond' function
And... shit like that is why features like operator overloading or this @auto_closure attribute are a bad idea.

I sympathize with the idea of creating a language mostly defined as a library of itself.

It's nerdy, it's neat, it's minimal, it's very Lattnerish.

But it has a fatal flaw: it assumes people will use that feature set in an intelligent, restrained, minimal way. For good.

And let's face it. Most of us devs are fucking morons. It took people only a few days to start abusing it. I wonder where we'll be a year from now.

mantrax5··on Why Perl Didn't Win
In one of the WWDC sessions an Apple engineer was adamant one should never choose terseness over clarity, because every line of code is written once by one person, but read many times by many people.

And funny enough Objective-C is taking this quite seriously, being a very verbose language (the new Swift language also keep the verbose method names, enums and properties).

While Perl is exactly the opposite. There's a reason people jokingly call it a write-only language.

It has real implication on its usage. You use Perl for one-off scripts you intend to forget and maybe delete after you run them a few times.

While CPAN happened, I wonder how much Perl was an obstacle in multiple people joining to work on a single library (versus multiple people just downloading it and using it, big difference).

mantrax5··on Microsoft's ’90s vision for the smart home looks a lot like today [video]
"You know, one of the things that really hurt Apple was after I left John Sculley got a very serious disease. It’s the disease of thinking that a really great idea is 90% of the work. And if you just tell all these other people “here’s this great idea,” then of course they can go off and make it happen.

And the problem with that is that there’s just a tremendous amount of craftsmanship in between a great idea and a great product. And as you evolve that great idea, it changes and grows. It never comes out like it starts because you learn a lot more as you get into the subtleties of it. And you also find there are tremendous tradeoffs that you have to make. There are just certain things you can’t make electrons do. There are certain things you can’t make plastic do. Or glass do. Or factories do. Or robots do.

Designing a product is keeping five thousand things in your brain and fitting them all together in new and different ways to get what you want. And every day you discover something new that is a new problem or a new opportunity to fit these things together a little differently.

And it’s that process that is the magic."

~ Steve Jobs

This is why Apple doesn't make "vision" videos now, and it didn't during the Jobs years. During the period they did, they had serious problems in shipping any of the visions they have shown the world.

Microsoft is a bit like that. They know where the world is going, and Bill Gates himself knew from the very start where the world is going (short of a brief period where he conveniently ignored the Internet will happen). But they thought the fact they knew, that they had this cool idea and projection of how things will happen was giving them enough advantage. Nope.

It's risk-free to ship vision videos. They're like free T-shirts. There's infinite demand. But when it comes to shipping products based on them, most people can't live with the compromises and risk-taking a real product requires in order to ship.

With a new product you can't just look at the competition and confirm that what you have will work. You're on your own. Do you have the guts?

mantrax5··on PyParallel: How we removed the GIL and exploited all cores
Coldtea got my point pretty well. Everyone else gets a whoosh.

I'm not saying abandon Python for Java, I'm saying if you'll optimize Python, first optimize single-thread Python performance, before we get to parallel processing, because extracting performance out of parallel is hard, while languages like Java (and JavaScript recently) show they there's plenty more to be gained yet from that single thread.

mantrax5··on Web interface to talk to the bot that passed the Turing Test
One must have a pretty low bar for 13 year olds to call this thing as intelligent as a 13-year-old.

I've seen 4 year olds understand English better than this.

There's an obvious disconnect between the complexity of some statements it makes, yet how disconnected from the question they are.

No human is simultaneously unable to process a question, yet make statements so complicated.

In other words, it feels pretty much like it's copy-pasting someone else's responses from a database.

mantrax5··on PyParallel: How we removed the GIL and exploited all cores
A perfectly written parallel Python app without GIL would be ideally 8 times faster on an 8 core system, compared to stock Python.

Rewriting the original program in Java would make the program about 100 times faster... on one core.

Now let's see. We deal with hacked Python, with complex error-prone thread synchronization code in Python for 8x gain, or grab the 100x gain in a single thread in Java?

While I don't mind Python getting faster, threading should be the last thing to try before everything else is exhausted in order to make Python run fast in one thread.

mantrax5··on HippyVM
I'm familiar with Symfony, etc. Please don't sell it to me as "perfectly nice" code.

The reason most of the PHP code is crap is not because PHP makes it impossible, but because a popular crap language with a low initial learning curve tends to attract a lot of crap programmers.

I'd actually say PHP has only gotten better over time, and every new release is better than the previous one. But you have a crap base (which PHP maintains religiously as not to break BC), and a crap community, and the software they write is crap. It's just what it is. The odd exception here and there.

You can overcome a horrible language, but that's not the problem (plus I'd argue PHP isn't the worst out there).

No, it's the crappy community around it. It's hard to overcome the horrible low quality PHP code libraries people write in PHP, because writing everything from scratch isn't practical in any language these days.

Composer is great and all (except for the lack of package signing, hey, who needs security, right?), but all Composer means you can install other people's PHP crap code more conveniently.

And while I wouldn't call the people behind Symfony "crap programmers", that framework is horribly overdesigned, slow, and comprised of an endless Inception of leaky abstractions.

It shows that a programmer can take all their experience and knowledge of design patterns, best practices and what not, and write a complete piece of turd.

Anyway I better run, because the modding of my posts here is showing I've angered the PHP fans.

mantrax5··on HippyVM
> compatibility with great libraries and mature full-featured frameworks

So as I said I've been doing PHP. And I have yet to see one of those unicorns in PHP-land. In fact, my first gut reaction was that you're being sarcastic up there.

mantrax5··on HippyVM
I'm a developer and PHP is in my toolbox when suitable. But the thing I can't understand is... why waste all this effort to make a slow, broken language fast, instead of using a faster language?

I mean, sure, it's impressive that this VM is 7 times faster than stock PHP, but Java is over 100 times faster than stock PHP.

What is the gain here? Not having to go out of you little shell and learn a new language?

mantrax5··on Crane: An ORM for Common Lisp
> "There should be no way to build and use an invalid query"

Well the SQL server won't actually run an invalid query, so what's your point?

I'm not afraid of invalid queries. I'm rather afraid of valid queries like these:

"DELETE FROM Table"

Because depending on how abstract your ORM is, it's far easier to run something you really don't want to run on your SQL server. But at least it'll be valid, hey!

mantrax5··on Nod - Touchless Interaction
I don't know. You obviously like the site, and it's full of these scroll abusing sites, it make me believe I can't browse sites anymore.
mantrax5··on Crane: An ORM for Common Lisp
If we'll be talking about strawmen, the idea every SQL query is composed of many concatenated string pieces is the biggest of them all.

You both talk about the perils of dynamically building queries, yet proclaim the benefits of static syntax checks. You can't "statically syntax check" a dynamically built query. Even with ORMs. So pick one. Either you're building it dynamically, or if it's static there won't be "string pieces" to worry about.

Most of queries are defined statically: a query with several anonymous (?) or named (:foobar) parameters to insert literals. So none of those scary string concatenation problems even occur.

Regarding stray commas... please: listOfIdents.join(','). It's not rocket science. Plus, I'm not necessarily advocating you use string functions to build queries, there are many small helpers to be had when you need to build a complex query, but the point is to know when to stop, and not try to completely hide the resulting SQL from the user of such libraries.

It's one thing to use a query builder for those rare complicated dynamic queries, but an entirely different thing to lock down and hide the connection and have your hands at the mercy of an abstraction layer for your every query.

If you can't control when and how your database gets called, if you can't control select locking, and transaction isolation levels, if the vast majority of its functions and syntax is out of reach, you can only do the most basic of CRUD operations on SQL.

It's just ugly that we have a complex piece of machinery like a modern SQL database, with all those advanced querying and MVCC features packed in for people to use them in order to build fast and safe applications, and watch them use it like a little more than a file system.

It's like buying yourself a million dollar supercomputer so you can play Solitaire on it.

mantrax5··on Crane: An ORM for Common Lisp
> SQL libraries don't have to be ORMs or useless.

It's true, they don't have to be useless.

The problem is that people who end up writing most of those libs are:

1. People who have very superficial knowledge about range of features, semantics, and algorithms behind SQL.

2. People who are motivated by an irrational yucky feeling about code in strings (as if their Lisp/Python/Java/etc. source isn't just code in a string itself).

3. People who are typically very averse towards learning new technologies. They are blissfully unaware of all the ways they can persist their objects without "mapping" them. They know in depth and favor one application language, and they've stored data in SQL a few times, so let's do everything in SQL, because learning is hard, but writing abstractions is cool. It feels like an achievement.

mantrax5··on Crane: An ORM for Common Lisp
The project page makes claims that it doesn't fall into common ORM traps such as recreating SQL syntax, locking you into a limited subset of it, yet... just a few sections below it shows exactly that. I'm sorry, but building SQL out of s-expressions doesn't count as "functional SQL". It's just crippled declarative normal SQL, made from s-expressions.

There's also the usual for ORMs display of superficial understanding of transactions with a "with-transactions" global switch, as if transactions are something you can just sprinkle on top of your finished product like an exotic condiment, and get greater goodness. This is not how SQL works.

Even the "fine-grained" transactions interface doesn't expose common-place and crucial features such as transaction isolation levels, store points, selecting for update and lock in share mode. If you're reading this and thinking "this guy's just listing arbitrary niche features no one uses", then you have no business using or, god forbid, writing ORMs, because the first time you get serious traffic hitting your database you'll end up with inconsistent data state, and have no clue how it happened (blame MySQL? Sure, blame MySQL).

SQL ORMs feel oddly anachronistic in 2014. People have largely moved to persisting objects with databases built for persisting objects, leaving SQL databases to be used where they work best - for relational data queries, without quirky layers in between caller, query and results.

Plus... and I realize maybe it's just my bias against ORMs, but "an ORM for Common Lisp" reads a bit like "we ported AIDS to heaven". Just because you could do it, didn't mean you should've.

mantrax5··on Apple To Abandon Headphone Jack? Beats Deal Suddenly Makes Sense
Many phone vendors before HTC have used proprietary headphone connectors.

But Apple is not most phone vendors.

mantrax5··on Apple To Abandon Headphone Jack? Beats Deal Suddenly Makes Sense
Cross-platform support for their hardware is not something the typical user will take advantage of.

If the user has an iPhone they can buy the Lightning version, and if they use an Android phone, they can buy the micro USB version.

But chances are the user won't be switching the card reader from one device to another all the time.

← PreviousPage 2 of 8Next →