TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

AS3 Bitwise gems - fast integer math

10 pointsby RWilsonabout 16 years ago

2 comments

mahmudabout 16 years ago
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 未加载
pmjordanabout 16 years ago
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 未加载