News for hackers. Stuff that matters.
Re:The Supercomputer In Your Pocket: Metal and Swift by sp332 on Friday May 29, 2015 @02:50PM (#9626530)
Oh, it has a transcript! With code samples! I don't even know what Realm does but I like them already.
Re:The Supercomputer In Your Pocket: Metal and Swift by joeblau on Friday May 29, 2015 @07:04PM (#9628063)
They make a database alternative to CoreData/SQLite.
Re:The Supercomputer In Your Pocket: Metal and Swift by morqon on Saturday May 30, 2015 @11:45AM (#9630528)
And subtitles! All talks should be done like this.
Re:The Supercomputer In Your Pocket: Metal and Swift by santaclaus on Friday May 29, 2015 @03:24PM (#9626731)
How far back in time does one need to go for a state of the art iPhone to rank on the TOP500 LINPACK benchmark?
Re:The Supercomputer In Your Pocket: Metal and Swift by sp332 on Friday May 29, 2015 @03:32PM (#9626777)
1994, just the third year the Top500 list existed. http://www.top500.org/statistics/perfdevel/ According to http://www.cnet.com/products/apple-iphone-6-plus/2/ the iPhone 6 gets 1.3 gigaflops.

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.

Re:The Supercomputer In Your Pocket: Metal and Swift by stephencanon on Friday May 29, 2015 @04:37PM (#9627195)
The iPhone 6 CPU is significantly faster than 1.3 gigaflops. The 5s is capable of 10.4 gigaflops on LINPACK, and the 6 is faster still. Would have made Top500 in the late 90s.
Re:The Supercomputer In Your Pocket: Metal and Swift by amund on Saturday May 30, 2015 @01:23AM (#9629125)
My experience is that iPhone 6 GPU can be up to 50-70 times faster than the CPU - for single precision floating point (i.e. Swift running on the CPU, and Metal on the GPU). See http://memkite.com/blog/2014/12/18/gpgpu-performance-of-swif... for an example (comparison with Accelerate framework)
Re:The Supercomputer In Your Pocket: Metal and Swift by stephencanon on Sunday May 31, 2015 @08:22PM (#9636177)
That's almost a "what not to do" for using Accelerate. You're introducing multiple passes over the data, and introducing extra dummy arrays that need to be passed over as well, which blows up the load-store traffic further. You're also using vvpowf to compute a simple reciprocal, which is wildly inefficient.

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)
Re:The Supercomputer In Your Pocket: Metal and Swift by sp332 on Friday May 29, 2015 @04:40PM (#9627225)
Do you have a source? I couldn't find many people actually running Linpack on iPhones.
Re:The Supercomputer In Your Pocket: Metal and Swift by stephencanon on Friday May 29, 2015 @04:43PM (#9627247)
Re:The Supercomputer In Your Pocket: Metal and Swift by bitL on Friday May 29, 2015 @03:57PM (#9626885)
That is true for CPU, how about GPU? Tegra K1 is >1Tflop which would be the total computing power available in 1994.
Re:The Supercomputer In Your Pocket: Metal and Swift by euphoria on Friday May 29, 2015 @04:12PM (#9626986)
Titan Z can do 8 teraflops. From the Top500 List - June 2001, the #1 system at Lawrence Livermore could do R(max) 7 teraflops and R(peak) 12 teraflops.

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.

Re:The Supercomputer In Your Pocket: Metal and Swift by jra101 on Friday May 29, 2015 @04:19PM (#9627032)
Tegra K1 is 365 GFLOPs @ 950 MHz. Tegra X1 is > 1 TFLOP @ ~1GHz.

http://www.anandtech.com/show/9289/the-nvidia-shield-android...

Re:The Supercomputer In Your Pocket: Metal and Swift by stephencanon on Friday May 29, 2015 @04:42PM (#9627236)
"LINPACK" (without qualification) is a double-precision benchmark, and doesn't measure raw compute flops, but what is actually achieved solving a linear system. K1 does double-precision at a rate of 1/24, and good libraries typically achieve ~90% of rpeak on similar hardware, so something around 13.7 gflops is a reasonable estimate.
Re:The Supercomputer In Your Pocket: Metal and Swift by dm2 on Friday May 29, 2015 @04:10PM (#9626975)
And the latest Tegra X1 is twice as powerful as the K1, which was already an amazing chip.

The even more amazing part is the energy usage of these new mobile chips.

Re:The Supercomputer In Your Pocket: Metal and Swift by ghshephard on Saturday May 30, 2015 @11:49AM (#9630543)
Re: Linpack Run - given the iPhone 5S ranks as 10 Gigaflops, hard to see the iPhone 6 at more than 20 Gigaflops.
Re:The Supercomputer In Your Pocket: Metal and Swift by agumonkey on Friday May 29, 2015 @05:01PM (#9627405)
I found this article the other day http://tek.io/1PTesWY

System architecture and usage change everything, Cray sustained bandwidth made a complete difference even compared to core i series.

Re:The Supercomputer In Your Pocket: Metal and Swift by jph on Friday May 29, 2015 @03:17PM (#9626682)
Metal is Apple’s iOS framework for GPU programming. The slides are about GPU programming using Metal, Swift, and some Objective-C for features such as shaders.
Re:The Supercomputer In Your Pocket: Metal and Swift by Osmium on Friday May 29, 2015 @06:20PM (#9627853)
This is really inspiring stuff. Highly recommend the author's blog[1] (sadly on blogspot) and GitHub page[2] too.

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

Re:The Supercomputer In Your Pocket: Metal and Swift by morqon on Saturday May 30, 2015 @11:47AM (#9630536)
I think he is talking on a similar topic at AltConf, Tuesday 9th: http://altconf.com/schedule/
Re:The Supercomputer In Your Pocket: Metal and Swift by justinhj on Saturday May 30, 2015 @01:59AM (#9629204)
Why sadly?
Re:The Supercomputer In Your Pocket: Metal and Swift by Osmium on Saturday May 30, 2015 @04:00AM (#9629445)
Blogspot has a a really weird layout. It's very buggy for me in Safari, and makes browsing old posts really difficult. It also seems to take a while for content to even appear on the screen.
Re:The Supercomputer In Your Pocket: Metal and Swift by melling on Friday May 29, 2015 @06:30PM (#9627896)
Simon's blog has lots of interesting Metal posts. I've got them catalogued here:

http://www.h4labs.com/dev/ios/swift.html?q=flexmonkey&age=10...

Re:The Supercomputer In Your Pocket: Metal and Swift by hyperpallium on Saturday May 30, 2015 @10:20PM (#9632764)
Is the shader code available anywhere?

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)?

Re:The Supercomputer In Your Pocket: Metal and Swift by sirsuki on Saturday May 30, 2015 @12:32AM (#9628987)
Wait if the iPhone is so "amazing" why is the best games for it angry birds?! Where is my World of Warcraft damn it!
Re:The Supercomputer In Your Pocket: Metal and Swift by awakeasleep on Saturday May 30, 2015 @01:50AM (#9629182)
Angry birds does a better job of satisfying humanity's desire for a game than world of warcraft.
Re:The Supercomputer In Your Pocket: Metal and Swift by jawngee on Saturday May 30, 2015 @06:49AM (#9629723)
You should try Vainglory.
Re:The Supercomputer In Your Pocket: Metal and Swift by _random_ on Friday May 29, 2015 @02:30PM (#9626411)
Please add Metal & Swift to the title: mentioning these proprietary closed-source technologies might change peoples' expectation.
Re:The Supercomputer In Your Pocket: Metal and Swift by oldmanjay on Friday May 29, 2015 @04:36PM (#9627184)
Do we really need trigger warnings for proprietary software? HN has never been a dogmatic bastion of free software.
Re:The Supercomputer In Your Pocket: Metal and Swift by duaneb on Friday May 29, 2015 @04:43PM (#9627243)
It's not very relevant to smartphones as a whole, it's just Apple's take on it.
Re:The Supercomputer In Your Pocket: Metal and Swift by zxcvcxz on Friday May 29, 2015 @07:42PM (#9628210)
!UNPOPULAR OPINION TIME!

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.

Re:The Supercomputer In Your Pocket: Metal and Swift by sp332 on Saturday May 30, 2015 @08:08AM (#9629900)
You had PTSD flashbacks from reading an article about Apple? http://en.m.wikipedia.org/wiki/Trauma_trigger
Re:The Supercomputer In Your Pocket: Metal and Swift by zxcvcxz on Saturday May 30, 2015 @02:11PM (#9631128)
Hey am I not allowed to be a bit sarcastic? So many tumblrinas use that word they've killed it's meaning.

Don't blame me, blame social justice warriors.

Re:The Supercomputer In Your Pocket: Metal and Swift by cpach on Saturday May 30, 2015 @04:42PM (#9631676)
Please don’t use terms like SJW here. I can’t see how it’s relevant or adds anything to the discussion.
Re:The Supercomputer In Your Pocket: Metal and Swift by sp332 on Saturday May 30, 2015 @03:22PM (#9631436)
Poe's Law - I couldn't tell you were being sarcastic.
Re:The Supercomputer In Your Pocket: Metal and Swift by seivan on Friday May 29, 2015 @08:18PM (#9628297)
You're triggered by software while female Kurdish civilians spontaneously turned into soldiers face an enemy that rapes captured females.

Please for the love of God, go back to tumblr.

Re:The Supercomputer In Your Pocket: Metal and Swift by zxcvcxz on Friday May 29, 2015 @08:35PM (#9628345)
Wow that was way out of left field. Am I not allowed to not like Apple because there’s a war in the middle east? Maybe you're the one who needs to go back to tumblr and stop trying to push your political agenda on everyone you come into contact with.

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.