Re:WKWebView, an Electron alternative on macOS/iOS
by azhenley on Wednesday December 26, 2018 @09:22AM
(#18762244)
I'm really starting to think it would be a good PhD dissertation project to (semi?) automatically reduce Chromium to the bare minimum needed for a given Electron app. The techniques could probably be applied to reducing any library and would be of interest to researchers in SE and PL, along with industry.
[ Parent
| on HN ]
Re:WKWebView, an Electron alternative on macOS/iOS
by DonHopkins on Wednesday December 26, 2018 @10:39AM
(#18762622)
That's not just tree shaking, that's more like rainforest shaking!
Re:WKWebView, an Electron alternative on macOS/iOS
by nickpsecurity on Wednesday December 26, 2018 @04:32PM
(#18765121)
That's exactly what I thought. You just include what you use. Either developer does it on a confijguration screen, a tool does it with analysis on what code reaches what other code, or both. It would also help if Chrome is designed to make this easier.
eCos is prior work on OS side that made me always think of designing systems for easy stripping.
Re:WKWebView, an Electron alternative on macOS/iOS
by cat199 on Wednesday December 26, 2018 @11:35AM
(#18762964)
> good PhD dissertation project
why?
would not existing static analysis/dependency pruning take care of it if someone had the time?
I don't see what would be 'novel' here from a theoretical point of view..
still a good project possibly though
Re:WKWebView, an Electron alternative on macOS/iOS
by azhenley on Wednesday December 26, 2018 @11:51AM
(#18763069)
That is the research of it, we don't know if existing techniques would work! And surely there are novel improvements that could be made, particularly for this specific application.
Also, I imagine there are many cases where static analysis would not be enough for the JS app.
Re:WKWebView, an Electron alternative on macOS/iOS
by barbecue_sauce on Wednesday December 26, 2018 @02:13PM
(#18764043)
Sounds more like an undergrad thesis.