Recent submissions

Comment · 3 years ago
This might be more of an indictment on 'readable' being a meaningful concept (beyond simple personal preference) than it is of Zig's syntax.
Comment · 4 years ago
Comment · 5 years ago
Comment · 5 years ago
> Why would operator overloading allocate memory?

What if I wanted to overload the + operator to concatenate strings?

Comment · 5 years ago
defer in Zig is per-scope, so

    {
        var file = try std.fs.cwd().openFile(path, .{});
        defer file.close();

        // ... code ...
        // file.close() is executed here
    }
would work just fine.
Comment · 5 years ago
Comment · 5 years ago
Comment · 5 years ago
Comment · 5 years ago
Comment · 5 years ago
The company Elastic was created 2 years after the release of ElasticSearch.
Comment · 5 years ago
From https://www.elastic.co/about/press/elastic-n-v-reports-stron...

> First Quarter Fiscal 2020 Financial Highlights

> Total revenue was $89.7 million, an increase of 58% year-over-year, or 62% on a constant currency basis.

Comment · 5 years ago
Yes, but it's much more likely your money is going to record labels rather than artists with something like Spotify. With Bandcamp, you are typically directly paying the artists, and you can always pay above the minimum price set by the artist if you wish.
Comment · 5 years ago
> Paying the artists you actually listen to

This is what Bandcamp is.

Comment · 6 years ago
Are you saying that the given example should be disallowed?
Comment · 6 years ago
Your analogies ignore the advertisement part of what you are quoting. Selling an OS doesn't require any particular scale at all, selling ads to display within an OS would.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton