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

Bored

Name: Anonymous 2012-07-24 23:15

I'm incredibly bored, so I thought I'd write 2 probably incredibly bad ideas.

1. Indentation instead of braces
2. For memory management, we use either a manual memory management, or a garbage collector. But what if instead, we used both? Having the compiler determine if some data should be allocated using alloca, malloc, an object cache, arena allocator, etc, and if it should be freed using deference, deletion, refcounter, or garbage collection, and if garbage collection, to create mutexes for "entry points" for which to search from. Then have GCs run in their own threads while the other stuff in running.

I can think of more bad ideas too.

Name: Anonymous 2012-07-24 23:30

>>1-2
1. Both are necessary.  Imposing either leads to unusable syntactic diarrhoea (just look at Python and Lisp).
2. Compilers (especially JIT compilers) will generate manual allocations and frees if possible.
3. Buffer overflows are a language flaw for anything other than assembly.

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