README.md in h8-0.1.4 vs README.md in h8-0.2.1
- old
+ new
@@ -6,11 +6,12 @@
This gem was intended to replace therubyracer for many reasons:
* therubyracer has critical bugs that are not fixed for a long time, under load it produces
numerous frequent crashes.
-* therubyracer still uses antique version of V8, H8 uses the latest 3.31 branch
+* therubyracer still uses antique version of V8, H8 uses the latest 3.31 branch, which, for example,
+has the generators support.
* H8 is designed to provide very tight and effective integration of two allocation systems and
object models, passing the same objects between different systems wrapping and unwrapping them
rather than copying and changing
@@ -34,16 +35,17 @@
- Uncaught ruby exceptions are thrown as javascript exceptions in javascript code. The same,
uncaught javascript exceptions raise ruby error in ruby code.
- Integrated CoffeeScript support
-## Main difference from therubyracer/features not ready
+- H8 is thread safe (using Lockers) and releases gvl when executing js code (and reqcquires it as
+need), thus other ruby threads can work in parallel with javascript executing threads. Still,
+h8 does not releases Locker when calling ruby code from javascript - for performance considerations.
-- H8 is thread safe (uses Lockers) but script is executed in the calling ruby thread without
-releasing gvl (other ruby threads can not perform on this core while javascript code runs). We are
-working on it, as simply releasing GVL and reacquring it may degrade performance.
+## Main difference from therubyracer/features not ready
+
- labmda/proc passed as var to the context **does not receives first (this) argument
automatically!**
E.g. rubyracer code
@@ -96,14 +98,10 @@
Install first a valid v8 version. We provide a ready package!
sudo apt-get install libv8-3.31-dev
-It should install prerequisites, if not, manually install
-
- sudo apt-get install libicu-dev
-
-You might also need to install GMP.
+Usually it is all you need. Rarely, You might also need to install GMP.
### Setting up
Add this line to your application's Gemfile: