[HN Gopher] The Spiral Language v2
       ___________________________________________________________________
        
       The Spiral Language v2
        
       Author : Kinrany
       Score  : 34 points
       Date   : 2021-01-18 12:59 UTC (1 days ago)
        
 (HTM) web link (github.com)
 (TXT) w3m dump (github.com)
        
       | pharmakom wrote:
       | He's back! very excited to dig into this. For anyone new, read
       | the commit log. it's a very entertaining insight into the thought
       | process of creative programming.
        
       | Kinrany wrote:
       | Previously on HN: https://news.ycombinator.com/item?id=17519138
       | (2018)
        
       | svnpenn wrote:
       | Jesus that's maybe the largest readme I have ever seen. Split
       | that up
        
       | throwaway894345 wrote:
       | What does inlining have to do with heap allocation? I would have
       | thought the opposite of heap allocation was "stack allocation"?
       | In particular, I would expect that inlining would produce no
       | effect on the number or size of heap allocations?
        
         | wyager wrote:
         | Inlining pattern matches allows you to eliminate the value
         | being matched on, preventing an allocation. It transforms an
         | allocation into a function call.
        
         | chubot wrote:
         | Not sure if this is what the OP is referring to, but escape
         | analysis determines whether a variable can be on the stack of a
         | single function, or if it must be the heap (because it
         | "escapes" the function's lifetime).
         | 
         | So if you can inline more functions, then you can allocate more
         | objects on the stack rather than the heap.
        
       ___________________________________________________________________
       (page generated 2021-01-19 23:01 UTC)