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]
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>
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?
<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]