HNHacker News
TopNewBestAskShowJobs

pencilguin

396 karma · joined October 16, 2022

submissionscomments
pencilguin··on NSA urges orgs to use memory-safe programming languages
What is being turned off is not safety itself, but automatic enforcement of rules.

If course no one wants to ship actually unsafe code, and it is very rare to do it in Rust or modern C++ programs. But it is depressingly common in C programs and mostly-old programs like Chromium, and in the C libraries that programs of all kinds still depend on.

pencilguin··on Thank God for Mississippi
The GOP hype of crime in the last election was a desperate play of the old "southern strategy", race-baiting, that fell flat because crime rates are still way down, and most of the noted crime cases lately involve rich and extremely rich people.
pencilguin··on Alzheimer’s Disease Can Be Diagnosed Before Symptoms Emerge
Alzheimer's can be actively prevented via aggressive treatment of latent herpes infections; and regular vaccinations as diverse as flu and Tdap through still poorly-understood mechanisms.

But almost all of annual $2B grants still go to stalling amylose and tau in custom-bred mice.

pencilguin··on C++20 coroutines and io_uring
Others have integrated io_uring with asio, and asio with co-routines. The performance is about the same. The complexity is a matter of taste: asio offers lots built in that you would need to code yourself for the next project.

I generally lean toward lower total complexity at cost if more custom coding, but it is a big tent.

pencilguin··on Less is exponentially more (2012)
Yes. Programming in C++11 was an overwhelmingly better experience than before. C++14 is, additionally, much more fun.

Coding C++17 is better than C++14, mainly for its destructured bindings and improved variadics.

Coding C++20 is much better, again. chiefly because of Concepts, but co-routines will become increasingly important as library support surfaces.

It has been a long time since I shipped a memory usage fault. Languages that promise to make those impossible are hyped now, but their promoters are "fighting the last war".

What makes the difference today is productivity. C++ is still leading that charge. Hype notwithstanding, more people take up programming C++ professionally in any given week than the total paid to code Rust. Soon, many of those Rust coders will begin to jump ship for newer languages.

pencilguin··on Why are U.S. transit projects so costly? This group is on the case
You are very, very confused.
pencilguin··on Why are U.S. transit projects so costly? This group is on the case
You seem to take "easy" to mean a different thing.
pencilguin··on Gzip exceptions, but only on hot or rainy days
Anyway, disgraceful that the electrician failed to diagnose Al or any of it on the first visit.
pencilguin··on NSA urges orgs to use memory-safe programming languages
It is objective fact that some flying objects have not been identified by all observers, and that some objects presumed flying are, in fact, not.
pencilguin··on The Cost of Exception Handling
Or, rather, pays literally all the time, exceptions or no.
pencilguin··on The Cost of Exception Handling

  void construe(), destroy();
pencilguin··on The Cost of Exception Handling
Confirmation bias is always common, but not a thing to boast of.
pencilguin··on Ask HN: Where are all the mechanical engineers?
I would like to hear that you are working on construction robots to install bifacial solar fences on working farms, making them dual-use, as opposed to dedicated-use solar farms, which I consider a dead end.
pencilguin··on NSA urges orgs to use memory-safe programming languages
Where there is no need for any unsafe construct, code that therefore does not use them is safe.

The same applies to, e.g., Rust: any Rust program may use unsafe blocks. That Rust programs may contain unsafe blocks does not make Rust implicitly unsafe. Even using unsafe blocks does not, by itself, make the program unsafe.

pencilguin··on NSA urges orgs to use memory-safe programming languages
Where there is no need for a native pointer to be used, as almost everywhere, and no pointer is used, that code is objectively more modern than code that uses the pointer anyway. It is very rare to need to use a native pointer in modern C++ code. The need for one is strictly less common than a need for an unsafe block in Rust.

Your argument applies equally well to Rust: any Rust program may include unsafe blocks. That any program may contain unsafe blocks does not make Rust implicitly unsafe. That a Rust program does (transitively) contain unsafe blocks does not make it an unsafe program. All substantial Rust programs at least transitively contain unsafe blocks.

Thus, your argument is invalid.

pencilguin··on NSA urges orgs to use memory-safe programming languages
You may call something that does not exist anything you like except the name of a thing that does exist. Anything that you say about a thing that does not exist is vacuous.

It is objective fact that all female former US presidents can fly by flapping their wings.

pencilguin··on NSA urges orgs to use memory-safe programming languages
C++20 is an International Standard, superseding all previous Standards. Programs that use C++20 constructs in preference to pre-C++11 constructs are objectively more modern, to the exact degree they do.
pencilguin··on Why are U.S. transit projects so costly? This group is on the case
It is not about legitimate costs. It is about legalized corruption. Projects are super-expensive because the overwhelming majority of money spent goes to line pockets instead of building.

The US's innovation has been to make corruption wholly legal, proof against indictment

pencilguin··on Resolving the great undo-redo quandary
It always astonishes me that undo, redo, and auto-save are implemented without relying on a logging mechanism akin to databases' "write-ahead logs".

To me the main problem of maintaining "redo" actions is of identifying them. They are unnamed, and presenting and recognizing an alteration is hard.

pencilguin··on NSA urges orgs to use memory-safe programming languages
It means that conclusions based on pretending it is a meaningful expression are tainted at the source, and thus may be presumed invalid without further examination.

If you are coding C or pre-modern C++, then you are not coding modern C++, regardless of the compiler you happen to build with.

pencilguin··on NSA urges orgs to use memory-safe programming languages
We may presume that, coming in C++, competent modern C++ developers could be found, unlike for immature languages.

Building everything performance-critical with immature languages is not a viable alternative. But building with modern C++ is one.

pencilguin··on NSA urges orgs to use memory-safe programming languages
Do you prefer "opt out"?
pencilguin··on NSA urges orgs to use memory-safe programming languages
There is no language named ADA. Never was, unlike (say) FORTRAN or COBOL.
pencilguin··on NSA urges orgs to use memory-safe programming languages
Firefox is mostly old (i.e. pre-modern) C++. And even relies on a great deal of C code. Like Chromium.
pencilguin··on NSA urges orgs to use memory-safe programming languages
There is no C/C++ language. There are no C/C++ devs. So, no.

There are some who develop in both C and C++, along with any other language you can think of. I do not encounter the expression "C++/Rust dev", although it is extremely common for those programmers who do Rust at all to do both.

pencilguin··on NSA urges orgs to use memory-safe programming languages
We may presume the Modern C++ version would have been done even faster, then, and without memory faults.
pencilguin··on NSA urges orgs to use memory-safe programming languages
There is no such language as "C/C++". Using the expression reveals tendentious bias.

Those of us using modern C++ do not ship memory usage faults, and have not done for years. So, experience with C and pre-modern C++ does not generalize.

pencilguin··on Engineers are exploring radical new designs for commercial planes
Airframes equipped to use LH2 will, wherever deployed, lock out competitors without, because the lower takeoff fuel weight allows for more paying cargo instead, and because hydrogen electrolysed right there at the airport should be cheaper per joule than petroleum mined, transported, refined, and transported again.

But inboard LH2 tanks seem to present a safety hazard, wings have not enough room. That seems to leave underslung nacelles. None of the concept designs illustrated have them.

pencilguin··on Warren Calls Out Wells Fargo and Zelle for “Evasive” Responses about Fraud
Probably making white-collar, and elected, police and prosecutor corrruption illegal, and prosecuting that, would engender greater respect for the law.
pencilguin··on Building a semantic search engine in Rust
Was there any doubt that it could be done in Rust? In "safe" Rust?

If not, why is it in the title?

← PreviousPage 5 of 16Next →