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/
v0idify has quit [Remote host closed the connection]
nycex has joined #zig
v0idify has joined #zig
jukan has joined #zig
philtor has quit [Remote host closed the connection]
philtor has joined #zig
Pistahh has joined #zig
jukan has quit [Ping timeout: 240 seconds]
brzg has joined #zig
<andrewrk> ifreund, are you comfortable with write access to ziglang/zig? I want to give you the ability to push to this branch directly
<ifreund> andrewrk: fine by me if you trust me with it :)
<andrewrk> done
<ifreund> looks like I need to enable 2fa real quick
<andrewrk> I've got my work cut out for me in astgen, planning to focus on that until it's working then come back to zig fmt
<g-w1> i remember you saying that it was easier than fmt? did i remember correct?
<ifreund> andrewrk: cool, maybe I'll have fmt done by then :P
<andrewrk> some of the work we did on fmt helps out astgen too
<g-w1> ah
cole-h has joined #zig
gazler_ has joined #zig
gazler has quit [Ping timeout: 240 seconds]
jukan has joined #zig
zags has quit [Ping timeout: 272 seconds]
plumm has joined #zig
craigo has joined #zig
brzg has quit [Quit: leaving]
<marler8997> what was that zig library that could do ssl/tls?
<g-w1> iguanatls
<marler8997> so, would I theortically be able to use that to talk HTTPS?
<g-w1> yes, i think it lacks certificate validation, but bork uses it for requesting emotes
<marler8997> ok cool, worth a try then
jukan has quit [Ping timeout: 240 seconds]
earnestly has quit [Ping timeout: 256 seconds]
<daurnimator> TLS in zig when? :)
<daurnimator> (I know we need it; but I really don't want it at the same time....)
<daurnimator> A good starting point would be a zig ASN.1 library
dyeplexer has joined #zig
<marler8997> yeah crazy, I figure I might as well support it in my ziget library though
<marler8997> with this, zigup can be written entirely in zig
xackus has joined #zig
xackus_ has quit [Ping timeout: 240 seconds]
ylambda has joined #zig
<marler8997> struct fields that reference other fields? I remember an issue for that, what's the status on it?
karrick has joined #zig
jukan has joined #zig
_whitelogger has joined #zig
jukan has joined #zig
jukan has quit [Ping timeout: 246 seconds]
<marler8997> it was pinned structs I was looking for: https://github.com/ziglang/zig/issues/7769
n0tekky has quit [Read error: Connection reset by peer]
terinjokes has quit [Quit: ZNC 1.8.1 - https://znc.in]
terinjokes has joined #zig
jukan has joined #zig
jukan has quit [Ping timeout: 256 seconds]
xackus has quit [Ping timeout: 272 seconds]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
_whitelogger has joined #zig
hnOsmium0001 has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
jukan has joined #zig
<marler8997> very cool, with iguanaTLS I can now request assets over HTTPS on windows in Zig
<marler8997> I guess that means its time to add Windows support to zigup
<g-w1> working on patching zigup to support it rn
<g-w1> should it be default?
<marler8997> probably keep nossl as default
<g-w1> sorry, in zigup
<marler8997> not sure, I'd have to look at the code
<g-w1> ok
<daurnimator> marler8997: do your windows bindings give us Schannel?
<marler8997> let's see
<marler8997> Been considering adding SChannel support to ziget as well, was actually going to do this after I finished the win32 bindings
<marler8997> and win32 bindings are now in a usable state
jukan has quit [Ping timeout: 240 seconds]
<daurnimator> IMO we *should* have a UUID type in the std lib
<daurnimator> they're pervasive
<marler8997> I suppose we can't really answer that question until we answer the question of "what should go into the standard library"
<marler8997> as of now there seems to be differing opinions
<marler8997> what if there was no standard library ??!??
<marler8997> g-w1, I'll push another commit to your PR with additional changes
<g-w1> ok
karrick has quit [Quit: Connection closed for inactivity]
<marler8997> g-w1, did you push another commit?
<marler8997> g-w1, I've pushed the changes, if you want to review I'll merge it now
decentpenguin has quit [Quit: ZNC crashed or something]
jukan has joined #zig
decentpenguin has joined #zig
jukan has quit [Ping timeout: 256 seconds]
cole-h has quit [Ping timeout: 264 seconds]
_whitelogger has joined #zig
earnestly has joined #zig
jukan has joined #zig
leon-p has quit [Quit: leaving]
jukan has quit [Ping timeout: 264 seconds]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
gpanders has quit [Read error: Connection reset by peer]
gpanders has joined #zig
Snetry has quit [Ping timeout: 256 seconds]
Snetry has joined #zig
leah2 has quit [Ping timeout: 272 seconds]
leah2 has joined #zig
Snetry has quit [Ping timeout: 272 seconds]
Snetry has joined #zig
zags has joined #zig
Snetry has quit [Ping timeout: 265 seconds]
nycex- has joined #zig
nycex has quit [Remote host closed the connection]
Snetry has joined #zig
jukan has joined #zig
jukan has quit [Ping timeout: 256 seconds]
geemili has quit [Ping timeout: 260 seconds]
kenran has joined #zig
Snetry has quit [Ping timeout: 240 seconds]
Snetry has joined #zig
zags has quit [Ping timeout: 240 seconds]
v0idify has quit [Remote host closed the connection]
v0idify has joined #zig
wootehfoot has joined #zig
nimaje has joined #zig
jukan has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
riba has joined #zig
waleee-cl has joined #zig
kenran has quit [Quit: leaving]
jukan has quit [Ping timeout: 256 seconds]
texno has quit [Ping timeout: 265 seconds]
riba has quit [Ping timeout: 264 seconds]
albertito has left #zig [#zig]
<g-w1> hmm, so ig its a bug in iguana that the index file is not downloading correctly
jukan has joined #zig
jukan has quit [Ping timeout: 246 seconds]
leon-p has joined #zig
kenran has joined #zig
cole-h has joined #zig
<marler8997> g-w1...not sure
<marler8997> seems like it
jukan has joined #zig
osa1_ has joined #zig
osa1 has quit [Ping timeout: 246 seconds]
ed_t has quit [Quit: Leaving]
zags has joined #zig
jokoon has joined #zig
<marler8997> g-w1, yeah it looks like iguana may be adding a few characters to the end of the stream
<marler8997> might be this issue: https://github.com/alexnask/iguanaTLS/issues/8
osa1 has joined #zig
osa1_ has quit [Ping timeout: 272 seconds]
cole-h has quit [Ping timeout: 240 seconds]
jokoon has quit [Quit: Leaving]
Akuli has joined #zig
<g-w1> seems likely
Biolunar has quit [Ping timeout: 260 seconds]
kenran has quit [Quit: leaving]
a_chou has joined #zig
hnOsmium0001 has joined #zig
dyeplexer has quit [Ping timeout: 246 seconds]
emptee has joined #zig
SimonNa has quit [Remote host closed the connection]
SimonNa has joined #zig
emptee_ has joined #zig
emptee has quit [Ping timeout: 272 seconds]
craigo has quit [Ping timeout: 240 seconds]
<marler8997> is there a way to trick Zig into letting me pass null to a non-optional ptr?
<g-w1> allowzero
<marler8997> without modifying the type
<marler8997> the parameter type
<ifreund> nope, safety checks would catch that afaik
<ifreund> why would you want to do such a thing?
a_chou has quit [Remote host closed the connection]
<marler8997> because win32metadata hasn't properly marked all it's optional pointers as optional
<ifreund> :/
<marler8997> I could make ALL pointers optional by default for the time being
<marler8997> but then I won't see where the mistakes are
leah2 has quit [Ping timeout: 272 seconds]
<caolanm> I'm calling a function that returns []const u8, but I'd like a null-terminated version of the slice for some C API calls - what's the nicest way to turn that into a [:0]const u8?
<ifreund> caolanm: Allocator.dupeZ()
<caolanm> ifreund: thank you
leah2 has joined #zig
falsebla1 has joined #zig
falseblah has quit [Ping timeout: 264 seconds]
shirty has joined #zig
emptee_ has quit [Quit: Konversation terminated!]
<zags> the scoping rules are sometimes mildly annoying. I have a from() function, and also a from: u64 as a parameter in different function... now I have to invent some ugly naming :D What's the common thing to do? Get creative with naming, or doing _ suffixes or?
xackus has joined #zig
ur5us_ has joined #zig
<ifreund> zags: yeah they can be annoying at times, though not as annoying as the bugs they prevent IMO
<ifreund> I usually get more creative/descriptive with naming
<zags> ifreund: yeah I'm not advocating allowing shadowing here, had my shares of such bugs :) Yeah, guess just harder work on naming.
leah2 has quit [Ping timeout: 264 seconds]
tyrion-mx has joined #zig
ur5us_ has quit [Ping timeout: 264 seconds]
xackus has quit [Ping timeout: 246 seconds]
Snetry has quit [Ping timeout: 240 seconds]
n0tekky has joined #zig
Snetry has joined #zig
Snetry has quit [Ping timeout: 240 seconds]
Snetry has joined #zig
Akuli has quit [Quit: Leaving]
Snetry has quit [Ping timeout: 256 seconds]
Snetry has joined #zig
<zags> auto_hash <3
leah2 has joined #zig
shirty has quit [Ping timeout: 240 seconds]
<zags> hum, why would `try self.addOne(allocator);` in `ArrayList.append` return 0xaaaaa... ?
<g-w1> thats what undefined is in debug mode
<zags> yeah, not sure what's undefined here
<g-w1> probably realloc
<zags> hm, this is the first element being added
<g-w1> what else would the default value be?
<zags> this is ArrayList#append segfaulting
<zags> well, ArrayListUnmanaged
<zags> crashes on "new_item_ptr.* = item;" because new_item_ptr is 0xaaaaa
<g-w1> oh, misunderstood you. thats weird
<zags> indeed
<daurnimator> zags: it suggests you wrote e.g. `var foo: ArrayListUnmanaged(T) = undefined: try foo.addOne(allocator);`
<zags> well fuck me, it as "mything.deinit();" instead of "defer mything.deinit();"
<daurnimator> ah, that'll do it too :)
<zags> haha
<zags> I need more language hand holding :D
<daurnimator> the 0xaaaaaa *is* the language hand holding
<daurnimator> its telling you "you likely set this thing to undefined"
<zags> i mean statically
<zags> discovering these things at runtime isn't ideal
<daurnimator> your reaction after a quick visual inspection might be to put a watchpoint on it in your debugger to see what last set it to undefined.
<zags> esp in complex/rarely hit code paths
<daurnimator> that's why you write tests :)
<zags> that's of course a solution to everything, but I think you get my drift
skuzzymiglet has joined #zig
<daurnimator> nice compile-time borrow checker when? :) does zorrow even work?
<zags> not sure, i know it exists