ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
arBmind has quit [Quit: Leaving.]
cenomla has joined #zig
cenomla has quit [Quit: cenomla]
cenomla has joined #zig
cenomla has quit [Client Quit]
cenomla has joined #zig
mahmudov has joined #zig
mahmudov has quit [Ping timeout: 248 seconds]
mahmudov has joined #zig
mahmudov has quit [Ping timeout: 265 seconds]
cenomla has quit [Quit: cenomla]
cenomla has joined #zig
cenomla has quit [Ping timeout: 276 seconds]
<GitHub20> [zig] andrewrk pushed 1 new commit to master: https://git.io/vNt2m
<GitHub20> zig/master 3c09411 Andrew Kelley: remove %% prefix operator...
mahmudov has joined #zig
mahmudov has quit [Quit: Leaving]
mahmudov has joined #zig
arBmind has joined #zig
skyfex has quit [Ping timeout: 260 seconds]
hoppetosse has joined #zig
mahmudov has quit [Ping timeout: 248 seconds]
arBmind has quit [Read error: Connection reset by peer]
mahmudov has joined #zig
arBmind has joined #zig
skyfex has joined #zig
<mahmudov> 0.1.1 needs which version of llvm
<mahmudov> i get tis error with llvm4.0.0 :llvm/BinaryFormat/Magic.h: No such file or directory
<mahmudov> LLVM, Clang, LLD libraries == 5.x means llvm 5.x ?
skyfex_ has quit [Quit: Page closed]
<andrewrk> yes
<andrewrk> mahmudov, there have been a lot of improvements since 0.1.1. I'd recommend a build of master
<mahmudov> actually i tried with git version
<mahmudov> i got same error
<mahmudov> i have llvm 4.0.0
<andrewrk> zig depends on llvm 5.x
<mahmudov> yes.
<mahmudov> i understood.
<mahmudov> well can i compile it from stage2
<mahmudov> with a zig binary
<mahmudov> still i need llvm 5.x ?
<andrewrk> even the self hosted compiler depends on llvm
<mahmudov> hm.ok i need to upgrade my llvm version
<andrewrk> good idea
<andrewrk> mahmudov, what OS are you on?
arBmind has quit [Ping timeout: 260 seconds]
<mahmudov> Milis Linux
<mahmudov> generally allthings from stratch.
<mahmudov> i compiled before with llvm 4.0
<mahmudov> but that you said more things changed.
<andrewrk> when llvm 6 comes out, I will release zig 0.2.0 which depends on llvm 6. new releases and master branch will always target the newest version of LLVM.
hoppetosse has quit [Ping timeout: 265 seconds]
<mahmudov> whats on regards zig 1.x ?
<mahmudov> always version updates based on llvm
<andrewrk> mahmudov, here are the milestones: https://github.com/zig-lang/zig/milestones
<andrewrk> we will have more releases than LLVM. we can release whenever it makes sense to, but we will also release for each new release of LLVM
<mahmudov> ah ok.
<mahmudov> i see
mahmudov has quit [Quit: Leaving]
mahmudov has joined #zig
mahmudov has quit [Ping timeout: 256 seconds]
arBmind has joined #zig
mahmudov has joined #zig
mahmudov has quit [Client Quit]
mahmudov has joined #zig
<aiwakura> andrewrk I think I'm missing a comptime somewhere
<aiwakura> the isIntrusive branch is getting evaluated even though isIntrusive is false
<aiwakura> which causes a compile time error
<andrewrk> if (comptime isIntrusive())
<aiwakura> beautiful.
<andrewrk> or you could use a const variable and use that instead of a function call
<aiwakura> IntrusiveLinkedList works
<aiwakura> but it's not beautiful
<aiwakura> for a couple of annoying reasons
<andrewrk> can you commit usage of it to a branch in zen so I can look at it?
<aiwakura> I can show you a simple test in the standard library
<aiwakura> just a sec, I'm finishing it up
<aiwakura> wait, there is actually a big problem
<aiwakura> this doesn't work because Element is undeclared inside Element
<andrewrk> did you try it? it works fine
<aiwakura> yeah I tried it
<aiwakura> weird
<andrewrk> I mean does it actually try to contain itself?
<andrewrk> that is obviously impossible
<andrewrk> but Element is in scope inside Element
<andrewrk> oh, hm, I wonder if passing a type as a comptime parameter causes it to be fully instantiated
<aiwakura> hey, sorry I was selling zig to a fellow RCer
<aiwakura> it's not working for my intrusivelist, maybe because I'm using in some semantically useful way inside it?
<aiwakura> are you coming to the space? we can debug it together
<andrewrk> yeah I'll be there in a couple hours
<aiwakura> oh this is really interesting
<aiwakura> it works if it's a top level declaration
<aiwakura> ok there's one last problem
<aiwakura> I'm pretty confident this is a bug
<aiwakura> expected type Node, found Node
<aiwakura> apparently even though those Nodes are generated in the same way, they are still considered different types
<aiwakura> yeah I'm debugging the compiler, the two types are different. we need a way to solve this