HNHacker News
TopNewBestAskShowJobs

revelation

11,052 karma · joined February 7, 2012

submissionscomments
revelation··on Programming the Linux Framebuffer
No one wants window management in the kernel, so yeah, the assumption is that there is one master that decides what buffer(s) are scanned out. That said, DRM is the only way to use the hardware compositors found on many mobile chips, which allow you to rotate, resize and blend together multiple buffers on the fly to produce the final display.

A minimal DRM example isn't much more, by the way:

https://github.com/yuq/gfx/blob/master/drm/main.c

And this does a lot more stuff that you want, like what connectors (think HDMI or LVDS internally) does my hardware have, which of those have displays connected, what modes are supported by those displays, and it can be very easily extended to do 3D rendering.

Beyond the HW planes, there is lots of stuff DRM enables that you simply can't do with /dev/fb but absolutely want, like true VSync synchronized rendering.

revelation··on Programming the Linux Framebuffer
/dev/fb is a legacy interface that shouldn't be used.
revelation··on MPEG: A crisis, the causes and a solution
Ehh, this is counting 1.7 billion mobile users for VP9 but not HEVC because of mobile Chrome installs. It's hard to take this serious when it's counting software decoding on mobile (if Chrome will even decode it on a lot of those phones, they know its pointless in SW.)

Meanwhile, nothing iOS supports VP9 HW decode. Until they come around, people could give a fuck about installed base.

Then there is the stuff this article doesn't very well measure. Like DVB-T2 in Germany using 1080p50 10 bit HEVC. That is expected to be around for a decade or more. That is a whole lot of TV settop boxes.

revelation··on MPEG: A crisis, the causes and a solution
You can buy a $50 SBC today with 4k HEVC decode HW blocks, enabled out of the box. For me, that puts the technology deep into the established box, and last I checked, whoever is making the IP core for it neither the many manufacturers shipping it are the least bit concerned. This post sounds like scaremongering.
revelation··on Dell could emerge as a public company through a reverse merger with VMware
This is like those dotcom boom "all shares" sales or two companies contracting each other to record revenue.

No wonder they are both tanking if upper management is fully occupied playing valuation games and swapping chairs.

revelation··on Introduction to OS Abstractions Using Plan 9 from Bell Labs (2007) [pdf]
It's never been widely used for anything, so there is none of that pesky practicality to demonstrate clearly it's just the same old.
revelation··on In California, Where Cancer Warnings Abound, Coffee Is Next in Line
I mean, there is a way to do this stuff right. Look at RoHS; in comparison it's a straight up success story.
revelation··on Copyright Royalty Board Boosts Songwriters’ Streaming Pay Nearly 50%
Imagine programmers asking for a per-execution rate.
revelation··on The Follower Factory
For the longest time, spammers and fake accounts on Twitter were just a name with a long ass random number on the end. I guess that particular cancer hit a local optimum where Twitter was pumping its numbers aka misleading the shareholders.
revelation··on 'It Was the First Time I Cried in the Operating Room'
There is currently an ongoing court case against a particularly corrupt Baltimore Police unit:

http://www.baltimoresun.com/news/maryland/crime/bs-md-ci-gtt...

Among other things, they would carry BB guns to plant if they happened to shoot someone.

revelation··on Apple Expands California Self-Driving Test Fleet to 27 Cars
Those Tesla cars aren't collecting training data, that's preposterous. They have a mobile phone connection and some flash storage, so where is all this data going to?

It's not going over the mobile link, you would need many magnitudes the bandwidth, and it's certainly not going on the flash storage, because if you continuously stream raw camera data to flash you will kill it in a year at most.

(That is before you consider that you want a $100k sensor suite with lidar, precise wheel odometry and a GPS/INS system to get a ground truth for training anything)

revelation··on How a fix in Go 1.9 sped up our Gitaly service by 30x
Someone mentioned libgit2, and that is a good first step fix. There is no need to launch a process that calls libgit2 when you can call high-level libgit2 functions yourself. That already eliminates this problem entirely, along with all the other ickiness that comes with running command line tools programmatically.

But ultimately this is the main Git interface for the remainder of the site, and it is apparently already sharded so only has to deal with a limited number of repositories. You can use libgit2 on a low-enough level that you can just keep and mutate repository state in memory. Something like a ref exists should be just a hash table lookup, and there are a bunch of other commands where gains can be had when you are not starting from scratch on every API call.

(This is what github is doing. They started out with grit, which was some parts of Git reimplemented in Ruby and then launching git for heavy-weight stuff. Nowadays they use rugged, the ruby bindings for libgit2.)

revelation··on How a fix in Go 1.9 sped up our Gitaly service by 30x
Here is the "reference exists" that the blog post alludes to:

https://gitlab.com/gitlab-org/gitaly/blob/master/internal/se...

I'm not an expert in this abomination, but it looks all the world like invoking "git show-ref --verify".

(Of course a Git ref is usually just a file in .git with a SHA1 in it. They don't care about the SHA1, so really they are launching a Git process for a file exists operation. This used to take them 400ms, but now it's only 100ms!)

revelation··on How a fix in Go 1.9 sped up our Gitaly service by 30x
Because every straightforward way of running an external command on Unix involves fork(). So someone wrote that API not thinking much of it.

Then shock horror they realize running a throwaway command is fork()ing the main process. But now everyone is too angsty to change it because someone out there might rely on the environment copy functionality, even when they shouldn't.

revelation··on How a fix in Go 1.9 sped up our Gitaly service by 30x
It's even worse. Gitaly is a program that takes loosely-validated externally-triggered requests and turns them into Git command lines to be exec()ed. So every API request transmutes its input into one or more Git command lines that are exec()ed, each one invoking fork() on the main massively-parallel Gitaly process (well, used to anyway).

It's like a terrible China router firmware, without the C. Bonus points for every straightforward way of running a throwaway command on Linux invoking fork().

I guess it's a good thing because it sets us up for another blog post once they learn of the latency gains to be had when you are not creating new processes on API requests. Hell, when someone starts looking into how this Git thing works, we might be in for a whole series.

revelation··on Zstandard – Real-time data compression algorithm
From that benchmark list I'd prefer lz4..
revelation··on Apple, in Sign of Health Ambitions, Adds Medical Records Feature for iPhone
The system decides when and what to encrypt and decrypt on it's own, how is any of that related to the user?

If the software can't be trusted it's not encryption, it's pointless. If you are going to pick a trust anchor, choose something that isn't also doing wireless updates, running third party apps, has a colorful interface that can trivially trick you into doing unintentional things..

revelation··on How to Emulate a Raspberry Pi (Raspbian Jessie) on Mac OS X
Only the original, and the Zero(W). RPi2/3 use ARMv7 and ARMv8 cores, much more mainstream so easier to simulate.
revelation··on The Google Lunar X Prize’s Race to the Moon Is Over. Nobody Won
Matlab Simulink, typically (maaybe LabView, but not really)
revelation··on HomePod arrives February 9, available to order this Friday
What on earth does power have to do with audio quality?
revelation··on Hetzner Cloud
Actually, Microsofts challenge is still pending at the Supreme Court, no?
revelation··on Once seniors are too old to drive, our transportation system fails them
That's because prior to being too old to drive, they didn't give a fuck about the public transportation system. Actually, even after being too old to drive, they happily continue to vote against public transportation.

It's bizarre to suggest our transportation system is failing them. It's exactly the transportation system they voted for, the transportation system a good bunch of them built, designed, railroaded through poor communities, terraformed cities to support. It's been failing large swaths of people for many centuries, but that generation didn't bother. They built this shrine to the personal automobile.

It's not even a case of buyers remorse. For the longest time in their life, they happily took advantage of limitless cheap fossil fuels, plenty of unregulated cars and wide roads to drive them on, and the best part, they managed to put it all on the tab for the next generation. Its Caligula all over.

revelation··on Why you can’t buy a high-end graphics card at Best Buy
France famously derives >70% of it's energy from nuclear energy and has vastly lower prices than neighboring countries.
revelation··on Driving a Car in Manhattan Could Cost $11 Under Congestion Plan
If you don't want any of that, ride a bike. Of course all the fools driving in the city center make that a a rather perilous undertaking, which is why congestion charges like these are desperately needed.
revelation··on Librem 5 Phone Progress Report
There are no datasheets for the Vivante GPU that NXP integrate as a silicon blob.
revelation··on Librem 5 Phone Progress Report
From our contact from the Etnaviv developers we know that they are heavily working on the i.MX8M support so we can expect that Etnaviv will be working on it within the year.

What exactly are people funding Librem for if not to actually work on the most crucial component, the GPU driver?

I guess it doesn't really matter because if they want to have any hope of delivering they will be knee deep into Mesa and DRM before they know it. This isn't a blob you just copy into /vendor.

But their lax attitude kind of spells doom for the chances of this crowdfunding project.

Edit: whoops, they don't even want to use Android! But judging from their mockup renders they expect to have something just as good.

revelation··on Airbus Handed A380 Lifeline With $16B Emirates Order
On desktop you get the pie diagram and all other images blown up to full display resolution. I can't fathom how they continue to get this so ridiculously wrong. It's not difficult.
revelation··on Apple plans new U.S. campus, to pay $38B in foreign cash taxes
It doesn't. It just means Google will now pay less money to the US government when they want to spend their overseas profits in the US.
revelation··on Apple plans new U.S. campus, to pay $38B in foreign cash taxes
How do you evade sales tax, labor overhead? 9% is a far ways off from the nominal.
revelation··on Apple plans new U.S. campus, to pay $38B in foreign cash taxes
But of course Apple isn't paying no German taxes. They didn't pay taxes on any of this overseas money, and they had the gall to ask for an "repatriation holiday" so they could pay overall zero taxes on that huge heap of money.

Now they are paying the US gov. Unless they can keep coming up with more Irish tax avoidance schemes, going forward they will probably also have to pay in Europe.

← PreviousPage 2 of 34Next →