3 comments

  • dang5 hours ago
    Related. Others?<p><i>SBCL: The Assembly Code Breadboard</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39859849">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39859849</a> - March 2024 (19 comments)<p><i>SBCL: Assembly code breadboard (2014)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28450473">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=28450473</a> - Sept 2021 (4 comments)<p><i>SBCL: The Ultimate Assembly Code Breadboard (2014)</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11959147">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=11959147</a> - June 2016 (2 comments)<p><i>SBCL: The Ultimate Assembly Code Breadboard</i> - <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7408807">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=7408807</a> - March 2014 (75 comments)
    • Jtsummers4 hours ago
      <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39859849">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=39859849</a> - 19 comments, March 2024
      • dang4 hours ago
        Inserted above. Thanks!
  • snazz4 hours ago
    I’ve read this article every time it’s gotten posted here and it’s always gone a little over my head. I was able to follow how he used 8 x86_64 registers for the VM’s stack slots and how the VM instructions were implemented. How the padding and alignments of each version of the instructions was calculated is impressive and I can imagine how much of a chore it would be to figure out with a normal assembler.<p>Using SBCL as a macro-assembler is extremely cool, and then allowing CL code to call into the VM is where it really blows my mind.<p>Obviously it’s been over a decade since this article was written. For someone less familiar with SBCL internals (or CL in general), would something like AsmJit or Iced be a good way to achieve similar things?
    • larme3 hours ago
      Try pair reading it with a good thinking LLM like GPT 5.5 or Claude Opus. I found it help me a lot.<p>I have started learning SBCL internal from the beginning of this year with the help of GPT, and I really want to contribute to SBCL compiler someday in future.
  • BoingBoomTschak1 hour ago
    <a href="https:&#x2F;&#x2F;www.stylewarning.com&#x2F;posts&#x2F;nbody&#x2F;" rel="nofollow">https:&#x2F;&#x2F;www.stylewarning.com&#x2F;posts&#x2F;nbody&#x2F;</a> might be a good addition, it showcases some higher level stuff added in sb-simd.