News for hackers. Stuff that matters.
Re:You're Doing It Wrong: CS in the real world by kenjackson on Monday June 14, 2010 @07:08PM (#1431319)
Well there are some big differences. One thing being that you don't have the same type safety in C as in many higher level languages. If I say the memory at 0xdeadbeef is of type X, well then its type X.

The other thing is that memory locations don't change. If my object is at location L then I know its at location L unless I move it. With compaction, unless I'm pinning objects (and making the GCs and allocators life hard) my object doesn't have a fixed location.

Re:You're Doing It Wrong: CS in the real world by wingo on Tuesday June 15, 2010 @09:28AM (#1432655)
Good points, though with FFIs you have the same level of unsafety. A more limited mmap wrapper could provide bounds checking, but it's still your job to interpret the bytes being mapped.