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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Has there ever been an attempt to create a high/low level language pair?

10 点作者 Decabytes超过 1 年前

5 条评论

Xorathena超过 1 年前
...like the past few decades of Python&#x2F;Ruby&#x2F;Node&#x2F;etc wrapping C-ABI libraries from any language?<p><a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;extending&#x2F;extending.html" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;extending&#x2F;extending.html</a><p><a href="https:&#x2F;&#x2F;nodejs.org&#x2F;dist&#x2F;latest-v20.x&#x2F;docs&#x2F;api&#x2F;n-api.html#node-api" rel="nofollow">https:&#x2F;&#x2F;nodejs.org&#x2F;dist&#x2F;latest-v20.x&#x2F;docs&#x2F;api&#x2F;n-api.html#nod...</a><p><a href="https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;ctypes.html" rel="nofollow">https:&#x2F;&#x2F;docs.python.org&#x2F;3&#x2F;library&#x2F;ctypes.html</a><p><a href="https:&#x2F;&#x2F;swig.org" rel="nofollow">https:&#x2F;&#x2F;swig.org</a><p>When using Zig functions and structs on the low side there are some nice opportunities for making the low&#x2F;high interface more automatic at comptime, especially when you&#x27;re jointly compiling (your Zig code + a Zig-based Python interpreter + your Python code) together into one WASM blob.<p><i>Disclaimer&#x2F;public-commitment-to-getting-it-released: I&#x27;ve written most of a Python interpreter in Zig as part of another project. (just the basics — won&#x27;t be big and professional like CPython.) I&#x27;ll reply here eventually when it&#x27;s done, available as FLOSS, and ready to say &quot;high-low&quot;.</i>
评论 #39140471 未加载
Qem超过 1 年前
Was going to mention Smalltalk&#x2F;Slang and PyPy&#x2F;RPython, pleased to see people already pointed them.<p>There was even a Smalltalk implemented using RPython, but unfortunately that project seems not to be active. Last change 5 years ago: <a href="https:&#x2F;&#x2F;github.com&#x2F;hpi-swa&#x2F;RSqueak">https:&#x2F;&#x2F;github.com&#x2F;hpi-swa&#x2F;RSqueak</a>
082349872349872超过 1 年前
Just in the 1980s:<p><pre><code> Forth&#x2F;asm C&#x2F;asm shell&#x2F;C all langs on VMS TCL&#x2F;C etc.</code></pre>
agumonkey超过 1 年前
informally I read about many many lispers ending up doing their own assembler to enjoy live&#x2F;dynamic metaprogrammable native code<p>other languages ended up adding this (can&#x27;t remember the name) depending on their niche, because one always hit performance issue
PH95VuimJjqBqy超过 1 年前
I feel like C++ is the answer here, only it&#x27;s a single language rather than two.