Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Challenge

Name: Anonymous 2009-08-17 4:05

Write a garbage collector in your language of choice

Name: Anonymous 2009-08-17 4:08

def garbage():
    pass#python does it already

Name: Anonymous 2009-08-17 4:19

Do your own homework.

Name: Anonymous 2009-08-17 4:44

while (true) do
  truck drive
  bins empty
end

Name: Anonymous 2009-08-17 9:50


int garbagecol()
{
    int *i;
    for(i = 0; i < 999999; i++)
        free(i);
}

Name: Anonymous 2009-08-17 14:15

#!/bin/sh
for device in /dev
do
    shred $device
done

Name: Anonymous 2009-08-17 14:18

>>6

Disregard this, I suck cocks

#!/bin/sh
for device in /dev/*
do
    shred $device
done


/dev/*/

Name: Anonymous 2009-08-17 14:19

>>7

Samefag again: LOL at syntax highlighting, it had just been pwned

Name: Anonymous 2009-08-17 15:01

Does anyone want to write an exact, compacting GC with me? We can also write a simple scheme interpreter to test it.

Name: Anonymous 2009-08-17 15:25

>>9
I will. Mind if I modify an existing one?


while (true) do
  truck drive
  bins empty
  compact trash
end

Name: Anonymous 2009-08-17 15:28

>>9
It would be an interesting project, but that I don't know much about how GC implementation, only the general ideas. I'll have to do a bit of reading: both technical papers and actual implementations to be of any help.

If you do end up implementing it, alone or with someone else, please post updates about it on /prog/

Name: Anonymous 2009-08-17 15:33

<?php
function garbage(void) {
  while(true) {
     return true;
  }
}
?>

Name: Anonymous 2009-08-17 15:34

>>12
no void FFFFFFUUUUU

Name: Anonymous 2009-08-17 15:58

>>11
I can point you towards some existing implementations:

Mono 2.8 will have a compacting GC¹ (currently, they use Boehm GC, which is a conservative GC), it may be interesting to look at how they're implementing that.

This post may also interest you: http://useless-factor.blogspot.com/2008/08/new-mark-compact-algorithms.html

¹ http://www.mono-project.com/Compacting_GC

Name: Anonymous 2009-08-17 17:43

>>10
You seem to have missed the (Object) (Message) syntax.

Name: Anonymous 2009-08-17 19:27

>>15
That's no Ruby I've ever seen. What's it supposed to be? Lua?

Name: Anonymous 2011-01-31 20:02

<-- check em dubz

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List