The Supercomputer In Your Pocket: Metal and Swift
realm.io
realm.io
Edit: Ah, I thought it looked low! That number is just for the iPhone CPU. I can't find an official number for the GPU but one Linpack run got 1,023 Gflops. That means it would rank in 2004.
I don't mean to pick on you, but it's a misleading comparison. A basic transform that only gets rid of the extra working arrays and does no other optimizations is ~5-10x faster in my quick timings:
vvexpf(&result, &negx, &localcount)
let one = Float(1)
vDSP_vsadd(&result, 1, &one, &result, 1, localcount)
vDSP_svdiv(&one, &result, 1, &result, 1, localcount)I now see that I missed the gist of this, which was about mobile performance. The Tegra X1 can do a teraflop, which would put it at #2 on the Top500 List - June 1998.
http://www.anandtech.com/show/9289/the-nvidia-shield-android...
The even more amazing part is the energy usage of these new mobile chips.
System architecture and usage change everything, Cray sustained bandwidth made a complete difference even compared to core i series.
His last section on 'advanced particle systems' might be able to be sped up considerably by using an appropriate neighbour list algorithm (e.g. parallel Verlet) which would scale as O(N) instead of O(N^2). I'm working on something similar myself at the moment, though with far fewer particles, but it really is inspiring to see it work with so many on a mobile device.
Can't wait for WWDC to see if there are any updates to Metal (and SceneKit for that matter).
[1] http://flexmonkey.blogspot.co.uk [2] https://github.com/FlexMonkey
http://www.h4labs.com/dev/ios/swift.html?q=flexmonkey&age=10...
If every particle affects every other, wouldn't 2 million particles require 2,000,000^2 calculations per frame? 30*4 trillion interactions per sec seems a lot... or is there an efficient trick to it (in the shader)?
I was triggered. I do my best to stay away from Apple altogether. I believe in a world where companies are shamed into oblivion for not allowing their software to run across all platforms.
Apple doesn't work for the people, they work for the shareholders. Since I don't own any shares I'm dirt under their feet.
A lot of people on HN like to talk about power and privilege but when it comes to companies like Apple they make any excuse for their blatant platform discrimination.
Don't blame me, blame social justice warriors.
Please for the love of God, go back to tumblr.
From your comment history you seem to find any excuse you can to butt in with some lame comment about the middle east. I guess this is just an attempt to control the narrative and push your political agenda.
If anyone disagrees you paint them as some kind of supporter of rape.
This is something I expect from tumblr.