Giter Site home page Giter Site logo

l0gicpath / nu Goto Github PK

View Code? Open in Web Editor NEW

This project forked from programming-nu/nu

0.0 0.0 0.0 4.25 MB

Nu is an interpreted Lisp that builds on the Objective-C runtime and Foundation framework.

Home Page: http://programming.nu

License: Apache License 2.0

Makefile 0.32% Nu 39.89% Objective-C 48.00% Shell 1.42% Emacs Lisp 5.90% HTML 3.02% Ruby 1.45%

nu's Introduction

Build Status

Introduction

Hello and welcome to Nu.

I created Nu because I wanted a better way to write software.

I wanted to write with a language as flexible and powerful as Lisp, but I also wanted to be able to work with the many libraries and high-performance subsystems written in C, including the ones that I write myself. So a tight integration with C was my highest priority; that ruled and drove the implementation of Nu. That's why Nu is "C over lambda."

It is easier to integrate with C when you have a disciplined way of structuring C code. Popular scripting languages (Python, Ruby, Lua, etc.) make many implementation-dependent impositions on the C code that they call. Their artifacts are often called "glue code" and are usually ugly, cumbersome, and unpleasant to generate.

Objective-C provides a proven way of structuring C code that has no scripting language implementation dependencies. But it can do much more than that. Objective-C can also serve as a platform for a powerful dynamic language.
Nu was designed to take full advantage of that. It was also designed to provide many of the elements of successful scripting languages, notably Ruby, while adding the syntactic simplicity and flexibility of Lisp.

Legal

Nu is copyrighted open-source software that is released under the Apache License, version 2.0. For details on the license, see the LICENSE file. In its use to name a programming language, "Nu" is a trademark of Radtastical Inc.

Installation

Macintosh / Ubuntu

These are the instructions for installing Nu on a Macintosh or Linux system. Linux builds require several additional dependencies. The included ubuntu.sh script can be used to install these dependencies on a system running Ubuntu 14.04 (and possibly other versions). Installation instructions for some other UNIX-based operating systems (Debian, OpenSolaris, and FreeBSD) are in notes/OBSOLETE and will probably not work without modifications. Macintosh and Ubuntu builds are verified with Travis.

If you've installed Nu previously using a package manager (e.g. Fink, MacPorts), start by using the package manager to uninstall the old version.

Building Nu

  1. Use make to build mininush, a minimal version of the Nu shell.
$ make
  1. Now use mininush to run nuke to complete the Nu build process. This builds Nu.framework and nush, the Nu shell.
$ ./mininush tools/nuke

Installing & Testing

  1. Use mininush again to install Nu, nush, and the Nu tools.
$ ./mininush tools/nuke install

Since the copying step uses sudo, you will be prompted for your password.

  1. Test your installation.
$ nuke test

From now on, you can use the installed nush to run nuke. To see for yourself, rebuild everything from scratch:

$ nuke clobber
$ nuke
$ nuke install

See the Nukefile for other useful tasks.

System Requirements

On Macintosh systems, Nu requires Mac OS X version 10.5 or greater. It is also possible to build Nu to run on Linux systems and the Apple iPhone.

Going Further

  • notes/DEMO contains a simple tutorial exercise that can acquaint you with Nu.
  • notes/USAGE describes a few of the ways that you can use Nu.
  • notes/ERRORS contains some pitfalls that I've encountered when programming with Nu.
  • notes/TODO contains some open issues that I'd like to address in Nu.
  • The examples directory contains several fun and interesting examples.

TextMate users can drag and drop share/Nu.tmbundle onto the TextMate application icon to add Nu-specific features to TextMate.

Author

Tim Burks ([email protected])
Radtastical Inc.
Palo Alto, California, USA
http://www.radtastical.com

nu's People

Contributors

timburks avatar itfrombit avatar ijt avatar andrewschleifer avatar ksjogo avatar mkhl avatar chapados avatar philipwhite avatar kch avatar al-skobelev avatar maccheck avatar tjklemz avatar hodgeswt avatar yusefnapora avatar localhost avatar alexispurslane avatar drnic avatar jensayton avatar jab avatar martinh avatar sj26 avatar zlatanvasovic avatar rentzsch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.