00:41
arBmind has quit [Quit: Leaving.]
01:03
cenomla has joined #zig
01:19
cenomla has quit [Quit: cenomla]
01:22
cenomla has joined #zig
01:23
cenomla has quit [Client Quit]
01:24
cenomla has joined #zig
02:14
mahmudov has joined #zig
02:27
mahmudov has quit [Ping timeout: 248 seconds]
02:35
mahmudov has joined #zig
03:04
mahmudov has quit [Ping timeout: 265 seconds]
04:18
cenomla has quit [Quit: cenomla]
04:21
cenomla has joined #zig
04:26
cenomla has quit [Ping timeout: 276 seconds]
05:52
<
GitHub20 >
zig/master 3c09411 Andrew Kelley: remove %% prefix operator...
10:46
mahmudov has joined #zig
11:15
mahmudov has quit [Quit: Leaving]
11:15
mahmudov has joined #zig
12:56
arBmind has joined #zig
13:05
skyfex has quit [Ping timeout: 260 seconds]
13:23
hoppetosse has joined #zig
13:45
mahmudov has quit [Ping timeout: 248 seconds]
14:18
arBmind has quit [Read error: Connection reset by peer]
14:33
mahmudov has joined #zig
14:50
arBmind has joined #zig
15:01
skyfex has joined #zig
16:38
<
mahmudov >
0.1.1 needs which version of llvm
16:38
<
mahmudov >
i get tis error with llvm4.0.0 :llvm/BinaryFormat/Magic.h: No such file or directory
16:39
<
mahmudov >
LLVM, Clang, LLD libraries == 5.x means llvm 5.x ?
16:56
skyfex_ has quit [Quit: Page closed]
17:18
<
andrewrk >
mahmudov, there have been a lot of improvements since 0.1.1. I'd recommend a build of master
17:19
<
mahmudov >
actually i tried with git version
17:19
<
mahmudov >
i got same error
17:19
<
mahmudov >
i have llvm 4.0.0
17:19
<
andrewrk >
zig depends on llvm 5.x
17:20
<
mahmudov >
i understood.
17:20
<
mahmudov >
well can i compile it from stage2
17:20
<
mahmudov >
with a zig binary
17:20
<
mahmudov >
still i need llvm 5.x ?
17:20
<
andrewrk >
even the self hosted compiler depends on llvm
17:21
<
mahmudov >
hm.ok i need to upgrade my llvm version
17:26
<
andrewrk >
good idea
17:26
<
andrewrk >
mahmudov, what OS are you on?
17:39
arBmind has quit [Ping timeout: 260 seconds]
18:04
<
mahmudov >
Milis Linux
18:04
<
mahmudov >
generally allthings from stratch.
18:05
<
mahmudov >
i compiled before with llvm 4.0
18:05
<
mahmudov >
but that you said more things changed.
19:30
<
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.
20:12
hoppetosse has quit [Ping timeout: 265 seconds]
20:16
<
mahmudov >
whats on regards zig 1.x ?
20:17
<
mahmudov >
always version updates based on llvm
20:19
<
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
20:36
mahmudov has quit [Quit: Leaving]
20:37
mahmudov has joined #zig
21:14
mahmudov has quit [Ping timeout: 256 seconds]
21:37
arBmind has joined #zig
21:42
mahmudov has joined #zig
21:46
mahmudov has quit [Client Quit]
21:46
mahmudov has joined #zig
22:18
<
aiwakura >
andrewrk I think I'm missing a comptime somewhere
22:19
<
aiwakura >
the isIntrusive branch is getting evaluated even though isIntrusive is false
22:19
<
aiwakura >
which causes a compile time error
22:19
<
andrewrk >
if (comptime isIntrusive())
22:20
<
aiwakura >
beautiful.
22:20
<
andrewrk >
or you could use a const variable and use that instead of a function call
22:31
<
aiwakura >
IntrusiveLinkedList works
22:32
<
aiwakura >
but it's not beautiful
22:32
<
aiwakura >
for a couple of annoying reasons
22:33
<
andrewrk >
can you commit usage of it to a branch in zen so I can look at it?
22:33
<
aiwakura >
I can show you a simple test in the standard library
22:33
<
aiwakura >
just a sec, I'm finishing it up
22:35
<
aiwakura >
wait, there is actually a big problem
22:35
<
aiwakura >
this doesn't work because Element is undeclared inside Element
22:39
<
andrewrk >
did you try it? it works fine
22:40
<
aiwakura >
yeah I tried it
22:40
<
andrewrk >
I mean does it actually try to contain itself?
22:40
<
andrewrk >
that is obviously impossible
22:41
<
andrewrk >
but Element is in scope inside Element
22:42
<
andrewrk >
oh, hm, I wonder if passing a type as a comptime parameter causes it to be fully instantiated
23:08
<
aiwakura >
hey, sorry I was selling zig to a fellow RCer
23:13
<
aiwakura >
it's not working for my intrusivelist, maybe because I'm using in some semantically useful way inside it?
23:13
<
aiwakura >
are you coming to the space? we can debug it together
23:15
<
andrewrk >
yeah I'll be there in a couple hours
23:25
<
aiwakura >
oh this is really interesting
23:25
<
aiwakura >
it works if it's a top level declaration
23:35
<
aiwakura >
ok there's one last problem
23:36
<
aiwakura >
I'm pretty confident this is a bug
23:37
<
aiwakura >
expected type Node, found Node
23:38
<
aiwakura >
apparently even though those Nodes are generated in the same way, they are still considered different types
23:50
<
aiwakura >
yeah I'm debugging the compiler, the two types are different. we need a way to solve this