Lightening talk presented at ParisJS #10 in 15min
Full version should be presented at Wakanday aka
JS.everywhere(Boston, October, 15)
http://wakanday.org
Boost Fertility New Invention Ups Success Rates.pdf
State of the art: Server-Side JavaScript (ParisJS)
1. State of the Art
Server-Side JavaScript
#10
@amorgaut 4d.com
@thibarg
2011-08-31
2. Notes
These slides are part of a 15min version of
the talk for ParisJS
a more recent version has been presented at
WebWorkersCamp IV during
Open World Forum
http://www.slideshare.net/alexandre_morgaut/state-of-the-art-server-side-java-script-webworkerscamp-9406069
20. Integration-Oriented
Rhino
SpiderMonkey in Java
Interaction with Java (APIs and objects)
Helma, Persevere, Narwhal*, RingoJS, Sun Phobos...
JScript .Net
Chakra (C++)
Interaction with Windows APIs
22. Async. Event-based
One single thread
Cooperative («one at a time») with async. callbacks
nodejs (V8)
Cons Pros
Vulnerable to synchronous Can handle a lot of
operations requests
Share failure Low memory usage
Doesn’t use other cores Uses only one core
Hard to debug and maintain
24. Thread-based
One thread per context
Preemptive: Parallel code execution
About all others
Cons Pros
Memory/CPU limits Vertical scalability (cloud)
Race conditions, deadlocks, ... Thread-safety for concurrent
(internal, C++) access
Uses all available cores Uses all available cores
28. Node.js async APIs
Buffer Streams
Events Timers
File ...
Net
OS
Process
http://nodejs.org/docs/v0.5.5/api/
29. W3C / HTML5
& other standards
Console Structured clones
Blob, Blob URL* Typed Arrays*
DataView* Web Sockets
File / FileSystem Web Storage
Modules* Web Workers
Progress Events XHR 2
30. Packages & Modules
github
lot of commonjs modules in several
repositories (Persevere, Narwhal,
RingoJS, ...)
NPM: Node Package Manager
3600+ packages
CPM: CommonJS Package Manager (new)
http://wiki.commonjs.org/wiki/CommonJS
31. State of the Art
Server-Side JavaScript
The End
See us at Wakanday aka
JS.everywhere(Boston, October, 15)
@amorgaut 4d.com
@thibarg wakanday.org
@wakandasoft @wakanday
Hinweis der Redaktion
Brendan Eich creates JavaScript for NetScape 1 year after, he puts it on the server Each time Microsoft followed just one year after
JavaScript long growing maturity
Server-Side JavaScript: the come back
Maturité de l’environement (Tools, Standards, libraries) mais aussi montée des performances “ The JavaScript Performance Race”
Maturité de l’environement (Tools, Standards, libraries) mais aussi montée des performances “ The JavaScript Performance Race”