Home TameJs: A JavaScript Extension for Making Event Programming Easier

TameJs: A JavaScript Extension for Making Event Programming Easier

TameJs is an extension to JavaScript created by the OK Cupid team. Its purpose is to make event programming “easier to write, read, and edit.” It can be used with Node.js or other V8 projects. According to the site: “Tame is not an attempt to dumb down async programming. It’s just a cleaner way to write it.”

You can find it in GitHub, licensed under the MIT license.

TameJs is actually based on a similar technology created by OK Cupid but designed for C++:

OkCupid serves externally over 100 million dynamic HTTP requests every day (over 1,000/second on average), each of which fires off calls to all kinds of other services, literally billions of async calls daily. Everything is Tamed, and we’ll never look back.

We’ve been watching the Node community for a while now, and here are our favorite sites/projects: HowToNode, debuggable, and Nodejitsu, and also the framework & middleware Express and Connect. The programmers at those sites have gotten us to turn our interest to Node. But async programming can fail in language scalability, if not performance scalability. JavaScript is missing native support for this kind of control-flow. (It’s worth noting C# just added an await primitive! They’re onto us.) We have the experience to see what it does to large-scale projects.

The C++ version is also available, however “it requires committing to certain other libraries you might not want (sfslite, libasync).”

About ReadWrite’s Editorial Process

The ReadWrite Editorial policy involves closely monitoring the tech industry for major developments, new product launches, AI breakthroughs, video game releases and other newsworthy events. Editors assign relevant stories to staff writers or freelance contributors with expertise in each particular topic area. Before publication, articles go through a rigorous round of editing for accuracy, clarity, and to ensure adherence to ReadWrite's style guidelines.

Get the biggest tech headlines of the day delivered to your inbox

    By signing up, you agree to our Terms and Privacy Policy. Unsubscribe anytime.

    Tech News

    Explore the latest in tech with our Tech News. We cut through the noise for concise, relevant updates, keeping you informed about the rapidly evolving tech landscape with curated content that separates signal from noise.

    In-Depth Tech Stories

    Explore tech impact in In-Depth Stories. Narrative data journalism offers comprehensive analyses, revealing stories behind data. Understand industry trends for a deeper perspective on tech's intricate relationships with society.

    Expert Reviews

    Empower decisions with Expert Reviews, merging industry expertise and insightful analysis. Delve into tech intricacies, get the best deals, and stay ahead with our trustworthy guide to navigating the ever-changing tech market.