Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Which highlights why bytecode is such a bad idea. It isn't a sort of assembly language, its much dumber, more like a pocket calculator language. It actually loses semantic information. It has to be re-compiled like the source code but with most of the useful source clues lost.

A far, far better choice would have been some orderly structuring of the semantics of parsed and interpreted code. What the compiler has internally after digesting the source, but before generating code. Choose some schema and emit json or something. That would have been a game-changing choice some decades ago. But no we got saddled with byte-code and a billion dollars has been spent mitigating that disaster.



> What the compiler has internally after digesting the source, but before generating code. Choose some schema and emit json or something.

You mean the parsed Abstract Syntax Tree; AST.

The next step would obviously be that people choose to start programming directly in the AST form. And now you have created Lisp.


Denied. The next step is not pretending everybody wants to be a compiler internals expert. Programming languages are two or three orders closer to human understanding.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: