Runtime
因为看了一篇文章速度:大模型推理的下一个 Scaling Law,这里发现自己对runtime的概念一直理解的不够清晰,所以找了些资料看,感觉自己现在应该是明白了。
我之前一直不理解是因为我一直把runtime看作一个很单一的概念,就是程序运行需要的东西。但是其实这个理解太浅薄了,其实在编程中,它至少有3个含义,分别是:
- 程序运行的时候,即程序生命周期中的一个阶段,(Rust比C更容易将错误发现在运行时提供)
- 运行时库,即glibc这类原生语言的标准库,比如C程序的malloc函数实现需要由运行时提供
- 运行时系统,即某门语言的宿主环境,例如Node.js是一个JavaScript的运行时
所以其实就是,在不同的技术讨论,它可能指的是不同的含义,但是都当作runtime去说了,就会造成一些误解。
然后再放点引用:
The book Expert C Programming: Deep C Secrets Chapter 6 Runtime Data Structures is an useful reference to this question.
Runtime code is specifically the code required to implement the features of the language itself.
想要简单的理解的话就是运行时就是讨论时语境下抽象层的下一层,也就是For level N, runtime is the level N-1.
哪有什么include进来一把梭的岁月静好,还要有编译器和运行时替你默默负重前行。
哪有什么prompt写好一把梭的岁月静好,还要有LLM和agent替你默默负重前行。
- Title: Runtime
- Author: starlitxiling
- Created at : 2026-05-27 21:06:15
- Updated at : 2026-05-27 21:35:26
- Link: http://starlitxiling.github.io/2026/05/27/Runtime/
- License: This work is licensed under CC BY-NC-SA 4.0.
Comments