Re: netsurf-dev Digest, Vol 70, Issue 8
by lkcl luke
>> ok. this is of course assuming that you _want_ javascript - at all.
>> you would not have implemented libdom if you didn't: there's no need.
>
> That was the whole point of libdom's existance :)
:)
> http://wiki.netsurf-browser.org/Development_Plan#Road_to_JavaScript
ah, thank you for pointing out this page, chris. i was wondering if
it existed. yay, good to see.
> Curiously any form of COM or langauge binding is missing from Road to
> Javascript. I'm not sure if this means it hasn't been considered, but
> there does seem to be a gaping hole between "New layout engine" and
> "Javascript".
.... yeah :) yawning chasm is more like it.
oh, m0n0: i was hunting around just now, to see if there's any
tutorials around. i'm going to leave my computer installing
libseed-gtk3-0 and go to sleep soon, but i just wanted to point you at
this:
http://blogs.gnome.org/johan/2008/06/01/introduction-to-gobject-introspec...
notice the word "typelib"? they've incorporated that concept into
g-i. notice also that they quite literally took the code from XPCOM,
to do it?
that's.... fascinating. it means that g-i is inspired by XPCOM, and
XPCOM is inspired by COM.
that means that, at a fundamental level, all those three technologies
achieve the same thing. except that i know for a fact that the
mozilla team forgot to implement co-classes, which are utterly utterly
essential, and it means that g-i is just as fundamentally flawed as
XPCOM.
l.
11 years, 3 months
Re: Interested on javascript development, but...
by lkcl luke
> From: Carlitos Esquer <carlitos.esquer(a)gmail.com>
> Subject:
> To: netsurf-dev(a)netsurf-browser.org
> Message-ID:
> <CAGHDjo+ydcGt2ym+DX9MMCa5NNi7pLA=UTdqaH8EWBfprS1fWA(a)mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hello folks:
>
> I'm interested in develop javascrtip for netsurf, but besides that i 've
> got another proposal for you.
> Why don't develop a browser with another script language.
hi carlos,
you need to look up the success rate of the efforts to add other
languages to web browsers, first. here are some ways in which that
has been achieved, along with an assessment:
* adobe flash. it's the obvious one: it doesn't interact with the
DOM, it entirely takes over. it's the number one cause of instability
on macosx, it's the scourge of the internet and that god it's dying.
* java: same thing. should never have been allowed :)
* microsoft silverlight. this one *does* allow interaction with the
DOM, and it has resulted in things like iron ruby and iron python
gaining access to the DOM, and enabling "script language=xyz".
unfortunately, it's IE only - i'd hate to rate anyone's chances of
getting this to work under wine with Mono.
* the mozilla foundation's sponsorship of pyxpcomext. pyxpcomext was
very successful... technically. however it embedded the *entire*
python runtime as a whopping 10mbyte plugin into firefox... and
firefox *only*. the windows build process of pyxpcomext and its
matching plugin "pydom" is a complete bitch.
* google's "dart" initiative. this has *two* prongs. a) to add dart
natively (DOM access) b) to add a "temporary" fix by creating a
language translator - dart-to-javascript.
* the python-based "grail" browser, which was a very early web
browser that inspired much of the SAX, DOM and SGML parsing code that
is now in python. it was designed to, yes, you guessed it: allow
python scripts to be downloaded and executed, but they quickly
realised that the concept would not gain significant acceptance.
> We can use ruby,
> which is one of those languages, in my humble opinion, created for the job.
> May it will be revolutionary as Rails. May be not, but we can try.
i do not know if you are familiar with free software, but the general
rule of any free software project, the "we" has to be "you",
primarily. you need to be the one that takes the initiative, and if
it is interesting to others and aligns with their personal goals, they
are likely to join in and help you out.
in this case however it would not matter *which* web browser project
you picked, i would not rate your chances of anyone assisting you as
being particularly high. you might therefore wish instead to look up
the rubyjs project: http://rubyforge.org/projects/rubyjs
rubyjs was the beginnings of a port of GWT to ruby, being inspired by
the pyjamas project which james tauber had created. amazing guy, he
is.
anyway: the point is that you have javascript, and err... that's
about it. anything else simply doesn't have the mindshare.
you really have to have a damn good reason to run anything other than
javascript with DOM, and absolutely the only really fully
comprehensive and i mean 100% comprehensive project i know of which
has any reason to squeak absolutely 100% out of the entire DOM API
using a language *other* than javascript is the pyjamas-desktop
project. to bring that home: i spoke to eric of the MS IE team. he
had *never* heard of any project *ever* requiring and making full 100%
usage of the DOM API in Trident, until i created pyjamas-desktop's
mshtml port.
the reason for that is because pyjamas-desktop utilises the DOM in
order to create a GUI toolkit API: it really does need evvverything.
i don't even rate google dart's chances of success and adoption as
being particularly high, and that's funded by google's resources _and_
they created a dart-to-js compiler, because they not only have to get
it adopted in google chrome, but also they have to get it adopted in
Internet Explorer _and_ firefox _and_ opera - all major web browser
engines over which they have *no* control.
all that having been said.... :)
.... if you are still interested then yes, technically, it is a
fascinating technical area with enormous potential to bring the power
of HTML+DOM to other programming languages, and i am looking forward
to seeing some documentation and a roadmap from the netsurf team on
how javascript is to be added to netsurf (not least because those
plans will affect how others (such as carlos) might successfully add
other programming language bindings to netsurf's DOM, but also because
it is an interesting technical challenge in itself).
i also particularly look forward to helping the netsurf team once
they have made a decision either to utilise a pre-existing middleware
framework, or to learning from them should they choose to develop
their own middleware.
should the netsurf team choose to create their own middleware, then
given the technical competence of the netsurf team members i know for
a fact that it will be absolutely superb and i really look forward to
learning from it and extracting the code from the netsurf project in
order to use it in other free software projects in the future.
l.
11 years, 3 months
Interested in Spanish translation too
by Carlitos Esquer
How can i start translating to spanish?
I can do that too, if you like it ;)
well, i read the docs about, but see hardcoded messages in the glade files
how those messages are translated?
bye
hope i can help on this!
11 years, 3 months
About segfault
by Carlitos Esquer
Hello eveybody!
The segfault problem is solved...
*(compiling netsurf 2.8)*
when making in my platform (Linux 2.6.34.8 gcc 4.3.2) i need to include
the *PREFIX* in all makes
make PREFIX=/usr/local
make PREFIX=/usr/local install
after that netsurf runs from $PATH and not segfaults
that's all folks
thanks again
11 years, 3 months
(no subject)
by Carlitos Esquer
Netsurf, segmentation faults when runs outside its "Make" source directory..
If i install doing this:
DESTDIR=/usr/local make install
I've got segmentation fault, when i run netsurf/nsgtk directly from PATH ...
if if chdir to the netsurf-2.8 dir, then it runs very well (using nsgtk or
netsurf installed in /usr/local/bin)
even i did "install -c -m 755 nsgtk /usr/local/bin" by hand, and got same
failure
What is my error now!
11 years, 3 months
GTK Version please
by Carlitos Esquer
Which GTK version do you use for development, i've got some problems
compiling netsurf 2.8
------- MESSAGE INCLUDED ----
M.CONFIG: JPEG (libjpeg) enabled (NETSURF_USE_JPEG := YES)
M.CONFIG: JNG/MNG/PNG (libmng) disabled (NETSURF_USE_MNG := NO)
M.CONFIG: PDF export (haru) disabled (NETSURF_USE_HARU_PDF := NO)
M.CONFIG: glibc internal iconv enabled (NETSURF_USE_LIBICONV_PLUG
:= YES)
M.CONFIG: SVG (librsvg-2.0) auto-enabled (NETSURF_USE_RSVG := AUTO)
M.CONFIG: SVG (libsvgtiny) auto-disabled (NETSURF_USE_NSSVG := AUTO)
M.CONFIG: Sprite (librosprite) auto-disabled (NETSURF_USE_ROSPRITE :=
AUTO)
M.CONFIG: BMP (libnsbmp) enabled (NETSURF_USE_BMP := YES)
M.CONFIG: GIF (libnsgif) enabled (NETSURF_USE_GIF := YES)
M.CONFIG: PNG (libpng) enabled (NETSURF_USE_PNG := YES)
M.CONFIG: WebP (libwebp) disabled (NETSURF_USE_WEBP := NO)
Package lcms was not found in the pkg-config search path.
Perhaps you should add the directory containing `lcms.pc'
to the PKG_CONFIG_PATH environment variable
No package 'lcms' found
make[1]: se ingresa al directorio `/public/Descargas/netsurf/
netsurf-2.8/netsurf-2.8'
TESTMENT: unchanged
LINK: nsgtk
build-Linux-gtk/gtk_compat.o: In function
`nsgtk_combo_box_text_get_active_text':
/public/Descargas/netsurf/netsurf-2.8/netsurf-2.8/gtk/compat.c:122:
undefined reference to `gtk_combo_box_text_get_type'
---- FROM MAKE ---
11 years, 3 months
Interested on javascript development, but...
by Carlitos Esquer
Hello folks:
I'm interested in develop javascrtip for netsurf, but besides that i 've
got another proposal for you.
Why don't develop a browser with another script language. We can use ruby,
which is one of those languages, in my humble opinion, created for the job.
May it will be revolutionary as Rails. May be not, but we can try.
Including Ruby will be not so hard, cause is designed to be used like that.
We need to separate the DOM from each page and let the scriupts to create
the objects needed for manipulation. Ruby supports well Gtk2 after all.
Just my two cents.
Thank you very much for your attention.
Bye!
11 years, 3 months
Redraw core select menu after selection
by Chris Young
Hi
Where is the code to redraw the core select menu, after the user has
selected something? I can see where it clears the menu area (line 220
of html_interaction.c), but it doesn't redraw the original form item
at that point. It is getting redrawn somewhere else though, as I'm
getting artifacts from old redraws over the area, but it doesn't
update as it should.
Thanks
Chris
11 years, 3 months