[erlang-questions] UBF(A) vs ETF / UBF(C) vs gen_fsm

Joe Armstrong <>
Sat Sep 25 12:39:43 CEST 2010


 I've been thinking ...

It would be really great if I could send messages from a browser
to erlang.

I want to add an extra button to firefox that when pressed
analyzes something about the current page and sends a message
to an erlang server.

I was reading about solvent

http://simile.mit.edu/wiki/Solvent

some quotes

" Interactively highlight parts of the page you wish to scrape,
directly in your browser, and obtain the right XPaths for them

  Edit and execute the scraper code directly in the browser, making
the development cycle fast and incremental

 Save and publish the scraper with the required metadata, so that
others can discover it

 ..."

This is *exacty* what I want to do - highlight some text in the
brower - as I release the mouse the highlighted text is sent
to and erlang server to be analysed and stored.

IMHO bookmarking a site is not interesting - it's some small fragment
on a page that interest me - I want to:

     a) highlight it
     b) edit the highlighted bit (ie throw me into an editor)
     c) store the edited result

(later I might even be able to "pre-read" a new page finding
what might be interesting for me in the page :-)

This is very generic - if I could isolate "analyze something about the
current page" into a convenient js module then I could do all sort of
fun things.

This seems to require a firefox plugin - any idea how to write this?

If I want to start a collaborative project where do I advertise for
smart javascript programmers who know the firefox internals.

The erlang stuff is easy :-) but the js is tricky - (and I guess this group is
not the best lace to ask js questions?)

(( where is the best group for this (ie js questions)))





On Thu, Sep 23, 2010 at 3:19 PM, Edmond Begumisa
<> wrote:
> Thanks Scott, I was trying to figure out how to do that... documentation
> links I was referred to are a bit scattered at the moment. I'm sure when
> they get round to working on them the Gemini UBF tools will spread.
>
> - Edmond -
>
> On Thu, 23 Sep 2010 06:43:36 +1000, Scott Lystig Fritchie
> <> wrote:
>
>> Edmond Begumisa <> wrote:
>>
>>>> Having parsed the JSON (or UBF(A) ) the parse trees would be
>>>> essentially the same thing so the contract checker would be easy.
>>
>> eb> Ditto! It's actually that blog entry that got me to look at UBF
>> eb> (what ever happened to part II of that BTW!?!) I've been
>> eb> contemplating using Gemini's UBF-JSON to make life easier on the
>> eb> XULRunner side. I don't know if you've had a look at/recommend their
>> eb> implementation...
>>
>> eb> http://github.com/norton/ubf-jsonrpc
>>
>> Yes, that's what the ubf-jsonrpc package does.  There's also the option
>> of using the http://github.com/norton/ubf stuff as-is to implement a
>> "JSF" server, which is straight JSON across a TCP socket (i.e., without
>> any JSON-RPC HTTP stuff).
>>
>> IIRC, it's just a server-side configuration option {proto, ubf} or
>> {proto, jsf} or {proto, ebf} to have an Erlang server speak UBF(A),
>> "JSF", or UBF-terms-encoded-with-term_to_binary(), respectively.
>>
>> -Scott
>>
>> ________________________________________________________________
>> erlang-questions (at) erlang.org mailing list.
>> See http://www.erlang.org/faq.html
>> To unsubscribe; mailto:
>>
>
>
> --
> Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
>


More information about the erlang-questions mailing list