All Projects → jondgoodwin → Cone

jondgoodwin / Cone

Licence: other
Cone Programming Language

Programming Languages

c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Cone

Reading
A list of computer-science readings I recommend
Stars: ✭ 1,919 (+646.69%)
Mutual labels:  compiler, concurrency
Assemblyscript
A TypeScript-like language for WebAssembly.
Stars: ✭ 13,152 (+5017.51%)
Mutual labels:  compiler, webassembly
Asterius
A Haskell to WebAssembly compiler
Stars: ✭ 1,799 (+600%)
Mutual labels:  compiler, webassembly
Zion
A statically-typed strictly-evaluated garbage-collected readable programming language.
Stars: ✭ 33 (-87.16%)
Mutual labels:  compiler, type-safety
Binaryen.js
A buildbot for binaryen.js, a port of Binaryen to the Web, with TypeScript support.
Stars: ✭ 201 (-21.79%)
Mutual labels:  compiler, webassembly
Wasm Forth
A Forth implementation compiling to WebAssembly.
Stars: ✭ 92 (-64.2%)
Mutual labels:  compiler, webassembly
Naskah
Bahasa pemrograman dengan sintaks Bahasa Indonesia (Programming language with Indonesian syntax) 🇮🇩
Stars: ✭ 132 (-48.64%)
Mutual labels:  compiler, webassembly
Turboscript
Super charged typed JavaScript dialect for parallel programming which compiles to WebAssembly
Stars: ✭ 487 (+89.49%)
Mutual labels:  compiler, webassembly
Prototype
(deprecated) The journey continues at ASNEXT: https://github.com/AssemblyScript/assemblyscript
Stars: ✭ 2,114 (+722.57%)
Mutual labels:  compiler, webassembly
Wag
WebAssembly compiler implemented in Go
Stars: ✭ 177 (-31.13%)
Mutual labels:  compiler, webassembly
Viper
[WIP] A Pythonesque language with a design that focuses on efficiency and expressiveness. Compiles to WebAssembly
Stars: ✭ 23 (-91.05%)
Mutual labels:  compiler, webassembly
Customasm
💻 An assembler for custom, user-defined instruction sets! https://hlorenzi.github.io/customasm/web/
Stars: ✭ 211 (-17.9%)
Mutual labels:  compiler, webassembly
Ring
Innovative and practical general-purpose multi-paradigm language
Stars: ✭ 716 (+178.6%)
Mutual labels:  compiler, webassembly
Evm2wasm
[ORPHANED] Transcompiles EVM code to eWASM
Stars: ✭ 96 (-62.65%)
Mutual labels:  compiler, webassembly
Webassemblyjs
Toolchain for WebAssembly
Stars: ✭ 566 (+120.23%)
Mutual labels:  compiler, webassembly
Grain
The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾
Stars: ✭ 2,199 (+755.64%)
Mutual labels:  compiler, webassembly
Jwebassembly
Java bytecode to WebAssembly compiler
Stars: ✭ 426 (+65.76%)
Mutual labels:  compiler, webassembly
Walt
⚡ Walt is a JavaScript-like syntax for WebAssembly text format ⚡
Stars: ✭ 4,513 (+1656.03%)
Mutual labels:  compiler, webassembly
Wah
a slightly higher-level language superset of webassembly
Stars: ✭ 147 (-42.8%)
Mutual labels:  compiler, webassembly
Ppci
A compiler for ARM, X86, MSP430, xtensa and more implemented in pure Python
Stars: ✭ 210 (-18.29%)
Mutual labels:  compiler, webassembly

Cone Programming Language

Cone is a fast, fit, friendly, and safe systems programming language. It features:

  • Do-it-your-way memory management
  • Versatile type system (incl. variant types and slices)
  • Memory, thread & type safe
  • Extensive code reuse features
  • Lean, native runtime
  • Concise, readable syntax

The Cone compiler is currently under development. The current status and next steps are documented in PLAN.md.

Documentation and Other Resources

The Cone home repository offers a rudimentary build environment for Cone programs, including the Congo build tool and additional example Cone programs.

Language Features

When finished, Cone will support these features:

  • Readable, modular marriage of 3D content and behavior:
    • Simple, outline-like declarative syntax for content
    • Procedural generation and behavior interwoven in content
    • Snap-together, Internet-hosted, url-located parts
  • Compile-time memory, type, and concurrency safety checks
  • Gradual memory management: safely manage memory your way
    • Lexical, single-owner strategy for performance
    • Ref-counted or tracing GC for flexibility
    • Lifetime-constrained references for performance/simplicity
    • Custom allocators (pools/arenas) for performance
  • Lightweight concurrency
    • Co-routines, threads and actors
    • Lockless and locked permissions for safe data sharing
  • Robust type system
    • Sum types, structs, arrays, slices, ranges, aliases
    • struct subtyping via trait, interface, & parent inheritance
    • Attach methods to any type
  • Modules, macros, templates and meta-programming
  • Extensible pattern matching
    • Type-defined '~~' match operator
    • 'match' blocks using custom match methods
    • Content extraction during matching
  • Functions, Methods and Closures
    • Multiple return values and implicit return
    • Computed properties
  • 'do' block for context management
  • Concise, readable code:
    • 'this'-implied prefix operators for method cascading, etc.
    • Operator overloading
    • Control clauses for 'if', 'while', 'each'
    • Type inference
    • Parallel assignment
    • Auto-detected off-side rule
    • Blocks and 'if' are expressions
  • Unicode-aware (UTF8) text strings and variable names
  • Fast compilation and convenient packaging

Building (Windows)

A Visual Studio C++ solution can be created using the Cone.vcxproj project file. The generated object and executable files are created relative to the location of the solutions file. The build depends on LLVM 7 being installed and available at $(LLVMDIR).

Building (Linux)

To build on Linux:

sudo apt-get install llvm-7-dev
cmake .
make

Note: To generate WebAssembly, it is necessary to custom-build LLVM, e.g.:

mkdir llvm
cd llvm
svn co http://llvm.org/svn/llvm-project/llvm/trunk llvm-src
cd llvm-src/tools
svn co http://llvm.org/svn/llvm-project/cfe/trunk clang
svn co http://llvm.org/svn/llvm-project/lld/trunk lld
cd ../..
mkdir llvm-build
cd llvm-build
CC=clang CXX=clang++ cmake -G "Unix Makefiles" -DLLVM_BUILD_LLVM_DYLIB=ON -DCMAKE_INSTALL_PREFIX=/llvm/wasm -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=WebAssembly /llvm/llvm-src
make
make install

Building (Mac OS)

To build on Mac OS:

brew install --with-toolchain llvm
llvm-config --bindir

CMake will auto-detect LLVM, so all you should need to do:

cmake .
make

License

The Cone programming language compiler is distributed under the terms of the MIT license. See LICENSE and COPYRIGHT for details.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].