ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
pdmer has quit [Quit: pdmer]
qazo has joined #zig
qazo has quit [Ping timeout: 240 seconds]
qazo has joined #zig
qazo has quit [Ping timeout: 252 seconds]
reductum has joined #zig
pdmer has joined #zig
pdmer has quit [Ping timeout: 244 seconds]
pdmer has joined #zig
pdmer has quit [Quit: pdmer]
edr has quit [*.net *.split]
so has quit [*.net *.split]
kristate has quit [Remote host closed the connection]
edr has joined #zig
pdmer has joined #zig
pdmer has quit [Quit: pdmer]
reductum has quit [Quit: WeeChat 2.2]
pdmer has joined #zig
pdmer has quit [Quit: pdmer]
kristate has joined #zig
pdmer has joined #zig
reductum has joined #zig
reductum has quit [Client Quit]
<andrewrk>
new zig 0.3.0 schedule based on updated prediction of LLVM 7.0.0 release: https://clbin.com/gK31O
<andrewrk>
llvm 7 rc3 had a regression, so they have to do an rc4 which I'm hoping will be out tomorrow or monday, followed by final on or before friday
qazo has joined #zig
qazo has quit [Ping timeout: 252 seconds]
Thalheim has quit [Ping timeout: 252 seconds]
<kristate>
okay
<kristate>
hopefully llvm gets there stuff together
qazo has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
qazo has quit [Read error: Connection reset by peer]
pdmer has quit [Quit: pdmer]
qazo has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
SimonNa has quit [Remote host closed the connection]
SimonNa has joined #zig
kristate has quit [Ping timeout: 250 seconds]
return0e has quit [Quit: Leaving]
porky11 has joined #zig
return0e has joined #zig
porky11 has quit [Read error: No route to host]
noonien has joined #zig
bheads has joined #zig
davr0s has joined #zig
<bheads>
I keep missing the live stream
unique_id has quit [Remote host closed the connection]
fdsimk has quit [Remote host closed the connection]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qazo has quit [Ping timeout: 252 seconds]
unique_id has joined #zig
davr0s has joined #zig
bheads has quit [Ping timeout: 244 seconds]
wilsonk has quit [Read error: Connection reset by peer]
davr0s has quit [Read error: Connection reset by peer]
ChengCat has joined #zig
ChengCat has quit [Quit: Leaving]
kristate has joined #zig
Barabas has joined #zig
<MajorLag>
andrewrk, is there any way to get a better idea of what EvalBranchQuota should be set to? When I exceed the default I just start adding zeroes until it works. Seems like their aught to be a way to better estimate what a section of code should actually require, but I can't piece together what it is actually counting.
<andrewrk>
MajorLag, I think adding zeroes is the right idea
<andrewrk>
it's really just a way to make sure the compiler gets into an infinite loop without you knowing why
<andrewrk>
*does not get into an infinite loop
qazo has joined #zig
<andrewrk>
it's counting backwards branches and function calls
<MajorLag>
define a backwards branch. From what I can tell, these are straight-forward loops.
<andrewrk>
at the end of the while body, it branches back to the while condition
<MajorLag>
I see, so it actually does count every run through every loop.
<andrewrk>
yes
<andrewrk>
and comptime function calls
<MajorLag>
alright, well, I'll just keep doing it this way I guess.
<andrewrk>
are you being forced to do something silly?
qazo has quit [Ping timeout: 252 seconds]
return0e has quit [Remote host closed the connection]
porky11 has joined #zig
pdmer has joined #zig
return0e has joined #zig
pdmer has quit [Quit: pdmer]
pdmer has joined #zig
pdmer has quit [Quit: pdmer]
kristate has quit [Remote host closed the connection]
pdmer has joined #zig
kristate has joined #zig
pdmer has quit [Quit: pdmer]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
pdmer has quit [Quit: pdmer]
<MajorLag>
No, I just felt like I must be doing something wrong by just increasing EvalBranchQuota by an order of magnitude every time I ran into it.
Thorn has quit [Quit: Quit]
pdmer has joined #zig
return0e has quit [Remote host closed the connection]
return0e has joined #zig
pdmer has quit [Quit: pdmer]
pdmer has joined #zig
pdmer has quit [Quit: pdmer]
kristate has quit [Remote host closed the connection]
pdmer has joined #zig
<unique_id>
Is it dumb to store 32KB values inside a hash map instead of storing a pointer? I figure a hash map would have to be designed for that use case for it to be efficient. Like not storing key and value together? And of course in many cases I'd want a ptr to the value before constructing it, so in std.HashMap's case I'd use internalPut
<unique_id>
So I guess I'll just store a ptr to heap allocated 32KB values and make use of a nice allocator :)
<unique_id>
SIgh, one of my sentences is really unclear. I need to stop doing this. The reason you want to use internalPut if storing huge values is so that you do not need to have an unecessary copy. But it's not like HashMap was designed for huge values, so it doesn't need to expose that I don't think.
<MajorLag>
If you know the number of 32KB values you'll need to store within an order of magnitude, you could allocate an array of that size of 32KB blocks and just store an index, though depending on your use and what you're optimizing for it's probably still better to store the pointer directly.
<MajorLag>
Is there a reason it would be advantageous to store the values directly?
noonien has quit [Quit: Connection closed for inactivity]
wilsonk has joined #zig
pdmer has quit [Quit: pdmer]
<unique_id>
MajorLag: No, it's just less effort and kind of the default thing one does.
mahmudov has joined #zig
<andrewrk>
unique_id, did you see the getOrPut function?
<andrewrk>
that should help with avoiding unnecessary copies. other than that, I guess you'd just have to bench mark it to see what's faster. Probably just go with whatever semantics are easier to maintain, unless you find a bottleneck of performance there
pdmer has joined #zig
pdmer has quit [Client Quit]
<unique_id>
I missed it, that's indeed the function that I should use. I'll store by value for now. Most dynamic entities will actually be looking up into this a lot of the time, so at some point I'll benchmark this.
<andrewrk>
unique_id, I'm sure that hash map implementation could be better
<unique_id>
yeah, no worries :)
pdmer has joined #zig
pdmer has quit [Quit: pdmer]
pdmer has joined #zig
pdmer has quit [Client Quit]
pdmer has joined #zig
qazo has joined #zig
qazo has quit [Ping timeout: 244 seconds]
pdmer has quit [Quit: pdmer]
Barabas has quit [Ping timeout: 252 seconds]
pdmer has joined #zig
porky11 has quit [Quit: Leaving]
kristate has joined #zig
kristate has quit [Read error: Connection reset by peer]
tiehuis has joined #zig
<tiehuis>
andrewrk: watch the stream from yesterday just now
<tiehuis>
here is a small thing about the samll executables for anyone interested: https://clbin.com/OegpT
<tiehuis>
the larger amount of code is usually always related to the large default panic handler, as i'm sure you know
<tiehuis>
wasn't aware of the failed ability of llvm to omit the argument construction on program entry though, which would be cool to see
<tiehuis>
ahh, of course i watch a bit more and you go over some of the actual flow through the calls anyway