lbolla
Joined 16 years ago
Karma
173
Submissions
52
Member since
Jul 26
Joined 16 years ago
Do you have some pointers about arenas always using mmap? I'd like to know how that trick can work if that was the case.
The idea is to tweak when `mmap` or `malloc` are used by the Python interpreter. One allows memory to be released to the OS right away, whereas the other is not.
It is a useful trick if your application is generating lots of small objects.
I recommend the works by Arthur Danto (https://en.wikipedia.org/wiki/Arthur_Danto) for very interesting definitions of "art".
head :: [a] -> a
I would code it as: head :: [a] -> Maybe a
returning Nothing for empty lists. Same applies to tail.But others have very good reasons to disagree: http://stackoverflow.com/questions/6364409/why-does-haskells...