by Evan Wallace
This project appears to have gone dormant. It will be removed from the list soon unless new activity is noted.
Web-first, cross-platform programming language with an optimizing compiler.

Skew is a programming language for building cross-platform software. It compiles to straightforward, readable source code in other languages and is designed to be easy to integrate into a mixed-language code base. Right now the main target language is JavaScript but the plan is to also target other languages like C# and C++.

Notable features:

  • Open declarations
  • Operator overloading
  • Wrapped types
  • Conditional compilation
  • Lambda expressions
  • Generics with type erasure
  • Type inference

Compiler optimizations:

  • JavaScript syntax tree compaction
  • Symbol renaming
  • Function inlining
  • Constant folding
  • Tree shaking
  • Devirtualization
  • Interface removal
@import
namespace console {
  def log(text string)
}

def mod(i int, n int, text string) string {
  return i % n == 0 ? text : ""
}

@entry
def fizzBuzz {
  for i in 1..101 {
    var text = mod(i, 3, "Fizz") + mod(i, 5, "Buzz")
    console.log(text == "" ? i.toString : text)
  }
}
Information updated 11/11/17
View Comments