Better HN
topnewbestaskshowjobs
Log inSign up

learningstud

77 karma · joined Jan 20, 2022 (4y ago) · 68 submissions

Submissions

comment 3y ago · link · parent

GitHub issues

comment 3y ago · link · parent

Rarely is software engineering as currently practiced actually "engineering" and "problem solving". We are mostly creating even more problems due to unreliable methodology forced down our throat. Hell, we can't even reliably identify bugs given extensive testing, fuzzing, and code review. Fashion trends like microservices cannot contain the impact of bugs in one service; all hell break loose. Instead, microservice practice aligns the software layout with HR layout (a la Conway) even more faithfully than monoliths did, and this outcome is the antithesis of engineering.

This is what Albert Camus described as "absurd". I suggest reading "The Myth of Sisyphus". That book will shed some light on how one should live in this funny world.

comment 3y ago · link · parent

There are also numerous examples to show how many people have no understanding of what he/she is actually saying. Specifically so in programming. Code snippets created by human programmers are generally only more reliable than that created by copilot by a small margin. Human programmers rarely have deep insight into the code they write unlike mathematicians often having deep insight about their theories. The fact that programmers constantly create bugs is due to their lack of understanding of the code they wrote. The only way we can stay significantly ahead of AI code generators is to program with formal methods where deep insights are directly expressed in the code whose correctness are also guaranteed by compilers at the same time.

comment 3y ago · link · parent

Or, you can have complex systems with PROOFS like CompCert and Sel4. With formal methods, you can move as fast or as slow as you like.

comment 3y ago · link · parent

No, most code is really just shit. The fact that code only gets more obscure instead of more obvious is anti-intellectual. This is the complete opposite of mathematical progress. It is due to the arrogance of programmers to think that their current codebase is the best TRADEOFF anyone could have achieved. Take the newcomers' words as monition. Be completely honest about how hard it is to think straight, and adopt formal methods like Coq as done by CompCert and Sel4. There is a reason why mathematicians DEMAND proofs. It's too easy to fool yourself. Recall how "newcomers" like Hilbert in the early 20th century revamped and closed "wide gaps" in Euclid's Element which had been considered the epitome of rigor for 2200 years. Of course, people will argue that proofs take too much time, etc. Wrong! Things move so much faster when there is absolute confidence that everything is correct. As proofs are required, one is also forced to constantly simplify things. This is what refactoring is all about: simplification.

comment 4y ago · link · parent

It's feasible to create no bugs with formal specification and formal verification. For example, with Lean 4, one can add a proof for each array-access-by-index that the index is within the bound of the associated array. Every aspect of the codebase can be subject to formal proofs that are verified by the compiler. See also CompCert and Sel4.
123