3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions
comment 5y ago · link · parent
EDIT: to clarify, the point of this of course is to write only the minimal, performance critical piece (the VM) in native code and build a complete Scheme environment on top of this. There has been many similar efforts (Scheme48, VSCM, etc), but AFAIK none of them exposed the VM directly.
comment 5y ago · link · parent
Electric is already far superior for every day driving and close to parity for long distance (super charger is fast, but not yet quiet as fast as pumping gas - but if you have kids you'll welcome the break)
comment 5y ago · link · parent
Interestingly it's based on a 3 stage core from SiFive, not the RocketChip.
comment 5y ago · link · parent
I _have_ seen non-EV RVs with mounted panels (charging while driving) and more to be unfolded while parked for both shade and more power. They used the power for fridges etc, but not for locomotion. Seemed totally reasonable to me.
comment 5y ago · link · parent
That said, I don't believe carrying panels around to be a very practical nor attractive option.
comment 5y ago · link · parent
I happen to originate from a different country than where I currently reside and on this map, the path that the plane takes makes a whole lot more sense. It seems to be a much better model of the world, to get better, you'd need a 3D globe.
comment 5y ago · link · parent
709.
Princeton astrophysicists re-imagine world map(princeton.edu ↗)
42 points · by FullyFunctional · 5y ago · 27 comments
comment 5y ago · link · parent
I did write my own editor in C and it was delightful and it addressed my pet peeve with Emacs: the two wasted lines at the bottom (on small devices every single line matters). However I don't actually use it myself because it's missing too many essential features and it would take too long to write them. Also, cross compiling C for multiple platforms is actually tedious due to silly differences between eg. macOS and Linux.
The holy grail for me is still the editor from BLS Pascal which was a full screen editor in about 2 KiB of Z80 machine code. I'm still not sure how Anders managed so much functionality in so little code, but there's just a few little things I wanted differently (which as having Enter split lines and delete joining them).
comment 5y ago · link · parent
comment 5y ago · link · parent
When I try to launch it, I get a "Only one instance of the game can be running at one time." pop-up and a "StreamVR has detected your headset running as a monitor. For best results, please switch to Direct Display Mode." Clicking "nable Disrect Display Mo" (sic) restarts SteamVR to a big window of grey binoculars. At no point is anything displayed in the headset.
comment 5y ago · link · parent
Building under QEMU is obvious, however the native hardware is actually faster.
comment 5y ago · link · parent
Don't take my word for it, design, model, simulate, and implement it yourself. It's a small matter of coding.
EDIT: Reduceron is an example of a super-scalar stack machine, though not dynamically scheduled. It's very difficult to write code by hand though.
comment 5y ago · link · parent
The semantics of each instruction is consume the two top stack elements and replace that with the results. You handle this by having an stack rename stack of physical registers (with additional complication for handling under- and overflows), that is assuming the current stack is
pr3 pr4 pr5
and the first free register is pr56Then an "+" instruction is interpreted as "add pr56, pr4, pr5" and pr56 is consumed and pr4 and pr5 marked to be freed when this commits.
Because stack machines inherently introduce a lot of tight dependencies you will need to use dynamic scheduling (OoOE) to go super-scalar, but it's not a problem.
Upsides are incredible instruction density. Downside: slightly harder to do good code generation, but not really.
comment 5y ago · link · parent
There are many reasons why this was a huge and very shortsighted mistake, but the most painful part of this is that you can now have an instruction spanning two cache lines. This has many awful implication and precludes many tricks that would make implementations faster. But it was important for Andrew Waterman to get his thesis work be mandatory part of the Unix platform, so here we are.
ADDENDUM: It's near trivial for a linker to pad such that instructions don't span cache lines and that would have made this a lot less painful, but RISC-V refuses to specify the line size (it's implementation dependent), so now we suffer this nightmare.