Hacker News new | ask | show | jobs
by capisce 4183 days ago
If you have an expensive computation task and you're paying for computing time, do you really want to be using JavaScript for the purpose?
2 comments

Probably not, but this isn't purporting to be the best way to do it. It's just a cool thing you can do in your JS code.

Especially nice for spinning something up with zero overhead. Maybe not optimal for production apps. Maybe good if you're constrained on server resources but less so on budget. Maybe good if you're still on the Lambda free tier pricing.

Actually, one of their examples was to generate image thumbnails, where they import the ImageMagick native libraries to do the heavy lifting.

Essentially, this can help offset the need for managing extra servers for those kinds of tasks.