delorie.com/archives/browse.cgi | search |
On Tue, Jul 07, 2015 at 04:39:29PM -0400, Dave McGuire (mcguire AT neurotica DOT com) [via geda-user AT delorie DOT com] wrote: > > Is it really that those languages have become faster, or is it > > simply that the advances in CPU processing power means that the > > differences between them are drowned out by other bottlenecks, like > > IO? I wonder if you'd get similar results if these languages were > > benchmarked on a 486? > > If all developers were forced to test their code on very slow > machines, the world would be a much happier place. Yet another reason > why I moved from server-side development entirely into embedded > firmware, where code performance still matters. While I sympathise with many of the arguments that you present, I have to point out that Rust enabled me sorts of code optimizations that one would need to think and try very hard to accomplish with C. E.g. macros that optimize to almost nothing, full dead code elimination allowed for by the Rust compilation model (unlike that of C where you need -ffunction-sections and pray that the linker implements this correctly on your architecture -- which it doesn't if you're unlucky; try doing that on avr, for example). Note that that I'm *specifically* talking about embedded stuff here. Please see https://zinc.rs/ for an example of what has been possible with Rust on ARM for quite some time now. This is not to say that every language out there is like that, or that Rust is ideal for embedded stuff. I'm just saying that I've seen generalizations and misconceptions mentioned in this thread that are very far from the truth. -- Ivan Stankovic, pokemon AT fly DOT srk DOT fer DOT hr "Protect your digital freedom and privacy, eliminate DRM, learn more at http://www.defectivebydesign.org/what_is_drm"
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |