created: 23.MAR.2025
I love to learn new programing languages, it help to open the mind to new possibilities and compare different approaches. For instance, I learned Ruby and Scala in 2010, Clojure and Haskell in 2011, Go in 2015, Kotlin 2016, Rust in 2018 and Idris, TypeScript in 2019, 2020 Pandemic strike did a bunch of pocs but not with new langs(crazy year), Zig in 2021, 2022(coding in lots of langs but nothing new) - in 2023 I'm learning Nim and V. Learn at least one lang per year. This post is not complain, it's just to share some toughts, notes and impressions.
- Multi-plataform
 - Good for Games
 - High-level strictly-typed
 - Can build cross-platform applications targeting JS, C++, C#, Java, JVM, Python, Lua, PHP, Flash
 
- Cool
 - Fun
 - Syntax feels like JavaScript
 - You will see slighly different outputs depending on the target language
 
My POCs with Haxe: https://github.com/diegopacheco/haxe-playground 
Haxe has classes, constructors and several OOP features like Java.
class Point {
    var x:Int;
    var y:Int;
  
    public function new(x, y) {
      this.x = x;
      this.y = y;
    }
  
    public function toString() {
      return "Point(" + x + "," + y + ")";
    }
}
class Main {
    static public function main() {
        var p = new Point(10, 20);
        trace(p.toString());
    }
}Like Java, Scala or Kotlin, Haxe has support for generics.
TODO
@:generic
class MyValue<T> {
  public var value:T;
  public function new(value:T) {
    this.value = value;
  }
}
class Main {
  static public function main() {
    var a = new MyValue<String>("Hello");
    trace(a);
    var b = new MyValue<Int>(42);
    trace(b);
  }
}TODO
TODO
TODO
TODO
- Rust: https://gist.github.com/diegopacheco/4b7dfeb781ad3455ae2a6b090d9deaa7
 - Scala: https://gist.github.com/diegopacheco/1b5df4287dd1ce4276631fd630267311
 - Zig: https://gist.github.com/diegopacheco/7d7c8110db68352d58a18b0e3e3c2bb0
 - Kotlin: https://gist.github.com/diegopacheco/f6beabf1451cfe1ec2dc89a19a78fdc5
 - Clojure: https://gist.github.com/diegopacheco/9453877378f007e8903a359f298a0afa
 - Haskell: https://gist.github.com/diegopacheco/057087dc7ae236bdd0700014a31c88ef
 - Nim Lang: https://gist.github.com/diegopacheco/0fb84d881e2423147d9cb6f8619bf473
 - V Lang: https://gist.github.com/diegopacheco/3d0b176eb83e569da582a0770209e22f
 - Gleam: https://gist.github.com/diegopacheco/2fdb5be0446ccb8f07d02105a46aab75
 - Misc https://gist.github.com/diegopacheco/49329d726d0e2bd1c709ba1187a92c97