Hacker News new | ask | show | jobs
by TonyAlicea10 8 days ago
I always tell web developers I teach that the language of the internet isn’t JavaScript it’s C++.

Web devs are just users playing in a C++ dev’s program. ;)

3 comments

I tend to think of the web and the internet as distinct things.

For the language of the web I'd probably nominate HTML.

For the language of the internet it's a lot less clear to me.

Many browser rendering engines are built in C++, so C++ is parsing the HTML. My general point is that many web/internet techs that web devs interact with have C++ one abstraction level below for actual implementation.
I agree with you, and it amuses me to no end when I (rarely) use Wt to make a simple webpage. C++ to js (very roughly) rendered by c++.
All widely used HTML engines are C++. Of the up and coming ones, Servo is Rust and Ladybird is C++ potentially moving to Rust.

In any case, Rust is basically C++ 2.0 to me because it is very much in the spirit of C++.

Rust is a tiny portion of Firefox, and sadly it is in the way of irrelevance.

It is kind of ironic that Rust will outlive Firefox as Mozzilla's legacy.

Yes I said “many” because if I didn’t qualify it someone would mention Rust.
Continuing the analogy, browser devs are just users playing in C/OS/kernel program.
That doesn't actually follow.

A C++ compiler outputs machine code that runs on a raw cpu if you want it to. The os providing a virtual cpu is just an optional extra and so irrelevant.

That is not true for someone writing php or js or anything that runs in an interpreter. C/OS/Kernel are not actually the interpreter for C++, or they are, but only in the same way that the bare hardware is. C++ is the final interpeter layer besides assembly.

Machine code is interpreted by CPU's microcode.
Playing in a sandbox no less.