[webkit-gtk] hi, I am newbie, bring one question here

Xan xan.lopez at gmail.com
Sun May 20 19:17:51 PDT 2012


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

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.

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
>


More information about the webkit-gtk mailing list