128 karma · joined Apr 16, 2020 (6y ago) · 24 submissions
comment 3y ago · link · parent
comment 3y ago · link · parent
Nowadays, the only problems I have with Steam stem from my credit card's security mechanisms.
comment 3y ago · link · parent
That's what happens if the buyer is also the user, I guess.
comment 3y ago · link · parent
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
comment 3y ago · link · parent
[1]: https://apps.apple.com/us/app/paper-by-wetransfer/id50600381...
8.
Overpowering TikTok Filters(axbom.com ↗)
1 points · by Kolja · 3y ago · discuss
comment 4y ago · link · parent
Not disagreeing, just lamenting the sad state of journalism nowadays, at least as I perceive it.
comment 4y ago · link · parent
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.
comment 4y ago · link · parent
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.
comment 4y ago · link · parent
comment 4y ago · link · parent
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.
comment 4y ago · link · parent
comment 4y ago · link · parent
[1]: https://rust-lang.github.io/mdBook/ – the website itself is a demo of the sites produced by mdbook.
comment 5y ago · link · parent
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.
comment 5y ago · link · parent
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.
comment 6y ago · link · parent
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.