why would the most compressed version of the AST be code? maybe gzipped code would be close.
-
-
-
You're missing the point of my tweet, ASTs are a terrible transport format for code if you care about size
- 7 more replies
New conversation -
-
-
I see your point for specific instances of ASTs. Most can easily be compressed beyond code. However, code is the most readable form of ASTs.
-
I don't think it's about readability of the original code, as much as to make it easy to make it readable based on case by case preferences
- 3 more replies
New conversation -
-
-
I still want that sweet sweet meta-data that ASTs get peppered with.
-
Poor some of that `"file":"/root/.npm/yolo.js"` on me
End of conversation
New conversation -
-
-
Link files bruh.
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
saying we should store code as ASTs is more so a claim about AST printers than it is about storage.
-
at least in my case of course. Others might want an unreadable storage format but I don't get it.
End of conversation
New conversation -
-
-
I don't think it's the code we write today. Take a look at `var a = 1, b = 2`, there's still redundant information in syntax...
-
...remove syntax and represent the code with data structures, it may be smaller, like `["var" ["a" "1"] ["b" "2"]]`, in a compressed form.
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
he/him 