TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Separate Emacs Bytecode Stack

17 点作者 eklitzke大约 3 年前

1 comment

olliej大约 3 年前
Many years ago I (think? It’s a long time ago now) wrote the code the migrated JSC’s early bytecode engine to an explicit stack for similar reasons: setting up the interpreter stack frame was super slow and used a bunch of the C stack space, allowed more graceful handling of stack exhaustion, etc<p>As the bytecode interpreter got tigger, and eventually moved to a JIT the trade offs start to change quite dramatically: burning a register to reference the explicit stack, managing two call stacks, etc start to eat most of the gains. Once you eventually leave C behind for the interpreter loop the problems of large interpreter stack frames ceases to exist.<p>Eventually you end up back at regular calls and stack recursion again.