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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Mixin is a trait/mixin and bytecode weaving framework for Java using ASM

54 点作者 LelouBil5 个月前

8 条评论

love2read5 个月前
For an example of how this is used when setup: <a href="https:&#x2F;&#x2F;wiki.fabricmc.net&#x2F;tutorial:mixin_examples" rel="nofollow">https:&#x2F;&#x2F;wiki.fabricmc.net&#x2F;tutorial:mixin_examples</a>
Dylan168075 个月前
&gt; ASM is an all purpose Java bytecode manipulation and analysis framework.<p>Oh. I was expecting something much more weird from the title, and that&#x27;s a pretty confusing&#x2F;misleading name for that.
sigy5 个月前
I was curious about this as perhaps a new approach to recipe-oriented bytecode injection. But the I looked at the project&#x27;s (long) history and docs status. It seems that the main contributor has tapered off this project over time, and more specifically hasn&#x27;t been active since July. (Mumfrey, if you&#x27;re out there, please tell us what&#x27;s up)<p>So, OP, what made you mention this here now?
评论 #42534484 未加载
评论 #42530274 未加载
评论 #42531251 未加载
saagarjha5 个月前
I kind of wish Java just went full Objective-C and provided native APIs to patch and redirect methods. Having everyone ship a bytecode manipulation library just to mock a method or two is quite annoying given how easy it would be for the runtime to offer this directly (and probably more performantly).
评论 #42534294 未加载
评论 #42531556 未加载
ddimitrov5 个月前
What is the advantage compared to established AOP libraries, such as AspectJ or BytecodeBuddy?
评论 #42534395 未加载
评论 #42530121 未加载
fnord775 个月前
Isn&#x27;t composition is superior to mixins for a few reasons, particularly the &quot;Single-responsibility principle&quot; ?
评论 #42528464 未加载
评论 #42529076 未加载
评论 #42530318 未加载
based25 个月前
? alt: Java 23 - Class-File API (Second Preview)<p><a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41567720">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=41567720</a>
anonymoushn5 个月前
ah yes ASM, the bytecode manipulator for java. Please look forward to JAVA, my upcoming tool for manipulating assembly code.