News for hackers. Stuff that matters.
Re:C Preprocessor Hell by bunderbunder on Thursday January 12, 2012 @11:33AM (#3456889)
There are some who would suggest that allowing you to commit segment violations is not generally a desirable language feature.
Re:C Preprocessor Hell by BudVVeezer on Thursday January 12, 2012 @11:57AM (#3456999)
Except when 0xDEADBEEF happens to be the memory address overlaying the custom hardware registers, and setting it to 0x42 turns the blinky light on. There are some cases where manipulating static memory locations is not only a good thing, but the only way to do something (at least for embedded programming). Not saying that your point is invalid, btw.
Re:C Preprocessor Hell by agumonkey on Thursday January 12, 2012 @12:32PM (#3457145)
wild guess:

  (overlay 'light #on)
overlay being a macro to access a predefined ffi setup.

</dream>

Re:C Preprocessor Hell by groovy2shoes on Thursday January 12, 2012 @12:01PM (#3457013)
The ability to commit segment violations is a consequence of the broader abilities you get with pointers as a language feature. In many cases, neither of those things are desirable, but there are cases (e.g., systems programming) where they are very desirable.
Re:C Preprocessor Hell by bunderbunder on Thursday January 12, 2012 @12:14PM (#3457065)
Sure, but LISP was never intended as a systems or embedded programming language. Criticizing LISP for not being good at doing low-level tasks is akin to criticizing Harley-Davidson's motorcycles because they don't float.
Re:C Preprocessor Hell by cobrausn on Thursday January 12, 2012 @12:24PM (#3457101)
Or akin to criticizing C for not being an expressive, high-level language.

Also, in response to your first point: http://en.wikipedia.org/wiki/Lisp_machine

Re:C Preprocessor Hell by nickik on Thursday January 12, 2012 @02:17PM (#3457554)
If C would have lisp syntax it could do the alot of the same abstractions.
Re:C Preprocessor Hell by bunderbunder on Thursday January 12, 2012 @03:01PM (#3457722)
A low-level imperative language with s-expression syntax would be one heck of an esoteric language.