Live data from Hacker News

An Absolute Beginner's Guide to Node.js

blog.modulus.io

1–10 of 71 posts

Re: An Absolute Beginner's Guide to Node.js

#3
post #2

> Basically you're telling it to do something and when it's done it will call your function (callback). This is because Node is single-threaded . Do you mean multi-threaded?

No, Javascript has no notion of threads. Rather than true concurrency and a synchronization mechanism, it has callbacks (upon callbacks upon callbacks).

Re: An Absolute Beginner's Guide to Node.js

#7
post #2

> Basically you're telling it to do something and when it's done it will call your function (callback). This is because Node is single-threaded . Do you mean multi-threaded?

No, Javascript has no notion of threads. Rather than true concurrency and a synchronization mechanism, it has callbacks (upon callbacks upon callbacks).

Callbacks all the way down. I blame 42% of my recent gray hair on callbacks.

Re: An Absolute Beginner's Guide to Node.js

#8

Great post. Looks like you guys have a cool platform too. Any specifics about how it's better than what's out there?

I'd love to chat about the platform. I'm not sure if this is the correct forum for pimping it. I just don's to turn this comment area into a discussion of the platform. Hit us up on twitter @OnModulus or send an email to feedback@modulus.io.

Re: An Absolute Beginner's Guide to Node.js

#9
post #2

> Basically you're telling it to do something and when it's done it will call your function (callback). This is because Node is single-threaded . Do you mean multi-threaded?

The main application runs in a single thread and then I/O activities happen in an event loop running with a small thread pool.

Once one of those activities completes the event loop will give a signal to the main thread of the Node app and the callback will be executed.

Not sure if that helped or just confused everyone.

Re: An Absolute Beginner's Guide to Node.js

#10
post #8

Great post. Looks like you guys have a cool platform too. Any specifics about how it's better than what's out there?

I'd love to chat about the platform. I'm not sure if this is the correct forum for pimping it. I just don's to turn this comment area into a discussion of the platform. Hit us up on twitter @OnModulus or send an email to feedback@modulus.io.

Ach, go on, a quick elevator pitch won't hurt! I had the same question.
Post reply on HN