2,246 karma · joined Feb 1, 2010 (16y ago) · 627 submissions
606.
Canada is a telecom backwater, says backer of Wind Mobile (theglobeandmail.com ↗)
8 points · by CountHackulus · 16y ago · discuss
comment 16y ago · link · parent
Cross platform code needs lots of thought and hard work. THAT is why VM languages are nice.
As for JITs, yes, they're getting much faster and much better at recognizing code to optimize. Then again, so are static compilers. But both of these technologies are slowly merging together. JITs are getting ahead of time compilation, and static compilers are getting profile directed compilations.
You just have to ask yourself, is a 40% boost in performance worth hours, possibly weeks, of rewriting code for a different platform?
comment 16y ago · link · parent
Namely, it can run Z books along with POWER7 blades and x86 blades in the same (admittedly very large) box. Basically, run your compute workloads on Power, database on x86, and control on Z. Seems like a pretty good idea to me!
[1] http://www-03.ibm.com/systems/z/news/announcement/20100722_a...
comment 16y ago · link · parent
For example, [1] shows that the IBM J9 VM has a -Xquickstart option.
[1] http://publib.boulder.ibm.com/infocenter/wasinfo/v5r0/index....
comment 16y ago · link · parent
Now while, LLVM may not do this, it's far from the only compiler on the block; especially in the non-open-source world.
The IR argument is a non-argument. Certain optimizations work better with certain IRs than others, that's just the way it is. It's unlikely that there will be one to rule them all. More likely, we'll convert between them to use the optimal one.
Superoptimizers are an interesting case, it's kind of like having a database of optimality. While it may not give much speedup compared to time invested, if you're desperate for that last little bit of performance, it's a great tool. Plus it should make itself faster over time. Could even locate it in the cloud, such that a compiler send its hottest methods over to a remote machine, and it'll use its massive database of optimality to optimize it as best as possible.
Verifiable transformations are great in theory, but it's true, it's extremely hard to implement currently.
The author definitely has a point about AOT/JIT compilers being the future of optimization. Static compilers have been done to death, while dynamic compilers are still (comparatively) new and fresh.
comment 16y ago · link · parent
This greatly annoys me as there's an album I want that's not on iTunes, but is on Amazon MP3. None of the local music stores stock it. My only choices are to either pirate the album or pay exorbitant fees and wait several weeks to import the disc.
Guess which one's easier.
comment 16y ago · link · parent
Instead of adding parentheses, try writing it like this:
while(*dst)
{
*dst = *src;
dst++;
src++;
}
It's instantly more readably, it's very obvious what's going on, and you've lost no performance. There's also no parentheses to add.comment 16y ago · link · parent
Compare this to a standard blade setup, where you could just swap out CPUs, or even an IBM System Z where you could hotswap the CPU, and service doesn't look so great.
comment 16y ago · link · parent
comment 16y ago · link · parent
If you really want to get a good handle on C, there's nothing like reading the spec.
comment 16y ago · link · parent
http://www.ted.com/talks/omar_ahmad_political_change_with_pe...
comment 16y ago · link · parent
Basic is nice, but it lacks the explicit structure that Pascal, C/C++, and other high-level languages enforce.
I'm thinking Pascal is a good choice because it's explicit enough in its constructs to force the programmer to realize what they're doing, but not so fine-grained that you need to start thinking about memory management, pointers, and other more advanced constructs.
The skills are then easily transferable to other similar languages like C/C++, Java, C#, etc.
comment 16y ago · link · parent