Aristotle Expands into Rust (harmonic.fun)
fuddle 5 hours ago
kennethallen 44 minutes ago
conqrr 5 hours ago
tachim 4 hours ago
For Verilog which is another language we support, for hardware, we compile the SVA assertions deterministically into Lean theorem statements about the compiled Lean embedding of the Verilog.
remywang 4 hours ago
> Aristotle compiles the provided Rust code deterministically into our proprietary Lean formal model of Rust execution (onward: the embedding).
I was also wondering how readable the auto-formalized spec is, but “proprietary” suggests the formal spec is hidden?
As a user I’d much prefer looking at the formalization myself instead of trusting the auto-formalization from natural language.
jakob_harmonic 4 hours ago
remywang 3 hours ago
jakob_harmonic 3 hours ago
More documentation on Rust specifically can be found here: https://aristotle.harmonic.fun/docs/software/rust
scorchin 2 hours ago
scorchin 2 hours ago
OreganoTrail 6 hours ago
That's crazy, I haven't seen any other system that really tries to do that.
bryanlarsen 6 hours ago
- cargo-anneal - VeriFast - RefinedRust - safety-tags - Verus
These 5 use very different mechanisms. This is still a very active research area.
bryanlarsen 5 hours ago
https://github.com/google/rust-skills/blob/main/unsafe_rust_...
tachim 4 hours ago
gregates 5 hours ago
expectfun 6 hours ago
rafram 6 hours ago
(I qualify with “in a sane world” because obviously it could happen. In a truly sane world, JavaScript would never have happened, either!)
expectfun 5 hours ago
And yeah, it feels a bit like JavaScript a while ago, that's a good comparison.
teiferer 5 hours ago
Out of curiosity, what do you envision would have taken its place in frontend, in that sane world? (Honest question, no bad faith agenda.)
irishcoffee 5 hours ago
rafram 5 hours ago
JavaScript’s biggest weakness IMO is its absolutely abysmal standard library, particularly in terms of data structures. (At least we have Map and Set now, but still no way to define a hash/equality function for a type…) The situation is so bad that essentially any other modern programming language would be an improvement.
afavour 5 hours ago
I’d counter with: as LLM driven coding becomes more and more common the PITA borrow checker is something individual developers interact with less than less. Garbage collection looks more and more like a waste when an LLM can examine memory allocations before the app is even built.
rafram 5 hours ago
siscia 4 hours ago
rafram 4 hours ago
TimTheTinker 4 hours ago
weinzierl 5 hours ago
Just because they did in the past doesn't mean they will continue to do so in the future. If we are honest then Moore's Law ended a decade ago (the latest) and we've been picking the low hanging fruit we left alone during Moore's era since. This too will come to an end for sure, just not a pretty and well defined one.
So, my conclusion is the opposite. Garbage collected and DX optimized languages made sense while processors and memory got faster, the future will be elsewhere.
rafram 5 hours ago
ChadNauseam 5 hours ago
nilkn 4 hours ago
AlienRobot 4 hours ago
rafram 4 hours ago
darksaints 4 hours ago
1) most garbage collectors are pretty lame and can't even come close to the throughput/efficiency of manually managed memory, and
2) the vast majority of software does not even come close to the frontier of what is possible with software, and therefore the thing that matters most is correctness.
Rust does a better job at correctness than most languages because the type system is so robust, and it does a better job at memory management than most languages because most languages do garbage collection so poorly.
blurbleblurble 2 hours ago
rafram 2 hours ago
pjmlp 4 hours ago
You can already see this taking of on low code, no code tooling, reinvented as SaaS agentic runtimes.
Or check SIGPLAN papers on machine learning based compilers.
aw1621107 3 hours ago
Mind providing some examples? My (admittedly probably dated) understanding of how ML is used in compilers is for picking heuristics/thresholds/other things for which there's no known optimal "right" answer (e.g., pass order, inlining thresholds). Everything else was done in the "traditional" manner, which meant that the machine learning bits were, strictly speaking, completely optional. I haven't heard of compilers where ML techniques are integral to the process to the point where removing any ML bits would result in a nonfunctional compiler.
pjmlp 3 hours ago
"Compiler 2.0: Building the Next Generation Compilers with Machine Learning"
aw1621107 2 hours ago
tachim 4 hours ago
gaogao 4 hours ago
tachim 3 hours ago
IshKebab 3 hours ago
ajasmin 6 hours ago
tachim 4 hours ago
5555watch 6 hours ago
cgio 3 hours ago