Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions

Submissions

comment 5y ago · link · parent

It's meaningless to look at the code in absence an implementation and conclude anything about the performance. He doesn't know what the performance is. Having six instruction vs. two does not mean one is 3X faster than the other. It means nothing at all.

comment 5y ago · link · parent

I'm a fan of RISC-V but the freedom is a large part of it. Aarch64 is a very well designed ISA and clearly has a lot of benefit of hindsight. The load pair/store pair instructions, the addressing modes, fixed 32-bit instruction size, etc. It all really helps. I suspect that Apple was actively part of designing it.

I think however that RISC-V isn't that much worse and because of the freedom we will almost certainly see more implementation of RISC-V. I'd be watching Tenstorrent, SiFive, Rivos, Esperanto, and maybe Alibaba/T-Head.

comment 5y ago · link · parent

I think you misunderstood what he said and I know he wasn't joking, but I didn't point out that the implied context was for Tenstorrent's usage, thus data center. He didn't mean that you just need six instructions (eg. Turing tarpit), he meant (and he's right) that the bulk of [integer] performance comes from a very small set of instructions, most critically loads and conditional branches.

All of the discussed extensions helps specific workloads, but unless your workload is, say, 100% encryption all the time, then the crypto extension will only provide a trivial improvement on the _overall_ performance.

Vector is a little bit different, but it (like AVX2/512) comes at a very significant cost and you better have software that can take advantage of it.

comment 5y ago · link · parent

I have some mixed feelings about most of these. As Jim Keller said, "most of the performance comes from just six instruction and RISC-V has all of those". Adding more instructions will cost area, power, design & verification time, all of which could go to making the existing code go faster.

605.

New SiFive RISC-V core P650 with 40% IPC increase(sifive.com ↗)

176 points · by FullyFunctional · 5y ago · 87 comments

comment 5y ago · link · parent

Meta comment: this is a instance of where the NH comments are more interesting than the original article.

I was reminiscing about how much time I used to spend at the library as a child and how my children are missing out on that.

comment 5y ago · link · parent

There is no 10% boost - it's fiction

ADDED:

With the millions spent on getting just a minor single digit improvement, you think the big players wouldn't jump on clock-less immediately if they could? Note, Intel did use (does?) use domino logic in the ALU and FPU. The benefit just isn't there for clock-less. I personally know of companies that tried and gave up on it.

To your other points, you wouldn't boil the ocean; you keep everything else clocked as usual and bridge between them.

comment 5y ago · link · parent

Domino is _one_ version of asynchronous, but that's using a different notion of Asynchronous than the article. Because of the ambiguity, we talk today of clock-less logic, which comes in variants, most notably delay-insensitive and quasi-delay-insensitive. The latter is faster, but less immune to noise (has has terrible timing analysis issues).

comment 5y ago · link · parent

Yeah that's the theory, but reality is different and probably why we don't see any in production. (The last company that would admit to a tiny bit of clockless logic, Wave, folded).

The reality is that doing clockless logic introduces a lot of overhead at every state, both area and timing. There is different styles and the issue are different for them, but the bottom line is that nobody has been able to realize the theoretically wins in production (note1). And that's not even addressing the lack of tooling.

note1: the closet IMO is Ivan Sutherlands group which have some very impressive claims, but still nothing you can run out and buy.

comment 5y ago · link · parent

"enjoyed his time at Foxconn" is not remotely an accurate summary of the fine article - perhaps it's more like the opposite

comment 5y ago · link · parent

I feel like my shiny new iPhone is made of tears. This is awful.

comment 5y ago · link · parent

That's hilarious. I did buy a tape drive. Heck, I bought a tape library. Guess what? It's useless today because my data consumption has scaled with technology and that old DAT based solution just can't cut it. Any tape drive bought today will be garbage in N years. Just a simple fact.

comment 5y ago · link · parent

If you cannot fit the backup on a single tape then you increased the headache and number of ways this can fail. I cannot phantom how you can see this as superior to hard-drive (which will probably end up cheaper too).

comment 5y ago · link · parent

And how much is the tape drive? For _most_ people (not data centers) that prohibitively expensive. A 2 TB harddisk is $48 from newegg (and I'm sure you can find cheaper).

comment 5y ago · link · parent

Oh oh, I forget to add that I would _never_ trust flash memory (eg. SSDs) to keep data for more than ~ a year without being powered on. It's absolutely a terrible archival format. (Powered on with scrubbing you'd at least know when it's starting to degrade).

comment 5y ago · link · parent

IMO it's a stupid rule, but it's not for us, it's for people who don't even have this.

I think there's an element that is as important as keeping a backup safe against a state-wide wildfire and that's AUTOMATION. If it isn't automated then chances are that your backup is very old once you finally need it.

comment 5y ago · link · parent

The different media types is probably the hardest issue; I'd wager that for most people, backing up > 2 TB on anything but spinning rust will be impractical/prohibitively expensive.

A slight twist of this: I now have data old enough that accessing it with modern computers is starting to become a challenge. Thankfully I migrated all my, once enormous collection of 50,000 MB on tape, to just be files on my file server, but I'm worried about the longevity of optical media, and now I nervously glance at my collection of even older media ....

comment 5y ago · link · parent

Indeed, people outside of USA (and France, Germany, and a few others that dub everything) have lived with this their entire lives. Even today my wife and I watch with subtitles as it's not always easy to hear all of the dialogue over the other noises in movies/shows.

comment 5y ago · link · parent

My recollection doesn't agree with you. It was a stretch for a 300 MHz Celeron to play an MP2 (not even MP3) - I was an early adopter as I hated all the analog degrading.

comment 5y ago · link · parent

Exactly. The requirement for my first personal PC was that it could run True Emacs on Linux (Sun 3 at my University had spoiled me), but I could only afford the absolute minimum: 386SX/25 MHz w/4 MiB. It was a Toshiba T1800 notebook, very nice but monochrome LCD, tiny harddrive, and not expandable.

With 4 MiB I was able to try X11, but not use it in practice. 32 MiB would have been incredible.

comment 5y ago · link · parent

This was painful to read. 14 year old me finally managed to get the NASCOM 2, my first ever computer. It came as a kit with 2,000+ solder points, but patience was never my virtual and certainly not at 14 year old so my work wasn't perfect and worse, wasn't properly checked. The original Z-80 died and I had to get professional help to get it working. (And learn to program: Z-80 in binary hex codes -- didn't get the memory necessary for the Microsoft BASIC until later). Still have this computer.

comment 5y ago · link · parent

I concede that Apple is controversial, but what’s wrong with Netflix?

comment 5y ago · link · parent

Numbers are now illegal, like 101 132 96 154!

comment 5y ago · link · parent

I had hoped for a little more insight and information density, but I did learn about Knuth's hash x(x+3) % P which was news to me.

However these are all techniques that I might have used in undergrad, but today I would hands down use Cuckoo hashing unless the application domain was insertion dominated.

comment 5y ago · link · parent

Just 2 0 0 0 lines?!? That's really saying something. I wish it was available on macOS.

OT: I've falling back in love with Haskell after reading Ben Lynn's astonishing adventures (https://crypto.stanford.edu/~blynn/compiler/) and it's still super awesome for explorative programming.

comment 5y ago · link · parent

Yes. By design (1), RISC-V removes much of what makes OoO harder. Most instructions have very regular and clean semantics, communicating only through registers, with a straight forward [up to] two register operands, at-most one destination. The memory model by default is the same as Arms, a fairly weak model. Basically code that works on Arm will port over trivially (vector and special functions excluded).

(1) Unfortunately compressed instructions were included in the Unix profile which causes a lot of pain and makes it mostly impossible to do any partial predecode at I$ fill time. Ironically Arm64 wised up and removed the Thumb variants. (Preempting the code density crowd: there are other ways to deal with this). EDIT: Pain includes dealing with instructions that crosses cacheline or even page boundaries (hello double fault), but worse, not being able to tell what might be an instruction in the I$. It was a sad day when RISC-V with essentially no input from the higher-end concerns decided to force it on us.

comment 5y ago · link · parent

High performance RISC-V is orthogonal to those extensions. There is nothing stopping an M1-class implementation with the existing ISA.

comment 5y ago · link · parent

You are totally wrong. I too love my M1 MBA and I have a huge pile of other notebooks. The weight, the battery lifetime, and all this with stellar performance. It is literally the best notebook I have ever owned.

comment 5y ago · link · parent

This is wonderful account and a tour de force debugging. I have an SE/30 with 128 MiB for the same reason (sans Ethernet, sadly). The #1 thing I'd like to try one day is bringing up Mk68Linux (think that's the name).

Possibly due to being in Europe (think $$$), I completely missed the whole Macintosh experience until OS/X came out. Having devoured the development history of the Macintosh I can tell how much I missed out on. The compactness of the box and the human focus design (eg. handle is built-in) makes it a treasure even today.

The 2nd thing I would love to try is driving the monitor from something else, say an FPGA or a Raspberry Pi.

comment 5y ago · link · parent

No, that doesn't protect again amplification attacks by itself. Quoting https://curvecp.org/availability.html:

Blind amplification

Some protocols allow attackers anywhere on the Internet to generate a packet that will trigger a much larger outgoing packet from the server to a victim address selected by the attacker. The issue here isn't the availability of that protocol; the issue is that the protocol is amplifying the attacker's resources, damaging availability for the rest of the Internet. The worst offender at the moment is DNSSEC, which has set up a remote-controlled machine-gun pool containing more than 2000 servers with amplification factors between 30 and 95 and with an overall outgoing attack capacity estimated to be close to 50 gigabits per second.

With CurveCP, the first incoming packet from the client is padded so that it is as large as the outgoing packet from the server. If this padding is missing, the server won't respond. Subsequent packets from the client need to repeat server cookies and can't be generated blindly.

1
202122
52