olegp/common-node
View on GitHub ↗ ★ 240 JavaScript archived
Synchronous CommonJS compatibility layer using node-fibers
29 mentions on Hacker News by 1 person: 0 stories, 29 comments · first 2011-08-06 · latest 2023-03-16
20082026
-
As someone who wrote something similar ( https://github.com/olegp/common-node ) back in the day before async/await, I have to say that I don't see much of a need for this nowadays. The only feature that's still useful that I can think of…
comment by olegp · 2023-03-16 · in FibJS: Based on V8, uses fibers instead of async -
…JS that is portable between the browser via Web Workers and the server using Node and Common Node ( https://github.com/olegp/common-node ). We'll blog about it at https://starthq.com/blog/ in the near future.
comment by olegp · 2014-07-06 · in Farewell Node.js -
Co-routines are great! Have been using them as part of Common Node ( https://github.com/olegp/common-node ) via node-fibers for a number of projects. Both stability and performance have been admirable. For example at StartHQ (…
comment by olegp · 2014-05-01 · in Co-routines as an alternative to state machines (2009) -
…out my Common Node projects which uses fibers to emulate threads and a synchronous environment: https://github.com/olegp/common-node Here's a slightly more advanced version of a Telnet server written for Common Node:…
comment by olegp · 2013-09-05 · in It ain't about the callbacks, it's about the flow control -
…this to be the case time after time at https://starthq.com , which runs on Node but uses fibers via https://github.com/olegp/common-node .
comment by olegp · 2013-09-01 · in Exceptions (2003) -
…streams in particular where you need to wait until they become readable. I've written Common Node ( https://github.com/olegp/common-node ) to do just this and made it CommonJS and RingoJS compatible, which means the code written for Common…
comment by olegp · 2013-08-23 · in Wait.for: Sequential programming for Node.js (beta) -
Agreed, that's why we're using fibers and common-node ( https://github.com/olegp/common-node ) at https://starthq.com
comment by olegp · 2013-08-16 · in Callbacks as our Generation's Goto Statement -
You can use fibers. We are doing that via common-node ( https://github.com/olegp/common-node/ ) and are very happy with the choice at https://starthq.com
comment by olegp · 2013-08-13 · in The Future of Programming in Node.js -
…aren't a good fit in my opinion. I do like writing command line tools using Common Node though: https://github.com/olegp/common-node
comment by olegp · 2013-08-10 · in How to write a command line application in Node.js -
…a AWS micro instance. The one thing we do differently is that we're using fibers and Common Node ( https://github.com/olegp/common-node ), as well as Stick ( https://github.com/olegp/stick ) instead of Express. This lets us write complex…
comment by olegp · 2013-08-03 · in Mean Stack -
Have you looked at https://github.com/olegp/common-node ?
comment by olegp · 2013-07-26 · in Node v0.10.14 (Stable) -
Alternatively you could use fibers. We've been using them together with Common Node ( https://github.com/olegp/common-node ) at https://starthq.com with great success - running smoothly on an EC2 micro instance with 300+ concurrent users…
comment by olegp · 2013-07-21 · in Generator (yield keyword) support in CoffeeScript for Node.js -
…the current one terminates. We've handled this issue and kept business logic code simple by using https://github.com/olegp/common-node which uses fibers to present synchronous APIs, allowing us to use exceptions for error handling. Be very…
comment by olegp · 2013-05-25 · in Ask HN: Is NodeJS stable enough to build the next Twitter? -
…(V8) tends to have much higher variance in response times when compared to Java Servlets (JVM): https://github.com/olegp/common-node#benchmarks
comment by olegp · 2013-03-28 · in Web Framework Benchmarks -
…can use fibers with Node. I've been using them for StartHQ ( http://starthq.com ) via Common Node ( https://github.com/olegp/common-node ) and to be honest I don't see how I could have made it maintainable with promises, let alone no flow…
comment by olegp · 2013-03-28 · in V8 developers start working on ES6 generators for JavaScript -
Shameless plug here but I'd say Common Node is pretty good: https://github.com/olegp/common-node - it lets you write your server using a synchronous style while retaining the low memory usage and quick start up speed of Node.js. For…
comment by olegp · 2013-02-17 · in Ask HN: What is the coolest JS library out there? -
…fibers today. I've implemented a number of synchronous CommonJS specs on top of Node using fibers ( https://github.com/olegp/common-node ), which allows me to use libraries written for RingoJS (e.g. https://github.com/olegp/stick ) with…
comment by olegp · 2012-09-09 · in Why I think Node.JS is a terrible platform -
…plain coffee-script with node-fibers instead? It might also be worth looking into Common Node ( https://github.com/olegp/common-node ) that I'm working on which provides a higher level abstraction: https://gist.github.com/1447709
comment by olegp · 2012-05-23 · in List of Languages that Compile to JS -
…waiting on I/O. Here are some benchmarks I put together comparing V8 (Node) to Rhino (RingoJS): https://github.com/olegp/common-node#benchmarks
comment by olegp · 2012-05-20 · in Simple node.js compatibility layer for vert.x (work in progress) -
…benchmarks in the README to Common Node, a library that I wrote that makes using fibers easier: https://github.com/olegp/common-node#readme Lazy loading becomes very straightforward and something I do fairly often when using e.g.…
comment by olegp · 2012-04-02 · in Visual Basic, PHP, Rails. Is Node.js next? -
…of the purely asynchronous code. You can find the benchmarks and results in the project README: https://github.com/olegp/common-node#readme Here are the graphs: http://www.slideshare.net/olegp/server-side-javascript-going...
comment by olegp · 2012-02-15 · in Ace - Sinatra for Node with Fibers -
…server side work, so I've made it possible on Node with the help of node-fibers. Common Node ( https://github.com/olegp/common-node/ ) gives you the best of both worlds: it's easy to develop in & debug just like Ringo yet has low memory…
comment by olegp · 2012-02-03 · in Node.js isn't a silver bullet, but it's still a bullet. -
…working with Node, you should check out https://github.com/laverdet/node-fibers . I use it in my https://github.com/olegp/common-node package to address the same issues as those tackled by StratifiedJS.
comment by olegp · 2012-02-01 · in StratifiedJS: Javascript + structured concurrency -
…. For some benchmarks, check out my Common Node project's README: https://github.com/olegp/common-node
comment by olegp · 2012-01-26 · in Node.js - A giant step backwards? -
…performance to purely asynchronous webapps, check out the README to my Common Node project ( https://github.com/olegp/common-node ), which implements a number of synchronous CommonJS proposals on Node using fibers.
comment by olegp · 2011-12-01 · in Luvit - Lua + UV + Jit = NodeJS re-implemented in Lua -
…threads is totally doable in Node using node-fibers. For benchmarks, check out the README at http://github.com/olegp/common-node/
comment by olegp · 2011-10-03 · in A response to Node.js is cancer - The Diagnosis -
My JSGI implementation in Common Node ( https://github.com/olegp/common-node ) uses node-fibers allowing it to stream out responses without blocking the event loop. In fact, by connecting an input stream to an output stream (forEachable…
comment by olegp · 2011-09-21 · in Strata Web Framework -
…at implementing the synchronous CommonJS proposals on top of Node using node-fibers. Take a look at https://github.com/olegp/common-node and scroll to the bottom to see response time distribution graphs. The node-fibers version has roughly…
comment by olegp · 2011-08-20 · in Why Events Are A Bad Idea (for High-concurrency Servers) -
…for innovation and code reuse higher up the stack. I'm doing my bit by maintaining Common Node ( https://github.com/olegp/common-node ), which is a synchronous CommonJS compatibility layer for Node.js.
comment by olegp · 2011-08-06 · in Node.js - A Giant Step Backwards