davidxa
Re:Scott Adams: How I (Almost) Saved the Earth
on Saturday August 21, 2010 @04:11AM (#1622467)
The problem with this is that it isn't as flexible as a normal frige, it basically has to be built into the house. Also, if you don't have it next to a exterior wall, you have to pipe the coolant through the walls or floors. It's a great idea, but it requires a major redesign of the refrigerator, and means you can't easily get a new one if it breaks or you want it bigger or smaller.
Re:How to design a replacement for C++
on Thursday July 22, 2010 @12:37AM (#1537368)
If you implement closures as thunks, you can just free them when done, no need for GC.
closure int foo(int x) {return x + y;}
int(*foo_p)(int) = malloc(sizeof(foo));
memcpy(foo_p,&foo,sizeof(foo));
return foo_p;
So, you can add working closures in one keyword (and possibly a special case for function pointer decay).