Coder Social home page Coder Social logo

uniclo's Introduction

uniclo

A Clojure-like language intended to be compilable into a host of target languages and environments.

It deliberately has a host phase and a target phase, where the former executes inside a JVM, and include features like macros, In that sense, it is similar to ClojureScript.

Uniclo can target multiple languages and execution environments, even in the same code fragment.

There are two specific features that enable this:

  • Compiler directives mentioning what target platforms are supported/intended; one can have many concurrent targets.
  • Native interfaces; or "FFI"s.

This is similar to Haxe, but instead of relying on an awkward ECMA-like syntax and vague semantics, Uniclo has a very stringent semantics and clearly delineates the platform-independent parts from the platform-dependent parts.

The target platform is defined by a set of features, whereof some are mutually exclusive.

All the compiler directives start with either (comment *feature* or ($.

Example Code

` ($? [:c++ :c] ;; if we are targeting C/C++ ($! ;; this means that we simply output the string literal as is "std::cout << "This is C/C++" << std::endl;" ($? :java ($! "System.println("This is Java")"))

uniclo's People

Contributors

davber avatar

Watchers

 avatar  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.