News for hackers. Stuff that matters.
Re:Minecraft removing obfuscation in Java Edition by achierius on Thursday October 30, 2025 @06:46AM (#45758472)
Most compilers do not use "unit" tests per se. Much more common are integration tests targeted at a particular lowering phase or optimization pass.

This is pretty important since "unit tests" would be far too constraining for reasonable modifications to the compiler, e.g. adding a new pass could change the actual output code without modifying the semantics.

Re:Minecraft removing obfuscation in Java Edition by high_na_euv on Friday October 31, 2025 @05:32AM (#45770018)
LLVM has "unit" tests

I mean they run single pass with some small llvm ir input and check if the output IR is fine