« first day (1984 days earlier)      last day (675 days later) » 

10:55 PM
@dzaima I am trying to install CBQN on a mac using make FFI=0, and it hangs on load.c for ~ 10 minutes... I figured something was wrong so I stopped it, but wasn't sure. Is that normal? What is the expected compile time on a newish, pretty beefy laptop?
 
@Jonah load.c takes some time, but even on my old arm64 phone with -O3 it's ~10s max
but it does parallel builds by default, so it may be waiting on some other file, load.c being started in parallel with the faulty one; you can make manualJobs=1 FFI=0 to make it go one-by-one
 
@dzaima thanks i'll try that
 
then there's make debug FFI=0 which'll disable optimizations; if that works fine, then the optimizer is presumably getting stuck in an infinite loop (I've had that happen)
 
@dzaima so when i do make manualJobs=1 FFI=0, it hangs on jit/nvm.c. When I do make debug FFI=0 it finishes quickly, outputting a working BQN executable, but the final line of the compilation output is clang: warning: argument unused during compilation: '-nopie' [-Wunused-command-line-argument].
 
what's clang --version?
 
11:09 PM
Apple clang version 11.0.3 (clang-1103.0.32.62)
 
ah, so my __clang_major__ < 11 probably has to be __clang_major__ >= 12
 
Thanks. Do you happen to know the recommended way to upgrade clang on Mac?
 
nope
@dzaima does changing that fix it for you?
@dzaima oops, __clang_major__ <= 12
 
@dzaima, Yes, that fixes it and it compiles successfully with only make FFI=0after that change.
 
yay
 
11:18 PM
Thanks again! And thanks for the implementation!
 
@dzaima pushed that
 
11:35 PM
(apparently the only thing -no-pie does is reduce the binary size by ~1% and increase startup time by ~1%, on gcc, x86-64, linux. Presumably everywhere else (on clang it changes nothing, on my phone it causes an error, on macs it's a no-op at best) it's somewhere between useless, annoying, and error-inducing. maybe fine to remove? It's just a linker flag currently, so it can't even affect performance of actual code)
 
11:55 PM
Is this js file a complete implementation of BQN in JS?
 
@Jonah yeah; but note that the file is 150KB and has a couple very long lines (of precompiled BQN)
 

« first day (1984 days earlier)      last day (675 days later) »