ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
juturnas has joined #zig
<juturnas> I'm getting a segfault when the C library I'm working with invokes the callback I pass to it, here's the relevant snippit of a valgrind run: https://pastebin.com/q7m78uiT
juturnas has quit [Ping timeout: 260 seconds]
juturnas has joined #zig
juturnas has quit [Client Quit]
juturnas has joined #zig
juturnas has quit [Quit: Page closed]
juturnas has joined #zig
juturnas has quit [Ping timeout: 260 seconds]
zolk3ri has quit [Quit: leaving]
<alexnask> @andrewrk Would it be resonble to allow numeric values @ptrCast'ed to [*]const u8 at comptime to generate a pointer to memory of size @sizeOf(integer_type)?
<alexnask> This would couls also allow @bitCast ing the values
<alexnask> I've seen some people trying to do similar things at comptime lately, I'm pretty torn about wether it should be allowed or not personally
<alexnask> I'm guessing a major deterant is people thinking that the byte representation at comptime is the same as at runtime
juturnas has joined #zig
JinShil has joined #zig
_whitelogger has joined #zig
darithorn has quit [Quit: Leaving]
alexnask has quit [Ping timeout: 264 seconds]
JinShil has quit [Read error: Connection reset by peer]
juturnas has quit [Quit: Page closed]
davr0s has joined #zig
_whitelogger has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
very-mediocre has joined #zig
jjido has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
dbandstra has quit [Quit: Leaving]
Ichorio has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
quc has joined #zig
jjido has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
zolk3ri has joined #zig
alexnask has joined #zig
Vinski has joined #zig
<GitHub42> [zig] isaachier opened pull request #1157: Add fuzz test (master...fuzz-test) https://git.io/f4SP0
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…]
strmpnk has quit []
vegecode has joined #zig
<vegecode> I'm working on making Zig on an msp430 work nicely and have a question: What I need is for a user to type P1OUT and have the emitted assembly actually say PAOUT_H in it's place.
<vegecode> In C that would be the preprocessor, I'm not sure how to do it in Zig though. It's critical that the name actually gets translated as a linker script is providing the final value.
<vegecode> I'm trying to get a smooth usage out of the TI provided headers and linker scripts and such. LLVM actually makes calls to libgcc for the MSP430 backend.
<vegecode> @importC isn't working on this header.
<vegecode> Oops have to go. If anyone is interested, it is at: https://github.com/vegecode/msp430-zig
<vegecode> There's no readme yet.
vegecode has quit [Quit: Page closed]
davr0s has joined #zig
strmpnk has joined #zig
mahmudov has quit [Ping timeout: 256 seconds]
vegecode has joined #zig
mahmudov has joined #zig
Ichorio has quit [Ping timeout: 248 seconds]
very-mediocre has quit [Ping timeout: 260 seconds]
jjido has joined #zig
vegecode has quit [Quit: Page closed]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
jjido has quit [Ping timeout: 240 seconds]
zolk3ri has quit [Ping timeout: 240 seconds]
<MajorLag1> Ugh... comptime and it's caching of type values....
<MajorLag1> no, wait, this time it's cachine a function return I think
<MajorLag1> yeah, in an inline for loop
<MajorLag1> ...nevermind, even without the function it is still caching something it shouldn't.
<MajorLag1> Accoding to the output, the passed in var has a field that isn't a slice, but has typeName []u8. Way to go.
<MajorLag1> It seems to be caching the result of any switch or if statement.
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<MajorLag1> But only in functions that are a few calls deep.
zolk3ri has joined #zig
davr0s has joined #zig
<MajorLag1> Pretty sure it's #906 again
dbandstra has joined #zig
quc has quit [Remote host closed the connection]
zolk3ri has quit [Quit: leaving]
dbandstra has quit [Quit: Leaving]