Skip to content

Commit 199aa74

Browse files
authoredNov 21, 2024
Follow-up on #502. (#503)
1 parent 8a705d8 commit 199aa74

File tree

4 files changed

+6
-5
lines changed

4 files changed

+6
-5
lines changed
 

‎README.md

+2
Original file line numberDiff line numberDiff line change
@@ -301,6 +301,7 @@ have some inaccuracies in number parsing:
301301
| D/ldc2 | 1.742<sub>±0.002</sub> | 113.25<sub>±00.00</sub> + 708.38<sub>±00.06</sub> | 73.21<sub>±00.37</sub> |
302302
| Ruby (YAJL) | 1.745<sub>±0.005</sub> | 121.38<sub>±00.12</sub> + 219.06<sub>±00.06</sub> | 73.96<sub>±00.69</sub> |
303303
| C#/Mono | 1.789<sub>±0.010</sub> | 253.37<sub>±00.07</sub> + 31.54<sub>±00.03</sub> | 77.28<sub>±00.84</sub> |
304+
| C3 | 1.962<sub>±0.004</sub> | 111.88<sub>±00.00</sub> + 795.88<sub>±00.00</sub> | 81.93<sub>±00.35</sub> |
304305
| Haskell | 2.008<sub>±0.005</sub> | 115.88<sub>±00.00</sub> + 723.56<sub>±00.19</sub> | 86.20<sub>±00.70</sub> |
305306
| C++/g++ (Boost.PropertyTree) | 2.515<sub>±0.009</sub> | 113.40<sub>±00.06</sub> + 1439.88<sub>±00.00</sub> | 107.37<sub>±01.05</sub> |
306307
| Rust (jq) | 2.597<sub>±0.006</sub> | 113.50<sub>±00.06</sub> + 903.47<sub>±01.19</sub> | 108.44<sub>±00.97</sub> |
@@ -427,6 +428,7 @@ Base Docker image: Debian GNU/Linux trixie/sid
427428
| .NET Core | 8.0.403 |
428429
| C#/.NET Core | 4.11.0-3.24468.6 (b4e5d1dd) |
429430
| C#/Mono | 6.12.0.200 |
431+
| C3 | 0.6.4 |
430432
| Chez Scheme | 10.0.0 |
431433
| Clojure | "1.12.0" |
432434
| Crystal | 1.14.0 |

‎common/commands.mk

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ V_FLAGS := -prod -no-bounds-checking -prealloc -cflags "-Wno-error=implicit-func
99
V_VSL_CBLAS_FLAGS := $(V_FLAGS) -d cblas
1010
ZIG_FLAGS := -O ReleaseFast
1111

12-
C3_BUILD = c3c -05 --safe=no $^
12+
C3_BUILD = c3c compile -O5 --safe=no -o $@ $^
1313
CLANG_BUILD = clang $(CLANG_FLAGS) -std=c23 -o $@ $^ $(LIBNOTIFY_FLAGS)
1414
CLANG_CPP_BUILD = clang++ $(CLANG_FLAGS) -std=c++23 -stdlib=libc++ -o $@ $^ $(LIBNOTIFY_FLAGS)
1515
CRYSTAL_BUILD = crystal build --release --no-debug -o $@ $^

‎docker/Dockerfile

+2-3
Original file line numberDiff line numberDiff line change
@@ -299,9 +299,8 @@ ENV PATH="/root/bin/odin-linux-amd64-nightly+$ODIN-04/:${PATH}"
299299

300300
# https://github.com/c3lang/c3c/releases
301301
ARG C3=0.6.4
302-
RUN curl -LO https://github.com/vlang/v/releases/download/v$C3/c3-linux.tar.gz \
303-
&& tar xf c3-linux.tar.gz \
304-
&& rm c3-linux.tar.gz
302+
RUN curl -L https://github.com/c3lang/c3c/releases/download/v$C3/c3-linux.tar.gz \
303+
| tar -xz
305304
ENV PATH="/root/bin/c3/:${PATH}"
306305

307306
# https://github.com/vlang/vsl and dependencies

‎docker/versions.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ class Test {
119119
'Zig' => -> { `zig version` },
120120
'Idris 2' => -> { `idris2 --version`.split[-1] },
121121
'Odin' => -> { `odin version`.split[-1] },
122-
'C3' => -> { `c3c --version`.lines.first.split[-1] },
122+
'C3' => -> { `c3c --version`.lines.first[/C3 Compiler Version:\s+(\d+\.\d+\.\d+)/, 1] },
123123
}.freeze
124124

125125
def pad(num, str, padstr)

0 commit comments

Comments
 (0)
Please sign in to comment.