3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions
comment 11y ago · link · parent
I for one welcome what this would do for me on high-latency high-loss connections (read: poor cell phone coverage). I just need Apple to buy into this ...
comment 11y ago · link · parent
[1] cr.yp.to/tcpip/minimalt-20130522.pdf
comment 11y ago · link · parent
Contrast this with Dan J. Bernstein's wonderful CurveCP. It's so simple to set up and requires no CA involvement; you just need to be able to add a NS server entry.
comment 11y ago · link · parent
It was particularly interesting that a good result could be obtained despite started with such a simple model (CEK).
Some questions that comes to mind:
* Is the allocation elimination good enough that you could just treat all variable as set! mutated instead?
* If instead of direct-style (later "re-discovered" as A-normal form) you used CPS with first-class continuations, then the two-phases of the append problem would fall right out?
A downside to using a generic JIT engine, like RPython, is the loss of language specific GC opportunities (for a lazy language, these include indirection elimination, trivial reductions, untagged heap objects, ...).
comment 11y ago · link · parent
[1] http://www.clarkhoward.com/news/clark-howard/personal-financ...
comment 11y ago · link · parent
Sun's SPARC even included hardware support for this (TADDcc, TSUBcc), but programming languages didn't exploit it and the support was removed.
This will only change once there's enough demand that supporting it in hardware becomes a competitive advantage. There's plenty of precedence for this, eg. various crypto support in x86, the evolution of GPUs, networking accelerators, etc.
I intend to change Reduceron to use unbounded integers by default so that the promise that "Well typed programs don't go wrong" isn't a blatant lie.
comment 11y ago · link · parent
One point that has always annoyed me: Exists x . x + 1 < x. While I can forgive C for this defect given the history, the fact that this is broken in even Haskell is mind boggling. At the very least this should trap, but preferably, like in Scheme, integers should by default be unbounded.
comment 11y ago · link · parent
This is of course nonsense. Even an in-order implementation with non-blocking caches will let execution proceed in parallel with a load until the result is demanded. An actual out-of-order implementation will rename the (implicit) registers and proceed as normal.
The _only_ issue with stack architectures is that they are awkward (but not impossible) for compilers to generate optimized code for.
EDIT: I agree with basic motivation for pushing all the way to hardware (just not for Lisp). That's why I work on https://github.com/tommythorn/Reduceron
comment 12y ago · link · parent
comment 12y ago · link · parent
It's interesting that what he calls "Parsing" is more typically known as term reduction by pattern matching in the functional world.
comment 12y ago · link · parent
I would invite some factual data on the "cold cache" issue of RISC. With the switch to solid state storage, is the binary load time still really an issue? (I assume the L2 -> L1 transport can be made arbitrarily fast).
comment 12y ago · link · parent
comment 12y ago · link · parent
OT: Thanks to Don Stewart for the two interesting links: https://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Storage... https://ghc.haskell.org/trac/ghc/wiki/Commentary/Rts/Haskell...
comment 12y ago · link · parent
I suspect that one part of the answer is that for most non-trivial examples, the parsing part is the easy part and metacompilers don't help with the hard part (type checking/inference, optimization, code generation, etc).
That said, I see terrible broken ad-hoc parsers all over the place that probably could benefit from this.
comment 12y ago · link · parent
A few examples of this (none of which are unique to RISC-V except in aggregation): no delayed-branch semantics, source and destination registers are always in fixed location (see then store vs. load encoding) and are always explicit, sign bits are immediate fields is always in the same location, etc.
comment 12y ago · link · parent
comment 12y ago · link · parent
That RISC-V resembles MIPS is a testament to what was good about the MIPS design, however if you look closely you will find the many ways in which RISC-V is different.
Truly, the specification is highly readable and the footnotes enjoyable. Having implemented multiple MIPS cores and so far one RISC-V core, I'm deeply impressed with the care that went into the design.
comment 12y ago · link · parent
I wish the page was a little more clear on what the intentions are, etc, but seeing RV64 in silicon would be immensely exciting. Producing a simple in-order machine, even with usual set of peripherals isn't very hard at all and nor that expensive on an older process node, but there's a world of difference if we start talking superscalar out-of-order multi-core SMP. Seeing OpenRISC on the Advisory Board I suspect it's more the former than the latter.
comment 12y ago · link · parent
The fundamental issue is that, IMhO, security classification needs to be attached to the data at the lowest level -- OS level is simply to coarse. Take for example an encrypted channel. At the OS level the channel is treated opaquely whereas at the programming language level, after decryption the authenticated data can be assigned both a different level of secrecy and trust, and it can be data dependent. Strong type systems can ensure that secret data is never accidentally leaked, nor untrusted data used in a trusted context. (For a real-life simple subset of this, see tperl).
It may be possible to build such a system on top of seL4, but seL4 isn't sufficient.
I do intend on working on this eventually. Incidentally, D. J. Bernstein recently shared a similar complaint about the state of security - the models we use have practically not advanced since the 1950es.