3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions
comment 7y ago · link · parent
First point, lazy evaluation incurs a mutation when the whnf is reduced. However, this mutation occurs at most once and after that the value is immutable just like in SML. Furthermore, the update is not directly exposed to the programmer and thus the compiler can implement it in a way that works efficiently in the presence of generational GC. See the GHC papers on how.
Second point, on polymorphic overloading he claims that Haskell "allow run-time resolution of overloading". Mark P. Jones and others have show how this overhead can be largely eliminated via partial evaluation applied to the type dictionaries. The use of polymorphic overloading is pervasive in Haskell code because it's incredibly useful so the "apparently small gains" is complete and utter nonsense.
In many ways O'Caml is a better SML than SML, but Haskell, and especially the GHC variant, has a type system that is light years ahead of both.
In the modern world there are many variations on the theme, but the language Rust (which borrows many ideas from these) might become the most popular yet.
EDIT: typo
comment 7y ago · link · parent
comment 7y ago · link · parent
Funny as it has always annoyed me that static objects and dynamic objects used different syntax (a.b vs a->b) so that if you ever changed one, you'd have to go edit ALL uses. It would IMO have made sense to have a->b work for both (better still "a.b" if the syntax could be worked out).
UPDATE: referring to C if it wasn't clear.
comment 8y ago · link · parent
comment 8y ago · link · parent
Software is always a big concern and rather than requiring everything be written in Lisp, I'd want to also be able to run regular binaries written in C. This requires a way to safely embed the "impure" world.
The obvious way to do this is extend the value domain with a hidden tag bit [3] which is carried around everywhere, but can't be changed or inspected by regular RISC-V instructions and in fact, almost all instructions trap if any operand is tagged.
Memory space would be partitioned into a tagged space and untagged. Tagged values can only live in the tagged space and registers (this is important for precise GC). For regular user space code, tagged values can only be created with a `cons` instruction, and accessed with `car`, `replaca`, etc instructions. Having dedicated instructions would allow a hardware read barrier for real-time (or incremental) GC. (Machine mode would be allowed unsafe access for part of the GC and various tasks).
TL;DR: adding fast Lisp support to an existing RISC-V core is likely much easier than building a new dedicated architecture from scratch.
(set! projects (cons 'RISCV-LISP projects))
[1] https://github.com/tommythorn/lisp [2] https://github.com/tommythorn/yarvi [3] If you have data cache, it's not hard to implement a cache line as, say, 32 33-bit word line, backed by 33 32-bit memory words.
comment 8y ago · link · parent
The fact that this is being stolen from Micron who presumably weren't blind to the value of their IP make it all the more frighting. None of the companies I have worked for in the past few decades would have had any chance of resisting a motivated thief as locking down knowledge runs counter to fostering innovation.
comment 8y ago · link · parent
In my neck of the woods (Denmark), in the 1978-ish your choices were expensive pre-built Z-80 machines, like the Luxor ABC-80 or danish niche computers (some which were actually amazing for the time). I went with a British kit, the Z-80 based Nascom 2.
Roughly 1 years later, the market had changed and 6502 based options were abundant with the BBC, VIC-20, and Commodore 64 taking the lead (ZX80, ZX81, and ZX Spectrum were popular too). Later Amiga arrived with its own following.
All this to say that the world was such a mess of an abundance of incompatible computers that when the IBM PC came out, the main attraction was the belief that, because of I.B.M., this would become popular enough that there would be a critical mass of great and actually useful software.
I sometimes try to imagine how things would have played differently had IBM abstained from the "hobby market".
comment 8y ago · link · parent
TL;DR: any measurement unit can be learned; Metric strength in the simplicity of conversions.
comment 8y ago · link · parent
Fedora/RISC-V is dangerously close to being useful; the only apps I miss are a couple of the big hurdles: Firefox, GHC, and Java.
comment 8y ago · link · parent
A RISC-V RV32IM[S] implementation (be that emulator or RTL) would have similar complexity and size, and would have a far more mature software stack.
comment 8y ago · link · parent
There's a lot to be said for small implementations that gets to the heart of the issues. Most great oeuvres of software had a kernel beginning like this.
Some fun directions you could take this: Change the GC to Baker-style incremental (~ "real-time"), use cdr-coding, use tagged integers, add a compiler and compile to byte-code or threaded code. EDIT: grammar.
comment 8y ago · link · parent
Alas, the politics are made by city people (who have access to really good public transport) and paid for by people in suburbia who _have_ to own a car to survive (and no, we can't just move everyone to the city).
EDIT: typos
comment 8y ago · link · parent
There are many SBCs of the era using more chips that this, despite having a Z-80 or 6502 onboard.
1135.
Gigatron, TTL computer kit without a CPU(gigatron.io ↗)
9 points · by FullyFunctional · 8y ago · 3 comments
comment 8y ago · link · parent
The suspended app screenshot is way more that appearance. We all need a moment to remember to context of what we were doing. Showing us a screenshot of the suspended state enables us to use the loading time productively so that we are immediately ready to interact once it's up.
comment 8y ago · link · parent
comment 8y ago · link · parent
As tropo suggests above, it would have to measure the distance (signal propagation), but I suspect that would drive the cost of the frob up significantly.
EDIT: to be clear, this isn't the attack discussed in the article, but a more serious problem that is already in use today.