ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
redj has quit [Remote host closed the connection]
<GitHub152> [zig] isaachier closed pull request #1147: Fix segmentation fault on invalid enum field (master...enum-invalid-field-fix) https://git.io/flFs0
redj has joined #zig
lainon has quit [Remote host closed the connection]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Ping timeout: 260 seconds]
dbandstra has joined #zig
<GitHub161> [zig] andrewrk closed pull request #1149: fix compiler crash for invalid enum (master...issue346) https://git.io/flbsy
<GitHub123> [zig] andrewrk pushed 1 new commit to master: https://git.io/f8TCK
<GitHub123> zig/master be2a4c4 Andrew Kelley: Merge pull request #1149 from ziglang/issue346...
lainon has joined #zig
darithorn has quit [Quit: Leaving]
vegecode has joined #zig
klltkr has quit [Ping timeout: 255 seconds]
<vegecode> Actually my question still stands. Is there an equivalent to the -g flag for clang that will map instructions to lines of source code?
kristate has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
lainon has left #zig ["Leaving"]
redj has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
JinShil has joined #zig
<andrewrk> vegecode: it's on by default. Unfortunately llvm does not support outputting elf files which would embed the debug info
<andrewrk> I mean llvm does not yet support outputting .o files for msp430
<vegecode> gotcha. I wasn't sure how that worked. Thanks!
<vegecode> If I find something in a header that @cImport can't handle, should I report it?
<andrewrk> Yes, go ahead
<andrewrk> There may be some existing issues
kristate has quit [Remote host closed the connection]
<vegecode> The thing it is having trouble with is imported from another header in the same folder. Is that normally something it can do?
kristate has joined #zig
kristate has quit [Remote host closed the connection]
<vegecode> Well I moved the dependency all into the same file and it's still having trouble. I'll figure it out.
kristate has joined #zig
<vegecode> PBOUT_H &= ~(0x80);
<vegecode> This line fails with error: unable to perform binary not operation on type 'comptime_int'
<vegecode> If I cast it first to a u8 all is well
<vegecode> Is that expected?
kristate has quit [Remote host closed the connection]
<dbandstra> that seems reasonable to me, comptime ints have no size, right?
xtreak has joined #zig
<dbandstra> ~ would yield an infinity number of 1 bits
<vegecode> Yeah, even though I've been bitten in C with type inferences before, i still resent the boilerplate.
<vegecode> I saw the video of the presentation andrewrk did on zig and about how he left out feature requests made by people in order to keep the language simple.
kristate has joined #zig
<vegecode> I personally really like uniform function call syntax as an idea. It would be much quicker to annotate types like 1024.u16 instead of u16(1024)
<vegecode> Endlessly nested parentheses are very difficult to read.
<dbandstra> yeah i agree with that
kristate has quit [Remote host closed the connection]
<andrewrk> vegecode, I think translate-c is missing a cast to c_int there
<vegecode> that line of code was actually in my zig file
<vegecode> I finally got a blinking led run by an interrupt. Huzzah! Unfortunately for embedded, volatile is only through pointers in zig so that is going to require some effort to port the header file for the device. Not terribly so, though.
<vegecode> It's kind of a fool's errand to do this. Most of the msp430s have silicon errata that needs work arounds. I highly doubt llvm's half-baked msp430 backend can do that
<vegecode> But it's still fun I guess
<vegecode> Goodnight
xtreak has quit [Remote host closed the connection]
xtreak has joined #zig
xtreak has quit [Remote host closed the connection]
xtreak has joined #zig
very-mediocre has joined #zig
relatingdata has joined #zig
relatingdata has quit [Quit: Page closed]