ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<daurnimator> andrewrk: so how are the 12? :)
<andrewrk> daurnimator, still on the first one. almost done :)
* daurnimator looks at list of open PRs..... copy ellision is "first".
<andrewrk> #1733 and #638
<daurnimator> while on #638, is there an open issue for making readInt take an enum instead of a boolean for the endianess arg?
<andrewrk> pretty sure it already does. but I'm making a bunch of breaking API changes to all the read and write int functions
<daurnimator> ah it does! I was looking at an old revision
diltsman has quit [Ping timeout: 256 seconds]
<mgxm> andrewrk: https://clbin.com/5mToK
<mgxm> seems that file_path returned by SplitIterator_rest was not including a null byte
<andrewrk> ah
<andrewrk> I'd be happy to make the fix directly, or would you like to make a pull request and get credit for it?
<andrewrk> nice find, thank you
<mgxm> no problem, you can fix directly
<andrewrk> thanks
<andrewrk> in a moment; I'm in the middle of another commit
zachcarter has joined #zig
<zachcarter> hello, just stumbled upon this error - https://gist.github.com/zacharycarter/b7bb8ad90306e69399fc0bd97993f3fc
<zachcarter> I'm sure I'm doing something wrong with the defer - since I'm catching errors already
<andrewrk> zachcarter, what happened is you returned an error from main, so zig is trying to print an error return trace, to show where the error came from (although in this case it is trivially obvious) and the debug info code itself has panicked and triggered a stack trace, which then succeeds and shows where in zig's debug info code it failed
<andrewrk> so it's a bug in zig standard library with regards to macos stack traces
<zachcarter> gotcha - just wanted to make sure that it was already known about, and if not to raise it :) thanks for the explanation
<zachcarter> enjoying zig so far :) coming from C++ and Nim
<andrewrk> zachcarter, I filed an issue on your behalf: https://github.com/ziglang/zig/issues/1827
<andrewrk> thanks for the report!
<zachcarter> sure thing!
<andrewrk> mgxm, I created a temporary freebsd vm and I'll see if I can fix that issue
emekoi has quit [*.net *.split]
<andrewrk> mgxm, fixed it.
_whitelogger has joined #zig
<andrewrk> funny, this is almost exactly what I'm doing in copy-elision branch: https://blog.tartanllama.xyz/guaranteed-copy-elision/
<zachcarter> I'm very impressed with Zig
<zachcarter> managed to get a basic SDL2 app working with knowing almost nothing about the language in about an hour
<zachcarter> and that included looking up syntax I didn't understand
<andrewrk> zachcarter, glad to hear it
<andrewrk> I'm guessing you ran into this issue along the way: https://github.com/ziglang/zig/issues/1059
<zachcarter> I very much like many of the design decisions you've taken with the language
<zachcarter> I did - it threw me for a bit
<zachcarter> then I found some SDL2 wrapper code and then finally I found @ptrCast and all was right with the world
<zachcarter> Nim handles this with unchecked arrays
<zachcarter> I like the proposal though - it's not an easy problem to solve IMO
<zachcarter> heh - considering this is even an issue - kind of makes me really happy
<zachcarter> amazed how few bugs I ran into given how new the language is
qazo has joined #zig
<andrewrk> I'm glad to hear you could pick it up quickly though. that's one of my goals - is that source code is discoverable and readable even to people who don't know the language
<andrewrk> zig code is intended to be very boring and obvious
<zachcarter> I am a fan of simplicity
<zachcarter> I like C++ - I think it has some great features
<zachcarter> when I code in it - I stick to a minimal subset if possible
<zachcarter> but I'd rather code in a language that is more in the vein of C when possible
bilebucket has joined #zig
qazo has quit [Read error: Connection reset by peer]
qazo has joined #zig
bilebucket has quit [Read error: Connection reset by peer]
wink_ has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
zange has quit [Ping timeout: 246 seconds]
jjido has joined #zig
Zaab1t has joined #zig
basro has quit [Disconnected by services]
basro has joined #zig
zange has joined #zig
<mgxm> andrewrk: great, thank you
wilsonk has quit [Ping timeout: 246 seconds]
bilebucket has joined #zig
wilsonk has joined #zig
return0e has quit [Ping timeout: 250 seconds]
return0e has joined #zig
wilsonk has quit [Read error: No route to host]
wilsonk has joined #zig
qazo has quit [Ping timeout: 245 seconds]
IntoxicatedHippo has joined #zig
basro has quit [Disconnected by services]
basro has joined #zig
zachcarter has quit [Ping timeout: 240 seconds]
jjido has quit [Ping timeout: 250 seconds]
Ichorio has joined #zig
steveno has joined #zig
scientes has quit [Quit: ZNC 1.7.1+deb2 - https://znc.in]
bilebucket has quit [Ping timeout: 250 seconds]
halosghost has joined #zig
steveno_ has joined #zig
steveno has quit [Ping timeout: 250 seconds]
basro has quit [Disconnected by services]
basro has joined #zig
steveno_ has quit [Ping timeout: 246 seconds]
basro has quit [Disconnected by services]
basro_ has joined #zig
basro_ is now known as basro
IntoxicatedHippo has quit [Ping timeout: 272 seconds]
steveno_ has joined #zig
very-mediocre has joined #zig
return0e has quit [Ping timeout: 244 seconds]
return0e has joined #zig
steveno_ has quit [Ping timeout: 264 seconds]
basro has quit [Disconnected by services]
basro_ has joined #zig
basro_ is now known as basro
steveno_ has joined #zig
meheleventyone has joined #zig
meheleventyone has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
steveno__ has joined #zig
steveno_ has quit [Ping timeout: 250 seconds]
very-mediocre has quit [Quit: Page closed]
wootehfoot has joined #zig
halosghost has quit [Read error: Connection reset by peer]
halosghost has joined #zig
shodan45 has quit [Quit: No Ping reply in 180 seconds.]
wootehfoot has quit [Read error: Connection reset by peer]
basro has quit [Disconnected by services]
basro_ has joined #zig
basro_ is now known as basro
return0e has quit [Ping timeout: 268 seconds]
return0e has joined #zig
steveno__ has quit [Quit: Leaving]
basro has quit [Disconnected by services]
basro has joined #zig
halosghost has quit [Quit: WeeChat 2.3]
emekoi has joined #zig
<daurnimator> would KernelAllocator be a better name for DirectAllocator ?
<daurnimator> Also other thing I've been thinking about, do we have a way to add misc attributes to memory and/or memory allocators?
<daurnimator> e.g. traits on an allocator that say "executable"
<emekoi> it should be possible
<emekoi> here's an example of how that would work in c https://nullprogram.com/blog/2015/03/19/
<daurnimator> emekoi: I know how it works in C..... the question is how we can apply attributes to memory and/or allocators in zig. It's more than executuable too: not all memory is the same. e.g. on some architectures, some memory is faster to access than others. you might decide to have 'persistant' memory. huge pages exist...
zachcarter has joined #zig
<zachcarter> got sdl2 + bgfx initialized with zig: https://gist.github.com/zacharycarter/9f04383f144761ad01b1791e195bfeac
<zachcarter> time to start making cubes :)
Zaab1t has quit [Quit: bye bye friends]
<andrewrk> zachcarter, nice!
fsateler has quit [Ping timeout: 246 seconds]
fsateler has joined #zig
Ichorio has quit [Ping timeout: 250 seconds]