• Embed Doc
  • Readcast
  • Collections
  • 1
    CommentGo Back
Download
 
JAVASCRIPT
The Little Language That Can
 
What is Javascript?
 
I inventedJavascript!Brendan Eitch, CTO, Mozilla Corp.
of 00

Leave a Comment

You must be to leave a comment.
Submit
Characters: ...

I am fairly new to javascript (and for that matter OOP) but I have been programming test/debugging systems for more than 40 years and also worked on the first (mainframe) spreadsheet at ICI in 1974. Is there anybody who can explain to me:- 1. why a simple conversion of a single byte (i.e char string with length =1) to a decimal value:- String.fromCharCode(n) is so relatively very very slow - when it should be one of the fastest operations around?? also, 2. why is testing a single char also so comparatively slow and has quite different speeds depending upon these various specifications. text.substr(0,1); text.substring(0,1); text[0]; 3. how much memory a 'typical' object occupies (a simple example might help with actual dec/hexlengths of the objects components) a. internally (as used by the j/s interpreter/engine) b. as a string (as expanded for exporting/external use) 4. whether an object (i.e. effectively its 'asString' value) is the same from one thread to another - in effect can objects be saved and restored faster than 'acquiring it' again - if the object has not changed (i.e. not the values, just the object). [I have still to be convinced of the real need for objects (having written extremely concice, efficient & bug free code without them for 40 years). Persuade me I have been doing something wrong !] Thanks Ken Dakin

You must be to leave a comment.
Submit
Characters: ...