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
[quote] [b]_Mauro said:[/b] how comes those issues don't arise with other semi-interpreted / semi-compiled languages like Java (the garbage collection model of Java is very close to javascript, afaik)? I have applets that can run for days.[/quote]Well, how many of the objects you're using in those applets come from another environment, such as COM? Most Java programs don't even touch the outside world, all objects used are native Java constructs and interfaces, and everything resides in the same object space - governed by the Java garbage collector. But how well do think Java would handle it if half the objects used in the program were COM objects written in C/C++ or even Visual Basic, as is the case in most web scripting in iew? [quote] does it make sense design-wise to have a scripting language without memory control be subject to huge memory management issues?[/quote]Well, no. But that's the thing I think you're not realising - the language and the browser are separate things. The memory leak isn't in the JavaScript engine, the memory leak is in the browser host. It's actually quite hard to find a memory leak in the language engine itself. The host environment is badly designed, because JScript didn't even exist when COM was designed and COM was never built to work with a language as powerful as JScript. COM was built for VB and never had to deal with things like closures. Iew is using an object model that isn't advanced enough to support the main scripting engine. Had COM been mark-and-sweep garbage collected - or even just had a garbage cycle detector - then you wouldn't see even a tenth of the memory leaks you can find today. [quote]what is your background? You said welcome to my world. Where / what is your world?[/quote]Last two years, I've been studying parsing and compiler building and tried to build parsers for various things, among them JavaScript and CSS, in more than one language. Most recently I've spent my evenings on writing a real, full-fledged parser for selectors in JavaScript to implement the [url=http://www.w3.org/TR/selectors-api/]Selectors API[/url]. (Which is practically complete, by the way. I'm writing on the code generator at the moment.) -- var Liorean = { abode: "[sigrotate][url]http://liorean.web-graphics.com/[/url]|[url]http://codingforums.com/[/url]|[url]http://web-graphics.com/[/url][/sigrotate]", profile: "[url]http://codingforums.com/member.php?u=5798[/url]"}; [small](Edited by [url=http://www.ozoneasylum.com/user/5032]liorean[/url] on 06-07-2006 19:47)[/small]
Loading...
Options:
Enable Slimies
Enable Linkwords
« Backwards
—
Onwards »