Better HN
topnewbestaskshowjobs
Log inSign up

FullyFunctional

3,566 karma · joined May 8, 2013 (13y ago) · 1,534 submissions

Submissions

comment 11y ago · link · parent

Chrome on iOS doesn't support QUIC.

comment 11y ago · link · parent

Not harsh at all. I agree completely and wish it wasn't so. At this rate, it might be better to focus on improving the security and privacy of QUIC.

Re. kernel module: both QUIC and MinimaLT can be implemented in user space.

comment 11y ago · link · parent

That's a very pessimistic view. Technology improvements in general benefits everyone, eventually. The invention of the plane didn't benefit the masses until much later when scaling brought the costs down.

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

Once I discovered Torx, I never looked back. To me they seem superior to all of the alternatives, except for availability and assortment of screws. Are there any disadvantages I'm missing (besides cost, which isn't inherent)?

comment 11y ago · link · parent

MinimaLT [1], developed independently and about the same time as QUIC, also features the minimal latency, but with more (and better IMO) emphasis on security and privacy. (Though both are based on Curve25519). QUIC has an edge with header compression and an available implementation. EDIT: and of course, forward error correction!

[1] cr.yp.to/tcpip/minimalt-20130522.pdf

comment 11y ago · link · parent

Hurd was interesting a decade ago, but IMO these days the more interesting proposals are far more radical, such as the Ethos OS [1].

[1] https://www.ethos-os.org/

comment 11y ago · link · parent

That. I have managed to get through the steps but there was nothing simple about it and I wouldn't be able to replicate it without looking it all up again. Unfortunately, SSL isn't even an option on my el-cheapo shared webhosting service (as I understood it, it needs a dedicated precious IPv4 address).

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

Very interesting, though there's a large overlap with material covered in the cited papers.

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

Heh, me too. I even made it stereo. However, in practice it wasn't very useful as it's hard to do anything else when you need to carefully control timing of the output.

OT: Using the parallel port for networking (PLIP) was moderately more useful.

comment 11y ago · link · parent

Absolutely zero mention that 80% of the water is consumed by agriculture? Is that what we considered responsible reporting these days?

comment 11y ago · link · parent

This is a good idea, so I tried it and it failed ... because I had already frozen my credit reports [1]. I guess it worked and I should sleep soundly.

[1] http://www.clarkhoward.com/news/clark-howard/personal-financ...

comment 11y ago · link · parent

For the part of noBS I'm through I appreciate the get-to-the-point explanation and amusing (thought highly opinionated) examples. I don't think there's much you can do better when you are teaching standard concepts and notation; it will always look foreign at first.

comment 11y ago · link · parent

Certainly trapping overflow is progress, but it's not that hard to implement unbounded integers such that the common case (small integers) are just as efficient as the modulo arithmetic we use today.

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

Even 8 years later, Dan's insights remain as valid as ever, yet there's precious little progress.

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

Why this intentional misleading title?

comment 11y ago · link · parent

Some basic misunderstanding here: "However, as a stack machine architecture, there is no opportunity for the instruction level parallelism exploited by modern architectures as the exact state of the stack which is depended on by every instruction changes with every instruction. This forces all program execution to wait during slow operations like main memory reads, ..."

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

1 second of Googling found me a cool Javascript emulator: http://schierlm.github.io/OberonEmulator/

comment 12y ago · link · parent

This transcript of Roger Hui's talk casts more light on the general idea: http://archive.vector.org.uk/trad/v094/hui094_85.pdf

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

My point was that very few things work and that was an example. Multi digit numbers will fail. Here's a few examples that doesn't segfault:

3+7

a=3+7

a,a,a

b=a,a,a

{b

b+9

p=2,3,5,7

2{p

{p

~8

<~8

#~8

4#3

c=b#2

c,c

comment 12y ago · link · parent

Try 3+5. Worked for me. I think it's very rudimentary and doesn't handle very much.

I agree, I would very much like a ansified very that doesn't crash on unsupported features, but still in this style and in a single file.

comment 12y ago · link · parent

For Linus things are always black and white and people who disagree with him are "stupid". That's a shame. It's amusing to read this today because x86 compatibility is obviously of declining value; that is, his "XScale" (ARM) prediction came true but markets do not change overnight.

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

This is awesome, but ... it's from 2008! A shame it hasn't been evolved since and No additional software was located? I wonder if http://xeroxalto.computerhistory.org/index.html has some of the missing bits.

comment 12y ago · link · parent

The ideas behind pointer tagging have been applied and reinvented an astonishingly amount of times, see Knuth and any number of book on the implementation of functional programming languages. To claim symbolics or Lisp invented everything is a bit silly and inaccurate.

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

"As I was writing this tutorial I found myself speculating about what happened to metacompiler technology"

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

That's largely it, but it's not just that it's simple; like Alpha, the RISC-V ISA has been carefully crafted to avoid choices that burdens implementations (be those simple or advanced).

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

FWIW, no need to be angry with them. The reason everyone with a trademark would react exactly the same way is because they have to, by law. If they don't, the court will argue that they haven't protected their trademark and they will loose it. Yes, this happens in real life.

comment 12y ago · link · parent

The specification (http://riscv.org/riscv-spec-v2.0.pdf) clearly states the reasons. It has nothing to do with political/legal issues. There are very good technical reasons for designing a new ISA.

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

(Disclaimer: I'm developing my own RV64 FPGA implementation.)

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

Maybe this is a bad place to ask, but why the virtualization requirement for running Linux on top? Is there for security reasons?

There are (have been?) other L4/Linux projects and they didn't require this.

comment 12y ago · link · parent

I guess today _is_ another day.

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.

1
4849505152