Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

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

Submissions

comment 4y ago · link · parent

Non-proven correct code doesn’t even have specs you can test the code against. So comparing non-proven code without a formal spec with code that has a formal spec and an end-to-end proof chain from spec to machine code, and then saying they are equally likely to be buggy is frankly ridiculous.

comment 4y ago · link · parent

Was it a proof by hand or using a formal proof tool? Never trust proofs that aren’t formally verified by a modern proof tool.

comment 4y ago · link · parent

Not true for non-Turing complete languages. Which is why all proof tools require a proof of termination. Some do it automatically (essential ruling out Turing complete languages) others require a formal proof of termination by the user.

comment 4y ago · link · parent

Don’t forget that you decide how quickly you want to change how you develop applications. Don’t be a Lemming.

comment 4y ago · link · parent

The end result is generated C code. So you could simply add the generated C code to the kernel like you would any other C code. And keep the proof chain separate from the kernel. My guess is that it is what Microsoft is doing with the kernel code.

comment 4y ago · link · parent

Rust doesn’t stop you from writing buggy code. However I do agree that it is easier to write memory safe code in Rust compared with C/C++.

comment 4y ago · link · parent

The Police seems to be in an impossible situation: if they don’t try to fight crime in a minority neighbourhood then they are “racist” (focusing on the rich neighbourhoods). If they do try to fight crime in a minority neighbourhood then they are also “racist” (for “targeting” specific races/cultures). It is especially difficult if they try to fight crime in a violent dangerous minority neighbourhood where every routine check/stop can turn into a deadly gunfight in seconds. There are minority neighbourhoods where 97% of violent crime/murders are committed by people of the same race/culture living in that neighbourhood. And yet a single Police incident gone wrong will completely overshadow the reality of this. Imagine being a police officer risking your life every single day. Knowing that the next person you stop might try to do his/her best to kill you. While also knowing that any mistake you make will be headline news around the world. It’s an impossible situation.

comment 4y ago · link · parent

What’s your point?

comment 4y ago · link · parent

If the logic you are checking is tedious then using a different tool won’t necessarily help you. You still have to explain all the tedious details to that tool. Perhaps making your own abstractions in Python might work better. If you have a lot of “this bit needs to match that bit in this register” then add a function that takes just the bit/register numbers and automatically does the rest. Then you have in a sense created your own DSL within Python. Learning a new complex tool like Z3 will most likely take longer than just doing it in Python. However it might be fun to learn Z3 of course.

comment 4y ago · link · parent

Friends of mine have happily married woman they met online. So it seems to work just fine. At least in some cases.

comment 4y ago · link · parent

The GP will not change at all. Most GP’s are basically glorified pill sales people, matching symptoms to pills or specialists, and optimising for the number of patients they see per hour. Not long term health outcomes of their patients. The most revolutionary change would actually be the recognition of your diet as one of the most important things to get right when it comes to your long term health. But most GP doesn’t get any training in Nutrition and the training they do get is usually wrong. Things are slowly improving but it will take a long time and it has nothing to do with tech.

comment 4y ago · link · parent

Formally Proven Binary Format Parsers:

https://www.microsoft.com/en-us/research/publication/hardeni...

1453.

Hardening attack surfaces with formally proven binary format parsers(microsoft.com ↗)

150 points · by deterministic · 4y ago · 61 comments

comment 4y ago · link · parent

That’s obvious of course. If you have no money then you can’t invest for the future. However the majority of people living in rich western countries most definitely can put 10% or even 20% aside every month by lowering the living standards accordingly.

comment 4y ago · link · parent

I think you are right if it is the good managers being fired. If it is the bad managers being fired then it is 100% a good thing. A real world example is Steve Jobs turning Apple around after Sculley nearly ran it into the ground. Jobs did it by firing most of middle management. Basically anybody who was not directly contributing to products. It worked.

comment 4y ago · link · parent

Yep its the same in other rich western countries. People spend more than they earn and have very little financial literacy. If they put 10% aside every month and invested wisely their long term financial situation would be dramatically better. But it requires longer term thinking. Not a common trait.

comment 4y ago · link · parent

It’s easy to massively improve the performance of most companies:

1. Fire 50% of managers. 2. Use the salary money saved to hire people doing the actual work. 3. Wait for a while to see how much things have improved. Repeat if overall performance has improved (it almost always has).

comment 4y ago · link · parent

This reminds me that C/C++ are probably the most successful programming languages in history. They are ancient compared with the competition but new projects are started every day in C/C++ and most of the worlds software runs on top of C/C++. JS/TS/Python for example runs on top of runtimes written in C/C++, running on top of an OS written in C/C++, running on top of a CPU designed with tools written in C/C++ etc.

comment 4y ago · link · parent

Because CEOs pretty much decide their own salary. CEOs are on each other’s boards, making sure that CEO salaries are never questioned.

comment 4y ago · link · parent

The wealth distributions are different. For example, minimum pay is higher in other western nations. The richest people are richer in the US but the poor people are poorer. So depending on how you cherry pick incomes/wealth you can show whatever you want. I personally care more about how a nation treats its poor than how wealthy the most wealthy people are. But YMMV of course.

comment 4y ago · link · parent

Yep agree. Always be aware of simple solutions to complex problems. Economics as you say is a great example of this. There are more than 9 major schools of economics. All of them disagreeing with each other and with people promoting each one with the dogmatic frenzy of religious fanatics.

comment 4y ago · link · parent

It’s only a trivial insight if you agree. Most people don’t. I have worked with many developers who believe that whatever they value is obviously the right values and everybody else just don’t get it. Every time a developer claims they have made a “rational” choice you know you are seeing one of them in their natural inhabitant.

comment 4y ago · link · parent

If you spend everything you earn then you will be living paycheck to paycheck. No matter how much you earn. If instead you take 10% of your monthly after tax pay and invest then you won’t. Millionaires have gone bankrupt because they didn’t have the financial education/understanding needed to handle money. And in contrast, people who are not millionaires have build investment portfolios over many years that have given them financial independence. It’s all about financial intelligent/skills/literacy not about how much you earn.

comment 4y ago · link · parent

What you think of as “average” is actually obese/unhealthy. It is “average” because of most Americans being overweight/obese. Look at photos form the US taken 40 years ago and you will see what healthy non-obese people look like.

comment 4y ago · link · parent

The problem is not fat. The problem is insulin resistance. You can be skinny and extremely unhealthy (non-alcoholic fatty liver for example).

comment 4y ago · link · parent

Australia.

comment 4y ago · link · parent

All tech choices are in reality based on the whims of the developers who make the decision. I see developers make so called “rational” decisions all the time but other developers in the same situation would make very different “rational” decisions. The reason is because different developers value things differently and no amount of “rational” decision making can change that. It’s exactly the same reason why we have politics. People value different things and no “rational” algorithm can fix that.

comment 4y ago · link · parent

Advanced type systems are fun to play with. But unfortunately some people get carried away and build a mountain of unnecessary complexity that other developers then have to deal with. A bit like Lisp macros. It is fun to implement your own type system and DSLs in Lisp. But the result is likely to be completely unmaintainable by anybody else and yourself a year later when you have forgotten how it works. I have seen the same happen with templates in C++. Developers that spend weeks having fun building a mountain of template hell to solve a problem that could have been solved in a few hours without template magic. As with everything else, keeping an eye on the benefit/cost ratio is key.

comment 4y ago · link · parent

Other examples are Agda and Lean.

comment 4y ago · link · parent

Non-proven correct software doesn’t even have formal specs. Having a formal spec is already light years ahead of other software because it forces you to nail down exactly what the code is supposed to do.
1
484950
116