Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

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

Submissions

comment 2y ago · link · parent

All of this is accurate and just want to add how hard it is to appreciate how revolutionary BASIC was at the time of creation (at Dartmouth, when everything was batch oriented FORTRAN). It was probably the first _widely_ available example of interactive computing, and as we have to come to understand, instant feedback is critical for learning and a boon for productivity.

However, using line numbers for editors wasn't AFAIK unusual at the time and I think making the semantics depend on them was unfortunate. However 20/20 hindsight etc.

comment 2y ago · link · parent

I have working hardware from every decade, oldest is from 1982, but my daily driver and what I'm typing on now is a 2019 iMac 5K and Apple still doesn't have anything all-in-one to replace it. My keyboard is from 2002 (the USB version of the Kinesis I bought in ~ 1993).

My oldest computer still in 24/7 use is my 2014 FreeNAS, but it's using a monitor that's so old I don't even know.

Old hardware is great, but I do appreciate just how much better LCD panels have gotten over time.

comment 2y ago · link · parent

[citation needed] Do you have anything concrete to support "nowhere near where they are for x86 or M1"? I literally eyeball RISC-V code all day long for a living and it's not like there a massive performance lost to the compiler.

comment 2y ago · link · parent

Sure. Any suggestions? (I don’t need much, just kbd input and pixel graphics out)

comment 2y ago · link · parent

Also the GPU doesn't have a free driver [currently]

comment 2y ago · link · parent

Completely false. This is compared to native versions on all platforms.

Supposedly TH1520 gets a small uplift when compiled for its proprietary extensions, but I haven't seen a compiler using this and it would have no bearing on application from a standard distribution.

I have both 7110 and TH1520, but I'm looking forward to SiFive P670 powered SG2380 which promises to be an exciting chip.

comment 2y ago · link · parent

I wrote extension, not layout. I succeed finally with Ukelele thanks.

comment 2y ago · link · parent

Does this mean that it would have been better to base hello-rust-sdl2-wasm on wasm32-unknown-unknown target (assuming this is possible)?

EDIT: trying to answer this myself got me down this rathole: https://users.rust-lang.org/t/fixing-rusts-webassembly-targe... and https://github.com/rust-lang/rust/issues/83788

I did find older alternative solutions that uses wasm32-unknown-emscripten, like https://github.com/tanis2000/rust-sdl2-wasm but it's not obvious to me that this is a better solution.

TL;DR: it's currently a mess

comment 2y ago · link · parent

"hipness/hype" is a pretty rude assumption. There are lots of people enthusiastic about the language for the simple reason that they like it better than the alternatives and it solves real problems. It might not be for everyone and that's fine.

comment 2y ago · link · parent

Having reluctantly hacked up an emulator in Javascript, it was always very fragile. I'm very motivated to reimplement it in Rust and your framework looks like it has almost everything I need. The only thing missing is persistent state (eg. Web Storage API and import/export).

comment 2y ago · link · parent

Thanks, good suggestion -- I usually try to avoid extensions as much as possible for many reasons (incl. that Apple actually discourages it), but I'll look into it.

comment 2y ago · link · parent

The TI-99/4A was atrocious on many level, but the reason for the abysmal performance is well documented on Wikipedia -- the architecture was inherited from TI-990 which assume fast 16-bit memory and TMS9900 had neither.

comment 2y ago · link · parent

Which modifier+space produces U+202F? Alt+Space produce No-Break Space (NBSP) U+00A0 which is different and lacks the appropriate narrowness.

EDIT: I tried alt+space, alt-shift+space, alt-ctrl+space, alt-shift-control+space, shift+space. All produce either U+00A0 or U+0020 and other combinations, such as including Cmd doesn't work at all.

comment 2y ago · link · parent

I like this story as it goes a long way to explain why the 6502 is the way it is. Having grown up with both Z80 and 6502 essentially in parallel, I'll be the contrarian who never liked either, but will admit that it would have been hard to do better than 6502 did in the given area constraints. (Z80 however could have done so much better - the 128+ bits of architectural state could have been used far better and even have allowed a 16-bit architecture).

comment 2y ago · link · parent

Oh neat! I didn't know it could do this. I use U+202F (Narrow No-break Space) all the time to separate numbers from their unit (as in "20 kg" which I'm sure won't display correctly here), but I haven't found a convenient way to enter that on macOS.

comment 2y ago · link · parent

Thanks for the paper.

> it'd be hard to build a competitive super-scalar chip (really for any ISA) without some verious[sic] serious investment

"Hundreds of millions of dollars" cf. Mark Horowitz's Micro 35 keynote (https://www.youtube.com/watch?v=q8WK63joI_Y&t=1140s) but if you look at the stack in his graph, it's obvious that the architecture portion of this is tiny.

Making a superscalar core simulation (= "model"), or even an FPGA softcore, is within the reach of any sufficiently motivated individual and indeed there are several already. Of course the performance will be dramatically lower than a state of the art silicon implementation.

comment 2y ago · link · parent

The OP asked about a WASM-cpu. It assume he meant that literally thus without preprocessing. Once you allow preprocessing there's no limited to what you can do and in fact you can do something really efficient (margin is too narrow to contain the full proof).

comment 2y ago · link · parent

I've certainly thought about it :)

If you can write an interpreter, then you can implement it in hardware. Whether it will be _efficient_ compared to using another ISA is a different matter.

Of the top of my head: the unbounded block stack would need to be managed and spilled to memory as it grows (not unlike SPARC's register windows), manageable but complex. The operand stack either needs to be bounded or likewise spilled to memory. For a superscalar, the WASM bytecodes aren't the nicest to decode, but neither are x86 nor RISC-V (C implies variable length instructions).

Unsurprisingly, it would make a lot more sense to design a µArch that is well matched (eg. has rotation instruction) to WASM and for which translation is fairly straightforward. I'm excited about WASM exactly because it provides an interesting path for getting software on new and exciting uArchs. It's _MUCH_ less work to make a WASM translator than to do the full software stack.

comment 2y ago · link · parent

As Motley Fools [1] like to point out, the most you can loose is 100% whereas the upside is unbounded. This means that even if all but one investment turns completely to dust, if that one is outstanding it makes up for it all.

We are actually in that situation now where the gains of S&P 500 relies completely on the top handful of companies and as much as (IIRC) 70% of the companies in S&P 500 are lagging the market.

[1] This is not an endorsement; my personal experience with their pool was mediocre at best.

comment 2y ago · link · parent

Even better if the speed would ramp up and down smoothly. I have missed this since I used smooth scrolling CP/M computers in the '80es.

comment 2y ago · link · parent

I've been on a physical iPhone keyboard quest since I got my first (4S). I have a pile of BT keyboards and one keyboard case. Still looking for something I would actually use. Indeed, my primary use case is for SSH (via Terminus).

comment 2y ago · link · parent

Ah, sorry I misunderstood and I think we agree nearly completely. However, while I'm a fan of LFP, especially for UPSes, for cars it's a delicate balance of lower energy density vs longevity. What I can say is the the Li-Ion in my car have held up much better than expected, but I'm also babying them to the extreme, only rarely charge beyond 80% and rarely supercharging. At this point I fully expect to keep my car for 15+ years and never replace the battery.

comment 2y ago · link · parent

1. Yes, the only relevant point 2. is only an issue for people who don't actually own an EV. With Tesla's charging network (which is getting adopted by _nearly_ all EV manufacturers), _nearly_ everyone will have no range issue at all. The exception is rural America and pockets of poor coverage, but that is a minority.

comment 2y ago · link · parent

My 2014 Model S battery has lost less than 10% of the original range. Why would I replace the battery?

comment 2y ago · link · parent

Seems like a hit piece. The same old BS FUD as always. The EV sales are slower than expected and can be explained by only one simple fact: cost. However, battery prices (the dominant cost) has been falling steadily and will keep falling. We'll get there eventually, albeit not as fast as we wanted.

PS: I've been driving exclusively electric since 2012 and haven't owned an ICE since 2016.

comment 2y ago · link · parent

Apple very nearly catered. Nobody would be quoting Job had that happened (NeXT was dying too which is why Apple could buy it). There is a crazy amount of survivor bias here.

comment 2y ago · link · parent

Contractors are easier to hire and much easier to fire than permanent employees. I've had both good and absolutely terrible experience with QoR of contractors, but IMO the biggest problem is the loss of institutional knowledge when the contract ends. No amount of reports makes up for the warm body in the room that can say, "actually, the reason for this is ...".

comment 2y ago · link · parent

The same thing happened to our Tesla Model X a few years back. Tesla even wanted us to pay $200 flat fee to fix the problem they created and that we couldn’t opt out off. I may have used impolite language until they waived that. And that’s not even addressing the massive time sink it was.

comment 2y ago · link · parent

I was very regretful that my first (Nascom 2) didn’t leverage interrupts more. I hated that loading/saving to tape were simultaneously insanely slow and blocking operations. The slowness would have been easier to stomach if I could do something else while waiting. It wasn’t a technical problem. I had seen concurrent CP/M in action and that was amazing.

comment 2y ago · link · parent

Thanks, that gave a good impression of SymbOS which is boggling my mind a bit.
12345
52