Slides for my NodeConf 2012 Luvit talk.

124 views
Skip to first unread message

Tim Caswell

unread,
Jul 3, 2012, 2:01:19 PM7/3/12
to lu...@googlegroups.com

Tang Daogang

unread,
Jul 3, 2012, 10:18:48 PM7/3/12
to lu...@googlegroups.com
Great slides.
 
I am curious with the fiber feature, because bamboo's ORM was designed as synchronized style. Can you give more explanations on fiber?
 
Thank you!

On Wed, Jul 4, 2012 at 2:01 AM, Tim Caswell <t...@creationix.com> wrote:
https://github.com/creationix/nodeconf2012

Enjoy!



--
Nothing is impossible.

Tim Caswell

unread,
Jul 5, 2012, 12:03:26 PM7/5/12
to lu...@googlegroups.com
Fiber is a suger wrapper around Lua's native coroutine feature.  The "fiber" is run in a new coroutine that get's suspended while waiting for the callbacks in the wrapped async functions.  It does help with code readability in some cases and preserves the stack somewhat.  However, there is also a performance const to spinning up the new coroutines as well.

M. Edward (Ed) Borasky

unread,
Jul 5, 2012, 4:04:04 PM7/5/12
to lu...@googlegroups.com
On Tue, Jul 3, 2012 at 11:01 AM, Tim Caswell <t...@creationix.com> wrote:
> https://github.com/creationix/nodeconf2012
>
> Enjoy!

1. I had to clone the repo to read the slides; Github wouldn't let me
browse to something that big. ;-)

2. "VM competition for Node.js is a good thing"

Well, yes and no. Lua seems to have had a re-birth / excursion outside
of its "niche" in gaming recently. For example, there's luvit, of
course, but also Redis is moving to Lua with 2.6. Those two facts were
enough to get me to re-consider learning Lua, so I'm digging into it.

But if you step back a bit, Lua and JavaScript are both different
evolutionary paths "up" from Scheme. So there are half a dozen Scheme
VMs upon which one could build. And, of course, there are LLVM, the
JVM and the gforth / vmgen environment -
http://bernd-paysan.de/gforth.html - as well. At some point, such
"competition" starts to look like fragmentation, premature
optimization and re-inventing undergrad computer science.

On top of that, we have Google trying to "re-invent" C/C++/Java/C#
with Go and trying to re-invent JavaScript with Dart. And of course
there's CoffeeScript. At some point I think we have to put on our
accountant / engineering economist hats and ask "Why so many different
ways to skin the webserver cat when we're not in the cat skinning
business?"

--
Twitter: http://twitter.com/znmeb Computational Journalism Server
http://j.mp/compjournoserver

Data is the new coal - abundant, dirty and difficult to mine.

Tang Daogang

unread,
Jul 6, 2012, 2:42:22 AM7/6/12
to lu...@googlegroups.com
re-invent lua community. I like it.
 
If you want, I will follow you!

--
Nothing is impossible.

Tim Caswell

unread,
Jul 6, 2012, 10:39:33 AM7/6/12
to lu...@googlegroups.com
That slide was regarding spidermonkey, not luajit.  The API would be identical to all node.js users.  It's this exact vm competition in the browser that's given us such fast js engines in the first place.  If we move this battle to the server-side then the optimizations will be made that affect our use cases (which are very different than in the browser).
Reply all
Reply to author
Forward
0 new messages