Giter Site home page Giter Site logo

prota's Introduction

Prota

An implementation of NewtonScript

I wrote this in 1997. It got to this point before I got distracted by other things. :) I originally called it "Proto" and got about halfway through changing it to "Prota".

It implements

  • The basic NewtonScript object model
  • A NewtonScript interpreter (missing floating point and a few other niceties)
  • A package stream reader (no writer)
  • A printer

It does not implement

  • A NewtonScript compiler (I used NTK to compile the initial objects and the interpreter test programs, which is why you'll see NTK files here.)
  • An object store
  • A UI system
  • Any other Newton technology :)

I used the Boehm conservative garbage collection library for memory management rather than the error-prone RefVar system used for precise GC in the Newton OS. There might be a nicer way to do this in C++ now, but I haven't written any serious C++ in this century. :)

This was last compiled in MS Visual C++ in 1997. I have it working on OS X (clang) in 2017. At least, it compiles and does something. :)

BTW, this is pretty close to what the original NewtonScript source code looks like. My style didn't change much in six years.

Build instructions

# required once
git clone https://github.com/ivmai/bdwgc.git
cd bdwgc
git clone git://github.com/ivmai/libatomic_ops.git
make -f Makefile.direct ABI_FLAG=-m32
cd ..

# then
make
cd test
../build/nstest

prota's People

Contributors

wrs avatar

Stargazers

Filip avatar Tammy Cravit avatar Riley Stewart avatar Basuke Suzuki avatar David MiZak avatar Alice Atlas avatar Brendan Shanks avatar Steven Frank avatar  avatar Pavel avatar Andre Alves Garzia avatar Donovan Preston avatar Paul Guyot avatar Gleb Dolgich avatar David Arnold avatar Eckhart Köppen avatar Matthew Vaughn avatar Morgan Aldridge avatar Miëtek Bak avatar Grant Hutchinson avatar  avatar

Watchers

 avatar Grant Hutchinson avatar Morgan Aldridge avatar David Arnold avatar  avatar Sylvain P. 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.