128 karma · joined April 16, 2020
Nowadays, the only problems I have with Steam stem from my credit card's security mechanisms.
That's what happens if the buyer is also the user, I guess.
Nuclear might have been an option fifty years ago, but now it's too late to start, and we should focus on storage and renewables instead, if you ask me.
[edit]: fixed a typo
[1]: https://apps.apple.com/us/app/paper-by-wetransfer/id50600381...
Not disagreeing, just lamenting the sad state of journalism nowadays, at least as I perceive it.
I don't think you need to understand every single character of your very first program right from the beginning. A few of the concepts can be hand waved away to be explained in a later chapter without impeding the overall understanding of programs once you left the sub-twenty-lines beginner programs.
In that case, assuming that one file is OK and only the other text needs to be pasted, you can diff against stdin. On macOS there is `pbpaste`, which prints the contents of the pasteboard to stdout. This allows you to do `pbpaste | diff the-file -`, with `-` being the commonly used "filename" for stdin.
I had tried to find a tool that would be simple, quick to use, and as close to a static HTML page as possible while still retaining a "book" character. Even a Vimwiki HTML export would have been an option, were Vimwiki's Markdown support better. Mdbooks fit the bill, and does not seem to stray too much from that initial direction, as far as I can tell.
[1]: https://rust-lang.github.io/mdBook/ – the website itself is a demo of the sites produced by mdbook.
Built-ins in Zig are functions beginning with `@`. Your cast operator would be a new syntax construct, something Zig tries to limit as much as possible (keeping the parser simple).
> What type is "b"? i32?
That's easy, i32. Integer literals are of type comptime_int, which may coerce into other integer types if possible without loss of information, and since the only typed expression is the @as, every other integer in the line will coerce to its type.
Except for a lot of the Apple-centric journalists and podcasters, who have been imagining for years how fast a desktop built on these already-very-fast-when-passively-cooled chips could be.
Not that that matters very much when experienced and real-world workload performance suffers, but as far as I can tell, the M1 is no slouch in that respect either.
Return values are a pair of an error value (internally basically an enum) and a result value. Error handling is mandatory, but passing errors to the caller from a nested function can be done by prefixing with `try`.
IIRC, Swift is similar.