News for hackers. Stuff that matters.
Re:Apple introduces macOS Mojave by shurcooL on Monday June 04, 2018 @04:05PM (#17231786)
I would be a lot more okay with this if Apple supported Vulkan, the more portable comparable API, rather than just the macOS/iOS-only Metal.

I also wonder what means for WebGL and its future. Right now, WebGL works in browsers on macOS, Linux, Windows, iOS, Android, which is incredible. There is no equivalent.

Sure, Apple has started working on WebGPU, but that’s not yet ready nor is it guaranteed to gain Linux, Windows, Android support.

Re:Apple introduces macOS Mojave by jzl on Monday June 04, 2018 @04:50PM (#17232301)
Agreed it would be nice if there were official Apple support, but FYI there's a project called MoltenVK that implements the Vulkan API on top of Metal: https://arstechnica.com/gadgets/2018/02/vulkan-is-coming-to-...
Re:Apple introduces macOS Mojave by yAak on Monday June 04, 2018 @05:07PM (#17232461)
Apparently Valve shipped a DOTA 2 update a few days ago that is using it:

https://twitter.com/Plagman2/status/1002324195135520768

https://www.phoronix.com/scan.php?page=news_item&px=Dota-2-I...

So that's pretty promising!

Re:Apple introduces macOS Mojave by bla2 on Monday June 04, 2018 @04:08PM (#17231834)
My guess is browsers will just implement WebGL on top of Metal and this will be transparent to web developers.
Re:Apple introduces macOS Mojave by skymt on Monday June 04, 2018 @04:18PM (#17231956)
There's precedent: Chrome and Firefox both implement WebGL on Windows with ANGLE, which translates OpenGL to Direct3D.

https://en.wikipedia.org/wiki/ANGLE_(software)

Re:Apple introduces macOS Mojave by paraboul on Monday June 04, 2018 @04:33PM (#17232112)
And it seems they are working on a more generic library : https://github.com/google/nxt-standalone
Re:Apple introduces macOS Mojave by skymt on Monday June 04, 2018 @04:50PM (#17232309)
Ah, and NXT has a Metal backend! Very cool.

It's important to note that NXT isn't necessarily a replacement for ANGLE. It's an experimental replacement for WebGL as a whole, with a different API. There still needs to be a way to run WebGL programs on Mac if this deprecation leads to removal a few versions down the line.

Re:Apple introduces macOS Mojave by fulafel on Tuesday June 05, 2018 @01:01AM (#17235116)
And not strictly a replacement either, WebGL would not go away. The successor to WebGL is still so far away that there will probably be some versions after WebGL 2.0.
Re:Apple introduces macOS Mojave by greggman on Monday June 04, 2018 @09:55PM (#17234358)
Re:Apple introduces macOS Mojave by nomel on Monday June 04, 2018 @04:20PM (#17231973)
WebGL is a browser level API that does not require native driver support like OpenGL. They're related only in semantics.
Re:Apple introduces macOS Mojave by sparky_ on Monday June 04, 2018 @10:24PM (#17234470)
Mentioning this in a couple different places, but consider Molten (https://moltengl.com/) for this use case; it's a third party but very high quality reimplementation of Vulkan and OpenGL ES atop Metal. In other words, an easy way to adopt metal without actually porting your app.