2 ms·
I planned to extend dillo with lua. I so far I have patch with the includes and the lua interpreter init.. annnnd that's it. I know nothing about interfacing in
by agumonkey 9y ago
I planned to extend dillo with lua. I so far I have patch with the includes and the lua interpreter init.. annnnd that's it. I know nothing about interfacing interpreter with the browser components (dom, etc) so I stopped.
- cypher543 9y agoDillo specifically avoids scripting, so I doubt the internals are well-suited to that sort of integration. You could try extending NetSurf[1], though. It uses Duktape[2] as its Javascript engine and its API is pretty similar to Lua's. 1: http://www.netsurf-browser.org/ http://www.netsurf-browser.org/ 2: http://duktape.org/ http://duktape.org/
- agumonkey 9y agoThanks, I should look how others did it. It's true that dillo never cared about scripting, I felt like plugin lua in would force a rewrite of every part..
- squarefoot 9y agoYou may find the Luakit browser interesting. https://luakit.github.io/ https://luakit.github.io/
- agumonkey 9y agoThanks, I looked at it, I wanted a crude web browser, not a modern html5/css3/js(6). The point was to make an extremely light, yet programmatic access to web data and almost static html. When I use dillo I don't miss much, maybe a few css fix here and there. What I feel is that I want some emacs-ish capabilities in it so I can do more with less. And I love the ridiculous resource consumption of dillo, 30 dillo tabs = half a chromium one; and without parsing js and fetching scripts .. network + rendering is hard to measure.