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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

AS3 Bitwise gems - fast integer math

10 点作者 RWilson将近 16 年前

2 条评论

mahmud将近 16 年前
Interested parties can also look at how the Tamarin VM implements those bitwise opcodes natively.<p><a href="http://www.mozilla.org/projects/tamarin/" rel="nofollow">http://www.mozilla.org/projects/tamarin/</a><p>Flash opcodes into Nanojit IR:<p><a href="http://hg.mozilla.org/tamarin-central/raw-file/4eb9f961a087/nanojit/LIR.h" rel="nofollow">http://hg.mozilla.org/tamarin-central/raw-file/4eb9f961a087/...</a><p>Nanojit IR to native x86 translation tables?<p><a href="http://hg.mozilla.org/tamarin-central/raw-file/4eb9f961a087/nanojit/Nativei386.h" rel="nofollow">http://hg.mozilla.org/tamarin-central/raw-file/4eb9f961a087/...</a>
评论 #624201 未加载
pmjordan将近 16 年前
I don't do flash, but I was under the impression that there's some kind of compilation going on and ActionScript isn't just interpreted. How on earth does a modern compiler not optimise<p><pre><code> a / 64 </code></pre> to<p><pre><code> a &#62;&#62; 6 </code></pre> ? I could understand it in a dynamically typed language, where a, and therefore the result, could be non-integer, but ActionScript seems to have static type declarations for variables.
评论 #624673 未加载