aboutsummaryrefslogtreecommitdiff
path: root/comparison.html
diff options
context:
space:
mode:
Diffstat (limited to 'comparison.html')
-rw-r--r--comparison.html22
1 files changed, 12 insertions, 10 deletions
diff --git a/comparison.html b/comparison.html
index bebc68b..8e28f55 100644
--- a/comparison.html
+++ b/comparison.html
@@ -32,7 +32,7 @@ With the introduction of Lindas (Jun-2008), Lua Lanes simplifies its API while
32simultaneously adding more power and speed. 32simultaneously adding more power and speed.
33 33
34Pros: 34Pros:
35 - regular Lua 5.1 module 35 - regular Lua 5.1/5.2 module
36 - completely separate Lua states, one per OS thread 36 - completely separate Lua states, one per OS thread
37 - message passing, or shared data using Lindas 37 - message passing, or shared data using Lindas
38 - no application level locking, ever 38 - no application level locking, ever
@@ -54,7 +54,7 @@ Cons:
54 54
55Sample: 55Sample:
56<< 56<<
57 require "lanes" 57 lanes = require "lanes".configure()
58 58
59 local function calculate(a,b,c) 59 local function calculate(a,b,c)
60 if not a then 60 if not a then
@@ -63,9 +63,9 @@ Sample:
63 return a+b+c 63 return a+b+c
64 end 64 end
65 65
66 local h1= lanes.new(calculate)(1,2,3) 66 local h1= lanes.gen("base", calculate)(1,2,3)
67 local h2= lanes.new(calculate)(10,20,30) 67 local h2= lanes.new("base", calculate)(10,20,30)
68 local h3= lanes.new(calculate)(100,200,300) 68 local h3= lanes.new("base", calculate)(100,200,300)
69 69
70 print( h1[1], h2[1], h3[1] ) -- pends for the results, or propagates error 70 print( h1[1], h2[1], h3[1] ) -- pends for the results, or propagates error
71<< 71<<
@@ -304,11 +304,13 @@ Cons:
304<!-- footnotes +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ --> 304<!-- footnotes +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ -->
305<hr/> 305<hr/>
306 306
307<p>For feedback, questions and suggestions: 307<p>
308<UL> 308 For feedback, questions and suggestions:
309 <li><A HREF="http://luaforge.net/projects/lanes">Lanes @ LuaForge</A></li> 309 <ul>
310 <li><A HREF="mailto:akauppi@gmail.com">the author</A></li> 310 <li><A HREF="http://github.com/LuaLanes/lanes">Lanes @ GitHub</A></li>
311</UL> 311 <li><A HREF="mailto:bnt.germain@gmail.com">the maintainer</A></li>
312 <li><A HREF="http://www.lua.org/lua-l.html">the lua mailing list</A></li>
313 </ul>
312</p> 314</p>
313 315
314<!-- 316<!--