Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

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

Submissions

comment 3y ago · link · parent

46 comments and not one has called out the fundamental issue: when you run software you have essentially giving the author access to your machine as you.

The problem is that every piece of software has way too much power, way more than they need. Apple with iOS has done a pretty good job (AFAICT) locking down what an App can do and there's _some_ of that on macOS. I don't know what Windows is doing. And of course, even it were perfect we'll still have vulnerable platforms for decades, but at least IT dept. can curb them.

comment 3y ago · link · parent

More to the point, storing the pointers cost memory. Switching from 32-bit to 64-bit effectively halved the caches for pointer-rich programs. AMD64 was a win largely due to all the things they did to compensate (including doubling the number of registers).

comment 3y ago · link · parent

It's not entirely historically accurate. Early machines were "word addressable" (where the words wasn't 8-bit) which by your definition should have been called "byte addressable".

There were even bit addressable computers, but it didn't catch on :)

If it wasn't for text, there would be nothing "natural" about an 8-bit byte (but powers-of-two are natural in binary computers).

comment 3y ago · link · parent

I didn’t assume Linux binaries would work and I don’t see how to make that work, but general application that doesn’t depend on mmap or the Linux ABI can work.

comment 3y ago · link · parent

Either port to a processor you have or build a RISC-V core yourself, say, with an FPGA. There is an abundance of designs you can use, but actually making a simple core that can support this isn't hard if you aren't too ambitious with the performance.

(I know of at least one RISC-V core implemented with 74-series TTL chips and a vacuum-tube implementation is surely in the works somewhere).

comment 3y ago · link · parent

Absolutely batch and use asynchronous completion. All modern systems (NFSv4, GPUs, NVMe, etc) uses a variation of the theme. However, one should also work on lowering the context switch cost.

Another notion that I find interesting is one-address space. You still get per process protection, but address space is global. Supporting virtual memory is extremely expensive (we are paying the price today with hardware table walkers, multi-level caching of translations, various flushing on context switches). It is much cheaper if we only have to implement permissions (there are many options here) and it can make zero-copy process communication much cheaper.

Also, if you are giving up on paging, we can move beyond the 4096 byte page which we got with the 1962 Atlas (it had the equivalent of 96 KiB total memory; if pages had kept that ratio we would be using ~ 8 GiB pages today).

comment 3y ago · link · parent

Yes it’s exactly my experience though 10+ years (MX + MS). I really want other EVs to be an option, but the charging network is laughable (cryable) in comparison to Tesla’s.

comment 3y ago · link · parent

It seems to be a problem of incentives. Tesla is highly integrated and it hurts the overall business if the charging network isn’t reliable. The other EV maker don’t own their own charging network and it’s anecdotably far far less consistent and reliable.

Until they sort out the incentives I wouldn’t consider a non Tesla EV (and I have never in 10 years waited for an hour at a supercharger unless I was waiting for access which has happened)

comment 3y ago · link · parent

It's a nice write up. but as much as I love whole-drive filesystems, in this case I would have used a partition table and used a fixed partition for the swap space. Not only is it (slightly) more efficient, it's also simpler than using a btrfs subvolume and remembering to +C the swapfile.

I think the general approach is very good and could probably be used for the VisionFive 2 RISC-V SBC as well.

comment 3y ago · link · parent

What really happened was that cache misses kept increasing in latency (CPUs getting faster, memory isn't) and static scheduling simply cannot scale that far. Multiflow and friends would have exactly the same problem in a modern implementation - static scheduling is fundamentally hopeless.

Transmeta did slightly better as CMS (the "JIT") could take advantage of biases discovered at runtime, but still couldn't do as well as a fully dynamic scheduler.

comment 3y ago · link · parent

I'd offer a slightly modified take:

- the promised compilers are _impossible_ as we can't predict all branches and all cache misses in _general_ (works better for floating point heavy code),

- the failure to clock higher was IMO largely due to a ridiculously bloated and over-complicated ISA. In other words, EPIC was doomed from birth.

I've written about IA-64 many times; it actually had many neat ideas, but in the end Intel yet again failed spectacularly in moving away from their archaic legacy.

comment 3y ago · link · parent

I don’t think nuclear is evil, but Rosie’s look at the financials suggests there are better options: https://youtu.be/quI_8xYSWYE

comment 3y ago · link · parent

Chinese: Mandarin or Cantonese?

comment 3y ago · link · parent

O L E D

comment 3y ago · link · parent

"Kneejerk" is a bit of a down-putting assumption, isn't it? There are many, MANY, reason why someone might disagree with the OP opinion on black and white.

I happened to have a few iOS apps where true black is an option (which is desirable on OLED to save battery). A perhaps less common concern is eInk whose dynamic range is quite limited and for which #000000/#FFFFFF greatly enhances readability.

comment 3y ago · link · parent

Also, both my OLED and eInk prefer true black, unnaturalness be damned (the former for energy, the latter for contrast).

Otherwise I loved this list as a lay person.

Regarding color palette, I really like the work of Kate Rose Morley: https://fosstodon.org/@kate/109348023789472321

comment 3y ago · link · parent

With only 17,576 different possibilities, TLAs are bound to alias. RTL in electronics can mean both register transfer level and Resistor-Transistor-Logic. If you are old enough, you will have used both.

comment 3y ago · link · parent

Thanks, my slip up. The rest stands, RTL hasn't been used since before most people here were born.

comment 3y ago · link · parent

Note, the included schematics of a DTL (diode-transistor-logic) gate is wrong on many levels and isn't even something we have used in the last four decades. The CMOS implementation _is_ what we actually use and for drive strength 1 it's literally just this (which isn't hard to understand): https://commons.wikimedia.org/wiki/File:CMOS_NAND.svg

comment 3y ago · link · parent

There isn’t a simple relationship. Ignoring the code space issue (and I$ pressure), the added instructions in this case are for function entry/exit so if that not on your hot path, it might not matter at all.

comment 3y ago · link · parent

April is interesting, thanks. Aside: I worked professionally in Scheme for a few years, but Haskell (and ghci) is my favorite language (thus my handle) for experimenting with non-trivial derivations and quick one-off experiments. Rust gives me some of what I love in Haskell (type classes, polymorphic types, sum types, some type inference, rich and ergonomic library, some functional style, ...) without the sad part (space leaks, unpredictable runtime, completely insane defaults from a perf POV)

comment 3y ago · link · parent

ADD: what finally worked for me was to not read the book [linearly], but instead jumping between tons of sources, lots of exercises, and generally not stressing about getting everything in all the [ample] detail. And of course doing it and doing it every day. I definitely still have lots of holes (hello async) and I'm not shy about Cloning/Copying liberally unless it really matters for performance.

comment 3y ago · link · parent

I recently built SPECint2k6 for RISC-V (on JH7110) with and without -fomit-frame-pointer and to my surprise the default (with frame pointers) was a tiny bit faster (though so close to the noise floor that I'll settle for "the same"). I haven't dug into why frame pointers seem to cost nothing on RISC-V but it's likely that it's just that there's plenty of registers.

comment 3y ago · link · parent

Your loss. I tried three times to learn Rust and I had plenty of doubts, but 3rd time I struck to it and it took maybe a year before I would reach for Rust before C (I have 40 years of C muscle memory so that's saying something). Some things _are_ awkward in Rust (eg. occasionally the explicit "a[x as usize]" casts are tiring), but the payoff is awesome.

comment 3y ago · link · parent

My annecdata: my first language after BASIC was Pascal and I worked professionally for a couple of years using Turbo Pascal, yet I preferred C. I think the reasons were (in order): verbosity and flexibility.

I always hated Wirth's obsession with bloated keywords. I like conciseness (though J might be jumping the shark).

The latter point is just a reflection of how awkward it is to the break the rules in Pascal, which was necessary for many real-world applications.

And yes, I'm also a Rust convertee (sorry haters); I can do everything I did in C in Rust and for most parts it's more readable and frankly less work. I think my biggest regret is that while I know I could write a C compiler, I don't think I could write a Rust compiler [in my lifetime].

comment 3y ago · link · parent

compiler technology doesn’t help when cache misses and branches aren’t predictable. That’s the fatal flaw.

comment 3y ago · link · parent

That’s not what dynamic scheduling means. What you need is to dynamically extract ILP so you can get good performance on single thread applications in light of branch mispredictions and cache misses. We are talking SPECint, not SPECfp nor throughput (threading). x86 chips and Apple Silicon show what you can do here and to do that with IA-64 would have been harder, not easier.

comment 3y ago · link · parent

Debian, Redhat, and SuSE all supported it for several versions. I have Debian on mine.

comment 3y ago · link · parent

Yeah this isn't quite what happened. Firstly, Intel didn't start Itanium, HP did, as a successor to their HP Precision line. I forget how they got together, but it was a collaboration between Intel and HP, but HP started it and had largely the architecture defined before Intel got involved.

Secondly, it's true that AMD hammered the nails in the coffin, but AMD wouldn't have mattered if Itanic had been faster, cheap, and on time. Itanic was a disaster partly because of overly complicated design by committee and partly because of the fundamentally flawed assumption (that you don't need dynamic scheduling, AKA OoO processing).

I have an Itanium in the garage, a monument to hubris.

UPDATE: I forgot to mention that from the outside it might seem that Intel had a singular vision, but the reality is that there were massive political battles internally and the company was largely split into IA-64 and x86 camps.

UPDATE2: Itanium was massively successful in one thing: it killed off Alpha and a few other cpus, just based on what Intel claimed.

1
8910
52