OZONE Asylum
Forums
DHTML/Javascript
The best javascript engine ever
This page's ID:
28037
Search
QuickChanges
Forums
FAQ
Archives
Register
Edit Post
Who can edit a post?
The poster and administrators may edit a post. The poster can only edit it for a short while after the initial post.
Your User Name:
Your Password:
Login Options:
Remember Me On This Computer
Your Text:
Insert Slimies »
Insert UBB Code »
Close
Last Tag
|
All Tags
UBB Help
:) Sounds promising, uh?.... A couple of weeks ago, I've learnt how to make a compiler. Which is very cool and "quite" simple. Let me explain "quite", needs to define a bit of background for this one: Compilation takes a lexer and a parser. The lexer tokenizes a script in recognizable elements. The parser verifies that the token compose an understandable pattern, eg. that the obey a grammar, aka syntax: ever heard a compiler complain about a syntax error? That's when the parser part gets mad at your code. Existing tools like yacc or bison and lex, or flex, can help build such tools. Basically, what has to be defined is the language (or set of lexemes) in the form of regular expressions for each token, and the grammar, in the form of composition (substitution) rules. ....Under this new light, I've spotted the cause of the memory problem Scott had weeks ago. If you (and I hope Scott did) read my answers, you already know the way he accessed his dom elements caused circular references, eg. objects referring to objects that referr to themselves, and that these circular references were leaving some objects undestroyed when they were not in use anymore. This is due to the built-in javascript parsers of current browsers. Processing recursive syntax rules, like circular references tipycally, is very tedious: it's easy to process them to a fixed nth level, but it's diffuclt to make a generic syntax rule to encompass all possible levels of recursion of such references. I am wondering, and this is 100% theory, if it is "possible" at all. If it is, it means browsers js engines can be optimized a lot... and it opens up a way to build an Open Source js engine, for example based on Sipermonkey, but make it 100 times better than the existing ones. A js engine customized by the loones who make the best javascripts, eg. You. Me. Us. The Asylum dhtml gurus.
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »