Live data from Hacker News

Deca - a systems language based on modern PL principles

code.google.com

1–10 of 59 posts

Re: Deca - a systems language based on modern PL principles

#4

how do you combine first class functions (and so closures) with no garbage collection? don't you end up with possibly multiple references to memory and no way of knowing who owns it?

If you read the dissertation, it turns out that variables are captured by value. But even if they are captured by reference - solutions are possible such as the one in C++11. The decac doesn't provide more memory safety than C, so there are no problems :) Yet another solution is to inline all higher-order functions so no closures exist at runtime.

Re: Deca - a systems language based on modern PL principles

#5
post #3

Looks awesome, especially the type system. Check out http://code.google.com/p/decac/source/browse/examples/list.d... I'd love to see some discussions on possible/practical shortcomings.

The type system looks novel, but it doesn't provide controlled effects or safety as the system for Disciple language described in the "Type inference and optimization in impure world" paper. So it doesn't qualify as 'awesome' IMO
Post reply on HN