On Mon, May 21, 2012 at 10:17 AM, Xan <[email protected]> wrote: > On Sun, May 20, 2012 at 12:48 PM, Tang Daogang <[email protected]> > wrote: > > Yes, I knew it. My meaning is also to use dynamic languages to access > lower > > layer API by gobject-introspection. > > Right, I was talking about this too. > > > > > you said it's enough? How should I do to test it, such as find a element > by > > id using lua? > > If you wanted to use Lua then you'd need to find usable Lua bindings > for the GNOME platform that use gobject-introspection. A quick google > search gives me this: https://github.com/pavouk/lgi > > em, thank you, I have downloaded it.
> Perhaps they won't work perfectly OK for your needs, but my point is > that it should be a lot less work to improve this than to write a new > Lua binding layer for WebKit from scratch. And as a bonus point you'll > get access to the rest of the platform through it too. So it seems to > just make sense to go that way. > > This is my opinion too. OK, if I want to use lua in hmtl, and use browser to parse it, I need do: 1. combine the lua compiler into browser (such as epiphany); 2. install lgi; 3. when meet lua code, call lua compiler to compile, and use lgi to call gobject API exported by gi binding; is it all right? > Regards, > > Xan > > > > > Thank you! > > > > > > On Sat, May 19, 2012 at 11:14 PM, Xan <[email protected]> wrote: > >> > >> On Sat, May 19, 2012 at 4:27 PM, Tang Daogang <[email protected]> > >> wrote: > >> > hi, > >> > > >> > I am very interesting in webkit-gtk. > >> > > >> > I want to ask: > >> > > >> > whether we can use some dynamic language other than javascript writed > in > >> > html file to be executed in some browser built on webkit-gtk? > >> > > >> > Because I find that webkit-gtk wants to generate a full webkit API > using > >> > gobject-introspection, I want to know is it possible in future we can > >> > use > >> > lua/python/haskell/... to write logic code in web app (to replace > >> > javascript > >> > today) ? > >> > >> GObject can be used from any number of languages (there's bindings for > >> Perl, Python, JavaScript, various flavors of Lisp, Java, C++, ...), so > >> the existing bindings should be more than enough for your needs in > >> principle. Seems like a better strategy than re-writing the binding > >> layer once per layer, but YMMV. > >> > >> Xan > >> > >> > > >> > Thank you! > >> > > >> > PS: > >> > this guy want to use python to replace javascript in brower, > >> > http://www.gnu.org/software/pythonwebkit/ > >> > > >> > -- > >> > Nothing is impossible. > >> > > >> > > >> > _______________________________________________ > >> > webkit-gtk mailing list > >> > [email protected] > >> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk > >> > > > > > > > > > > > -- > > Nothing is impossible. > > > > > > _______________________________________________ > > webkit-gtk mailing list > > [email protected] > > http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk > > > -- Nothing is impossible.
_______________________________________________ webkit-gtk mailing list [email protected] http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk
