3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions
comment 11y ago · link · parent
comment 11y ago · link · parent
Oh _please_! The reality was the the common machines of the time didn't have todays fancy addressing modes. All memory addresses were global addresses. Thus, the _cost_ of making all memory access relative to a stack pointer was far from trivial. Of course, there was a work-around if you could forgo re-entrance (~ "thread-safety"): use static activation records, but saving it to the stack before the recursive call and restoring after. Still not exactly free.
comment 11y ago · link · parent
comment 11y ago · link · parent
I've used the former with pleasure as a lot of traditional passes become trivially done by construction: global common subexpression elimination, copy propagation, dead code elimination, and constant propagation. With very little extra work you also get strength reduction, expression hoisting, and a host of other things that I'm forgetting.
I never understood why this wasn't more popular as old-school SSA, as used by even LLVM, is so terribly clunky and inefficient.
comment 11y ago · link · parent
I depend on Waze every day and its issues are nothing compared to value it provides. Unfortunately it's not integrated into my Model S so sometimes I drive with both the "native" Model S GPS (= Google Maps) and Waze so I can benefit from the greater maps on the 17" screen as well as the better directions from Waze. It's mighty confusing though.
comment 11y ago · link · parent
The performance differences between Erlang and Haskell (etc) are due to many reasons, but primarily due to Erlang being a dynamic PL, with late binding and dynamic typing. This makes efficient implementation hard (heroic efforts on JavaScript not withstanding), but Erlang makes no excuses as its strengths lies elsewhere. If you need fast compute you should do it in C and interface it with Erlang (lots of ways to do that).
comment 11y ago · link · parent
Something I find worth emphasizing: There is exactly one integer type and integers are unbounded. Very few languages gets this right and it's IMO one of the worst mistakes in Haskell. This takes care of a whole slew of bugs and security pitfalls.
I'm still an Erlang n00b, but the lack of a native string type seems a major weakness -- strings are isomorphic to a list of small integers, worse than even Haskell. Please give us something based on Ropes, like in Cedar (http://onlinelibrary.wiley.com/doi/10.1002/spe.4380251203/ab...). EDIT: typo.
comment 11y ago · link · parent
I finally cracked open the iCE40 HX datasheet, but was stunned to see the memory block: "Note the sysMEM Embedded Block RAM Memory address 0 cannot be initialized." That's extremely awkward.
comment 11y ago · link · parent
comment 11y ago · link · parent
These days I'm leaning towards bundling encrypted files along with the C code that encrypted it and that works better if the latter is small and self-contained.
comment 11y ago · link · parent
Does it support user constraints on relative placement (and routing)? Self-timed logic, such as NULL Convention Logic [1], doesn't fit well with the synchronous FPGA paradigm, but can be implement on those if the feedback loops are tightly controlled [2]. I'd like to play with that :)
[1] http://en.wikipedia.org/wiki/Asynchronous_circuit
http://www.amazon.com/Designing-Asynchronous-Circuits-Convention-Synthesis/dp/1598299816
[2] http://ieeexplore.ieee.org/xpl/login.jsp?tp=&arnumber=543867...comment 11y ago · link · parent
Is the worker idling between replying and receiving new work? In other words, does ZMQ enable overlapping, say always having two outstanding requests per worker?
comment 11y ago · link · parent
"Functional programming is a style that can be used in any language"
No, I'm sorry, it's not. [Purely] Functional programming provides guarantees and properties that are only valid if the necessary discipline is enforced. Your list of languages are merely procedural languages with functions.
comment 11y ago · link · parent
All that said, it's all arbitrary and the 4004 is the first _successful_ microprocessor. (I personally find it a more interesting question which alternative architectures could have been produced given the technology and constraints of the 4004 and 8080).
comment 11y ago · link · parent
I completely agree that the sequential parts of a design is the challenging (= bug prone) part and IMO this is the area where an EDSL like Lava can really shine.
If you have worked in ASIC designs that you are almost certainly used to not work with Verilog directly, but with an ad-hoc macro language. I've seen them all, but most commonly Perl is used. It is especially for circuits that we desperately need better tools and abstractions.
When designing with Lava you aren't describing a circuit, but a the method to create that circuit. That makes it relatively trivial to completely parametrize it or statically check properties of the circuit.
As an example, if done right (Recipe isn't), adding a pipeline stage can be a matter of adding a single line. Compare that to what it takes in say Verilog.
This style of ASIC development is simply incomparable to the primitive Verilog-style, but there's not enough experience in the industry to understand it [yet].
Now, Clash isn't (IIUC) an EDSL like Lava so without knowing more about it, I fear it looses much of the point.
EDIT: formatting
comment 11y ago · link · parent
No, I don't think that's accurate. Things had gone bad long before that, but it wasn't obvious right away that the ship was sinking. That said, going stealth didn't help them one iota but caused a lot of ire.
My experience with ~ 25 KS has been mixed. ~ 4 failed to deliver, more than half delivered successfully. A couple delivered a lousy product. ~ 1/3 are still pending. Almost all of them are late or very very late, especially SW projects seems to drag on forever.
My appetite for KS has cooled a lot and frankly I'm surprised my experience hasn't been worse.
comment 11y ago · link · parent
comment 11y ago · link · parent
* Primarily, compiler technology leap frogged it to where you can do at _least_ as well with a fixed set of registers and a global allocator.
* The windows were inspired by SPURS (IIRC), where it allowed a much finer granularity whereas SPARC's window is always exactly 16 registers (8 are global, and 8 overlap with the next or previous window).
* Windows turned out to be a real PITA for super scalar implementation.
* Windows assume a constrained model of computation and makes efficient tail recursion hard and co-routines impossible.
etc etc
Give me more time and I could make the list longer, but the crux is that it's another example of a misguided shorted sighted optimization (like branch delay slots, shared with many RISCs).