Pony is an open source programming language created in 2012 by Sylvan Clebsch.
#144on PLDB | 12Years Old | 549Repos |
git clone https://github.com/ponylang/ponyc
Pony is an open-source, actor-model, capabilities-secure, high performance programming language
actor Main
new create(env: Env) =>
env.out.print("Hello, world!")
actor Main
var _env: Env
new create(env: Env) =>
_env = env
square(3)
fun square(num: I32): I32 =>
num * num
actor Main
new create(env: Env) =>
env.out.print("Hello World")
actor Main
new create(env: Env) =>
env.out.print("Hello, world.")
Feature | Supported | Example | Token |
---|---|---|---|
Comments | ✓ | ||
MultiLine Comments | ✓ | ||
Line Comments | ✓ | ||
Integers | ✓ | ||
Floats | ✓ | ||
Hexadecimals | ✓ | ||
Strings | ✓ | "Hello world" | " |
Print() Debugging | ✓ | env.out.print |