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