ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
emekoi has joined #zig
hooo has quit [Quit: Connection closed for inactivity]
<emekoi> which is the better method for building cross platform libraries, http://ix.io/1y5O or http://ix.io/1y5P
<daurnimator> emekoi: I think the first.
<daurnimator> Though what often ends up happening when I write that sort of code is trying to share methods
<daurnimator> e.g. then may both have a .lock(delay). And I want to add a common method .lockNow()
<daurnimator> which results in: Mutex = struct { phandle: if (builtin.os == builtin.Os.windows) HANDLE else void, fd: if (builtin.os == builtin.Os.linux) i32 else void, fn lock(self: *@This(), delay: u32) { if (builtin.os == builtin.Os.windows) { ..... windows implementation ..... } else if (linux) { ...... linux imp ..... } } }
moo has joined #zig
wootehfoot has quit [Ping timeout: 258 seconds]
<emekoi> daurnimator, yeah that's what Mutex originally looked like
redfreeman has joined #zig
moo has quit [Read error: Connection reset by peer]
zez2c has joined #zig
zez1c has quit [Ping timeout: 250 seconds]
zez2c has quit [Ping timeout: 258 seconds]
redfreeman has quit [Remote host closed the connection]
redfreeman has joined #zig
redfreeman has quit [Remote host closed the connection]
return0e_ has joined #zig
return0e has quit [Ping timeout: 245 seconds]
_whitelogger has joined #zig
darithorn has quit [Quit: Leaving]
hooo has joined #zig
return0e_ has quit [Read error: Connection reset by peer]
return0e has joined #zig
emekoi has quit [Ping timeout: 268 seconds]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
Zaab1t has joined #zig
forgot-password has joined #zig
kristate has joined #zig
zez2c has joined #zig
Ichorio has joined #zig
Shankar has joined #zig
Shankar has quit [Client Quit]
wilsonk has quit [Read error: No route to host]
wootehfoot has joined #zig
wilsonk has joined #zig
darithorn has joined #zig
Zaab1t has quit [Quit: bye bye friends]
hooo has quit [Quit: Connection closed for inactivity]
gonzus has joined #zig
<gonzus> Hello, new here, curious about ziglang.
<gonzus> Tried sending a message to the mailing list, it bounced (twice).
<gonzus> said: 500 Error: (InterfaceError) cannot call PreparedStatement.fetchval():
<gonzus> Anyway, the message was about a suggestion: would a better name for orelse be ifnull ?
<gonzus> const tmp_buf = allocateTmpBuffer() ifnull return error.OutOfMemory;
<andrewrk> gonzus, ifnull was considered: https://github.com/ziglang/zig/issues/1023
wootehfoot has quit [Read error: Connection reset by peer]
_whitelogger has joined #zig
fsateler_ has joined #zig
fsateler has quit [Ping timeout: 244 seconds]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
gonzus has quit [Ping timeout: 256 seconds]
gonzus has joined #zig
<gonzus> andrewrk thanks for that link, and good to see there was already a discussion about this.
<gonzus> I would personally have gone with otherwise, but I guess it is too long. :-)
<gonzus> Also, let me take the chance to say that I really like what I have seen so far about zig, and I think you are doing an awesome job.
<andrewrk> thank you for the kind words
<gonzus> I hope to be able to contribute some code.
<gonzus> If you want to point me to pressing / interesting issues, please feel free to do so.
<andrewrk> gonzus, we do have the "contributor friendly" label