* [Caml-list] Compilation semantics for static garbage collection @ 2015-06-18 19:44 Kenneth Adam Miller 2015-06-18 21:59 ` Malcolm Matalka 2015-06-18 22:25 ` Gabriel Scherer 0 siblings, 2 replies; 4+ messages in thread From: Kenneth Adam Miller @ 2015-06-18 19:44 UTC (permalink / raw) To: caml users [-- Attachment #1: Type: text/plain, Size: 599 bytes --] I was thinking that while rust is new, some of what it is pioneering is really interesting, especially with the way it deals with ownership being a type. Rust doesn't have a GC, yet it rules out leakage and remains fast. It also manages concurrency safety very well. The stipulations put on types in the ocaml language are pretty strict, and the GC is transparent to the user. What is the possibility that there could ever be a version of ocaml that makes use of something like ownership or some typing mechanism to determine more at compile time, to facilitate the removal or reduction of the GC? [-- Attachment #2: Type: text/html, Size: 638 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] Compilation semantics for static garbage collection 2015-06-18 19:44 [Caml-list] Compilation semantics for static garbage collection Kenneth Adam Miller @ 2015-06-18 21:59 ` Malcolm Matalka 2015-06-18 22:25 ` Gabriel Scherer 1 sibling, 0 replies; 4+ messages in thread From: Malcolm Matalka @ 2015-06-18 21:59 UTC (permalink / raw) To: Kenneth Adam Miller; +Cc: caml users Kenneth Adam Miller <kennethadammiller@gmail.com> writes: > I was thinking that while rust is new, some of what it is pioneering is > really interesting, especially with the way it deals with ownership being a > type. Rust doesn't have a GC, yet it rules out leakage and remains fast. It > also manages concurrency safety very well. > > The stipulations put on types in the ocaml language are pretty strict, and > the GC is transparent to the user. What is the possibility that there could > ever be a version of ocaml that makes use of something like ownership or > some typing mechanism to determine more at compile time, to facilitate the > removal or reduction of the GC? From my understanding, Rust is just doing linear typing. There is an ML variant called LinearML from Anil that implements this, but it's a toy. This could be added to Ocaml, but I think it's really unclear how it would interact with the rest of the language. ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] Compilation semantics for static garbage collection 2015-06-18 19:44 [Caml-list] Compilation semantics for static garbage collection Kenneth Adam Miller 2015-06-18 21:59 ` Malcolm Matalka @ 2015-06-18 22:25 ` Gabriel Scherer 2015-06-19 2:00 ` Kenneth Adam Miller 1 sibling, 1 reply; 4+ messages in thread From: Gabriel Scherer @ 2015-06-18 22:25 UTC (permalink / raw) To: Kenneth Adam Miller; +Cc: caml users You may interested in the Mezzo programming language, a research language developed with the idea of having a finer-grained type-level control of mutable memory. http://protz.github.io/mezzo/ Many of the ideas that are informal in Rust are formally explicited in Mezzo. The language is less ambitious than Rust in terms of feature coverage (and thus less practical for everyday programming), but comes with a precise semantics (which Rust lacks for now) and soundness proof. It is a fairly interesting design, which can be presented as aiming to turn the current research on separation logic into a relatively usable programming language design. For a lively discussion of some of Mezzo design choices, what worked and what did not work so well, see "A few lessons from the Mezzo project", François Pottier, Jonathan Protzenko, 2015 http://gallium.inria.fr/~fpottier/publis/fpottier-protzenko-lessons-mezzo.pdf On Thu, Jun 18, 2015 at 9:44 PM, Kenneth Adam Miller <kennethadammiller@gmail.com> wrote: > I was thinking that while rust is new, some of what it is pioneering is > really interesting, especially with the way it deals with ownership being a > type. Rust doesn't have a GC, yet it rules out leakage and remains fast. It > also manages concurrency safety very well. > > The stipulations put on types in the ocaml language are pretty strict, and > the GC is transparent to the user. What is the possibility that there could > ever be a version of ocaml that makes use of something like ownership or > some typing mechanism to determine more at compile time, to facilitate the > removal or reduction of the GC? ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Caml-list] Compilation semantics for static garbage collection 2015-06-18 22:25 ` Gabriel Scherer @ 2015-06-19 2:00 ` Kenneth Adam Miller 0 siblings, 0 replies; 4+ messages in thread From: Kenneth Adam Miller @ 2015-06-19 2:00 UTC (permalink / raw) Cc: caml users [-- Attachment #1: Type: text/plain, Size: 1945 bytes --] Thanks to all! I appreciate the enlightenment. I think I did a poor job on my word selection, a regular from me. On Thu, Jun 18, 2015 at 6:25 PM, Gabriel Scherer <gabriel.scherer@gmail.com> wrote: > You may interested in the Mezzo programming language, a research > language developed with the idea of having a finer-grained type-level > control of mutable memory. > http://protz.github.io/mezzo/ > > Many of the ideas that are informal in Rust are formally explicited in > Mezzo. The language is less ambitious than Rust in terms of feature > coverage (and thus less practical for everyday programming), but comes > with a precise semantics (which Rust lacks for now) and soundness > proof. It is a fairly interesting design, which can be presented as > aiming to turn the current research on separation logic into a > relatively usable programming language design. > > For a lively discussion of some of Mezzo design choices, what worked > and what did not work so well, see > "A few lessons from the Mezzo project", > François Pottier, Jonathan Protzenko, 2015 > > http://gallium.inria.fr/~fpottier/publis/fpottier-protzenko-lessons-mezzo.pdf > > On Thu, Jun 18, 2015 at 9:44 PM, Kenneth Adam Miller > <kennethadammiller@gmail.com> wrote: > > I was thinking that while rust is new, some of what it is pioneering is > > really interesting, especially with the way it deals with ownership > being a > > type. Rust doesn't have a GC, yet it rules out leakage and remains fast. > It > > also manages concurrency safety very well. > > > > The stipulations put on types in the ocaml language are pretty strict, > and > > the GC is transparent to the user. What is the possibility that there > could > > ever be a version of ocaml that makes use of something like ownership or > > some typing mechanism to determine more at compile time, to facilitate > the > > removal or reduction of the GC? > [-- Attachment #2: Type: text/html, Size: 2671 bytes --] ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-06-19 2:00 UTC | newest] Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2015-06-18 19:44 [Caml-list] Compilation semantics for static garbage collection Kenneth Adam Miller 2015-06-18 21:59 ` Malcolm Matalka 2015-06-18 22:25 ` Gabriel Scherer 2015-06-19 2:00 ` Kenneth Adam Miller
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox