ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
schme245 has quit [Remote host closed the connection]
kristate has joined #zig
Ichorio has quit [Ping timeout: 250 seconds]
kristate has quit [Ping timeout: 250 seconds]
eagle2com has joined #zig
eagle2com has quit [Ping timeout: 256 seconds]
Marumoto has quit [Remote host closed the connection]
kristate has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
darithorn has quit [Quit: Leaving]
darithorn has joined #zig
darithorn has quit [Client Quit]
darithorn has joined #zig
_whitelogger has joined #zig
_whitelogger has joined #zig
_whitelogger has joined #zig
darithorn has joined #zig
<MajorLag> andrewrk: rpmalloc is a little similar to the pooling allocator I wrote. I don't see a reason it has to have a limit of <= 32 byte alignment. In fact the way the allocator works requires it to allocate spans that are at least 64kb aligned, which is why I added > page size alignment to DirectAllocator for linux.
_whitelogger has joined #zig
marmotini_ has joined #zig
darithorn has quit [Ping timeout: 256 seconds]
_whitelogger has joined #zig
marmotini_ has quit [Ping timeout: 246 seconds]
marmotini_ has joined #zig
marmotini has joined #zig
marmotini_ has quit [Ping timeout: 240 seconds]
schme245 has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
Flaminator has quit [Disconnected by services]
schme245 has quit [Remote host closed the connection]
marmotini has quit [Ping timeout: 245 seconds]
jevinskie 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
kristate has quit [Remote host closed the connection]
marmotini_ has joined #zig
Ichorio has joined #zig
wootehfoot has joined #zig
qazo has quit [Read error: Connection reset by peer]
qazo has joined #zig
marmotini_ has quit [Ping timeout: 250 seconds]
Zaab1t has joined #zig
schme245 has joined #zig
Akuli has joined #zig
<emekankurumeh[m]> how would this work with https://github.com/ziglang/zig/issues/1220 solved https://godbolt.org/z/qz4eIO
<emekankurumeh[m]> simpler example https://godbolt.org/z/raMitD
schme245 has quit [Remote host closed the connection]
schme245 has joined #zig
schme245 has quit [Remote host closed the connection]
wootehfoot has quit [Read error: Connection reset by peer]
darithorn has joined #zig
<andrewrk> emekankurumeh[m], this is how I was thinking it would work https://godbolt.org/z/ARMOua
so has quit [Ping timeout: 246 seconds]
so has joined #zig
darithorn has quit [Quit: Leaving]
wilsonk has quit [Read error: Connection reset by peer]
<andrewrk> Akuli, thank you for the bug report
schme245 has joined #zig
schme245 has quit [Remote host closed the connection]
wootehfoot has joined #zig
Zaab1t has quit [Quit: bye bye friends]
<Akuli> how do i create a struct with a member that can be of any type? i thought about making a function that takes the type as an argument and returns a struct, but i don't want to treat my structs differently depending on which type they have
kristate has joined #zig
darithorn has joined #zig
wootehfoot has quit [Quit: Leaving]
<andrewrk> Akuli, you cannot do that in zig. each struct field must have a specific type and it cannot change
<Akuli> is there some way to have an "any type whatever" object then? i'm trying to implement an interpreter for a dynamic programming language that has values of different types, and the value struct needs to contain different data depending on the type
<Akuli> s/dynamic/dynamically typed/
schme245 has joined #zig
<emekankurumeh[m]> tagged unions
<Akuli> oooo the docs are online too, nice
<Akuli> doesn't this mean that if i define the struct of the language's objects in one file, and it uses some union, that union must contain all the possible types that the object's data can be? so the file that defines the object struct must know about all the types that the language has?
<Akuli> now that i think about it more, it's not actually a problem because the interpreter doesn't have some kind of api whose users could define types with their own kinds of data
<Akuli> should have thought more about unioning before trying to avoid it :D
<Akuli> thanks
allan0 has quit [Ping timeout: 272 seconds]
<emekankurumeh[m]> do we have an official docker image?
<Akuli> idea: a cross-platform function that returns the executable in the stdlib (if it doesn't exist yet) https://stackoverflow.com/questions/933850/how-do-i-find-the-location-of-the-executable-in-c
Akuli has quit [Quit: Leaving]
<andrewrk> emekankurumeh[m], what would be the purpose of the docker image?
<andrewrk> Akuli, we have std.os.openSelfExe, std.os.selfExePath, and std.os.selfExeDirPath
wilsonk has joined #zig
kristate has quit [Remote host closed the connection]
<schme245> I'm trying to read a file that is exactly 100MB, this runs into StreamTooLong error: const contents = try st.readAllAlloc(allocator, 1000 * 1000 * 100);
<schme245> but if I add 1, it works
<schme245> what is that last byte?
<wilsonk> maybe it pads with EOF?
Flaminator has joined #zig
MajorLag has quit [Ping timeout: 246 seconds]
schme245 has quit [Remote host closed the connection]
Ichorio has quit [Ping timeout: 268 seconds]