r/ProgrammingLanguages • u/AlmusDives • Apr 07 '26
Blog post Update: Image classification by evolving bytecode
https://zyme.dev/blog/2_update_evolving_bytecodeIt's been a while since I last posted about Zyme, my esoteric language for genetic programming. I recently reached a performance milestone of ~75% accuracy on a subset of MNIST image classification task and thought it was worth a short write-up.
Feedback and criticism are welcome!
9
Upvotes
View all comments
Show parent comment
5
u/scheurneus Apr 07 '26
Not really. The biggest difference is that a bytecode program is "discrete". Neural networks, while in theory able to mimic every function (including one represented by bytecode), do this in a more continuous way.
NN's are basically a program with a fixed 'shape' (just a bunch of multiply-accumulate), and then it learns the inputs for those multipliers. Evolving bytecode actually changes the computations the program performs.
I think that NN's work as well as they do for two reasons: universality and differentiability. Differentiating allows them to learn in a 'directed' manner (rather than evolutionary algorithms which are more randomized), without falling into NP-hard problems.