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/
<pixelherodev> egads please no
fwg has quit [Quit: .zZ( sleep is healthy )]
<leeward> mm, my source for LSI feature sizes is not good. It looks like early intel chip VLSI layout was done by hand then shrunk by only a factor of 100 or so. Totally doable for optics.
<leeward> This is what I get for skipping the silicon classes.
hf69 has joined #zig
<marler8997> pixelherodev I'm not coming up with a solution
<pixelherodev> :(
<pixelherodev> The traditional solution is "trust the people instead of the tools"
<marler8997> so I suppose having a handwritten Zig compiler written in C would have a use case here
<pixelherodev> e.g. I trust the compiler on plan9 because I trust the 9front community
<marler8997> but wait a second, Dlang would have this same problem of trust
<marler8997> and I'm pretty sure they have a dlang package
<marler8997> in Debian
<g-w1> I think gcc has a backend for it
<marler8997> yes, but the problem is the backend (Zig's backend is in C++)
<marler8997> it's the frontend
<earnestly> pixelherodev: quantum exploits that
<pixelherodev> earnestly: quantum?
<earnestly> pixelherodev: nsa leaks
<pixelherodev> ...link?
xackus_ has quit [Ping timeout: 240 seconds]
<earnestly> This is why reproducible builds exists
<pixelherodev> Phew; good thing my web browser has no scripting! :P
<earnestly> They have a suite of tools that attack all parts, dns, etc.
fwg has joined #zig
hlolli_ has quit [Read error: Connection reset by peer]
wilsonk has quit [Ping timeout: 240 seconds]
<pixelherodev> ... wow yeah this is more than a tad horrifying
<earnestly> And it's very old too
ur5us has joined #zig
tomku has quit [Ping timeout: 240 seconds]
a92 has joined #zig
fwg has quit [Read error: Connection reset by peer]
fwg has joined #zig
tomku has joined #zig
fwg has quit [Quit: .zZ( sleep is healthy )]
fwg has joined #zig
fwg has quit [Client Quit]
wilsonk_ has joined #zig
nycex has joined #zig
nycex- has quit [Ping timeout: 240 seconds]
st4ll1 has quit [Ping timeout: 240 seconds]
st4ll1 has joined #zig
ifreund has quit [Quit: WeeChat 3.0]
ifreund has joined #zig
marijnfs has joined #zig
marijnfs1 has quit [Ping timeout: 265 seconds]
a92 has quit [Quit: My presence will now cease]
<mla> a fn to take a [*c]u8 string that looks forward for the 0 senintal; and converts to [:0]u8? is there something like that in the std lib?
<fengb> std.mem.spanZ
<mla> fengb: nice, works
<mla> thanks
leon-p has joined #zig
radgeRayden has joined #zig
ur5us has quit [Ping timeout: 260 seconds]
squeek502 has quit [Remote host closed the connection]
mikdusan has quit [Read error: Connection reset by peer]
mikdusan has joined #zig
freshmaker666 has quit [Remote host closed the connection]
freshmaker666 has joined #zig
spiderstew_ has joined #zig
nycex- has joined #zig
spiderstew has quit [Ping timeout: 258 seconds]
nycex has quit [Ping timeout: 240 seconds]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
radgeRayden has quit [Remote host closed the connection]
waleee-cl has quit [Quit: Connection closed for inactivity]
hf69 has quit [Ping timeout: 260 seconds]
xackus_ has joined #zig
xackus_ has quit [Client Quit]
Wolf480pl has quit [Ping timeout: 260 seconds]
Wolf480pl has joined #zig
sord937 has joined #zig
squeek502 has joined #zig
decentpenguin has quit [Quit: ZNC crashed or something]
decentpenguin has joined #zig
notzmv has quit [Ping timeout: 256 seconds]
gpanders has quit [Ping timeout: 246 seconds]
lemmi has quit [Remote host closed the connection]
lemmi has joined #zig
ur5us has joined #zig
fwg has joined #zig
fwg has quit [Read error: Connection reset by peer]
fwg has joined #zig
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
lucid_0x80 has joined #zig
spiderstew_ has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
spiderstew has joined #zig
ur5us has quit [Ping timeout: 260 seconds]
ur5us has joined #zig
cole-h has quit [Ping timeout: 264 seconds]
ur5us has quit [Ping timeout: 260 seconds]
dumenci has joined #zig
mattmurr___[m] has joined #zig
lucid_0x80 has quit [Ping timeout: 256 seconds]
wootehfoot has joined #zig
nycex- has quit [Remote host closed the connection]
rzezeski has quit [Quit: Connection closed for inactivity]
nycex has joined #zig
<dutchie> are there any guarantees about the number of bits in a usize?
wootehfoot has quit [Quit: Leaving]
<ifreund> it's pointer sized
<ifreund> e.g. 32bits on a 32bit system, 64 on 64 bit system
ifreund1 has joined #zig
ifreund has quit [Ping timeout: 260 seconds]
<dutchie> so e.g. @as(usize, @as(u64, 0)) will either compile or not depending on the target?
cren has joined #zig
<dutchie> ok, maybe that's a bad example because 0 always fits
<ifreund1> comptime std.debug.assert(@bitSizeOf(usize) == 64); would be the way to assert that
ifreund1 is now known as ifreund
leon-p has quit [Quit: leaving]
<dutchie> my real question is "how confident can i be that i can do slice indexing with u32" and the answer is "pretty confident as long as i don't start going down some embedded/historical computing hole"
<dutchie> i suppose
tomku has quit [Ping timeout: 272 seconds]
tomku has joined #zig
<ifreund> yep, that sounds about right
g_w1 has joined #zig
leon-p has joined #zig
jokoon has joined #zig
frmdstryr has joined #zig
gpanders has joined #zig
fwg has quit [Quit: .zZ( sleep is healthy )]
fwg has joined #zig
fwg has quit [Quit: .zZ( sleep is healthy )]
fwg has joined #zig
fwg has quit [Client Quit]
donniewest has joined #zig
jokoon2 has joined #zig
jokoon has quit [Ping timeout: 246 seconds]
waleee-cl has joined #zig
fwg has joined #zig
fwg has quit [Client Quit]
fwg has joined #zig
fwg has quit [Quit: .zZ( sleep is healthy )]
fwg has joined #zig
fwg has quit [Read error: Connection reset by peer]
fwg has joined #zig
waleee-cl has quit [Ping timeout: 260 seconds]
kwilczynski has quit [Ping timeout: 260 seconds]
Wolf480pl has quit [Excess Flood]
Wolf480pl has joined #zig
r0bby has quit [Ping timeout: 260 seconds]
g-w1 has quit [Ping timeout: 246 seconds]
kushalp has quit [Ping timeout: 260 seconds]
g_w1 has quit [Ping timeout: 264 seconds]
kushalp has joined #zig
g_w1 has joined #zig
g-w1 has joined #zig
r0bby has joined #zig
kwilczynski has joined #zig
waleee-cl has joined #zig
rzezeski has joined #zig
jokoon2 has quit [Quit: Leaving]
fwg has quit [Quit: .zZ( sleep is healthy )]
fwg has joined #zig
leon-p has quit [Quit: leaving]
fwg has quit [Quit: .zZ( sleep is healthy )]
hnOsmium0001 has joined #zig
gpanders has quit [Quit: ZNC - https://znc.in]
Akuli has joined #zig
marnix has quit [Read error: Connection reset by peer]
fwg has joined #zig
marnix has joined #zig
grorkster has joined #zig
fwg has quit [Quit: .zZ( sleep is healthy )]
a_chou has joined #zig
a_chou has quit [Client Quit]
fwg has joined #zig
xackus has joined #zig
<xackus> the 0.7.1 binary from ziglang.org passes wrong system library paths to lld for me. anyone else had this issue?
<xackus> works fine if I compile zig myself
<xackus> it passes /usr/lib/x86_64-linux-musl instead of /usr/lib/x86_64-linux-gnu
<ifreund> xackus: interesting, could you open an issue?
<ifreund> I'm not sure how exactly the binaries for ziglang.org were made
<xackus> i think it uses the triple it was compiled for
<g-w1> ah, I was also having this problem, that explains it. probably the ci uses musl, but I use glibc
<xackus> ifreund: i will try to fix it myself first
cole-h has joined #zig
tomku has quit [Ping timeout: 265 seconds]
tomku has joined #zig
hf69 has joined #zig
xackus has quit [Read error: Connection reset by peer]
gpanders has joined #zig
gpanders has quit [Client Quit]
xackus has joined #zig
<andrewrk> this should detect the triple rather than assume it from the target-
<xackus> andrewrk: already made a PR
<andrewrk> oh nice :)
<xackus> though I only detect the abi if on linux
fwg_ has joined #zig
radgeRayden has joined #zig
fwg has quit [Ping timeout: 258 seconds]
gpanders has joined #zig
tomku has quit [Ping timeout: 258 seconds]
tomku has joined #zig
fwg_ has quit [Read error: Connection reset by peer]
fwg has joined #zig
tomku has quit [Ping timeout: 264 seconds]
LanceThePants has quit [Read error: Connection reset by peer]
LanceThePants has joined #zig
fwg has quit [Quit: .zZ( sleep is healthy )]
tomku has joined #zig
grorkster has quit [Remote host closed the connection]
nycex- has joined #zig
nycex has quit [Ping timeout: 240 seconds]
<ifreund> hmm, all the functions in src/Package.zig are dead code
<ifreund> and we are currently leaking memory and not closing fds when using more than just the root package :D
dumenci has quit [Ping timeout: 256 seconds]
nycex- has quit [Remote host closed the connection]
nycex has joined #zig
<ifreund> why do we have --main-package-path?
fwg has joined #zig
nycex has quit [Ping timeout: 240 seconds]
nycex has joined #zig
frmdstryr has quit [Ping timeout: 260 seconds]
<andrewrk> the main package path decides the root directory that you can't @import or @embedFile outside of
<ifreund> ah so if you want to have the root source file nested somewhere deeper in the project for some reason?
amk has quit [Remote host closed the connection]
<andrewrk> yeah
<ifreund> I guess a more reasonable use-case would be embedding assets outside of the src directory
<andrewrk> which is the case if you use `zig test` and then it wants to import something up a dir
<ifreund> makes sense
amk has joined #zig
gpanders has quit [Ping timeout: 240 seconds]
ur5us has joined #zig
gpanders has joined #zig
tomku has quit [Ping timeout: 260 seconds]
tomku has joined #zig
fwg_ has joined #zig
fwg_ has quit [Client Quit]
fwg has quit [Ping timeout: 256 seconds]
fwg has joined #zig
kenran has joined #zig
frmdstryr has joined #zig
gpanders has quit [Ping timeout: 256 seconds]
tomku has quit [Ping timeout: 260 seconds]
tomku has joined #zig
fwg has quit [Read error: Connection reset by peer]
fwg has joined #zig
gpanders has joined #zig
fwg has quit [Quit: .zZ( sleep is healthy )]
fwg has joined #zig
Akuli has quit [Quit: Leaving]
<betawaffle> Xe: are you the one with the blog i've been reading a lot recently?
gpanders has quit [Ping timeout: 240 seconds]
tomku has quit [Ping timeout: 240 seconds]
fwg has quit [Quit: .zZ( sleep is healthy )]
tomku has joined #zig
sord937 has quit [Quit: sord937]
gpanders has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
ifreund has quit [Ping timeout: 240 seconds]
ifreund has joined #zig
tomku has quit [Ping timeout: 256 seconds]
gpanders has quit [Ping timeout: 260 seconds]
marnix has quit [Ping timeout: 256 seconds]
tomku has joined #zig
kenran has quit [Quit: leaving]
radgeRayden has quit [Quit: https://quassel-irc.org - Chat comfortably. Anywhere.]
xackus has quit [Ping timeout: 260 seconds]
gpanders has joined #zig
protheory8-new-m has quit [Ping timeout: 260 seconds]
protheory8-new-m has joined #zig
swills has joined #zig
donniewest has quit [Quit: WeeChat 3.0]
frmdstryr has quit [Ping timeout: 272 seconds]
isolier0 has joined #zig
isolier has quit [Ping timeout: 256 seconds]
isolier0 is now known as isolier
leon-p has joined #zig
ur5us has quit [Ping timeout: 258 seconds]
<leeward> Is there a way to have a variable with static duration but local (to a function) scope in Zig?
<fengb> `const Static = struct { const this_is_static = 1; }`
<leeward> That's a type, and it has no variables.
<leeward> I'm looking for an equivalent of `int foo() { static int n = 0; n++; return n }`
<fengb> You can declare variables inside the struct
<fengb> And it becomes "static" to the scope of the function
tomku has quit [Ping timeout: 256 seconds]
<fengb> `const Static = struct { var n = 0; }; Static.n += 1; return Static.n;`
<leeward> huh, weird
<leeward> How does that not violate the type's constness?
<fengb> Because it's a declaration :P