Comment

Comment by SamReidHughes

It fails to compile the program

    #include <iostream>

    int main() {
        int x = 23;
        std::cout << x;
        return 0;
    }
It seems like it can't handle namespaces.

When I write

    #include <vector>
it complains, "cannot find library: vector".

I think this isn't going to be very useful for people unless you get a C++ evaluator that works correctly. There is a demo of Clang running in the browser using webassembly here: >> https://tbfleming.github.io/cib/ << but it doesn't actually work for me on Firefox. Maybe I need to use Chrome. That is probably a better option for getting C++ running in the browser.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton