HNHacker News
TopNewBestAskShowJobs

hosay123

2,382 karma · joined November 17, 2012

submissionscomments
hosay123··on Comments in JSON
This would completely break any event driven (streaming) parser.
hosay123··on Ask HN: Where do you host your NodeJS applications?
Kool-aid
hosay123··on Porting dl.google.com from C++ to Go
Either I'm having deja vu, or despite the date on the presentation, this is at least a year or two old
hosay123··on OVH launches 2.99€/mo dedicated servers (2G RAM, 500G disk)
All the bandwidth in the world shouldn't matter if the underlying technology has the same latency and the memory bus is serving a fixed number of small requests in parallel, right? Overall processing speed in an uncached memory bound application is limited by the latency of the storage tech (somewhere around 10 million "requests"/sec assuming 100ns access time, and assuming the app did absolutely nothing except randomly access memory).

In my case I had 1 software thread per thread, I'm not sure if over-subscription would make any difference. Also, out of ordering processing is only possible in the absence of data dependencies (I have no idea how to even go about measuring this). Also tree structures are no different to random walks from the hardware's perspective, i.e. the hardware has no useful predictive ability to prefetch data in this case.

The main point was that it's so cheap to test, there's little value in speculating about architecture specifics few are qualified to understand, assuming they're publicly documented in the first place

hosay123··on OVH launches 2.99€/mo dedicated servers (2G RAM, 500G disk)
The other responses to this have been woefully speculative at best, plain wrong in others. The short answer is to rent one for a month and benchmark your particular application.

I was surprised to discover that with a workload composed entirely of XML parsing using Python+lxml, an OVH 1.8ghz Atom N2800 beat hands down my mid-2010 2.4ghz Macbook Pro. This isn't a crazy result either. For instance, while the Macbook is equipped with dual cores, each core supports only one hardware thread, and thus is blocked while waiting to complete a load from RAM (a common occurrence when dealing with giant cache-unfriendly DOM trees that don't benefit from the Core 2's much increased L2).

In contrast the N2800 has 2 cores with 2 hardware threads each (hyperthreading), so each core can progress while its buddy thread is stalled. In my particular workload this was enough to beat by a significant margin a much faster, expensive and power-hungry processor.

hosay123··on Mozilla’s WebGL2: an experimental WebGL implementation based on OpenGL ES 3.0
ES is much more rigorously specified AFAIK, and has good mobile support.. OpenGL proper is a random extension soup.
hosay123··on A Tour Inside CloudFlare's Latest Generation Servers
Awesome, thanks!
hosay123··on A Tour Inside CloudFlare's Latest Generation Servers
The article suggests interrupt load is the major issue, although doesn't really say enough to inform us. A 12.5ms buffer means potentially just 80 wakeups/sec. They don't mention whether they use multiple hardware queues or if all interrupts hit a single core.

I'd also be interested to know if polling mode was tested with any of the cards, and why it didn't work out

hosay123··on $99 ARM-based PC runs either Ubuntu or Android
You might find a few hours flicking through the past year of http://www.cnx-software.com/ archives useful
hosay123··on $99 ARM-based PC runs either Ubuntu or Android
Also check out e.g. http://boundarydevices.com/products/sabre-lite-imx6-sbc/ for sterling "real" Linux support, GigE and PCIe
hosay123··on $99 ARM-based PC runs either Ubuntu or Android
Sadly the rk3188 on-chip controller is only capable of 100mbit. There's a few more (particularly Freescale) units with gigabit, but generally more expensive. Gigabit or USB3 is when these things start to look insanely attractive IMHO (as possibilities to attach e.g. storage to the external bus exist)
hosay123··on Don't be evil: Moving everything off of Google
It's worth remembering how so many came to use these services in the first place – as a tech 'front liner' I too was once guilty of unconditionally mocking others and saying "you should be on Gmail!".

Now the tech front is reversing its position, and hopefully the rest of society will eventually follow. Unfortunately the scene isn't set just now, because there simply aren't good alternatives to Gmail – nothing free or self hosted comes remotely close to its clean UI.

When such a thing exists, selling regular users on moving away from Google will be a much easier proposition

[If you're reading this and thinking of cloning Gmail – for fuck's sake don't waste your time "innovating" on the UI and getting it horribly wrong! (This was really the biggest tragedy of the Reader transition). Do a pixel perfect conversion. Except for artwork, cloning a UI is perfectly legal as demonstrated by case law going back 20+ years in the EU and USA.]

hosay123··on Navigating the Postmodern Python World
Test suites are awesome
hosay123··on Nokia Lumia 1020 packs 41-megapixel camera whopper
What ties you to Android?
hosay123··on Nokia Lumia 1020 packs 41-megapixel camera whopper
Hmm, there was a time when function was occasionally considered over form..

The phone is hardly ruined, it's just a high end handset for people in a particular niche, one I happen to belong to (long gave up carrying real cameras, don't give two heaps about Android/pointless OS wars or "mobile apps" or any of that crap, adore the notion of a reasonably high end camera that requires zero effort to bring with me).

Design is often about trade-offs, and based on the parent comment, you seem to have entirely missed the point of this particular design.

hosay123··on PyPy 2.1 beta released with ARM JIT
Changelogs like "Bugfixes to cffi and ctypes" are pretty useless. Do these bugs affect my code? Is my code going to explode horribly if I don't upgrade? Is my code going to explode horribly if I do upgrade? etc.
hosay123··on The Go 1.1 scheduler
"Don't read the design doc, it's too complicated. Instead read this cutpaste!"

The single "lock free" idlep looks like it's just moved the futex contention elsewhere. This will almost certainly bounce like crazy on a many-cored system. Would be interested to see benchmarks of the new design before considering it somehow better.

hosay123··on RethinkDB 1.7: hot backup, atomic set/get, 10x insert performance improvement
According to that page, the Mongo test was using unacknowledged writes, so not exactly a useful comparison
hosay123··on Google Alerts Drops RSS Delivery Option
If you think that's funny, check out http://googledevelopers.blogspot.co.uk/2013/07/pubsubhubbub-... :

    we encourage providers of feed systems and related tools to connect their
    automated systems for feed acquisition to our PuSH hub (or other hubs in the
    PuSH ecosystem).

    Google directly hosts many feed producers (e.g. Blogger is one of the largest
    feed sources on the web) and is a feed consumer too (e.g. many webmasters use
    feeds to tell our Search system about changes on their sites). Our PuSH hub
    offers easy access to hundreds of millions of Google-hosted feeds, as well as
    hundreds of millions of other feeds available via the PuSH ecosystem and
    through active polling.

You'd think they could have picked a better subject to get people to trust them over, or a better day to post about it
hosay123··on Google flights
$700 million and 2 years later, and flight search is still slower than the first random site I picked (dohop.com).

In the meantime I'm left wondering just how much global travel information now finds itself in the hands of the US feds as a result of the purchase.

hosay123··on Winklevoss twins to offer Bitcoin ETF
They'll be purchasing and (and most likely) holding Bitcoin for prolonged periods
hosay123··on Using Nginx and UWSGI
That accounts for about 2ms
hosay123··on Using Nginx and UWSGI
For a little perspective, the remaining 20ms still leaves enough time for oh, 55 random SSD IOs and time spare to zlib a megabyte of text. Or about 4.8 million instructions of a modern 2.4ghz CPU. Just what does this app do exactly?

Aah.. Django.

Seriously, 20ms isn't good even for Python. That's not something to be proud of, that's reason to rip up whatever overelaborate mess you've constructed to figure out just how you're blowing so much time.

As a reminder, a 200 byte HTTP request can be parsed in around 600 instructions or less (about 250 nanoseconds at 2.4ghz).

hosay123··on Dependency Injection for Python
The author could refactor the documentation a little, starting with removal of the word "Pythonic" and perhaps ending only after 90% of the text has been replaced with a single section entitled "WHY GOD WHYYYYY".

    def python_di_copyright_2069_hosay123(dep, *args, **kwargs):
        modname, _, classname = dep.rpartition('.')
        mod = importlib.import_module(modname)
        return getattr(mod, classname)(*args, **kwargs)
> Though Google owns this project's copyright, this project is not an official Google product.

We just published it under Google's Github to give a terrible project implied legitimacy that it likely doesn't even have internally.

hosay123··on Firefox 22 released
I am for all intents and purposes a massive Mozilla fanboy, however I regularly switch to Chromium to use any nontrivial 2D graphics js (e.g. the Python plop profiler).

Not sure why, but Firefox definitely seems to have a weak spot around 2d (SVG?) performance

hosay123··on C# Language Specification 5.0
As a (hardened, old) unix dev, it seems to me you've spent little time with the language. C# is one of the most successfully evolved languages of recent times, no feature was added that didn't have a clear & concise story in the context of all other features.

No Anders & co didn't just add whatever they felt fashionable, they've designed a language over the course of a decade with (to my knowledge) zero warts, bringing to the table more than 20 years of prior design experience (Turbo Pascal, Delphi).

If it weren't for the stigma of being a Microsoft design, C# would be a hugely more popular language.

hosay123··on Packagers don't know best
Yes, and my /usr/local isn't a freaking .git repository. Homebrew, bikeshedding what MacPorts achieved a decade previous (and getting it horribly wrong) since 2009
hosay123··on Packagers don't know best
> you install a package with apt, it pulls in all dependencies, and it Just Works

And what happens in the case of a package not available through apt? ("Sorcery! All applications must be packaged! All shared libraries must be packaged individually!")

And there went your afternoon installing some just-slightly-uncommon piece of software

hosay123··on We were wrong
Heh. So enslaving sentient organisms for the purposes of entertainment (cockroach robot app) is classed as a "creative work", while teaching teenagers how to pick up women results in outcry?

And no I'm not suggesting some equivalence between women and cockroaches, I'm objecting to their frivolous dismissal of the project on the grounds of it not being a "creative work".

hosay123··on Lockheed Reassigns Workers to Fix F-35 Software
> a system that is designed to never crash

I'm pretty sure no self-respecting engineer would ever attempt to design such a thing (although many might be deluded into thinking that e.g. advanced type systems might help achieve that goal).

> choice of using C++

Almost certainly not a good indicator.. much of those LOC are likely integrations from other projects. Who is to say the alternative didn't involve rewriting some more sensitive, costly-to-produce code in Ada?

← PreviousPage 6 of 13Next →