47 ms·
Note that the document seems to be from the spring of last year. I think it is interesting that Parasail has no explicit pointers and only uses value semantics
by Dewie 12y ago
Note that the document seems to be from the spring of last year.
I think it is interesting that Parasail has no explicit pointers and only uses value semantics. This means that no garbage collection is needed: the storage associated with a variable is freed when the variable goes out of scope, or when the variables value is set to null (and yes, you must have a value of type Optional T in order to set it to null). I thought that having pure value-semantics would be too costly in a language, but apparently that kind of solution has its place after all.
- q2 12y agocan you clarify how value semantics are costly compared to garbage collection/explicit pointers?
- Dewie 12y agoAs far as I understand, and if no extra care is taken on the part of the programmer: the extra copying, since you would have to copy over the data from one variable to another instead of just using and moving around pointers. In Parasail's case, you can choose to use "move" (move value from left side to over to the right side) and "swap" (swap the values of the left and right side), which will avoid the copying.