‹ BackHN Continuity

Thread

Goose Programming Language

54 points · 69 comments · bobbydigitales

  1. MiroslavPokorny · · focus · HN ↗
    What does Goose change about memory management ?
    1. kenferry · · focus · HN ↗
      A lot - title could probably use editing. The language has no heap, only stack memory, so the only deallocation is returning from a call stack frame.
      1. yndoendo · · focus · HN ↗
        How big is the stack? Too often large data will blow the top and destroy adjacent stacks in multi-thread environments. Are memory barrier fences used to check against overflow?
        1. gcoakes · · focus · HN ↗
          I think it is supposed to be stacks in the general sense of the data structure, not the literal `sp` register. I imagine they could be arbitrarily sized up to physical limits if you do some mmap magic. I'm still a bit fuzzy about how you could make useful programs with that, but it seems interesting.
          1. MiroslavPokorny · · focus · HN ↗
            Stack allocations will be lost when the enclosing call exits.

            How does this help for long term values ?

Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.