Should a sale save itself, or should a repository or a database save it? A class-based language makes every function answer a second question on top of which module it goes in: which object owns it. C++, Java and even Rust, through its impl blocks, ask it. Draconyx keeps structure in types and behaviour in free functions whose calls name every argument, so no argument is the owner and the question does not come up.
Blog
Notes on Draconyx
Articles about the Draconyx language: its design, its compiler and the choices behind them, newest first.
In 1996 the first Ariane 5 rocket was lost, half a billion dollars by media reports, because a number assumed to fit in 16 bits did not, and the check that would have caught it had been left out to save time. Design by contract writes such an assumption down, but checks it while the program runs, where it can be switched off. In Draconyx it is a rule on a type, proven when the program is built, so flight software written in Draconyx has no rule checked in flight and nothing to switch off.
Six everyday mistakes, each made once in Rust and once in Draconyx, with what each compiler says about them.
In Java, C++ and Rust, text from the command line, the network or a model has the same type as text the program wrote. Draconyx gives it a type of its own, Tainted, at its source and lets it out only through a check the program writes, which reports every problem at once.
Java marks a missing value with null or an Optional, C++ with a null pointer or a std::optional, Rust with an Option in the type. Draconyx puts it on the name, where every call shows it and every caller has to deal with it.
Stay tuned
The dragon is hatching. Be first to know when Draconyx launches, and hear about every new feature the moment it lands. Updates only, straight from the source. One click to leave.
We send a confirmation link first. Nothing arrives until you click it.
Get in early
Want in early? For design discussion, collaboration, or to train or evaluate models on Draconyx, email us.