78 points · by matthewwarren · 12y ago · 18 comments
[0] http://www.microsoft.com/en-us/download/details.aspx?id=2856...
BTW I really like the Perf stuff in Roslyn, I wrote 2 posts about it, in case your interested? Although as you worked on it, it won't be anything you don't already know ;-)
http://mattwarren.org/2014/06/05/roslyn-code-base-performanc... http://mattwarren.org/2014/06/10/roslyn-code-base-performanc...
Also, theUnsafe makes me snicker
.Unsafe.class.getDeclaredField("theUnsafe");The general argument is that you are still more productive by writing 90% or 95% of you app in a managed language, in the idiomatic way. Then you use crazy tricks to tune the last 10/5%. Rather than doing the whole thing in C/C++, which will give better performance, but may not be quicker (more productive) to write.
I don't know much about D, it's interesting to find that you can opt out of GC like that.
You get some of that functionality in .NET, with the new GC mode SustainedLowLatency [1]. But it doesn't guarantee no GC, it just tried to avoid it.
> Enables garbage collection that tries to minimize latency over an extended period. The collector tries to perform only generation 0, generation 1, and concurrent generation 2 collections. Full blocking collections may still occur if the system is under memory pressure.
[1] http://msdn.microsoft.com/en-us/library/system.runtime.gclat...
[1] http://msdn.microsoft.com/en-gb/library/f58wzh21(v=vs.71).as...
If what Azul has worked on conventional Client/Server-JVMs, Sun/Oracle/IBM would've adopted it long ago.
The sad reality is that spending 99% of your time in GC, but never in a pause longer than "x units of time" qualifies as "pauseless" and if you want more throughput, you have to scale up the system so that the remaining 1% of througput is sufficiently large for your workload.
I guess this works in the markets where Azul is active (things like finance) but is useless in more conventional use cases.
Recent advances in Intel CPUs have allowed them to run on commodity hardware, but last I looked, it still required a custom kernel module.