Programming Nu http://programming.nu/ en-us 40 The Nu Language Website Nu-2.1.0

Nu now includes built in operators for generating HTML and other XML-style markup.

For usage examples, see the test/test_markup.nu unit tests.

As a simple example, this Nu code:

(puts (&html (&body (&h1 "Hello!")
                    (&p "This is a test")
                    (&p "This is a second paragraph"))))

produces the following output:

<!DOCTYPE html><html><body><h1>Hello!</h1><p>This is a test</p><p>This is a second paragraph</p></body></html>

You'll note that no line breaks or formatting is included. These can easily be added with xmllint:

%nush sample-markup.nu | xmllint --format -
<?xml version="1.0"?>
<!DOCTYPE html>
<html>
  <body>
    <h1>Hello!</h1>
    <p>This is a test</p>
    <p>This is a second paragraph</p>
  </body>
</html>

Also, the Nu source formatter (in beautify.nu) now produces prettier output.

Download Nu here.

http://programming.nu/posts/2013/04/14/Nu-2.1.0 Sun, 14 Apr 2013 17:08:00 PDT Nu-2.1.0
Nu-2.0.1

This minor update contains better handling of classes whose init methods return something other than self, notably NSXMLDocument. It also changes loading of modules to use a single shared parser so that assignments made in a loaded file are available in the calling context (as they should have been).

This build was made from the "amalgamated" branch. Soon this branch will become "master". As with 2.0, this version of Nu is exclusively for systems running Mac OS 10.7 or iOS 4.3 and their successors.

http://programming.nu/posts/2011/09/02/Nu-2.0.1 Fri, 02 Sep 2011 15:08:00 PDT Nu-2.0.1
Nu-2.0.0

Nu 2.0 is now available through a binary installer.

See the downloads page for this update to Nu.

Nu 2.0 is a simpler, smaller version that uses new features in iOS 4.3 and Mac OS 10.7 to eliminate external dependencies and a few internal components.

  • NSRegularExpression replaces PCRE.
  • imp_implementationWithBlock() is used to generate method implementations. Previously we used libFFI for this on MacOS and a precompiled pool of method handlers on iOS. Now this pool is no longer needed.
  • The NuSymbolTable is now just an NSMutableDictionary.

To make it easier to add Nu as a drop-in component of iOS and Mac apps, the source code has been combined into two files, Nu.h and Nu.m. These are currently available in the "amalgamated" branch in the git repository, and will likely be the primary source for Nu going forward.

Nu 2.0 is intended for systems running Mac OS 10.7 or iOS 4.3 and their successors. For conciseness and simplicity, support for all other platforms is dropped.

http://programming.nu/posts/2011/08/25/Nu-2.0.0 Thu, 25 Aug 2011 09:08:00 PDT Nu-2.0.0
Nu Seems Stable (by Jason Grossman)

I've been nagging Tim to say something about the stability of recent releases of Nu, so he asked me to write this.

Nu is a new language (no pun intended - see below for the etymology of the name Nu). It hasn't yet formed the basis of an impressive suite of stable software, and you'd think hard before using it to write anything mission-critical.

Despite that, it is actually rather stable. Let me say more about why.

http://programming.nu/posts/2009/12/09/stability Wed, 09 Dec 2009 00:07:00 PDT stability
vi tips for Nu

I'm collecting some tips for using the vim code editor with Nu.

http://programming.nu/posts/2009/11/22/vi Sun, 22 Nov 2009 00:07:00 PDT vi
Nu-0.4.0

See the downloads page for this long-overdue update to Nu.

The most visible change in this release is that the macro operator has been switched to refer to macro-1 instead of macro-0 (the original Nu macro facility). That is deprecated but kept for compatibility.

Support for garbage collection is now compiled in by default (Mac OS only).

We've also been making good progress running Nu on Linux-based systems. Currently a few small sites (including Tim's blog) are running with Nu on Rackspace Cloud Servers. See notes/DEBIANINSTALL in the Nu source distribution for details about building for Debian.

http://programming.nu/posts/2009/11/17/Nu-0.4.0 Tue, 17 Nov 2009 04:07:00 PDT Nu-0.4.0
Macros

Thanks to Jeff Buck and Issac Trotts, we have some nice changes coming to Nu macros.

The changes are modeled on the description of macros in Paul Graham's On Lisp, so our new macro facility should feel familiar to experienced Lisp programmers.

Currently the changes are in my (Tim's) git repository, and they'll be included in the next release of Nu (0.4.0).

For more detail, see Jeff's excellent tutorial.

http://programming.nu/posts/2009/01/02/macros Fri, 02 Jan 2009 04:07:00 PDT macros