Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

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

Submissions

comment 6y ago · link · parent

Pray tell in which way this will help WASM?

comment 6y ago · link · parent

[0] Close, it was the VAX-11 and is the poster child for CISC madness.

comment 6y ago · link · parent

I don't dispute it, but could you elaborate on the painful parts?

I find the crossing in and out of JavaScript to be less than ideal. However, I don't see why WASM couldn't evolve to require less of that, ie. expose more of what you need JavaScript for today.

comment 6y ago · link · parent

You think Intel designs processors around SPEC? (Hint: they don't).

ADD: It was an issue a long time ago. Benchmarks like SPEC are actually much nicer than real server workloads. For example, running stuff like SAP would utterly trash the TLB. Curiously, AMD processors can address 0.25 TB without missing in the TLB, much better than Intel.

comment 6y ago · link · parent

In that sense it's not saying anything different from what we have been doing for the past 60 years.

The only significant thing that has changed is that power & cooling is no longer free, so perf/power is a major concern, especially for datacenter customers.

comment 6y ago · link · parent

Unlike Java there's no official bytecode and all implementation do it differently. I don't think any high performance implementation use bytecodes, but instead uses threaded code for their 1st tier, and native code for all others.

comment 6y ago · link · parent

Oops I'm wrong about the name but not about the spirit. This is the original paper: https://dl.acm.org/doi/pdf/10.1145/641914.641917

comment 6y ago · link · parent

WASM is _designed_ to be easily jitted, without the expensive machinery we had to put in place to do this for x86, so the whole point is not require a new architecture.

Because of this I find WASM to be the best direction yet for a "universal ISA" as it's very feasible to translate to most strange new radical architecture (like EDGE, Prodigy, etc). (Introducing a new ISA is almost impossible due to the cost of porting the world. RISC-V might be the last to succeed).

comment 6y ago · link · parent

Well if you go far enough back, it was not usual to find special allowance for programming language constructs (like procedure linkage that supported display, useful for languages like Pascal with nested procedures etc).

The reason you don't find this is that all "modern" processors designed since ~ 1980 are machines to run ... C as the vast majority (up until ~ Java) of all software on desktops and below were written in C. This also has implications for security as catching things like out of bound access or integer overflow isn't part of C so doing it comes with an explicit cost even when it's cheap in hardware.

comment 6y ago · link · parent

... which were removed in SPARCv8 (64-bit) because nobody used them.

comment 6y ago · link · parent

Funny, I have a small JavaScript app I have abandoned because I find developing JS so awful. Now that I have ramped up in Rust I am very tempted to rewrite it as Rust has first-class WASM support. Unfortunately I'd still need JavaScript for the UI bits.

IMO: Rust isn't the easiest language to learn, but the investment pays off handsomely and the ecosystem is just wonderful.

EDIT: I meant "to learn" which completely changes the statement :)

comment 6y ago · link · parent

Personally I think this would be unfortunate as I don't think JavaScript is the path forward, but computers have always existed to run software (d'oh), which mean the natural selection will obviously make this happen if there is a market advantage.

However I see all high performance web computing moving to WASM and JavaScipt will exist just as the glue to tie it together. Adding hardware support for this is naive and has failed before (ie. Jazelle, picoJava, etc).

comment 6y ago · link · parent

Since RISC wasn't coined by IBM (but by Patterson and Ditzel) this is just plain nonsense. RISC was and is a philosophy that's basically about not adding transistors or complexity that doesn't help performance and accepting that we have to move some of that complexity to software instead.

Why wasn't it obvious previously? A few things had to happen: compilers had to evolve to be sophisticated enough, mindsets had to adapt to trusting these tools to do a good enough job (I actually know several who in the 80' still insisted on assembler on the 390), and finally, VLSI had to evolve to the point where you could fit an entire RISC on a die. The last bit was a quantum leap as you couldn't do this with a "CISC" and the penalty for going off-chip was significant (and has only grown).

comment 6y ago · link · parent

Not even remotely. Nothing in the RISC philosophy says anything about pure data-path ALU operations. In fact this instruction is pretty banal compared to many other FP instructions.

comment 6y ago · link · parent

It seems to me people are ignoring that the C stands for Complexity. What's reduced is Complexity of the instruction set, not the size of it (or even the instructions themselves). In the context of the coinage of the term, they almost certainly could have called it "microcode-free ISA", but it wouldn't have sounded as cool.

comment 6y ago · link · parent

That is my primary source. Seems like such a historical artifact should be better known and preserved. (SW, emulators, FPGA reimplementations, etc)

comment 6y ago · link · parent

I have this alias in my .bashrc and run it when I'm tired of seeing the red dot:

    nocatalina() {
      sudo softwareupdate --ignore "macOS Catalina"
      defaults write com.apple.systempreferences AttentionPrefBundleIDs 0
      killall Dock
    }

comment 6y ago · link · parent

Proton is getting pretty good (Windows games on Linux) and VS Code is pretty fantastic (supported on almost all the platforms I use). I do have a Windows installation, but I boot it up less than one a month.

comment 6y ago · link · parent

Like hell they don't. I'm still on two generation back because I don't want to loose 32-bit support. In no way has Apple force me to upgrade and the nagging is even relatively mild.

comment 6y ago · link · parent

There are so many cool 801 stories (like why 801? The building it was designed in was number 801).

My favorite feature was this: stack frames were cache aligned and the line under the stack pointer would be marked valid upon entry of functions (so the storing the callee saves wouldn't bring in a line that would be overwritten anyway) and invalidated upon exit (so the cached wouldn't have to write back stale data). As he said, this effectively enabled them to treat the cache as an extended register file. Strangely nobody has copied this idea.

There are great stories about the development, but very little other detail is available and AFAICT, very few were actually built. 801 was not a single chip design and RISC didn't become an overnight success until it was built in a single chip (which enabled much higher frequency and was the true key to success).

ADDED: Also, their simulator had a neat trick to make it fast: all I$ lines had an 8X (IIRC) shadow where for each fetched instruction there would be a short sequence of host instructions emulating it. Thus to simulate an 801 instruction they would just ensure the line was fetched and branch directly to the corresponding address in the simulation cache which could fall through to the next instruction until either a branch or the end of the line was reached.

comment 6y ago · link · parent

Some people care about more than just money. Not trying to brag, but I did get an offer from a FAANG company which I turned down, suspecting that I wouldn't be as happy there.

Personally ethics play a big role in my happiness, but I acknowledge and appreciate that being able to chose is a rare privilege.

EDIT: Grammar

comment 6y ago · link · parent

Reporting chain wasn't helping him. This is obviously his last resort. I pay for Google services and stuff like this is motivating me to look into migrating away (the only thing I _actually_ care about is mail).

comment 6y ago · link · parent

(purge?)

I only use private teams for friends and colleagues but I use the encrypted cloud storage and have lots of git repos.

I wasn’t even aware of public teams but between HN, Twitter, and Discord I don’t need more distraction.

I’d even gladly pay a monthly subscription if it would guarantee the continued existence.

comment 6y ago · link · parent

I’m very dependent on Keybase and use it all day. The acquisition is major concern but so far the service has remains stable and responsive. Crossing my fingers.

comment 6y ago · link · parent

I really like the concept and would take that any day over the California homes built with toothpicks and cart board by a random crew (I'm sitting on one right now and there aren't two straight lines).

The bone system even looks like something I might be able to put together myself (besides stuff like foundation, pluming, and electrical).

comment 6y ago · link · parent

If I could replace the CPU then this would be a totally wonderful machine today (though I would take the 17" version instead). I actually had one at a previous job and the DVD-ROM drive just stopped working, but I wouldn't spare the time to get it fixed.

comment 6y ago · link · parent

Dane here. I have a few more to the list (and surely many I forgot):

- You mentioned Peter Naur, but I must point out that he's the 'N' in BNF

- Per Brinch Hansen (concurrent Pascal, brought us monitors)

- Ole Lehrmann (BETA)

...

I think it's a network effect. Early practitioners in Denmark had a PL focus and fostered the next generation.

comment 6y ago · link · parent

It was and it was key to why Pascal became so successful. Porting the VM of the UCSD-p machine was so much easier than writing a new backend so Pascal spread like wildfire. I think I even saw a Commodore 64 port at some point.

comment 6y ago · link · parent

As a young lad, I studied the internals of BLS Pascal (the great-grandfather of Turbo Pascal) and was blown away by the cleverness of much of the code. I had never seen such clever machine code before and have ever since considered Anders a bit of a genius.

comment 6y ago · link · parent

More to the point, Wirth _designed_ Pascal to be one-pass translatable. Anders Hejlsberg took advantage of this in his succession of Pascal compilers: BLS Pascal (= Nascom Pascal), Compas Pascal, and Turbo Pascal. (Delphi is an evolution of Turbo Pascal but I don't know if he was involved).
1
272829
52