3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions
comment 7y ago · link · parent
However, this little language looks a lot like Joy (which I suspect was named ironically).
On a serious note, I'd be more curious to see alternative syntax for Lisp (please, I know about code as data etc). McCarty envisioned M-expressions [1], but I have never seen anyone implement them or even nicer ones.
[1] http://www.softwarepreservation.org/projects/LISP/book/LISP%...
comment 7y ago · link · parent
A more down-to-earth example shipped with an Arrow FPGA dev kit I got: they took a software and ported MPG123 (mp3 decoding). They then profiled it and isolated a candidate for acceleration (some moderately wide integer operation). The result saved meaningful amount of CPU cycles and power. (The FPGA board was battery driven, which is still unusual).
comment 7y ago · link · parent
What Intel (and IBM's Z9) has demonstrated is that with enough enginering and silicon, you can still make complexity go fast. What RISC (like RISC-V and Aarch64) enables is the same kind of microarchitecture but with far far lower complexity (= time to market, design team, etc). Intel is still doing really well because the physical design (custom cells) is hard and takes teams that are hard to come by.
Things are very interesting right now and for the next few years.
comment 7y ago · link · parent
Simple RISC softcores run at 200-400 MHz in modern parts. Couple this with custom softcore accelerators and you can get very performant designs. The biggest issue with deploying FPGAs however is that it's much harder to design for, especially dealing with hard blocks, like memory controllers and PCIe.
comment 7y ago · link · parent
comment 7y ago · link · parent
comment 7y ago · link · parent
I can only think of two other examples that successfully planned for the future: the IBM 360 (extremely CISC, but still alive today) and the DEC Alpha (beautiful design, but now mostly dead).
comment 7y ago · link · parent
IMhO, RISC-V is slightly better than Alpha on a many fronts: the conditional branches which compares two registers would take two instructions on Alpha (on the critical path), RISC-V code density is better with compressed, the encoding is slightly cheaper for hardware, it ISA is more forward-looking/extensible, oh and it's open of course. The only thing I miss are the POPC/CTZ/CLZ instructions, but the B set will include them for implementations that have it.
UPDATE: more RISC-V upsides
comment 7y ago · link · parent
Random aside: Itanic was HP's brainchild that was adopted and refined at Intel (and far from all of Intel was excited about that). Having experienced a VLIW that _didn't_ suck (the internal engine of Transmeta's Astro 2/Efficieon) I'm sad that EPIC/Itanic gives VLIW as bad name. However, the future belongs to RISC-V.
comment 7y ago · link · parent
The variable `count` appears to be incremented non-atomically from two different threads. Is that safe in C++?
comment 7y ago · link · parent
This appears to be a summery based on the link above (http://codex99.com/design/the-hp35.html) but I think it's misinterpreted. The original states
> Eventually Hewlett, despite the SRI report, decided he wanted one and thought his engineers should have one as well. On February 2nd, 1971—Groundhog Day—he gave the official go-ahead.
The fact that he had a personal desire does not imply that it was "a hack" or anything less that a full commercial product from the start and there's no evidence to the contrary.
comment 7y ago · link · parent
And voila, that's exactly the case in Denmark
(I live in silly valley now and it makes me nauseated to have to deal with all the waste here - I refuse all the packaging I can but rarely plan well enough to bring a stainless steel container)
comment 7y ago · link · parent
I had an experience years ago where I discovered the lack of quality control: a typo (presumably) caused a package to regress back a couple of years. My issue used wording like "Are you serious?" which was taken as offensive and I was banned, unable to even apologize or defend myself from resulting attacks.
brew is convenient and I still use it, but I have a much higher degree of trust in packages shipping with OS distributions.
comment 7y ago · link · parent
* A less verbose syntax (want examples?) and less bizarre syntax :) Clearly subjective, but IMhO Haskell is a lot cleaner
* Constructors starts with uppercase, avoiding the issue the issue related to misspelled constructors (and allowing most editors highlight the constructor)
* Type-classes allow for sane overloading of functions and operands, solving the int/float problem of SML, but extending far beyond just that.
* As he mentions: the infix operator and the export from modules are both fixed in Haskell
* Supports binary numbers (sure, it's a trivial library issue, but possible because of type classes allow extending the concept of numbers)
* The polymorphic equality is solved in Haskell, again, with type classes, allowing us to define equality to any user defined type in a way that makes sense for it (including the set example)
* List concatenation is right associative (he mentions SML's left associative @ as a problem)
* SML's overflow on + problem are solved by not having overflow (j/k, Haskell lack of overflow on integers is a serious problem IMO, but other than making Int === Integer there's no easy solution).