ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
mnoronha has joined #zig
return0e has quit [Ping timeout: 252 seconds]
davr0s has joined #zig
mnoronha has quit [Ping timeout: 268 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #zig
hoppetosse has quit [Ping timeout: 244 seconds]
Triplefox[m] has joined #zig
reductum has joined #zig
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
karlguy has quit [Remote host closed the connection]
karlguy has joined #zig
reductum has quit [Quit: WeeChat 2.2]
return0e has joined #zig
karlguy has quit [Remote host closed the connection]
karlguy has joined #zig
karlguy has quit [Remote host closed the connection]
karlguy has joined #zig
karlguy has quit [Remote host closed the connection]
karlguy has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
karlguy has quit [Remote host closed the connection]
karlguy has joined #zig
return0xe has joined #zig
return0e has quit [Ping timeout: 268 seconds]
karlguy has quit [Remote host closed the connection]
karlguy has joined #zig
karlguy has quit [Remote host closed the connection]
karlguy has joined #zig
karlguy has quit [Remote host closed the connection]
karlguy has joined #zig
Barabas has joined #zig
SimonN has quit [Remote host closed the connection]
Barabas has quit [Ping timeout: 252 seconds]
Barabas has joined #zig
MajorLag has quit [Ping timeout: 265 seconds]
davr0s has joined #zig
MajorLag has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
MajorLag has quit [Ping timeout: 264 seconds]
MajorLag2 has joined #zig
MajorLag2 is now known as MajorLag
DutchGhost has joined #zig
<DutchGhost> given a list of types, is it possible to create a struct with it?
<DutchGhost> it'd look something like 'struct whatever { inline for(types) |t| { ..: t} }' or something?
<cgag> not actually sure how formatting enums should work but it seems to be broken atm: https://gist.github.com/cgag/8e1d2289cfbb3c842d61ebdddf0316f7
<cgag> i can open an issue if i'm not misunderstanding something
<MajorLag> DutchGhost: No. This is what reify is intended to do, but we're not sure the feature is a good fit for zig's goals.
<MajorLag> cgag, what build are you on? I don't see any use of @memberName in std.fmt
<MajorLag> ah, ok, nevermind there's been an update since a few days ago
<MajorLag> yeah, that's a bug. looks like andrewrk added some struct printing behavior, but it's very simple right now.
<MajorLag> you can work around it by: `@tagName(Food.Cheese)`
<cgag> ah yeah, meant to mention that was what i ended up doing, thanks though
DutchGhost has quit [Ping timeout: 252 seconds]
mnoronha has joined #zig
<bodie_> has anyone played with lz4 bindings?
<bodie_> I'm having a hell of a time getting my encoded output to work with LZ4_decompress_{fast,safe}, but it works just fine with the CLI decoder
<scientes> bodie_, i've done worked with lzo and zstd in C
<scientes> link?
<scientes> I am really a fan of the way go handler IO, even if you remove the NM scheduler part of it. interfaces and being able to wrap something in lz4 for example works really well.
<scientes> I'd like to see that in a gc-free language
kristate has joined #zig
<bodie_> yeah, Go's io interfaces are really simple and useful.
<scientes> and its pseudo-syncronous interface is easiest, rather than true asyncronous
<scientes> whers the zig? sorry, I don't really know cpp
<bodie_> I discovered that if I just echo the output to stdout, I can use lz4cat to decode it no problem.
<bodie_> Oh, yeah it's not a zig program, I was just wondering if anyone was familiar w/ lz4, really.
<scientes> ahh you need to have a bufer large enough for the DEcompressed length
<scientes> not compressed length
<bodie_> yeah, I have that. :/
<bodie_> I'm using a go CLI to compress and encode some files into byte array literals and then embedding them in the class.
<bodie_> So the encoder knows how big the original content was.
<scientes> sounds like premature optimization
<bodie_> I think it's a sound design for embedding resource files in a game binary.
<bodie_> There are tools that do similar things for Go and Rust, but it seems like there's nothing like that for C++.
<bodie_> The fun thing about this tool is that it will support other language literal encoders easily by implementing a Writer interface. :D
DutchGh0st has joined #zig
<DutchGh0st> Given a type, can you find out if the type has a method named <whatever> ?
<bodie_> I think you have to use the type, right? there's a comptime typeinfo object that has the names of its methods, I think.
<DutchGh0st> yeah, you can yank out the 'Struct', which has a defs list, which I suppose are functions?
<DutchGh0st> or...methods?
Barabas has quit [Ping timeout: 252 seconds]
<DutchGh0st> what would @typeInfo(@typeOf(some_struct)) be?
mnoronha has quit [Ping timeout: 252 seconds]
darithorn has joined #zig
Barabas has joined #zig
davr0s has joined #zig
kristate has quit [Remote host closed the connection]
mnoronha has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mnoronha has joined #zig
davr0s has joined #zig
darithorn has quit [Quit: WeeChat 2.2]
mnoronha has quit [Ping timeout: 268 seconds]
DutchGh0st has quit [Ping timeout: 252 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
darithorn has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mnoronha has joined #zig
Barabas has quit [Ping timeout: 252 seconds]
davr0s has joined #zig
kristate has joined #zig
kristate has quit [Remote host closed the connection]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
mnoronha has quit [Ping timeout: 268 seconds]
mnoronha has joined #zig