August 26, 2020
On Wednesday, 26 August 2020 at 22:11:34 UTC, MrSmith wrote:
> Yes. ELF and SytemV ABI is WIP

What flags should I feed to the compiler? My output binary when I do

vox main.vox

is a main.exe Windows binary.
August 26, 2020
On Wednesday, 26 August 2020 at 20:10:09 UTC, MrSmith wrote:
> ldc2 -d-version=cli -m64 -O3 -release -boundscheck=off -enable-inlining -flto=full -i main.d -of=./tjc

I built that binary on my system and called it `vox`.

It is indeed fast; about 2.5x faster than dmd

| Lang-uage | Oper-ation | Temp-lated | Time [us/#fn] | Slowdown vs [Best] | Version | Exec |
| :---: | :---: | --- | :---: | :---: | :---: | :---: |
| D | Build | No | 16.4 | 2.4 [Vox] | v2.093.1-697-g537aa8eb1 | `dmd` |
| D | Build | No | 188.1 | 27.6 [Vox] | 1.23.0 | `ldmd2` |
| D | Build | Yes | 30.8 | 4.5 [Vox] | v2.093.1-697-g537aa8eb1 | `dmd` |
| D | Build | Yes | 204.2 | 29.9 [Vox] | 1.23.0 | `ldmd2` |
| Vox | Build | No | 6.8 | 1.0 [Vox] | master | `vox` |

I've added support for untemplated Vox language to compiler-benchmark if `vox` is found in the path. I'll add the templated version now.

Great work!
August 26, 2020
On Wednesday, 26 August 2020 at 22:21:46 UTC, Per Nordlöw wrote:
> I've added support for untemplated Vox language to compiler-benchmark if `vox` is found in the path.

I've updated the docs aswell at https://github.com/nordlow/compiler-benchmark
August 26, 2020
On Wednesday, 26 August 2020 at 22:22:52 UTC, Per Nordlöw wrote:
> I've updated the docs aswell at
> https://github.com/nordlow/compiler-benchmark

I've haven't updated the benchmarks yet, though.
August 26, 2020
On Wednesday, 26 August 2020 at 22:27:39 UTC, Per Nordlöw wrote:
> I've haven't updated the benchmarks yet, though.

I've pushed support for Vox-generics now aswell.
August 26, 2020
On Wednesday, 26 August 2020 at 17:27:48 UTC, MrSmith wrote:
> I run benchmark myself and here is what Vox code should look like based on D code:

What about adding Vox-support for performing semantic analysis only, similar to dmd's -o- flag?
August 26, 2020
On Wednesday, 26 August 2020 at 22:56:54 UTC, Per Nordlöw wrote:
> I've pushed support for Vox-generics now aswell.

Hardly any difference in compile-time for the generic version. Impressive.
August 26, 2020
On Wednesday, 26 August 2020 at 22:27:39 UTC, Per Nordlöw wrote:
> On Wednesday, 26 August 2020 at 22:22:52 UTC, Per Nordlöw wrote:
>> I've updated the docs aswell at
>> https://github.com/nordlow/compiler-benchmark
>
> I've haven't updated the benchmarks yet, though.

Here's at least numbers for

./benchmark --languages=D,Vox --function-count=200 --function-depth=450 --run-count=1

outputted in Markdown-table format:

| Lang-uage | Oper-ation | Temp-lated | Time [us/#fn] | Slowdown vs [Best] | Version | Exec |
| :---: | :---: | --- | :---: | :---: | :---: | :---: |
| D | Check | No | 6.9 | 1.0 [D] | v2.093.1-697-g537aa8eb1 | `dmd` |
| D | Check | No | 7.5 | 1.1 [D] | 1.23.0 | `ldmd2` |
| D | Check | Yes | 17.4 | 2.5 [D] | v2.093.1-697-g537aa8eb1 | `dmd` |
| D | Check | Yes | 18.8 | 2.7 [D] | 1.23.0 | `ldmd2` |
| D | Build | No | 16.8 | 2.4 [Vox] | v2.093.1-697-g537aa8eb1 | `dmd` |
| D | Build | No | 192.8 | 27.3 [Vox] | 1.23.0 | `ldmd2` |
| D | Build | Yes | 29.7 | 4.2 [Vox] | v2.093.1-697-g537aa8eb1 | `dmd` |
| D | Build | Yes | 211.0 | 29.9 [Vox] | 1.23.0 | `ldmd2` |
| Vox | Build | No | 7.1 | 1.0 [Vox] | master | `vox` |
| Vox | Build | Yes | 7.9 | 1.1 [Vox] | master | `vox` |

vox build equals dmd check in speed!

I guess it's time to start running the binary aswell to see if there are any speed differences.
August 26, 2020
On Wednesday, 26 August 2020 at 23:07:28 UTC, Per Nordlöw wrote:
> I guess it's time to start running the binary aswell to see if there are any speed differences.

Vox uses SSA form + linear scan register allocation, but no other major optimizations are done yet. I would guess performance between debug and release version of other compilers. You may want to check --print-mem and --print-time flags to get detailed stats.
August 27, 2020
On Wednesday, 26 August 2020 at 23:14:57 UTC, MrSmith wrote:
> Vox ...

What does the macro syntax look like in Vox?