ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
Ichorio has quit [Ping timeout: 245 seconds]
SimonNa has quit [Ping timeout: 244 seconds]
SimonNa has joined #zig
SimonNa has quit [Ping timeout: 246 seconds]
SimonNa has joined #zig
ar1a has joined #zig
ottidmes has joined #zig
<ar1a> so what's the difference between zig and similar languages like rust?
<ar1a> wow handy
<ottidmes> andrewrk: interesting language! BTW maybe add https:// in front of ziglang.org in your topic line, to trigger the open link feature in most IRC clients
<ar1a> ^
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/
<ottidmes> thanks!
<andrewrk> thanks for the suggestion
<ottidmes> I should probably look into the wiki more, but now that I am here, how does Zig compare to Rust in terms of safety. I guess Zig targets lower level use cases, and so safety is harder to guarantee?
<andrewrk> ottidmes, zig does not have rust's `unsafe` concept and it does not have a borrow checker. however in some ways zig can be safer than rust: https://andrewkelley.me/post/unsafe-zig-safer-than-unsafe-rust.html
<andrewrk> zig relies heavily on using debug builds to detect undefined behavior: https://ziglang.org/documentation/master/#Undefined-Behavior
<andrewrk> and then when you're ready to release, you have some release options: https://ziglang.org/documentation/master/#Build-Mode
<andrewrk> some kinds of undefined behavior zig is not able to detect, even at runtime. I plan on creating an exhaustive list of these: https://github.com/ziglang/zig/issues/1966 and hopefully many of the items in the list can have runtime checks, but there will be some impossible cases of course
<andrewrk> I'll be back in an hour or so
<ottidmes> seems like a good choice, focus on correctness during development, and focus on performance for releases
gamester has joined #zig
<gamester> I really like the zig fmt and parse error notifications when I save in vim, but I'm utterly confused as to how it's happening?
<gamester> I see now, it's coming from andrew's zig.vim project which I haven't updated in forever (iirc)
ottidmes has quit [Ping timeout: 244 seconds]
<andrewrk> gamester, I believe what happened is that it was using `zig fmt` which was erroring out, but as of a recent version of zig, `zig fmt` works in stage1
kristate has joined #zig
ar1a has left #zig ["WeeChat 2.3"]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
Summertime has quit [Quit: Sunsetting.]
Summertime has joined #zig
Ichorio has joined #zig
SimonNa has quit [Remote host closed the connection]
ottidmes has joined #zig
<gamester> andrewrk: typo "sytsem" in docs
return0e_ has quit [Remote host closed the connection]
<andrewrk> gamester, fixed. also I fixed the issue you reported with @bitCast
<andrewrk> new binary download should be available within 2 hours
<gamester> awesome
<andrewrk> I fixed all the known bugs having to do with packed structs (except an issue volatile)
<andrewrk> now I'll get those docs going
return0e has joined #zig
tgschultz has joined #zig
halosghost has joined #zig
Akuli has joined #zig
tgschultz has quit [Ping timeout: 246 seconds]
<diltsman> Is Zig inline assembly format the same as GCC inline assembly format?
<andrewrk> yes
<diltsman> At least that makes it easy to find documentation.
<diltsman> I will have to look at the ways to implement memcpy on ARM. __aeabi_memcpy, __aeabi_memcpy4, aeabi_memcpy8.
darithorn has joined #zig
very-mediocre has joined #zig
kristate has quit [Remote host closed the connection]
gamester has quit [Quit: Leaving]
very-mediocre has quit [Ping timeout: 256 seconds]
barua has joined #zig
barua has quit [Ping timeout: 272 seconds]
Flaminator has left #zig [#zig]
<nbjoerg> they are essentially the same, just with extra alignment
ottidmes has left #zig ["WeeChat 2.2"]
Zaab1t has joined #zig
wootehfoot has joined #zig
Akuli has quit [Quit: Leaving]
halosghost has quit [Quit: WeeChat 2.4]
daurnimator has joined #zig
Zaab1t has quit [Quit: bye bye friends]
kristate has joined #zig