cracauer@
Developer
It still looks to me that the C++->Java compilers never made it past the experimental stages.
C++ exceptions and C setjump/longjump would be hard to implement, and cause a huge performance penalty.
It still looks to me that the C++->Java compilers never made it past the experimental stages.
Yep, though due to the similarities between CSharp and Java and their architecture, this complexity does seem to have been overcome via Microsoft's C++/clr:safe product.C++ exceptions and C setjump/longjump would be hard to implement, and cause a huge performance penalty.
Except when it doesn't.Having the smarter algorithm wins.
I would also argue that C's access to direct blocks of memory makes itBetter algorithms are nice. But to argue that a slower language might be a good choice because it is easier to implement better algorithms has pitfalls.
I would also argue that C's access to direct blocks of memory makes iteasieractually possible to implement better algorithms.
No you don't. You won't be able to make head or tails out of it, most of the time, and in extreme cases it will be akin to read from strange tomes featured in the works of HP Lovecraft. You won't be able to change anything.As a side note, I wish C compilers would be able to return a more optimized version of the code instead of only putting the optimization into the executable so that I could learn from it, tweak it, and minimize compiler effort to do it on repeat runs.
No you don't. You won't be able to make head or tails out of it, most of the time, and in extreme cases it will be akin to read from strange tomes featured in the works of HP Lovecraft. You won't be able to change anything.
Me making heads or tails of it is a separate issue from having it as an option to learn from. It would be more of the idea of being able to have the feedback of "this function was inlined: it takes more memory but now runs faster" or "this mathematical expression with constants and their operators has been replaced with the result of those operations instead of calculating it each run" with the difference of seeing it instead of just getting a comment about it. Compilers do things that I know of and other things that I do not know of. Sometimes optimizations take quite a bit of time so it would be nice to know which ones did or did not benefit the output instead of blindly applying all of them. Probably just a workflow issue of my own but it seems debugging compiler optimizations would be simpler when at least some are expressible in the original language. There are readability, maintainability, and expandability reasons to have certain optimizations applied to code instead of writing the code with the optimizations but there is plenty of code where such optimization can be easier to manage and read.No you don't. You won't be able to make head or tails out of it, most of the time, and in extreme cases it will be akin to read from strange tomes featured in the works of HP Lovecraft. You won't be able to change anything.
Was my first programming language available for me in the 1980s on my Amstrad PC1512 with MS-DOS 3.2GW-BASIC