Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,860 karma · joined Feb 27, 2013 (13y ago) · 3,465 submissions

Submissions

comment 3y ago · link · parent

CompCert is a good example of Coq used to develop complex commercial proven correct software.

comment 3y ago · link · parent

You are working for a company managed by incompetent managers. It’s that simple. I highly recommend finding a company that knows how to manage people. I am speaking as a former manager, entrepreneur, and employee.

comment 3y ago · link · parent

> premature abstraction leads to heartbreak.

Anything that is “premature” is per definition incorrect. So there is no information in that sentence.

Having said that, a lack of architectural abstractions leads to badly designed code with a WTF count reaching the heavens. Have you ever seen UI code directly relying on a specific flavour of SQL implementation and database? That’s an example of how a lack of architectural abstractions leads to spaghetti code. Or how about the domain logic directly relying on a specific UI framework? Another example where an early architectural abstractions would have saved years of maintenance work. Again something I see all the time in the wild.

814.

Thorium Molten Salt Reactors(youtube.com ↗)

2 points · by deterministic · 3y ago · 2 comments

815.

Theorem Proving in Lean 4(leanprover.github.io ↗)

4 points · by deterministic · 3y ago · discuss

comment 3y ago · link · parent

If you are in 4 or more meetings in a day and receive 100+ emails then your manager is incompetent and should be fired. The whole point of being a good manager is to maximise the real work produced by the team. Which means minimising interruptions.

comment 3y ago · link · parent

> It's been my experience that you can't tell who's smarter than who by what they do for a living.

There are always exceptions of course. But it is most definitely true that (for example) the average IQ of people doing high end physics is way higher than the average IQ of people laying bricks.

comment 3y ago · link · parent

Excellent work. Thanks for sharing!

comment 3y ago · link · parent

Nobody forces you to use Microsoft products. Also, Microsoft is a large group of people with different motivations, personalities, and incentives. Sometimes the “good” people win the internal political battles, and sometimes the “bad” people win. Exactly like OSS. There are examples of evil sociopathic people involved in OSS, and plenty of political battles, oversized egos etc. However that doesn’t mean than all of OSS is evil. Same with Microsoft.

comment 3y ago · link · parent

“Trigger’s broom” is an identifier not the physical thing itself. So it makes perfect sense for the physics to change while the identifier stays constant. The same way that the identifier of a mutable variable in a programming language never change; but its value might change all the time.

comment 3y ago · link · parent

I have seen zero evidence that “AI’s” can take over the job of even junior developers.

comment 3y ago · link · parent

Frameworks are great if your application fits perfectly into the subset of applications that the framework was designed for. However the moment your applications grows beyond the design boundaries of the framework, you might end up in a situation where you have to drastically rewrite the app or even do a complete rewrite.

Which is why I have always been more productive long term using my own frameworks. It takes longer to get started, but once you get the train going, nothing stops it.

comment 3y ago · link · parent

Understand that all the tech is the same under the surface. Reach enlightenment by learning how to quickly map the surface to the underlying reality.

824.

An Introduction to Model-Based Systems Engineering (MBSE)(insights.sei.cmu.edu ↗)

4 points · by deterministic · 3y ago · discuss

comment 3y ago · link · parent

I make a living as a high-performance JIT compiler writer, and the dragon book is a waste of time in my opinion. There are much better books out there. If you are a beginner, start by learning Recursive Descend parsing. And then learn LLVM.

826.

Kevin Buzzard: The rise of formalism in mathematics(youtube.com ↗)

2 points · by deterministic · 3y ago · discuss

comment 3y ago · link · parent

I was married 20+ years. Don’t recommend it. Instead find a partner who has his/her own life and share the good times between you. Adjust time spent together up/down as needed to not get bored/complacent. Do not get involved with a person who aren’t mature enough to have their own life without you.

comment 3y ago · link · parent

Fields Medalist Peter Scholze does not agree with you:

https://www.microsoft.com/en-us/research/project/lean/

“Lean has already demonstrated its potential to revolutionise and radically accelerate mathematics, for example, helping Fields Medalist Peter Scholze confirm a new theorem in the Liquid Tensor Experiment.”

comment 3y ago · link · parent

I feel offended by woke people.

comment 3y ago · link · parent

Nope. Most languages have strong leadership and zero chance of taking anything from C/C++. And it will takes a very long time for Rust to get even 5% of the C/C++ market. There are more than 6 million C++ programmers out there. And new C++ projects are started every day.

comment 3y ago · link · parent

Nope. With proof systems you have to convince the software. With traditional mathematics you have to convince a group of peers.

Unless of course you consider interacting with software to be “social”.

comment 3y ago · link · parent

I recommend reading the actual study:

“Multivariate analysis indicates that economic elites and organized groups representing business interests have substantial independent impacts on U.S. government policy, while average citizens and mass-based interest groups have little or no independent influence.”

https://www.cambridge.org/core/journals/perspectives-on-poli...

comment 3y ago · link · parent

I highly recommended not assuming that the engineers working for Intel are idiots. If something seems like an “obvious” mistakes by you, then it is highly likely that you have zero clue on the constraints that forced the decisions.

comment 3y ago · link · parent

Game developers (usually) master this. Introducing a complex game step-by-step without overwhelming the player.

comment 3y ago · link · parent

It is never going to happen in the US. The US stopped being a democracy a long time ago:

https://www.bbc.com/news/blogs-echochambers-27074746

comment 3y ago · link · parent

If you are a software developer then this is the #1 choice:

https://softwarefoundations.cis.upenn.edu/

It will not only make you a better software developer (by improving how you think) it will also show you how to prove software correct. And it is fun!

comment 3y ago · link · parent

The paper shows its age. A lot has happened since 1979. Projects like CompCert, seL4, Project Everest, Coq, Dafny, F* etc. shows what can be done with modern proof tools. And it is getting better every day.

And I will claim that “formal” proofs, as practiced today by most professional mathematicians, are basically just informal proofs with more details, reviewed by flawed humans in a social process. Nothing wrong with that of course! But just pointing out that it doesn’t reach the high level of confidence that modern proof tools can deliver.

The LEAN/mathlib project is an interesting example of what the future of truly formal mathematics might look like.

comment 3y ago · link · parent

I maintain a high-performance JIT compiler used by large corporations around the world to run complicates business rules for logistics and optimisations. It uses LLVM as the backend for machine code generation.

I mostly disable the optimisations provided by LLVM. Because it makes code generation much slower with almost no performance gains. Writing high level optimisation passes before converting the AST to LLVM is what made the generated code super fast.

LLVM has no knowledge of the semantics of the language. So it can only optimise low level details that the higher level optimisations will get rid of anyway.

It seems to me that the LLVM optimisations are only of benefit to you if you generate really bad LLVM code in the first place.

comment 3y ago · link · parent

I think it is a big plus that the JavaScript community embrace code generators.

I mostly write C++ for a living, and I use code generators all the time. Generating C++/Java/Typescript/SQL/… from high level declarations.

Code generators are great tools for automating away the necessary but no-thinking-required parts of a typical app. I am typically able to code generate more than 90% of the application code needed to implement a new client/server business system. So why not use it?

1
272829
116