Better HN
topnewbestaskshowjobs
Log inSign up

davidxa

1 karma · joined Jul 22, 2010 (16y ago) · 2 submissions

Submissions

comment 16y ago · link · parent

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.

comment 16y ago · link · parent

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).