Skip to content

Comment on The Jakt Programming Languageparent

Comments

As mentioned in another reply, being able to take the address of any value implies supporting interior pointers (pointers into the middle of a value)

This is hard to implement in a memory-safe language. For example, the new WASM GC virtual machine does not support interior pointers.

I noticed this distinction recently, regarding the rewrite of TypeScript in Go:

https://lobste.rs/s/3q0ei5/10x_faster_typescript#c_xndrsg

- C#, Swift, Julia, Nim, Crystal, and very recently OCaml have separate value types and reference types. The choice is not orthogonal, which is what you don't like. (Java, Python, etc. do not have value types at all)

- Only Go and D have the memory model of C (values and references), with GC.

- Rust has also has the model of C, but with "static memory management"

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.