Better HN
topnewbestaskshowjobs
Log inSign up

deterministic

2,859 karma · joined Feb 27, 2013 (13y ago) · 3,460 submissions

Submissions

comment 1y ago · link · parent

I use a custom code generator for that. It works much better than trying to explain to an AI exactly what I want. Yes it’s a it more work up front but worth it IMHO.

comment 1y ago · link · parent

This is yet another example of how declarative languages almost always evolve into full programming language if popular enough.

Usually with really bad syntax because the original design didn't expect that to happen.

comment 1y ago · link · parent

I love the fact that lifestyle businesses like this can still work

comment 1y ago · link · parent

I work for a company that mostly sells complex desktop software (with complex backends) using a subscription model.

comment 1y ago · link · parent

What works great for me:

I auto test the API of the server/system/library/module I am responsible for. Nothing else. No auto testing of internal details.

It lets me completely rewrite internals without breaking the tests.

The API tests needs to be so good that another developer could implement the same server/system/library/module using the tests only.

And the API tests needs to try as hard as possible to break the code being tested.

Using this method I have had zero bugs in production for the last 5+ years.

comment 1y ago · link · parent

It was just a joke pointing out that evaluations are whatever you want it to be.

comment 1y ago · link · parent

There will always be youngsters who love to dive into machine code and low-level stuff. And there will always be a need for developers who can code low-level efficient device drivers, game engines etc.

So software abstractions is not something I worry about when it comes to the survival of civilization. Nukes seems to be more of a real threat IMHO.

comment 1y ago · link · parent

I recently sold a single share for $1 which valuates my business at roughly $20B given that I have 20B shares to sell.

Let me know if you want to buy some of those shares. They are hot!

comment 1y ago · link · parent

I completely agree. Also, working on a game that looks cool is a huge motivation boost. Especially because people get excited when you show them the game. Show them a game full of grey boxes won't do that.

490.

When Computers Write Proofs, What's the Point of Mathematicians?(youtube.com ↗)

2 points · by deterministic · 1y ago · discuss

comment 1y ago · link · parent

A human can learn from just a few examples of chairs what a chair is. Machine learning requires way more training than that. So there does seem to be a difference in how human intelligence works.

comment 1y ago · link · parent

Having refinement types in Rust would be a massive game changer. It would make it possible to write proven correct software directly in Rust. Hey even I would switch from C++ to Rust :)

comment 1y ago · link · parent

ACL2 is a proof assistant. AP5 seems to be more of a relational data structure language.

494.

The Hylo Programming Language(hylo-lang.org ↗)

4 points · by deterministic · 1y ago · discuss

comment 1y ago · link · parent

My experience as well. Apparently the Turbo Pascal developer implemented the compiler as a one pass compiler generating machine code while parsing. It dramatically reduces memory usage and increase speed, while reducing the opportunity to optimize the machine code at a higher level.

comment 1y ago · link · parent

You can turn any programming language into a super productive “low code like” development platform by adding the necessary libraries/frameworks.

I personally use a code generator to generate more than 90% of the C++ and Javascript code that a typical biz client/server application needs. Protocols, Database support etc. Using libraries to do what isn’t application dependent.

And when I occasionally (rarely) need a new feature not supported by the code generator or libraries, I simply add it as needed.

I highly recommend building your own code generator/libraries. Yes it takes a bit more time up front, but you get a solution that is tailored and perfectly shaped to your (team) needs. And you don’t end up depending on some open source project that has been abandoned or changed in a direction that you don’t agree with.

comment 1y ago · link · parent

There is nothing to “get” that is worth getting unless you are interested in pure math. As a programmer we already know how to compose types/functions/applications/systems. No need for category theory to understand how to do that.

comment 1y ago · link · parent

My experience as well but using the ZX-Spectrum. Trying to figure out why the machine code I hand translated from Z80 assembler crash the computer taught me a lot. No internet to ask for help. Just a book explaining how to program the ZX-Spectrum using machine code. I was 11 at the time.

comment 1y ago · link · parent

Let me fix that typo:

HP never again.

That’s better!

comment 1y ago · link · parent

Huh? Monoliths never went away in the first place so not really news IMHO.

comment 2y ago · link · parent

I mostly agree. One thing to add:

Your tests should test the API of the code/module/system you are responsible for. Nothing else.

And the tests should really push your API to the limit and beyond. For example, if your API is a server (with a HTTP API) then have N clients try to use it at the same time, as fast as possible, and see what happens.

And of course measure memory usage, disk usage etc. while running these tests continuously for days.

This will automatically test everything you depend on. And you will know instantly of any of the dependencies you rely on have changed in a way that impacts your code.

I have had zero (yes zero) bugs in production for years. Only because of tests that really push the servers I am responsible for hard. Way harder than any customers would.

While the tests often reveal that I am very capable of adding bugs to the code :)

The systems I typically work on are large C++ applications used by large international companies you most likely have heard about.

comment 2y ago · link · parent

Am I the only one who doesn't find this useful at all?

It is very much the opposite of keep-it-simple and use-what-is-proven.

comment 2y ago · link · parent

Yep all the time. 30+ years old C/C++ large scale software used by companies you have heard about around the world.

comment 2y ago · link · parent

Those were good days! I was learning machine code programming from a book as well when I was 11. Hand translating assember to bytes. No internet. Nobody to help when I got stuck. Just my (constantly crashing when I got it wrong) ZX-Spectrum and a book. Those were fun times!

comment 2y ago · link · parent

I was programming the ZX-Spectrum in machine code when I was eleven. And discussing what I was doing with other (geeky) kids my age.

506.

Fat: Why It Matters and What to Do About It(youtube.com ↗)

1 points · by deterministic · 2y ago · discuss

comment 2y ago · link · parent

Visual programming languages are very common.

Examples are game engines (Unreal and Unity), 3D art/effect tools (Houdini), Simulink etc.

comment 2y ago · link · parent

Take a 2 week vacation. It gives you the chance to think about what you want to do with the rest of your life without work distractions.

comment 2y ago · link · parent

I watched all 5 videos a few years ago. And if I understand it correctly "Computational Type Theory" basically defines a type as describing the behaviour of a computation.

Which is really interesting but kinda hard for me to wrap my arms around compared with Martin Loff type theory. It looks as if type checking will have to be done manual, using N axiomatic rules for how you can prove A from B.

Is that your understanding as well?

Also, there doesn't seem to be much material on Computational Type theory online. Any good references? (Except for the nuPrl book of course).

1
161718
116