More From This User
The Ruby 1.9.x Web Servers Booklet
A guide to understanding the different Ruby web servers and how they perform ...
Arabesque-RubyKaigi2009
Arabesque lightning talk at RubyKaigi2009
NeverBlock-RubyKaigi2009
NeverBlock Presentation at RubyKaigi2009
Ruby Programmers Best Friend
An introduction to the Ruby programming language with depth coverage of some ...
Javascript in Practice
A quick survey in real world javascript usage examples
Javascript Internals
A Lengthy Introduction to Javascript




Leave a Comment
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