Skip to content

Commit

Permalink
add julia
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Dec 19, 2023
1 parent 94603da commit fae1210
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,9 @@ jobs:
cargo install timers
cargo install hyperfine
cargo install ripgrep --features 'pcre2'
cargo install juliaup
juliaup add release
mkdir -p /opt/zig && cd $_
wget --quiet -O zig.tar.xz $(curl --silent https://ziglang.org/download/index.json | jq -r '.[keys_unsorted[1]]["x86_64-linux"].tarball')
Expand Down
6 changes: 6 additions & 0 deletions count.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
i = 0
target = parse(Int, ARGS[1])
while i < target
i = (i + 1) | 1
end
println(i)
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -118,3 +118,6 @@ build-assembly: (_check "nasm")
build-cobol: (_check "cobc")
cobc -O3 -free -x -o count count.cbl
echo './count {{i}}' > CMD

build-julia: (_check "julia")
echo 'julia ./count.jl' > CMD

0 comments on commit fae1210

Please sign in to comment.