edbrowse-dev - development list for edbrowse
 help / color / mirror / Atom feed
From: Adam Thompson <arthompson1990@gmail.com>
To: Karl Dahlke <eklhad@comcast.net>
Cc: Edbrowse-dev@lists.the-brannons.com
Subject: Re: [Edbrowse-dev] debian1
Date: Sat, 4 Jan 2014 21:40:41 +0000	[thread overview]
Message-ID: <20140104214041.GA11201@toaster.adamthompson.me.uk> (raw)
In-Reply-To: <20140004150354.eklhad@comcast.net>

On Sat, Jan 04, 2014 at 03:03:54PM -0500, Karl Dahlke wrote:
> > Nope, web browsers aren't as forgiving as you thought.
> 
> Well the result of that is - we have to fill in all the missing variables,
> all the objects thatmight be present in a full visual browser,
> even if those objects and methods don't really do anything.
> This of course is DOM, and would have to be done
> before or after the big rewrite,
> so the effort would not be in vein.
> The more we know about DOM the better.
Agreed, though *all* the objects is a bit of an interesting subject.
Are we talking all the mozilla objects, the webkit objects,
the internet explorer objects, the <insert_your_favourite_browser_here> objects?
Personally I'd just go for the dom standard (I think there's one somewhere),
but that's going to be a *lot* of work to get to do anything sensible.

> 
> Or ... maybe ... there is a full open source js + dom we can leverage,
> like Chrome, but it has to be completely disentangled from screens
> and visual presentations.

I've looked for one and I think someone did something based around a gtk-less
webkit, but I'm not sure how maintained (or maintainable) it is.

Also, you mentioned that you thought edbrowse didn't make it into the current
Debian release. I'm pleased to say that it is in there (and I install it as
part of my usual set of packages on Debian installs I do).
Basicly they've kept the old mozjs185 package around.
It looks like they finally (and quite rightly) want to stop doing this.

Anyway, as for a progress update:
If you look at my git fork [1] I've got buildable js*.cpp files.
However it currently just segfaults, probably because of the new gc api.
It looks like you now have to use c++ objects to store any JSObjects you create
(something called a RootedObject I think)
to tell the GC not to dispose of the underlying JSObject.
What this means in terms of edbrowse is (I think from some initial debugging,
including building smjs 24 to get the debugger to show me what's actually
happening), is that keeping the js objects (like jwin etc)
in void * variables means that they get garbage collected as soon as they're
created (well practically). If this is indeed the case,
which it looks increasingly like it is, the rewrite's just got that bit harder.

Cheers,
Adam.
[1] https://github.com/arthompson/edbrowse

  reply	other threads:[~2014-01-04 21:41 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-04 20:03 [Edbrowse-dev] debian Karl Dahlke
2014-01-04 21:40 ` Adam Thompson [this message]
2014-01-04 23:09   ` [Edbrowse-dev] debian1 Chris Brannon
2014-01-04 23:14     ` Adam Thompson
2014-01-05 15:47       ` Chris Brannon
2014-01-05  1:09 Karl Dahlke

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140104214041.GA11201@toaster.adamthompson.me.uk \
    --to=arthompson1990@gmail.com \
    --cc=Edbrowse-dev@lists.the-brannons.com \
    --cc=eklhad@comcast.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).