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

I was there from 2001 until the end (roughly).

History is written by the winners and outsiders tend to draw technology conclusions based business outcome, which is unfortunate and lacking in nuance.

Crusoe at the time of the release was far more power efficient than anything Intel had to offer and was a revolution to the notebook market. Intel has officially credited Transmeta's LongRun as the motivation for creating SpeedStep.

Performance of Crusoe ("Fred") fell short of the expectations as the approach assumed a faster VLIW core. CMS was very good, but couldn't compensate for the hardware. Had Transmeta not made terrible business screw-ups, the architecture could perhaps have had the iterations necessary the improve the technology. The third generation ("Tokomak") would have been significantly better and almost happened, except for ... business reasons.

IMhO, the original approach has two flaws:

1. Software based interpretation of cold code leads to a dramatic performance difference that can be nearly impossible to catch up to for some applications. IOW, the difference between worst and best performance is much too big.

2. Out-of-order execution is a much simpler and better way to deal with cache misses. The tricks and efforts that went into the architecture to compensate for the in-order execution were mind-boggling and were part of the reason the core was slower than it should have been.

NVIDIA's Denver improved (fixed?) 1. by added hardware acceleration for Arm decoding.

comment 6y ago · link · parent

Summarizing your last point: everything is a remix. To people with a deep understanding of technology, it's clear that everything builds upon prior art and some of the best "innovation" is pulling together insights from many fields (many of the Mathematics).

Which is why it's so infuriating to read Leonardo's grandstanding "Those who have created a new intellectual object have to right to exploit it". What exactly did this "creation" build on? It was not produced in isolation.

comment 6y ago · link · parent

No one sane uses the microSD for anything but the boot partition :) I used a fast USB key and contemplated using a true fast USB 3.1 SSD, but I really didn't like the bulk (the SSD would have been as big as the Pi). I never lost any data (but I also only accessed it remotely - it was head-less).

comment 6y ago · link · parent

I spent a few months doing much of my development on the 4 GiB Raspberry Pi 4 (gently overclocked). My experience was that of a slightly older notebook - totally fine for most things. The 4 GiB memory was hardly ever an issue, but the pathetic IO (storage and to some degree network) eventually drove me away. Thus, 8 GiB is a great option, but it makes it seem even less balanced now.

EDIT: I haste to add that having the full 64-bit Ubuntu 20.04 was what made this interesting to me.

comment 6y ago · link · parent

I don't see why it's not the same (Company gives $200k, issues shares, gets back $100k).

2nd point: GP said "invest 100k/year", thus he do make additional investments.

comment 6y ago · link · parent

True. Amusingly, I was always trying to make Windows behave more like Unix, but now I'm trying to make Linux behave more like Mac (just a few things, like the global keyboard bindings).

The major pain points are nearly all related to lack of integration with my iPhone (with Messages being the big one, followed by Notes).

comment 6y ago · link · parent

Why are you apologizing for Apple? I too have always had my own path in / (/u for my NFS mounted homes). I guess I just learned of yet another reason I will never go to Catalina (or buy any more macOS hardware).

comment 6y ago · link · parent

Unfortunately it doesn't quite feel like macOS. In particular, the keybindings still hijack Control, like usual Linux.

I'd actually really appreciate a theme/desktop environment that _felt_ and behaved like macOS. What it _looks_ like is far less relevant.

comment 6y ago · link · parent

Well put. Another example is Floyd–Steinberg dithering which is also error-conserving.

My (effectively one-line) implementation above was derived from first-principle:

Given a desired target level 0 <= T <= 1, control the output O in {1,0}, such that O on on average is T. Do this by integrating the error T - O over time and switching O such that the sum of (T - O) is finite.

   S = O = 0
   loop:
     S = S + (T - O)
     O = (S >= 0)
In fixed point arithmetic this becomes even simpler (assume N-bit arith) S = Sf * 2^N = Sf << N. As |S| <= 1, N+2 bits is sufficient

   S = O = 0
   loop:
     D = T + (~O + 1) << N === T + (O << N) + (O << (N+1))
     S = S + D
     O = 1 & ~(S >> (N+1))
and that's the Verilog below

comment 6y ago · link · parent

Well, FPGA are more flexible but cost more than a cheap microcontroller that is true. There are way too many good options, but to pick one with a fantastic community: ULX3S

comment 6y ago · link · parent

Sigma-Delta is just an adder which is equivalent to a comparator thus it might be cheaper actually:

   module pdm(clk, level, O);
   parameter N = 16;
   input     wire         clk;
   input     wire [N-1:0] level;
   output    wire          O;
   reg [N+1:0] sigma = 0;
   assign O = ~sigma[N+1];
   always @(posedge clk) sigma <= sigma + {O,O,level};
   endmodule
I’ll grant you that PWM is a bit more intuitive. I bet there is a more thorough comparison between them but I haven’t seen it.

comment 6y ago · link · parent

The Kendryte is pretty limited in many ways, not least that it's permanently limited to 8 MiB of DRAM (AFAIK).

The most interesting route is using an FPGA. There are many examples of running RISC-V softcores on FPGAs (for example, Berkeley's RocketChip) and many boards that support a decent amount of memory (even beyond 1 GiB).

comment 6y ago · link · parent

I should have added: "But Sigma-Delta is as easy (in fact, probably easier) to implement that I really don't understand why people ever use PWM anywhere. It's so inferior IMO."

comment 6y ago · link · parent

Well, it Sigma-Delta modulation which isn't PWM.

comment 6y ago · link · parent

It sounds like you have personal experience with pregnancy. Given that, I'm surprised that you'd say this as pregnancy is no picnic, From observing how it was for my wife and how it _permanently_ changed her body and health, I would take a years of regular work any day over pregnancy.

But speaking anecdotally as an ex-pat dane, the people I know would look at it the opposite way: it might stop them from _NOT_ having children, but it would never make them have children they wouldn't have considered already. I'm sure there are exceptions but are they statistically significant?

The benefit to the society should be obvious.

comment 6y ago · link · parent

Thanks, it was fixed already :)

comment 6y ago · link · parent

memory.c: In function ‘mk_entry’: memory.c:116:12: internal compiler error: in saved_diagnostic, at analyzer/diagnostic-manager.cc:84 116 | return (struct entry) {safe_calloc(end - start, 1), start, end}; | ^ Please submit a full bug report,

Goes to look at README.Bugs. Holy cow, I don't have time to to check all those places to see if it has been reported already.

comment 6y ago · link · parent

I'm carefully optimistic that WASM could point a path out of our legacy. It has a lot of potential and opens up new possibilities, so please use it and contribute improvements :)

comment 6y ago · link · parent

No I'm not a writer and I don't have nearly the insights needed. I'd read it though.

I have been around compiler internal formats and "bytecode" representations since the mid 80es. WASM is simply brilliant for what is designed for. I'm particularly in love with the structured control flow (key for enabling 1-pass translation). I used a block structure IR a compiler IR in the mid-90es. (EDIT: am I being trolled?)

comment 6y ago · link · parent

Oranges and, eh, pears.

Sun never had the volume Apple does. SPARC was far from competitive with x86 in its later days, unlike Apple's A-series chips.

Transmeta? I was there from ~2001 until we closed the doors. What some people still don't understand was that Transmeta's failure was a business failure, not a technical one. When Crusoe launched it had greater power efficiency than Intel's chips. Intel has _officially_ credited Transmeta with kickstarting Intel's focus on power. Execution and business failure cost Transmeta to slip more than a year at which point opportunity and customer goodwill had sailed. Someone really should write a book about all the drama.

comment 6y ago · link · parent

A bummer. Fedora was one of the first to begin a RISC-V port, but there's no mention of it here, unlike for Ubuntu Focal.

comment 6y ago · link · parent

If "fighting the compiler" means less "debugging the app at runtime" then I'd take the former any day.

Rust (like Haskell) has a much richer language for accurately modelling and enforcing the value domain.

comment 6y ago · link · parent

I can't parse this, but the facts remain that the only JIT Apple allow is their own. Any other app cannot generate and run native code at runtime. Thus, apps are interpreting the immediate form (for iSH that 32-bit x86 and for A-Shell it's LLVM IR).

iSH is threading, that is, the x86 code is translated into an IR consisting of pointers to the code that executes its interpretation. This is a technique older than FORTH and which may be the best you can do on iOS currently. A-Shell may do the same, I don't know.

EDIT: updated with more details.

comment 6y ago · link · parent

It doesn't. It _interprets_ x86. There's a similar project to do this for RISC-V, but it's not on TestFlight. I assume this pick the LLVM IR? It's an interesting question what the optimal IR for this would be, but it would probably be higher level than this, maybe more like WASM or the Zinc (O'Caml IR).

comment 6y ago · link · parent

Just above in the thread: CRS305-1G-4S+IN. 4 SFP port switch for $150. I had to mount a 10G (SFP) card in a Thunderbold 3 PCIe box to get my iMac on the 10G net, lame that it's not native.

comment 6y ago · link · parent

Yes, true, but for a hard disk at _rest_ (in a controlled environment) I posit it's failure distribution over time is dramatically favorable to Flash (especially TLC and QLC). I feel pretty comfortable keeping a ZFS drive pair (= mirrored) on the shelf for a decode or two whereas I'd abandon all hope for a modern SSD in the same conditions.

EDIT: typo

comment 6y ago · link · parent

Is this in standard safe Rust? If so, how is the heap and GC handled?
1
313233
52