ChanServ changed the topic of #zig to: zig programming language | https://ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<mikdusan> a thought on enum ranges and @enumToInt https://gist.github.com/mikdusan/785c6feadf36a800b94f7c90e5fe86dd
diltsman has quit [Ping timeout: 256 seconds]
return0e has joined #zig
<shachaf> The story with C++20 coroutines:
<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]
Ichorio has quit [Ping timeout: 255 seconds]
<gamester> "const a: ?[*c]i32 = null;" --> "unreachable: zig/src/codegen.cpp:gen_const_val_ptr:5911"
Zaab1t has quit [Quit: bye bye friends]
<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: This commit breaks zig translate-c for me (it can't find c stdlib headers) https://github.com/ziglang/zig/commit/1ec1097bd389b9af1b3e40d9edbc4c1c0b65f6a1
<andrewrk> gamester, try with `--library c` ?
<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
<andrewrk> yes that's correct
<gamester> okay
<andrewrk> it will probably work without that once https://github.com/ziglang/zig/issues/514 is solved
_whitelogger has joined #zig
<andrewrk> gamester, did it work with latest version and --library c?
<gamester> yes
<gamester> andrewrk: Feedback on an error message which might possible confuse: https://pastebin.com/raw/XXSkvQBT
<andrewrk> gamester, see also https://github.com/ziglang/zig/issues/1967
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.
Dennis_ has quit [Ping timeout: 256 seconds]
<scientes> what?
<scientes> when did zig become a C compiler?
<scientes> o i see
walac has quit [Ping timeout: 264 seconds]
kristate_ has joined #zig
kristate has quit [Ping timeout: 264 seconds]
klltkr has joined #zig
walac has joined #zig
reductum has joined #zig
scientes has quit [Ping timeout: 255 seconds]
scientes has joined #zig
scientes has quit [Remote host closed the connection]
wilsonk has quit [Read error: Connection reset by peer]
<andrewrk> develonepi3, what is this we're looking at?
Akuli has joined #zig
<develonepi3> andrewrk, I created a kernel7.img which I ran on RRi2 see https://github.com/develone/Ultibo_Projects/blob/master/ultibo_zig/ZigTestProject.pas.
<develonepi3> andrewrk, my bare metal with ultibo logging to file
<andrewrk> neat
<develonepi3> andrewrk, Only need 4 files kernel7.img bootcode.bin fixup_x.dat start.elf you tftp & telnet to the system running ultibo
fsateler has quit [Read error: Connection reset by peer]
<develonepi3> andrewrk, I create zigmain.o on Ubuntu and used fpc with Lararus on RPi3B+
<develonepi3> to create the kernel7.img
fsateler has joined #zig
dewf has joined #zig
gamester has left #zig ["Leaving"]
wilsonk has joined #zig
klltkr has quit [Ping timeout: 258 seconds]
klltkr has joined #zig
kristate_ has quit [Remote host closed the connection]
reductum has quit [Quit: WeeChat 2.4]
Akuli has quit [Quit: Leaving]
kristate has joined #zig
kristate has quit [Ping timeout: 252 seconds]
brakmic has joined #zig
reductum has joined #zig
oats has joined #zig