Skip to content

Commit

Permalink
add pony
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Jan 19, 2024
1 parent fae1bd7 commit fae16f6
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
8 changes: 8 additions & 0 deletions count.pony
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
actor Main
new create(env: Env) =>
var target: U32 = try env.args(1)?.u32()? else 0 end
var i: U32 = 0
while i < target do
i = (i + 1) or 1
end
env.out.print(i.string())
5 changes: 5 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,9 @@ COPY ./swift.sh ./swift.sh
RUN ./swift.sh
ENV PATH="/root/.swift/usr/bin:$PATH"

ENV PATH="/root/.local/share/ponyup/bin:$PATH"
RUN (curl -fSL https://raw.githubusercontent.com/ponylang/ponyup/latest-release/ponyup-init.sh | sh) || true \
&& ponyup default x86_64-linux-ubuntu22.04 \
&& ponyup update ponyc release

WORKDIR /var/count
5 changes: 5 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -339,3 +339,8 @@ build-swiftc: (_check "swiftc") && (_size "count")
swiftc --version > VERSION
swiftc ./count.swift -o count -O
echo './count {{i}}' > CMD

build-pony: (_check "ponyc") && (_size "count")
ponyc --version > VERSION
ponyc
echo './count {{i}}' > CMD

0 comments on commit fae16f6

Please sign in to comment.