Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

hax more anii

Name: Anonymous 2014-11-06 18:53

So the lifetime of any datastructure can be separated into linear and parallel intervals, i.e. refcount 1 and refcount more than 1. On the linear lifetime segments, the data structure may be modified in-place to save both CPU cycles and memory; while on the parallel segments it better be immutable to make parallel execution simple and correct by construction.

Linear types (affine types, uniquness types, whatever) allow enforcing the linear intervals and make destructive update of the otherwise immutable structure acceptable.

Without linear types, you cannot have free lunch. Either you make everything immutable to pander to concurrency but lose speed and memory (and "purely functional data structures" are slow, damnit); or you stay in mutable-land and end up in a hell of data races and indetermination with its hard to reproduce but still quality-killing bugs.

But with linear types you can have your free lunch.

Name: Anonymous 2014-11-08 14:02

bampu pantsu

Name: Anonymous 2014-11-08 17:03

The Ecumenical Church of Linear Types

Name: Anonymous 2014-11-10 21:31

And now they're trying to unify linear types with dependent types. That's some sick shit right there, bro:

http://www.cs.bham.ac.uk/~krishnan/dlnl-paper.pdf

Name: Anonymous 2014-11-11 0:43

>>4
neelk please go

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List