3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
Here's just one simple example: controlling servos. Sure you can do that with most uC simply enough, say using timer interrupts, but what if I need to control 100 of them? In logic, I can just instantiate 100 very trivial pulse controllers where as this typically is impossible with a microcontroller or at the very least leaves no cycles free for any computation.
Another example: you want to implement a nice little crypto, like ChaCha20. Even though ChaCha20 is efficient, it's still a lot of cycles for a microprocessor, where as an FPGA can implement this is a nice pipeline, potentially reaching speeds like 800 MB/s, while still having ample resources left for other work.
I could go on.
comment 10y ago · link · parent
C got popular because it allowed low-level code to be implemented in something higher-level than assembler and moderately portably too (machines back then where as lot more dissimilar than today). It's hard to disassociate C from Unix, the former making the latter easy to port. A symbiotic relationship.
It's important to remember C was designed for the processors of the time, whereas processors of today (RISC-V included) are arguebly primarily machines to run C. C has brought a lot of good but also a lot of bad that we are still dealing with: unchecked integer overflows, buffer under- and overflow, and more general memory corruption. No ISA since the SPARC even tries to offer support for non-C semantics.
comment 10y ago · link · parent
comment 10y ago · link · parent
* "clock-speed" adapts automatically to gate speed, rather than be dictated (which has to be set conservatively),
* allows power savings in multiple ways (no globally propagated screw sensitive clock, finer grained clock gating by construction, and for NCL: wider supply range adaptability)
* the absence of a global clock by definition means less simultaneous switching, which reduces strain on power supplies (decoupling) and gives much better EMI.
comment 10y ago · link · parent
Sutherlands micropipeline and most (all?) the other clock-less approaches, are fundamentally racy and depends on a difficult timing analysis to determine that the latch is slow enough. What makes NCL so interesting IOM is that it is guaranteed to work timing-wise by construction. This also means that it is tolerant to changes in logic time, which means it circuits can tolerate a wider range of voltage swings (= can save power). (The gate construction has to satisfy a trivial timing requirement, but it's local to the gate, not the complete circuit).
The obvious drawback of NCL is that it uses quite a few more transistors than the equivalent circuit in traditional clocked implementation and tooling is weak or non-existing.
Karl and his student Matthew presented "Aristotle – A Logically Determined (Clockless) RISC-V RV32I" at the 2nd RISC-V workshop. Slides & Video: http://riscv.org/2015/07/2nd-risc-v-workshop/ I'm not sure of the status of that.
comment 10y ago · link · parent
I'll get solar (PV) eventually though.
comment 10y ago · link · parent
For a background on why TCP is this way, look up "The Design Philosophy of the DARPA Internet Protocols", by David D. Clark, however knowing is little comfort.
comment 10y ago · link · parent
comment 10y ago · link · parent
Hopefully not too off-topic but I would love to learn how we would have implemented a state-of-the-art global interconnect protocol today. There's of course efforts like http://named-data.net but what about the lower levels like about congestion control. Is dropping packages really the best paradigm?
EDIT: to be clear, I mean if starting from scratch in a world where IP never existed (and no backwards compatibility mattered).
comment 10y ago · link · parent
* https://github.com/VectorBlox/risc-v
PULPino is sure making a lot of noise, but it's far from the only option out there despite the impression they seem to want to create.
comment 10y ago · link · parent
a strength because it gives a valid argument that no trapdoor was introduced in the design,
a potential weakness because Curve25519 uses a very specific prime field. As of now, no attack exploiting this specificity is known.
For applications where speed is paramount, Curve25519 is probably the best option. But for most applications, where losing a little on the efficiency side is "not a big deal", Million Dollar Curve is probably the safest choice."Sorry, no. Many more eyeballs have been on Curve25519 and DJB reputation, both of which gives me _more_ confidence in that than any new alternative.
Secondly, the implementation is as important as the design. Again, Curve25519 have vetted implementations, something which takes time.
Finally, the notion that speed is a liability is ludicrous. The lack of speed is a major liability.
Move along, nothing to see here.
comment 10y ago · link · parent
comment 10y ago · link · parent
comment 10y ago · link · parent
To point out the obvious, Zip compresses files individually and then bundles them. A .tar.{Z,gz,bz2,xz,...} files bundles the files and then compresses them. The latter is better for entropy reduction, the former is better for random access. It all depends on your objectives.
comment 10y ago · link · parent
A few years ago I had expected LLVM to have caught up to GCC by now, but I hadn't anticipated the accelerated pace of GCC improvements. I don't know if the competition from LLVM had anything to do with this, but GCC is showing no signs of slowing down.
comment 10y ago · link · parent
I feel I have to repeat again that none of this had to do with RISC vs. CISC. It had to do with implementation and market muscle.
"Alphas relied primarily on clock frequency to achieve their performance, and were very power-hungry as a result"
So was the P4 and it failed, but Intel had enough capital to take a power efficiency clue from Transmeta and turn the ship 180 degrees.
What killed the Alpha was three things: delays in getting the new models out, the cost of staying in this game, and of course, the arrival of Itanic.
EDIT: An aside: the 64-bit extension of ARM is a completely new and different ISA called AArch64 which incidentally is a lot more RISC-like than the original ARM. IOW, it looks like the ARM designers disagree with you.
comment 10y ago · link · parent
In there lies perhaps a hint at a business opportunity/solution to the renter problem: Tesla charging garages and comes to pick you up when you are ready to go.
We certainly live in a Sci-fi movie.
comment 10y ago · link · parent
For people designing their own cores for whatever reason (there can be many, research and commercial), RISC-V is very attractive because of all the reasons already given, but it's obviously not the only option.
RISC-V is carefully designed compromise; it scales down to extremely cheap cores and up to superscalar. Like Alpha before it, extreme attention has been paid to avoid features/choices that would be bad for OoOE implementations. Some examples:
- rs1, rs2, rd fields are always in the same location and all register sources and destinations are explicit (makes decoding faster and you can start fetching/renaming without having decoded)
- there are no branch delay slots
- instructions produce at most a single result
- no condition codes etc (dependencies are explicit)
- the sign-bit for all immediate fields is in a fixed location (cheaper sign-extension)
and so forth.
I'm also a big fan of the conditional branch instruction which unlike the Alpha can compare two registers.