[webkit-gtk] hi, I am newbie, bring one question here
Tang Daogang
daogangtang at gmail.com
Sun May 20 19:50:24 PDT 2012
On Mon, May 21, 2012 at 10:17 AM, Xan <xan.lopez at gmail.com> wrote:
> On Sun, May 20, 2012 at 12:48 PM, Tang Daogang <daogangtang at gmail.com>
> 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 <xan.lopez at gmail.com> wrote:
> >>
> >> On Sat, May 19, 2012 at 4:27 PM, Tang Daogang <daogangtang at gmail.com>
> >> 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
> >> > webkit-gtk at lists.webkit.org
> >> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk
> >> >
> >
> >
> >
> >
> > --
> > Nothing is impossible.
> >
> >
> > _______________________________________________
> > webkit-gtk mailing list
> > webkit-gtk at lists.webkit.org
> > http://lists.webkit.org/mailman/listinfo.cgi/webkit-gtk
> >
>
--
Nothing is impossible.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-gtk/attachments/20120521/bd262041/attachment.html>
More information about the webkit-gtk
mailing list