Re:Removing garbage collection from the Rust language
by pjmlp on Monday June 03, 2013 @10:33AM
(#5813479)
Simple is not the same as easy.
Anyone with compiler development experience can implement them without much trouble, hence simple.
Sadly that is a skill many seem to lack nowadays.
Re:Removing garbage collection from the Rust language
by Confusion on Wednesday June 05, 2013 @03:58AM
(#5824253)
Yeah, back in the old days everyone had that kind of compiler development experience, didn't they?
Re:Removing garbage collection from the Rust language
by pjmlp on Wednesday June 05, 2013 @02:06PM
(#5827401)
Compared to what kids seem to know nowadays, yes.
They can grok HTML5 page full of JavaScript stuff, but then mix language with implementation, think that strong typing is only possible with VM based languages and faith at the look of Assembly code.
None of those four functions use syscalls, nor are any of them simple to implement efficiently in assembly.
Consider that memcpy, under GCC,
* generates different code based on any known alignment of the source or destination
* generates simpler code if the size is known at compile time
* generates only register accesses if one or both of the arguments live in registers
* is elided entirely if GCC determines that it may do so safely
The other three have similar complex behavior. The Rust developers didn't use them just because they were too dumb to know how to write a for loop in assembly.