Skip to content

Instantly share code, notes, and snippets.

View christineponyl's full-sized avatar

Adam Jallad christineponyl

View GitHub Profile
@christineponyl
christineponyl / main.pony
Created April 4, 2018 01:02
Shared via Pony Playground
actor Main
new create(env: Env) =>
env.out.print("Hello, world!")
@christineponyl
christineponyl / main.pony
Created April 4, 2018 01:03
Shared via Pony Playground
actor Main
new create(env: Env) =>
env.out.print("Hello, world!")
@christineponyl
christineponyl / main.pony
Created April 4, 2018 01:03
Shared via Pony Playground
actor Main
new create(env: Env) =>
env.out.print("Hello, world!")
@christineponyl
christineponyl / main.pony
Created April 4, 2018 06:01
Shared via Pony Playground
actor Main
new create(env: Env) =>
env.out.print("Hello, world!")
@christineponyl
christineponyl / main.pony
Created April 4, 2018 08:25
Shared via Pony Playground
actor Main
new create(env: Env) =>
env.out.print("Hello, world!")
@christineponyl
christineponyl / main.pony
Created April 6, 2018 09:36
Shared via Pony Playground
"""
This is ponyrun - a pony program to compile pony source code files.
It will not properly run in the playground as it expects command line arguments
and will try to use ponyc and stuff. Checkout the repo to clone and run it on your machine:
https://github.com/mfelsche/ponyrun
It can be used to execute pony source files directly on linux using binfmt_misc.
Checkout: https://github.com/mfelsche/ponyrun#usage-with-binfmt_misc
@christineponyl
christineponyl / main.pony
Created April 6, 2018 20:02
Shared via Pony Playground
use "collections"
type RPNArgument is
( I64
| {(I64): I64} val
| {(I64): String} val
| {(I64, I64): I64} val )
actor RPN
"""
@christineponyl
christineponyl / main.pony
Created April 6, 2018 21:33
Shared via Pony Playground
actor Main
new create(env: Env) =>
var x : List iso = recover
List(0, List(1, List(2, List.singleton(3))))
end
var y : List iso = recover
List(4, List(5, List(6, List.singleton(7))))
end
actor Main
new create(env: Env) =>
None
actor Main
new create(env: Env) =>
None