ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
steveno_ has quit [Quit: Leaving]
<aiwakura>
related to my previous question: is there a better way, currently, to test for union(enum) equality?
<GitHub15>
zig/master 50e25f6 Andrew Kelley: add missing docs for setAlignStack builtin
<andrewrk>
0.2.0 release is locked and loaded for tomorrow morning
<andrewrk>
hopefully we can get in the news
clebermatheus has joined #zig
clebermatheus[m] has joined #zig
<clebermatheus[m]>
Hello
clebermatheus has quit [Ping timeout: 260 seconds]
<dtz>
\o/
<aiwakura>
yay!
zwhadok_ has joined #zig
<zwhadok_>
THIS IS A FREENODE BREAKING NEWS ALERT!! Hitechcg AND opal ARE GOING AT IT RIGHT NOW WITH A LOT OF FIGHTING AND ARGUING WOW YOU DON'T WANT TO MISS THIS!! TYPE /JOIN ## TO SEE THE ACTION...AGAIN TYPE /JOIN ## TO SEE THE ACTION!!
<jfo>
MajorLag: good point. I've added a not at the end that this is the case linking to andrewrk's og post about the rationale. I've also added a whole section about the error inference, which I think makes a good climax to the post. there's a lot to cover and I've left a lot out I wanted to get to, but I think this is pretty good as a really rudimentary intro! I hope people get something out of it :)
<jfo>
also I've called out please join #zig on irc if you have any questions because I guess we can expect to see some support requests incoming post 0.2.0 anyway
<jfo>
aiwakura: thanks!
Hejsil has joined #zig
davr0s has joined #zig
arBmind has joined #zig
jfo has quit [Ping timeout: 264 seconds]
_whitelogger_ has joined #zig
<Hejsil>
jfo, Nice post. I like your recent addition of the error sets and why they are useful
ltr_ has joined #zig
<Hejsil>
But it's missing that 'comptime' flare :)
jfo has joined #zig
jfo has quit [Ping timeout: 264 seconds]
jfo has joined #zig
jfo has quit [Ping timeout: 260 seconds]
jfo has joined #zig
<jfo>
Hejsil: I think I'm going to cover that in another post, there's so much ground to cover! but I want to reimplement the seekforward functionality using a stack and then making that generic with comptime. was hoping to get that into this post but it got so long and I ran out of time...
<cgag>
just getting set up again after not playing with zig in quite a while, built ok but build.zig test is failing: `0x23ed94 in ??? (build): return error.InvalidArgs;`
<cgag>
is that expected at the momentr?
Hejsil has quit [Quit: Page closed]
<andrewrk>
cgag, probably not. can you give more context?
<cgag>
seems strange that only libclangFrontend is a problem
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Client Quit]
<jordyd>
Is there support--or plans for support--for examining the AST programmatically
davr0s has joined #zig
davr0s has quit [Client Quit]
<andrewrk>
jordyd, this is intentionally not possible
<andrewrk>
so that someone reading zig code can be confident that this is never done in the code they are looking at
davr0s has joined #zig
davr0s has quit [Client Quit]
<jordyd>
Well, I don't mean for the purpose of code generation
<jordyd>
For a Frama-C-like use case
<andrewrk>
oh this is IDE integration type of thing?
<jordyd>
For the purpose of static analysis, verification, etc.
<andrewrk>
the current plan is to have a language server that provides deep introspection into a compilation, for the purposes of static analysis, IDEs, and things like this
<andrewrk>
and it's planned to only implement this in the self hosted compiler, not the c++ compiler
<jordyd>
Neat
<jfo>
cgag: thanks for your comment and please lmk if anything is unclear to you in how I've written that post
<cgag>
will do once I get this libclang nonsense sorted out. Maybe I'll give up on this ~/local stuff and just install libclang where cmake expects it to be