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/
bheads has quit [Remote host closed the connection]
kristate has joined #zig
mnoronha has quit [Ping timeout: 240 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 245 seconds]
_whitelogger has joined #zig
mikdusan has quit [Quit: Page closed]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
mnoronha has joined #zig
dewf has quit [Quit: Leaving]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
<darithorn> i have an issue if anyone can help me through it
<darithorn> whenever i link libc i get an lld error saying it can't find "libgcc_s.so.1"
mnoronha has quit [Ping timeout: 245 seconds]
<darithorn> i did "zig libc" and looked through the directory that zig is looking at for "libgcc_s.so" and that file is there but for some reason lld is looking for "libgcc_s.so.1" which doesn't exist
mnoronha has joined #zig
<andrewrk> darithorn, funny you should have this problem... it's very related to a big project I've taken on in the last 3 days
<andrewrk> going to bed but I should be able to push it tomorrow :)
<darithorn> okay. i was gonna say, i've never had this issue. i recently changed distros so i thought it might be because of that
<darithorn> i'll try again tomorrow then :)
marmotini_ has joined #zig
scientes has quit [Ping timeout: 252 seconds]
noonien has quit [Quit: Connection closed for inactivity]
dewf has joined #zig
darithorn has quit [Remote host closed the connection]
kristate has quit [Remote host closed the connection]
mikdusan has joined #zig
mnoronha has quit [Ping timeout: 240 seconds]
mnoronha has joined #zig
suirad has joined #zig
<suirad> howdy all
<suirad> so i was able to fix the issues with my trampoline function. however I am not sure how to exactly approach passing arguments to the wrapped function as well as having it be adaptable for any fn type.
<suirad> I'm thinking maybe varargs can work for me here, but i'll have to experiment with propagating the args to the lower fn. https://godbolt.org/z/Y28hJ4
kristate has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 240 seconds]
mnoronha has joined #zig
marmotini_ has quit [Ping timeout: 244 seconds]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
marmotini_ has joined #zig
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 244 seconds]
mnoronha has joined #zig
jjido_ has joined #zig
fsateler_ has joined #zig
fsateler has quit [Ping timeout: 245 seconds]
jjido_ has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
wilsonk has quit [Read error: No route to host]
wilsonk has joined #zig
mnoronha has quit [Ping timeout: 240 seconds]
kristate has quit [Remote host closed the connection]
nicolasman has joined #zig
develonepi3 has joined #zig
dewf has quit [Quit: Leaving]
noonien has joined #zig
marmotini_ has quit [Ping timeout: 240 seconds]
marmotini_ has joined #zig
Zaab1t has joined #zig
Zaab1t has quit [Quit: bye bye friends]
<mikdusan> is copy elision supposed to work when assigning to a deref’d pointer?
<andrewrk> mikdusan, it will but not right now
__Myst__ has left #zig ["WeeChat 2.5-dev"]
<mikdusan> andrewrk: excellent
mnoronha has joined #zig
return0e has joined #zig
mnoronha has quit [Ping timeout: 240 seconds]
return0e_ has quit [Ping timeout: 240 seconds]
very-mediocre has joined #zig
mnoronha has joined #zig
halosghost has joined #zig
marmotini_ has quit [Ping timeout: 245 seconds]
Akuli has joined #zig
<Akuli> is there a set type in std? i want to have something that's kinda like an ArrayList of pointers, but i don't want to use an ArrayList because i need to do lots of deletions given an element of the list
very-mediocre has quit [Ping timeout: 256 seconds]
<andrewrk> Akuli, you can use hash map with `void` value type
<Akuli> nice
klltkr has quit [Ping timeout: 258 seconds]
very-mediocre has joined #zig
mnoronha has quit [Ping timeout: 268 seconds]
mnoronha has joined #zig
marmotini_ has joined #zig
mnoronha has quit [Ping timeout: 255 seconds]
darithorn has joined #zig
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #zig
Ichorio has joined #zig
marmotini_ has quit [Ping timeout: 245 seconds]
allan0 has quit [Ping timeout: 250 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 250 seconds]
marmotini_ has joined #zig
mnoronha has joined #zig
very-mediocre has quit [Ping timeout: 256 seconds]
marmotini_ has quit [Remote host closed the connection]
marmotini_ has joined #zig
mnoronha has quit [Ping timeout: 245 seconds]
mnoronha has joined #zig
<wilsonk> andrewrk: you around?
<andrewrk> hi WilhelmVonWeiner
<andrewrk> oops. hi wilsonk
<wilsonk> LOL... I am getting this error when building stage 2 on Ubuntu 16.04: zig: /home/wilsonk/Downloads/llvm-7.0.1.src/lib/IR/Metadata.cpp:577: void llvm::MDNode::resolve(): Assertion `isUniqued() && "Expected this to be uniqued"' failed
<wilsonk> haven't seen that one before...strange
<andrewrk> hmm. well I recently did that in the llvm8 branch with llvm 8.0.0rc3 (assertions enabled), so it may already be fixed
<andrewrk> "did that" meaning building stage2
<wilsonk> sorry, I haven't seen that error before while building stage2
<wilsonk> oh, nvm I see what you meant
<andrewrk> I'll do another merge of master into llvm8 and run the tests there
<wilsonk> ok
<andrewrk> anyway I'll make sure we're assertion clean just before merging llvm8 into master, which is happening within a week or two (pending llvm release)
<Akuli> how do i print the name of an union(enum) at runtime?
<andrewrk> Akuli, you mean which field is active?
<Akuli> yes
<andrewrk> @tagName()
<Akuli> nevermind @tagName works
<Akuli> i thought @ functions are for compile-time things, but now that i think about it there's no reason why that would be so
<andrewrk> they're just functions provided by the compiler
wootehfoot has joined #zig
MajorLag has joined #zig
MajorLag is now known as tgschultz
<Akuli> how do i cast usize to u32 so that it wraps around or does whatever instead of an error on overflow?
<Akuli> @intCast has ub on error
<daurnimator> Akuli: @truncate
<Akuli> nice, should have looked at the @ function list more carefully
marmotini_ has quit [Remote host closed the connection]
<andrewrk> Akuli, this list might also be helpful: https://ziglang.org/documentation/master/#Explicit-Casts
mnoronha has quit [Ping timeout: 246 seconds]
mnoronha has joined #zig
bheads has joined #zig
gamester has joined #zig
fsateler has joined #zig
fsateler_ has quit [Ping timeout: 245 seconds]
redj has quit [Ping timeout: 245 seconds]
gamester has quit [Quit: Konversation terminated!]
mnoronha has quit [Ping timeout: 240 seconds]
mnoronha has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
Akuli has quit [Quit: Leaving]
Zaab1t has joined #zig
Zaab1t has quit [Quit: bye bye friends]
mnoronha has quit [Ping timeout: 245 seconds]
mnoronha has joined #zig
kotto has quit [Ping timeout: 246 seconds]
kotto has joined #zig
jjido has joined #zig
gamester has joined #zig
halosghost has quit [Quit: WeeChat 2.4]
mnoronha has quit [Ping timeout: 245 seconds]
mnoronha has joined #zig
Ichorio has quit [Ping timeout: 240 seconds]
mnoronha has quit [Ping timeout: 245 seconds]
<darithorn> andrewrk any progress on the big project?
<andrewrk> yep
<darithorn> great, i'm assuming you were talking about the first class support for C compiling
darithorn has quit [Remote host closed the connection]