Solod: Go can be a better C

22 points by gcollazo


invlpg

How does it deal with heap allocations caused by Go's escape analysis?

func foo() *bar {
    return &bar{}
}

Does the above silently fail or cause an error?

trousers

It seems interesting, and a fun project!

As an aside, over the years I have developed a tendency to heavily eschew "transpiler"[1] languages. While often times the languages themselves may be quite nice (gleam for example, and maybe Solod!), typically the debugging experience (both step debug, and error/stack traces) with such languages ends up being somewhat poor due to the information loss[2] during translation. While printf style debugging can work for small projects, I find it tends to fall apart quickly for large/complex ones.

[1]: in quotations because the term is loose, and some people disagree with the terminology in general
[2]: some languages like typescript use source-map gymnastics to alleviate this

tel

This is the basically the vision that has had me writing a lot in Odin recently. It's not strictly a subset of Go, but it's very clearly inspired and has nice things like generics.