10 messages in org.mozilla.lists.dev-tech-js-engineRe: Embed Forth into Firefox.
FromSent OnAttachments
Michael A. BorisovJul 1, 2008 11:08 pm 
John J. BartonJul 2, 2008 8:09 am 
Michael A. BorisovJul 2, 2008 12:40 pm 
Marcus G. DanielsJul 3, 2008 7:42 am 
Michael A. BorisovJul 3, 2008 6:25 pm 
dekaJul 4, 2008 5:43 am 
chri...@gmail.comJul 4, 2008 6:57 am 
Sam MasonJul 4, 2008 8:21 am 
Michael A. BorisovJul 7, 2008 4:16 pm 
Michael A. BorisovJul 7, 2008 4:18 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Embed Forth into Firefox.Actions...
From:Michael A. Borisov (bori@gmail.com)
Date:Jul 2, 2008 12:40:21 pm
List:org.mozilla.lists.dev-tech-js-engine

John J. Barton wrote:

Michael A. Borisov wrote:

Hi All,

I'm considering a possibility to use Forth "natively" in my web pages to increase performance. The ideal scenario for me is to build my custom version of Firefox where JavaScript is replaced with Forth. So, my question is what should I start from?

Thank you, Michael

I'd start by counting the number of lines of Javascript in Firefox and estimating how many person-decades a reimplementation would take. Another answer could be: start with a realistic evaluation of Javascript's impact on performance, its likely to be a much smaller effect than you think. But maybe you meant to say "version of Firefox where Forth is also a viable scripting language"?

I think the difference in performance will be significant. Forth performance is about a performance of binary code. And also, I believe memory footprint will be much less for big applications. I don't think the project is going to be big. Only what I need to implement is "mapping" of C++ DOM interfaces to Forth. Plus event handling, of course. And that can be done step by step. First I just need to understand how to catch script tag with a specific language attribute value. So, it should be something like

<script language="Forth"> : test ; </script>

I will really appreciate any hints.

Thank you, Michael