3 ms·
$ time make rm -rf build mkdir build cp -r assets build/assets gcc -std=c11 -Wall -Wno-unused-result -fno-common -DSOGL_MAJOR_VERSION=3 -DSOGL_MINOR_VER
by cozzyd 5y ago
$ time make
rm -rf build
mkdir build
cp -r assets build/assets
gcc -std=c11 -Wall -Wno-unused-result -fno-common -DSOGL_MAJOR_VERSION=3 -DSOGL_MINOR_VERSION=3 -D_POSIX_C_SOURCE=199309L -o build/space-shooter -g -DSPACE_SHOOTER_DEBUG src/shared/*.c src/game/*.c src/platform/linux/*.c -lX11 -ldl -lGL -lm -lpthread -lasound
real 0m0.437s
user 0m0.288s
sys 0m0.079s
that's what I like to see...
Conversely, I recently wrote a simple grafana plugin (my first time using typescript and "modern" web tooling) and I don't know what the hell yarn does but I can compile and play this game several times before it finishes.
- deleted 5y ago[deleted]
- armchairhacker 5y agouse esbuild or something which uses esbuild (e.g. vite). Fast compilation on code change is a must.
- Aeolun 5y agoEsbuild by itself is still an order of magnitude faster than any traditional bundler using it.
- queuebert 5y agoWhenever I come back to C from Rust and this happens, it freaks me out. Like, is that it? Did it finish already?
- DarylZero 5y agoTry Haskell ROFL
- pjmlp 5y agoIt also happens to me in C++, because I always use binary libraries. Still looking forward to the day cargo will support them. Having said that, the more AOT compiled languages that join the Turbo Pascal/Modula-2/Oberon/Delphi/Eiffel/Go compile times club the merrier.