DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
Posted May 2, 2022 13:14 UTC (Mon) by HelloWorld (guest, #56129)In reply to: DeVault: Announcing the Hare programming language by ddevault
Parent article: DeVault: Announcing the Hare programming language
Posted May 2, 2022 13:20 UTC (Mon)
by ddevault (subscriber, #99589)
[Link] (9 responses)
Posted May 2, 2022 18:17 UTC (Mon)
by linuxrocks123 (subscriber, #34648)
[Link] (5 responses)
The reception you've gotten from others in this comment section is very unfortunate, although, given the people involved, I'm also not terribly surprised they're acting this way. A good philosophy for handling negativity from ignorant, opinionated blowhards is to just ignore them and keep doing what you love. I'm sure you'll make something great with Hare.
Posted May 2, 2022 18:19 UTC (Mon)
by ddevault (subscriber, #99589)
[Link] (4 responses)
This is a non-starter, it's too expensive. Interesting idea, though. We are planning on writing an optional debug allocator which will address many memory-related bugs, such as use-after-free, in a similar manner to valgrind.
> The reception you've gotten from others in this comment section is very unfortunate, although, given the people involved, I'm also not terribly surprised they're acting this way. A good philosophy for handling negativity from ignorant, opinionated blowhards is to just ignore them and keep doing what you love. I'm sure you'll make something great with Hare.
Thanks :)
Posted May 2, 2022 18:53 UTC (Mon)
by linuxrocks123 (subscriber, #34648)
[Link] (3 responses)
What if you used a pool allocator to separate the pointers from the non-pointers? That would add a level of indirection to structs that had pointers, since they'd have to be converted to pointers to pointers, and also to pointers on the stack, since ditto. But then you'd have a nice contiguous array of all your pointers that you'd just have to scan upon calls to free, and you might be able to use SIMD for that.
If you've thought of that and it's too expensive, I'll stop now, but I just thought I'd mention it in case you hadn't thought of it :)
Posted May 2, 2022 18:55 UTC (Mon)
by ddevault (subscriber, #99589)
[Link]
Posted May 4, 2022 1:12 UTC (Wed)
by akkartik (guest, #158307)
[Link] (1 responses)
The overhead of this scheme is too great for most C/Rust programmers, but I think it's much lower than tracking all pointers or indirections in structs containing pointers.
Posted May 4, 2022 13:22 UTC (Wed)
by HelloWorld (guest, #56129)
[Link]
Posted May 2, 2022 19:54 UTC (Mon)
by HelloWorld (guest, #56129)
[Link] (1 responses)
I wish you well with your efforts regarding a simpler borrow checker.
Posted May 2, 2022 19:57 UTC (Mon)
by ddevault (subscriber, #99589)
[Link]
Posted May 2, 2022 23:57 UTC (Mon)
by roc (subscriber, #30627)
[Link]
Language simplicity is good for developers, of course, but absence of memory corruption and data races provides another kind of simplicity. (And I think Rust is relatively free of the kind of "accidental" complexity that C and C++ are full of.)
DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language
Use-after-free checking at low runtime cost
Use-after-free checking at low runtime cost
DeVault: Announcing the Hare programming language
I don't think something this fundamental can be retrofitted. It specifically says on the Hare website that you intend to place a strong emphasis on backward compatibility, which means that once programs with lifetime issues (leaks/use-after-free) are out there, the compiler needs to be able to compile them, and thus the same bugs can occur in new code as well.
DeVault: Announcing the Hare programming language
DeVault: Announcing the Hare programming language