<shachaf>
They ended up with a version that requires heap allocation (?) because implementing the version without heap allocation, which in theory should be backwards compatible (?), would involve complicated optimizations (?) that no compiler knows how to implement (?), and also they ran out of time so they won't include any library support (?)
return0e_ has quit [Ping timeout: 258 seconds]
scientes has joined #zig
kristate has joined #zig
noonien has quit [Quit: Connection closed for inactivity]
<emekankurumeh[m]>
are c++20 coroutines symmetric or asymmetric?
dewf has joined #zig
darithorn has joined #zig
darithorn has quit [Remote host closed the connection]
_whitelogger has joined #zig
scientes has quit [Ping timeout: 268 seconds]
return0e has quit [Read error: Connection reset by peer]
return0e_ has joined #zig
fsateler has quit [Read error: Connection reset by peer]
fsateler has joined #zig
return0e has joined #zig
return0e_ has quit [Ping timeout: 255 seconds]
_whitelogger has joined #zig
very-mediocre has joined #zig
kristate has quit [Read error: Connection reset by peer]
marmotini_ has joined #zig
dewf has quit [Quit: Leaving]
kristate has joined #zig
Zaab1t has joined #zig
Ichorio has joined #zig
mikdusan has quit [Ping timeout: 256 seconds]
_whitelogger has joined #zig
Ichorio_ has joined #zig
marmotini_ has quit [Remote host closed the connection]
<gamester>
"#include <math.h>", zig translate-c file.h, error: 'math.h' file not found. Ubuntu 18.10 here, hopefully not borked.
<gamester>
I checked out a random commit from 4 days ago "fix incorrectly trying to memset at comptime", at that point zig translate-c still worked, but the c ptr issue is still there
<gamester>
andrewrk: It seems optional C pointers never worked. You're missing a test :)
<gamester>
andrewrk: then I get "error: 'bits/libc-header-start.h' file not found"
<gamester>
isn't programming fun?
<gamester>
:)
<andrewrk>
what version are you on?
<gamester>
oh I'm now on the version that broke the translate-c, I'll go to most recent now
<andrewrk>
I'm pretty sure I fixed that
<gamester>
The #include <math.h> error was on the most recent version
<andrewrk>
with --library c?
<gamester>
no
<andrewrk>
libc will probably be available by default once https://github.com/ziglang/zig/issues/514 is solved, but until then you don't get it unless you ask for it
<andrewrk>
zig's C compilation facilities are isolated from the rest of the system
<gamester>
ok so "zig translate-c file.h" is supposed to fail if file.h includes a c standard library, unless you do --library c?
<andrewrk>
it might seem annoying at first, but then you don't get any users filing bug reports
very-mediocre has quit [Ping timeout: 256 seconds]
Dennis_ has joined #zig
a_chou has joined #zig
a_chou has quit [Client Quit]
<develonepi3>
andrewrk, updated zig ver c4887d7f. This is the cmd that I used to get zigmain.o zig build-obj -isystem ../../include/ -isystem /usr/lib/arm-none-eabi/include -isystem /usr/lib/arm-none-eabi -target armv7-freestanding-gnueabihf zigmain.zig
<andrewrk>
develonepi3, looks good
noonien has joined #zig
scientes has joined #zig
<gamester>
Since Zig is a C compiler now, I think it may be a good idea to sometimes interface with C code using more C code and interfacing with that instead, at least for now and when the C code uses varargs. C code can be such awful nonsense.