Earlier quoted context omitted.
That's actually really amazing - and I didn't know that, thank you!
It's extremely slow compared to the Java version though.
Web frameworks are transforming from runtime libraries into optimizing compilers
171–180 of 231 posts
Re: Web frameworks are transforming from runtime libraries into optimizing compilers
#172Earlier quoted context omitted.
If you disable the obfuscation, ProGuard code still looks basically the same. I never enable the obfuscation, as my apps are GPL anyway, and I want users to be able to just decompile any version.
Not really - ProGuard does several optimizations (finalization, removal of redundant bytecode instructions, pulling up methods into superclasses, removing needless sublcasses, some fixes to handling exceptions and several other things depending on optimization settings) which change the bytecode output to the point where you don't have a two-way mapping from Java to compiled code anymore.
This is very important for me.
Re: Web frameworks are transforming from runtime libraries into optimizing compilers
#173Earlier quoted context omitted.
This was also predated by the Opa "framework" which is indeed a compiler for the web platform, announced in 2009 and released a bit later. At the time, people didn't want to hear about a new language so we had to hide behind a framework. But one of the ideas was that there is no sense in bundling libraries at runtime instead of generating exactly the application code that should run. Cf. http://opalang.org (disclaime…
I was just thinking about Opa the other day - it looked nice but I never used it. People were worried about debugging through the layers of abstraction. Is it still "alive"? You write in the past tense...
Many things we did became hype later (implemented in OCaml, a functional language, JSX before React - I know Jordan played with Opa before building React) and we still have bits that are missing is today's stacks. The ideal next step would be to join a foundation so that development on the project could resume.
Re: Web frameworks are transforming from runtime libraries into optimizing compilers
#174> a small 40MB iOS app What a sad, sad world we find ourselves to live in.
Indeed, we no longer worry about food, safety and survival and instead our sadness is directed at irrelevant application binary file sizes.
Re: Web frameworks are transforming from runtime libraries into optimizing compilers
#175Re: Web frameworks are transforming from runtime libraries into optimizing compilers
#176Re: Web frameworks are transforming from runtime libraries into optimizing compilers
#177It seems like the less code users have access to, the less control they will have over their computers. Example: it might become harder to block tracking and ads, turning the open WWW into something more like mobile phone apps (which are terrible for the freedom of end users).
Re: Web frameworks are transforming from runtime libraries into optimizing compilers
#178"The trend started by minifiers like UglifyJS and continued by transpilers like Babel will only accelerate." Those were predated by Closure Compiler, which was started with Gmail, and Closure Compiler in some ways still doesn't have an equal. Besides being a fully optimizing compiler, it also has a module system for code splitting, and optimization passes designed to move code at the method/property level from initia…
This seems to be something of a trend in the software library and tool world: A problem emerges. Some early, sharp thinkers create tools which attack the problem in a high level, abstract, powerful way... but also with the rough edges that come with being early. These tools get a few adopters, but not that many because it is difficult to see the value versus the obvious rough edges. Then other sharp thinkers, put off…
Re: Web frameworks are transforming from runtime libraries into optimizing compilers
#179Earlier quoted context omitted.
"I'm wondering if there is a more holistic approach." The end game, once WebAssembly is fully integrated into the browser, is to expose the 3D API and/or a high-performance low-level 2D API (or both) and slowly, but surely, a "web browser" will become an environment where you download a full rendering engine for a website, written in an arbitrary language that has WebASM support, and in the end both DOM and JS will b…
James Mickens presents something like this idea: https://www.youtube.com/watch?v=1uflg7LDmzI
Re: Web frameworks are transforming from runtime libraries into optimizing compilers
#180Earlier quoted context omitted.
"I'm wondering if there is a more holistic approach." The end game, once WebAssembly is fully integrated into the browser, is to expose the 3D API and/or a high-performance low-level 2D API (or both) and slowly, but surely, a "web browser" will become an environment where you download a full rendering engine for a website, written in an arbitrary language that has WebASM support, and in the end both DOM and JS will b…
As always, the fantastic Gary Bernhardt takes this through to its logical conclusion https://www.destroyallsoftware.com/talks/the-birth-and-death...
You will know WebAssembly is here and in charge when the browsers compile Javascript itself into WebAssembly and take at most a 10% performance hit, thus making it the default. Call it 2022 or so.