The reason JSON has to be rewritten is because the Python libs use dynamic typing / reflection! The new lib uses tags on sum types / algebraic data types. Occasionally you have to write OS bindings twice, for Python and for C++, which is something I’d like to minimiaze. Everything generally just “clicks” into place, so there’s no more manual rewriting. (Arguably stronger than Rust due to a crucial ASDL feature I added) The mycpp tool itself isn’t great internally, but the funny thing is that the subset of C++ we generate is rigid – i.e. We have memory safety because we’re generating code from typed Python! I mentioned that in the middle of this comment. It compiles with just a C++ compiler and a shell)ĩ0% of the code is generated. fewer build dependencies than bash (no GNU make.~140K) – despite having an entirely new garbage collected language YSH !! The resulting oils-for-unix C++ tarball (shown in the appendix) has (I’m working on that literally right now :-) ) Yup mycpp works on all of OSH now, and nearly all of YSH! The last thing is rewriting the JSON lib, and then the whole program will translate.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |