Event JSON
{
"id": "9ecba3618e2a0110bad0d1de78d7553fb4bd6b1707072486fb35895756e9ac6c",
"pubkey": "616d6bbeb8c1f02b67271e8039aeb0eb1e83e1c9ec5cac4655002ae25f10bb8f",
"created_at": 1792563392,
"kind": 1,
"tags": [
[
"t",
"cosmoport.org"
],
[
"t",
"news_en"
],
[
"t",
"ownership"
],
[
"t",
"borrowchecking"
],
[
"t",
"sharedmutability"
],
[
"t",
"antelang_org"
]
],
"content": "Ante, a low-level functional language with ownership semantics like Rust, introduces a new borrow checking design allowing more lenient shared mutability, including safe cyclic mutability, entirely statically in the type system. The design replaces lifetimes with \"places,\" exact sets of borrowed data, annotated as stable or unstable to reflect mutation safety. This approach enables safe shared mutable references, unlike Rust's strict aliasing rules, while avoiding dangling pointers by tracking mutations with \"Mutate 'p\" effects and ensuring distinctness at call sites. Ante's borrow checker allows complex, cyclic data flows and mutability, as demonstrated with Rc-like shared pointers, without runtime checks. Thread-safety adheres to Rust's Send/Sync traits, with special reference kinds (imm and uniq) used rarely for multi-threading. The system simplifies borrow checking and supports patterns rejected in Rust, aiming for more flexible ownership defaults akin to C#. The design offers an ergonomic alternative to Rust's GhostCell for cyclic mutability and broadens safe shared mutability use while ensuring safety.\n\nSource: https://antelang.org/blog/safe_cyclic_mutability/\n\nhttps://antelang.org/img/banners/antelope_canyon2.jpg\n\n#news_en #ownership #borrowchecking #sharedmutability #antelang_org",
"sig": "45a889c16ee874134481b6151ec130603a39851423765af71523c256e39fe1848360e9a182e9c110d6a7b3d890cb819f25b531c3f115a746abecfae14983e91a"
}