newio

Saving the world from web programming.

Coming soon.

Source on GitHub · NewIO Blog · Original newio.org (archived)

Contact: contact@newio.org

About NewIO

NewIO (also written New I/O or NIO) is a system for running programs on the Internet. Chris Nystrom described it as a network application browser, “designed specifically to run programs, instead of display documents, like a web browser.” In the first public announcement he wrote that you type a URL into the browser, an application starts on the server, and I/O comes back over a simple bidirectional message scheme. The source tree calls this “a poor man's X-Windows, although it is not a desktop system.”

He was trying to avoid building internet programs on top of the web. A web browser, he argued, was designed to display documents, and web services were being asked to do work that infrastructure was not designed for. He wanted something as easy to use as a browser — type or click a URL to run a program — while the program itself stayed on the server, the way a thin client does, without taking over the user's desktop.

The system has three parts that run through the blog and the source: a library (nio_lib) that you link into programs, a small server (niod), and an SDL client first called the Dreadnought application browser (d0). Example programs and games shipped with the releases. Resources such as sounds and images are downloaded and cached, much like a web browser. From 2006 into 2007 the message transport was moved onto a secure-shell subsystem, using libssh2, so that niod runs as an SSH subsystem and programs drive the client with a simple RPC protocol.

Work on the code is dated from 2002 in the library and server headers. The project blog opened on 12 April 2005. The Dreadnought source was posted publicly on 11 May 2005, still very alpha. The first general public release, New I/O Alpha 0.07 (build 043), came on 27 September 2005, under the GPL with the libraries under the LGPL. Alpha 0.11 build 062 (12 December 2006) added batch messages and inter-thread queues. Alpha 0.11 build 065 (3 February 2007) ran as an SSH subsystem and ported the client to Windows. The blog's last post is dated 22 January 2009.

The source is on GitHub, tagged newio-0.12. That tree is version 0.12, build 067_RC05, dated 30 January 2011. The libraries are offered under the GNU LGPL 2.1 or later; the client, server, and demos are under the GNU GPL 2 or later. Downloads of this release, and of related programs, are in Programs below. The old project blog is still at newio.blogspot.com.

Programs

Program What it is Repository Date Download
NewIO v0.12 A remote-display system: programs use a simple RPC protocol to drive an SDL client over SSH, “a poor man's X-Windows, although it is not a desktop system.” GNU LGPL 2.1. GitHub 30 Jan 2011 Download (161 KB)
NIO library A remote-display library: RPC calls to manage an SDL client over the network. nio-jukebox / nio / nio_lib 2002 Download (5.3 KB)
NIO demo apps Small NIO example programs (drawing tests, a short Star Trek demo, and others). nio-jukebox / nio / nio_demo_apps 2002 Download (3.5 KB)
niotrek An NIO port of Super Star Trek Classic (v1.1). startrek-games / niotrek 2002 Download (10.6 KB)
nlogin The NIO client program. nio-jukebox / nio / nlogin 2002, 2005 Download (15.5 KB)
niod The NIO daemon (test server 0.10). nio-jukebox / niod 2002, 2005 Download (6.2 KB)
legacy-old Older snapshots of NIO, nlogin, ssh_lib, and related work. legacy-old 2002–2005 Download (112 KB)
flip NIO Flip, a tile-flipping game. nio-jukebox / nio / flip 2004 Download (3.1 KB)
demo1 A small NIO example program. nio-jukebox / nio / demo1 2004 Download (1.6 KB)
d0 An SDL application browser from the New IO work (version 0.09). d0 May 2005–Apr 2006 Download (50.5 KB)
jukebox An NIO program that plays a list of songs. nio-jukebox / nio / jukebox 2005 Download (2.4 KB)
test A small socket/buffer test server. legacy-old / test 2005 Download (3.0 KB)
test2 A small socket test client. legacy-old / test2 2002, 2005 Download (4.3 KB)