Hacker News new | ask | show | jobs
by dcreater 749 days ago
That would be mind blowing. Why go through all the lost intermediary steps, especially through Python and JS, when you can generate machine code directly
2 comments

If your model is error-prone, having control structures, types and other compile-time checks is very valuable. It's harder to constrain arbitrary machine code to make something sensible.
Intuitively it makes sense, but I am not fully convinced about this. You could give it only a few register and discard invalid operations for certain registers or plain known invalid operations.
But that doesn't stop it from generating code that segfaults.
That is the same problem as generating python that blows up, no? (assuming it is tested in a sandbox)
Interpretability, reasoning about the generated code, portability, etc. Probably also demands a larger model with a higher cost of training (and likely more training data) to target a more unstructured "language" like machine code.