Recent submissions

Comment · 11 months ago
All this hassle can be avoided by using `cleanup` compiler attribute.

Manage classical C resources by auto-cleanup variables and do error-handling the normal way. If everything is OK, pass the ownership of these resources from auto-cleanup variables to C++ ctor.

Note this approach plays nicely with C++ exception, and will enter C standard in the form of `defer`.

Comment · 1 year ago
Note that these books were written when design pattern was still a buzzword.
Comment · 1 year ago
The real issue is determining how much non-renewable resource consumption is justified for these "valuable" things? Note that we are always inclined to value ourselves too much.

I agree the things you mentioned are valuable in the very common sense and I deliberately assign them no value to the avoid the above issue.

Comment · 1 year ago
IIRC, all latency-driven congestion control algorithms suffer from violent rtt variance, which happens frequently in wireless networks. How does BBR perform under such circumstances?
Comment · 1 year ago
It's all about human technology, which enables massive resource consumption.

I should really say humans never truly produce anything in the realm of technology industry.

Comment · 1 year ago
> The future may reduce the economic prosperity and push humanity to switch to some different economic system (maybe a better system).

Humans never truly produce anything; they only generate various forms of waste (resulting from consumption). Human technology merely enables the extraction of natural resources across magnitudes, without actually creating any resources. Given its enormous energy consumption, I strongly doubt that AI will contribute to a better economic system.

Comment · 1 year ago
I just checked it for Rust:

"18 17 change Rust page Rust 0.97% -0.20%"

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton