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

Computer scientists routinely prove theories with an infinite number of states. It is actually usually the easiest way to prove things because you don’t have to handle edge cases.

A typical theory says:

For all x:A, P x

In other words, given any x (from an infinite set A) P x is true. Where P is a proposition.

You typically prove it using straightforward induction/recursion.

comment 3y ago · link · parent

It doesn’t matter. What matters is if you can prove things you care about true for code you care about.

And yes we can prove termination and zero bugs for a lot of practical useful code. Examples: seL4 is a proven correct micro kernel and CompCert is a proven correct C compiler.

The trick is to use programming languages that are total i.e. not general infinite tape turing machines.

comment 3y ago · link · parent

That might be your experience but not mine. I believe there is no right choice for everybody. So pick what works for you and move on.

comment 3y ago · link · parent

SeL4 and CompCert are examples of software that is proven correct using a very strong type system.

comment 3y ago · link · parent

It might be true for you. But it is most certainly not true for me. I am way more productive using typed languages.

(30+ years of experience here working on million+ lines systems).

comment 3y ago · link · parent

It is pretty much impossible to prove this one way or another. I also believe it varies from person to person. I am personally way more productive using typed languages. However others claim the opposite. And we might all be right.

comment 3y ago · link · parent

Did you pay for the roads you drive on or your freedom others died for? Do you pay for insurance? It’s kinda hard not to indirectly pay for others bad choices.

comment 3y ago · link · parent

> Bad codebase don't deserve developers in my view

Bad codebases most definitely deserve developers if it makes lots of $.

I recommend reading “How to work with legacy code” on how to do it in practice.

comment 3y ago · link · parent

Sure let’s all stop having fun and instead work non-stop all the time to “maximise our potential”. Because that is what life is all about right? Surely nobody wants to “waste” their time enjoying themselves or having meaningful relationships right? Let’s all bow before the God of Productivity. May we all grind ourselves to death sacrificing our lives in the honour and glory of Productivity the Glorious. If you are having fun or enjoying yourself you are clearly not working hard enough. Shame on you!

comment 3y ago · link · parent

How about the complete waste of engineers spending their career optimising ad revenues and attention grabbing? If Google or Facebook disappeared into a black hole tomorrow it would be inconvenient but we would all be fine. However if the people maintaining the electric grid or farms disappeared tomorrow most of us would not survive for long.

comment 3y ago · link · parent

I completely agree. I have been looking for a long while and I haven’t found any examples where using CT made sense. There seems to be a lot of “look at me I am a mathematician!” usage of CT to obfuscate what is really very simple ideas that could otherwise have been explained much simpler without requiring the reader to know an obscure subset of CT.

So your basic idea happens to be a Co-Variant Non-Infinitoid Subspace Category? Seriously who cares?

comment 3y ago · link · parent

An excellent way to make decisions about technology. 95% of new tech is full of bugs and won’t be maintained a few years from now.

comment 3y ago · link · parent

I highly recommend reading “Working Effectively with Legacy Code” BEFORE even considering a rewrite. Isolating and rewriting parts of a legacy system step by step is almost always the right way to do it.

comment 3y ago · link · parent

Nope. I work on software that is 40+ years old. The code runs major airlines and airports with very few problems. We are currently upgrading it to run in a browser. Without rewriting it.

comment 3y ago · link · parent

30+ years of experience developer here. I am happy with JIRA. It isn’t perfect but nothing is.

comment 3y ago · link · parent

Yep agree. And I am sure the CEO will still get his big bonus end of tax year despite his public display of incompetency. The rules are different for the aristocrats obviously.

707.

Unity Backtracking(twitter.com ↗)

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

comment 3y ago · link · parent

Nope. Companies don’t make decisions. Humans working for companies do.

comment 3y ago · link · parent

I use C++ and Poco. Works great!

comment 3y ago · link · parent

I haven’t seen any examples of that in practice. And I was deeply into category theory for a while.

comment 3y ago · link · parent

It won’t. I have studied it enough to realise that it doesn’t give me anything new. I have learned a lot more studying (Martin Loff) Type theory. Which is also a solid foundation of math by the way.

comment 3y ago · link · parent

Or perhaps use a crypto library that is actually formally proven correct:

https://project-everest.github.io/

comment 3y ago · link · parent

I agree that devs can and regularly do fuck up anything they touch.

comment 3y ago · link · parent

I work on very large monoliths all the time. The kind of code that runs international airlines and airports. I run it locally in a VM. No problem.

comment 3y ago · link · parent

That sounds crazy. Imagine how much worse it would be if it was a microservices system!

comment 3y ago · link · parent

The worst WTF system I have ever seen in my 30+ years career was a microservices system.

The best most maintainable systems I have ever worked on were all 1 million+ line monoliths. Split into N libraries with clean API’s and separate teams working on them.

You have a problem so you pick microservices. Now you have N*(N-1) problems.

comment 3y ago · link · parent

If you want a performant application use C++ and Win32. Yep I am serious.

comment 3y ago · link · parent

There are more than 5 million C++ developers out there. The world runs on C++ (and C) software.
1
232425
116