Как работает Robolectric и почему это важно знать

Представьте, что можно тестировать android-код без эмулятора, запуская тесты за секунды вместо минут. Именно это обещает Robolectric — библиотека, которую либо любят, либо ненавидят, но точно не игнорируют. За кажущейся простотой «просто добавь зависимость» скрывается удивительная магия модификации байткода, о которой не рассказывают в статьях. Предлагаю разобраться, как на самом деле работает магия Robolectric и почему эти знания пригодятся любому android-разработчику.

https://habr.com/ru/companies/tbank/articles/902180/

#android #robolectric #bytecode #kotlin #classloader

Как работает Robolectric и почему это важно знать

Представьте, что можно тестировать android-код без эмулятора, запуская тесты за секунды вместо минут. Именно это обещает Robolectric — библиотека, которую либо любят, либо ненавидят, но точно не...

Хабр
Ah, the thrilling saga of RakuAST! 🤯 A gripping tale where, shockingly, the compiler frontend gets a makeover...again! Because clearly, parsing code is where the real #magic happens. 🎩✨ Can’t wait for the sequel: “Backend Shenanigans – #Bytecode Strikes Back!” 🙄
https://niner.name/blog/rakuast_grant_report/index.html #RakuAST #CompilerFrontend #CodeParsing #HackerNews #ngated
RakuAST Grant Report

Ah yes, nothing screams modern relevance like a stroll down memory lane with a 70s tech pipe dream 🚀. Our esteemed author dusts off the UCSD p-System and attempts to summon nostalgic giggles about #bytecode while the rest of us wonder if they lost a bet with their Commodore 64 😂. Cross-platform compatibility: still as elusive as Bigfoot.👾
https://markbessey.blog/2025/04/14/a-blast-from-the-past/ #vintageTech #nostalgia #crossPlatform #humor #HackerNews #ngated
A Blast From The Past

The UCSD p-System, Apple Pascal, and a dream of cross-platform compatibility never quite realized I’ve been thinking about the UCSD P-System a lot lately, and I thought I’d write about …

markbessey.blog

🛠️ Runtime instrumentation in Java – with no frameworks at all.

I wrote a REST service using HttpServer and injected logging logic at class-load time using a custom Java Agent and the Instrumentation API.

✔️ 100% JDK-only

📖 https://svenruppert.com/2025/04/11/open-hearted-bytecode-java-instrumentation-api

#Java #Instrumentation #Bytecode #Agent #REST #Security #JVM #OpenJDK #SecureCoding

Open-hearted bytecode: Java Instrumentation API

What is the Java Instrumentation API? The Java Instrumentation API is part of the java.lang.instrument package and allows you to change or analyse class bytecode at runtime. It is particularly inte…

Sven Ruppert
2D Byte Arrays Come to sharkC64: See Them in Action - The Oasis BBS

A look at how 2D byte arrays work in the sharkC64 language, complete with a working demo and bytecode breakdown. See how this new feature expands what's possible in C64 programming.

The Oasis BBS

If anyone wants any information on my bytecode, just lmk and I'll make it my next post

#bytecode #programming

🥳 Oh wow, a 2023 #Java article using #ASM to dabble in tail call recursion—because who doesn't love a good #bytecode manipulation adventure, right? 📜 Pro tip: avoid #recursion altogether and save yourself from this academic exercise in "elegance." 🙄
https://unlinkedlist.org/2023/03/19/tail-call-recursion-in-java-with-asm/ #tailcall #programming #tips #elegance #HackerNews #ngated
Tail Call Recursion in Java with ASM – UnlinkedList

@ow2 has quietly released ASM 9.8 here: https://asm.ow2.io/versions.html. This version of the #bytecode manipulation library now support the EA versions of #JDK25. Ok @ApacheGroovy and @rafaelcodes (aka Mr #ByteBuddy) ... you know what to do. #Java #JDK #OpenJDK #OpenSource
ASM - Versions

Exploring Function Bodies in sharkC64 – Programming Redux Video - The Oasis BBS

Programming Redux breaks down Function Bodies, a new feature in the sharkC64 language, and explains how they compile to bytecode.

The Oasis BBS

'depyf: Open the Opaque Box of PyTorch Compiler for Machine Learning Researchers', by Kaichao You, Runsheng Bai, Meng Cao, Jianmin Wang, Ion Stoica, Mingsheng Long.

http://jmlr.org/papers/v26/24-0383.html

#debuggers #pytorch #bytecode

depyf: Open the Opaque Box of PyTorch Compiler for Machine Learning Researchers