Coder Social home page Coder Social logo

nifty's Introduction

Nifty Language

Nifty is a new, work in progress, programming language. Everything is subject to change.

using <fmt>

fn main() {
    println("Hello world!")
}

See nifty-spec.nifty for information on the language.
Install the nifty-lang VSCode extension in the highlighting folder to make it easier to read.

Directory structure:

* bench    - Benchmark code to test the speed of compiled nifty code
* examples - Example code to get an idea of how the language works
* inc      - 3rd party includes
* nsl      - The Nifty Standard Library (nsl) code
* src      - The nifty compiler code
* tst      - Test code to verify the compiler

Building

macOS

TODO

Make sure XCode, the command line tools, and CMake are installed.
LLVM can be installed with homebrew via
brew install llvm@15

If you have an ARM based mac this will install the intel version and the build will fail.
I've found the best way to fix this is to download the official mac ARM release and copy and paste in the downloaded lib folder. This should fix the build and allow the installed tools to still run.
If you know how to install the ARM version of llvm with homebrew please let me know. (Using arch -arm64 doesn't work.)

Finally, to build nifty run
sh build.sh

If you are using CLion on an ARM based mac then you need to set -DARCH=arm64 in Settings -> Build, Execution, Deployment -> CMake -> CMake options.

Currently only macOS is supported but windows, linux, and bsd will be supported as well.

Windows

TODO

Linux

TODO

BSD

TODO

nifty's People

Contributors

atsoteck avatar

Stargazers

 avatar

Watchers

 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.