News for hackers. Stuff that matters.
Re:On Apple's Love Affair with Swift by ziotom78 on Saturday August 11, 2018 @09:11AM (#17739537)
This is true, but consider that today we are using computers fo to run tasks much more complex than 30 years ago. Rendering a complex HTML page with CSS and Javascript is an herculean and time-consuming task, which is why Firefox and Chrome are written in C++; and don't forget deep learning!

Plus, low-level languages like C are sometimes the only way to go if you are writing for embedded systems with slow CPUs.

Re:On Apple's Love Affair with Swift by acdha on Saturday August 11, 2018 @11:06AM (#17739920)
You don’t even need higher level tasks like that: take something as seemingly simple as processing text. That used to be 8 byte operations, display was looking up a bitmap and copying it into a buffer, but once programmers accepted that humans use more than ASCII and want nice displays that started to involve context sensitive decoding and display, processing vectors, subpixel rendering, etc. All great improvements but most of them require more CPU/RAM than a 30 year old computer had, too.
Re:On Apple's Love Affair with Swift by pjmlp on Saturday August 11, 2018 @03:34PM (#17741157)
Only if one doesn't look into the right place.

Mikroelektronika has Basic and Pascal compilers, in addition to C, for all those slow CPUs that are market relevant.

https://www.mikroe.com/compilers

And they aren't the only ones still alive.

Re:On Apple's Love Affair with Swift by bluejekyll on Saturday August 11, 2018 @09:25AM (#17739580)
> Firefox and Chrome are written in C++;

Firefox is on a course to remove C++ from safety critical areas and replace those with Rust.

Edit: to be clear this is based on the blog posts I’ve read from Mozilla about the introduction of Rust in different areas of Firefox. I know nothing of firm plans.

Re:On Apple's Love Affair with Swift by otabdeveloper2 on Saturday August 11, 2018 @09:29AM (#17739597)
'On a course' implies that there's some sort of definite plan and resources delegated to the task. Which isn't true of Firefox and Rust, as far as I know.
Re:On Apple's Love Affair with Swift by bluejekyll on Saturday August 11, 2018 @09:50AM (#17739648)
While it may not be an explicit goal, everything I’ve read implies that, for example the heading in this wiki on oxidization: https://wiki.mozilla.org/Oxidation

> Moving forward, the goal of Oxidation is to make it easier and more pleasant to use Rust in Firefox, and correspondingly to increase the amount of Rust code in Firefox.

And then there is the Rust page on Mozilla’s site:

> Mozilla also utilizes Rust in many of its core initiatives including Servo and key parts of Firefox.

https://research.mozilla.org/rust/

Where “key parts” is a link to the project quantum announcement: https://medium.com/mozilla-tech/a-quantum-leap-for-the-web-a...

> Initially, Quantum will share a couple of components with Servo, but as the projects evolve we will experiment with adopting even more.

Re:On Apple's Love Affair with Swift by gsnedders on Saturday August 11, 2018 @01:22PM (#17740597)
There is, however, no expectation or any real plan that C++ will be gone from Firefox. There's a huge amount of code, and there's a cost to rewriting it.
Re:On Apple's Love Affair with Swift by bluejekyll on Saturday August 11, 2018 @03:30PM (#17741146)
I only claimed “safety critical areas”... the other millions of lines and OS interop for UI, etc., will most likely not change for a long time.