ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<kristate>
today seems to be the 700th day since zig was started
_whitelogger has joined #zig
kristate has quit [Ping timeout: 240 seconds]
Hejsil has joined #zig
SimonNa has quit [Remote host closed the connection]
SimonNa has joined #zig
_whitelogger has joined #zig
<scientes>
I doubt it makes sense to use llvm to compile DFAS directly with its DAG, (wondering how to commptime DFAs), which means that something like gperf would still be necessary.
Hejsil has quit [Ping timeout: 252 seconds]
<scientes>
including for my wish-project: comptime regular expression engine
<scientes>
it would be an epic hack, but I don't think llvm could really handle it
<scientes>
meh gperf isn't very demanding
davr0s has joined #zig
davr0s has quit [Client Quit]
<unique_id>
That feeling when you're using sqlite as an application data format and you learn it doesn't support async ops and so you search for a key value store alternative but can't find anything you like and so you're about to create a bunch of unnecessary threads for streaming in resources :(
<scientes>
unique_id, did you ever readwrite that file?
<unique_id>
yeah I just copied openReadC and changed it a bit
<scientes>
I really think it would make sensin the std lib
<unique_id>
im short on time atm
wilsonk has quit [Read error: Connection reset by peer]
<andrewrk>
yeah no worries, we'll get it eventually
DutchGh0st has joined #zig
<DutchGh0st>
how do I take 'self'or 'this' in a struct method?
<DutchGh0st>
" error: use of undeclared identifier 'this'"
<MajorLag>
`struct A { fn doStuff(self: *A, ...) }` or `struct A { const Self = this; ... fn doStuff(self *Self, ...)}`.
<unique_id>
extern vs packed structs? I have a struct whose fields I want to control the order of
<unique_id>
I know how it works in C/extern, I don't know how packed works
kristate has joined #zig
<andrewrk>
unique_id, so i can understand your use case - for what purpose do you need to control the order?
<unique_id>
andrewrk: the fields are of dramatically different sizes and I have atomic ints in there. For that reason I want to be able to play around with the order
<andrewrk>
unique_id, you could put your struct fields that need to be bundled together in their own struct
<andrewrk>
that will force them to be next to each other (although unspecified which one is first)
kristate has quit [Ping timeout: 252 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<unique_id>
andrewrk: good idea, I might do that. I'm more focused on writing code right now so I have left things as default
davr0s has joined #zig
<andrewrk>
unique_id, some day I hope we can have Profile Guided Optimization integrated into zig in a clean way and zig would figure out to do these kind of optimizations
DutchGh0st has joined #zig
DutchGh0st has quit [Client Quit]
wilsonk has quit [Read error: Connection reset by peer]