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/
marnix has joined #zig
tsujp has joined #zig
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #zig
nephele_ has joined #zig
nephele has quit [Ping timeout: 240 seconds]
nephele_ is now known as nephele
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
nephele_ has joined #zig
nephele has quit [Ping timeout: 244 seconds]
nephele_ is now known as nephele
<daurnimator> ^ talking about rust-in-kernel
<companion_cube> nice!
waleee-cl has quit [Quit: Connection closed for inactivity]
nullheroes has joined #zig
_whitelogger has joined #zig
ur5us has quit [Ping timeout: 240 seconds]
_whitelogger has joined #zig
_Vi has joined #zig
KoljaKube has joined #zig
BoilerOnASurf has joined #zig
<BoilerOnASurf> Hi, how can I create an array of aligned types? like ```[_]align(4) u8 { 0, 1, 2 }```
<daurnimator> BoilerOnASurf: align applies to the variable not the type
<daurnimator> BoilerOnASurf: https://github.com/ziglang/zig/issues/2673
<BoilerOnASurf> daurnimator thank you!
<BoilerOnASurf> daurnimator the duscussion in the link talk about aligning the array itself, I would like to have an array of aligned items, is that possible?
<daurnimator> BoilerOnASurf: I think you'd have to turn it into an array of structs.... `[_]struct {a align(4):u8}{.{.a=0}, .{.a=1}, .{.a=2}}`
<daurnimator> BoilerOnASurf: might be worth a proposal... I've always thought that types should have a customisable alignment....
<BoilerOnASurf> daurnimator that would be nice, there is any issue already open on that line?
<daurnimator> i was trying to find one but just found that old issue of mine I already linked.
<daurnimator> sorta related/counter proposal: #5640
<BoilerOnASurf> daurnimator Is not clear to me if in zig the layout is considered part of the type like in C++ of some sort of metadata consumed by the allocator as in Rust?
<BoilerOnASurf> daurnimator also, the anon struct trick won't compile
<daurnimator> BoilerOnASurf: oh? hmmm. s/a align(4):u8/a: u8 align(4)/
<BoilerOnASurf> yeah the align should be at the end, thanks
BoilerOnASurf has quit [Quit: Connection closed]
cole-h has quit [Quit: Goodbye]
_Vi has quit [Ping timeout: 240 seconds]
BoilerOnASurf has joined #zig
BoilerOnASurf has quit [Client Quit]
bsrd has quit [Quit: WeeChat 2.9]
bsrd has joined #zig
st4ll1 has joined #zig
some_guest_user has joined #zig
ur5us has joined #zig
ronsor has quit [Ping timeout: 240 seconds]
ronsor has joined #zig
some_guest_user has quit [Remote host closed the connection]
klltkr has joined #zig
_Vi has joined #zig
cren has joined #zig
gazler has joined #zig
ur5us has quit [Ping timeout: 260 seconds]
marnix has quit [Ping timeout: 240 seconds]
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
marnix has joined #zig
Barabas has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
klltkr has joined #zig
<ifreund> odd, std.os.setuid takes a u32 not a std.os.uid_t
<ifreund> also, if anyone security minded is around, is it better to setuid(uid) -> mkdir -> setuid(0) to create a directory owned by an unprivileged or to mkdir and then chown it?
klltkr has quit [Read error: Connection reset by peer]
<ifreund> hrm, uid_t seems to be a u32 on my glibc linux system but std.os.linux has it as an i32
<KoljaKube> ifreund: Could the second method be exploited by some well-timed attack somehow?
<ifreund> that's my fear but I'm not sure if it's well grounded or not
<ifreund> I learned about SECBIT_NO_SETUID_FIXUP though so I'm using that with the first option for now
<ifreund> (I need the secbit since the parent dir is root-owned)
cren has quit [Ping timeout: 246 seconds]
waleee-cl has joined #zig
drewr has quit [Ping timeout: 240 seconds]
retropikzel has joined #zig
Barabas has quit [Ping timeout: 245 seconds]
retropikzel has quit [Ping timeout: 265 seconds]
ifreund has quit [Read error: Connection reset by peer]
st4ll1 has quit [Quit: WeeChat 2.9]
cr1901_modern has quit [Quit: Leaving.]
cr1901_modern has joined #zig
ifreund has joined #zig
ifreund has quit [Ping timeout: 264 seconds]
cren has joined #zig
xackus has joined #zig
BoilerOnASurf has joined #zig
BoilerOnASurf has quit [Remote host closed the connection]
ifreund has joined #zig
klltkr has joined #zig
traviss__ has joined #zig
cren has quit [Quit: later!]
traviss_ has quit [Ping timeout: 260 seconds]
LER0ever has quit [Ping timeout: 240 seconds]
waleee-cl has quit [Quit: Connection closed for inactivity]
jasonphan has joined #zig
jasonphan has quit [Client Quit]
cole-h has joined #zig
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cr1901_modern has quit [Ping timeout: 264 seconds]
klltkr has joined #zig
idxu has quit [Quit: ZNC - https://znc.in]
idxu has joined #zig
Barabas has joined #zig
<Barabas> I was expecting that if I use a `std.io.fixedBufferStream` I could make a reader and a writer and the reader would read what the writer writes.But... from briefly looking at the code it seems the reader reads what's after what the writer wrote.
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
varbhat has joined #zig
<fengb> You’ll need to reset the position manually
<fengb> If you need to track both sides, I believe a LinearFifo fits that usecase better
Barabas has quit [Ping timeout: 245 seconds]
cole-h has quit [*.net *.split]
gazler has quit [*.net *.split]
bsrd has quit [*.net *.split]
Thalheim has quit [*.net *.split]
Ristovski has quit [*.net *.split]
chivay has quit [*.net *.split]
Stephanie has quit [*.net *.split]
yeti has quit [*.net *.split]
[RMS] has quit [*.net *.split]
Barabas has joined #zig
<Barabas> Do we have one in the zig std?
cole-h has joined #zig
bsrd has joined #zig
Stephanie has joined #zig
chivay has joined #zig
Ristovski has joined #zig
Thalheim has joined #zig
gazler has joined #zig
yeti has joined #zig
[RMS] has joined #zig
varbhat has left #zig ["https://quassel-irc.org - Chat comfortably. Anywhere."]
<ifreund> std/fifo.zig
<Barabas> The problem with resetting the position is that it doesn't know how much it can actually read
klltkr has joined #zig
<Barabas> Ah cool, I'll try the fifo.
<Barabas> It works, thanks :)
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
klltkr has joined #zig
Barabas has quit [Remote host closed the connection]
Akuli has joined #zig
wootehfoot has joined #zig
ofelas has quit [Quit: shutdown -h now]
ofelas has joined #zig
knebulae has joined #zig
tsujp has quit [Ping timeout: 264 seconds]
cr1901_modern has joined #zig
waleee-cl has joined #zig
a_chou has joined #zig
msingle has joined #zig
marnix has quit [Ping timeout: 265 seconds]
marnix has joined #zig
ky0ko_ has quit [Remote host closed the connection]
marnix has quit [Ping timeout: 246 seconds]
idxu has quit [Quit: ZNC - https://znc.in]
idxu has joined #zig
marnix has joined #zig
idxu has quit [Client Quit]
idxu has joined #zig
idxu has quit [Quit: ZNC - https://znc.in]
idxu has joined #zig
Akuli has quit [Quit: Leaving]
idxu has quit [Quit: ZNC - https://znc.in]
idxu has joined #zig
idxu has quit [Client Quit]
idxu has joined #zig
ur5us has joined #zig
_whitelogger has joined #zig
sawzall has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
mipri has joined #zig
a_chou has quit [Ping timeout: 240 seconds]
msingle has quit [Ping timeout: 265 seconds]
cole-h has quit [Quit: Goodbye]
cole-h has joined #zig
a_chou has joined #zig
a_chou has quit [Read error: Connection reset by peer]
a_chou1 has joined #zig
a_chou1 is now known as a_chou
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
cr1901_modern has quit [Quit: Leaving.]
xackus has quit [Ping timeout: 258 seconds]
cr1901_modern has joined #zig