kristate has quit [Remote host closed the connection]
kristate has joined #zig
mnoronha has joined #zig
tobbez has quit [Ping timeout: 250 seconds]
tobbez has joined #zig
mnoronha has quit [Ping timeout: 240 seconds]
kristate has quit [Remote host closed the connection]
kristate has joined #zig
tobbez has quit [Ping timeout: 258 seconds]
tobbez has joined #zig
mnoronha has joined #zig
tobbez has quit [Ping timeout: 258 seconds]
tobbez has joined #zig
tobbez has quit [Ping timeout: 240 seconds]
tobbez has joined #zig
tobbez has quit [Ping timeout: 258 seconds]
tobbez has joined #zig
noonien has quit [Quit: Connection closed for inactivity]
mnoronha has quit [Ping timeout: 240 seconds]
mnoronha has joined #zig
tobbez has quit [Ping timeout: 252 seconds]
tobbez has joined #zig
tobbez has quit [Ping timeout: 252 seconds]
whatupdave has joined #zig
tobbez has joined #zig
<whatupdave>
can zig import c++ header files?
tobbez has quit [Ping timeout: 240 seconds]
suirad has joined #zig
tobbez has joined #zig
<suirad>
can anyone explain why I am getting the correct asm that I expect, but when i use it, I end up segfaulting? https://godbolt.org/z/-2LAKL | To be clear, I am experimenting with: * making trampoline functions; * having the trampoline hot swappable(preferrably without disabling DEP); * having the type system enforce proper swapping of functions
suirad has quit [Quit: Page closed]
mnoronha has quit [Ping timeout: 255 seconds]
mnoronha has joined #zig
tobbez has quit [Ping timeout: 252 seconds]
tobbez has joined #zig
tobbez has quit [Ping timeout: 240 seconds]
tobbez has joined #zig
recj has joined #zig
tobbez has quit [Ping timeout: 240 seconds]
tobbez has joined #zig
tobbez has quit [Remote host closed the connection]
whatupdave has quit [Quit: Page closed]
scientes has quit [Ping timeout: 250 seconds]
mnoronha has quit [Ping timeout: 250 seconds]
mnoronha has joined #zig
__Myst__ has quit [Ping timeout: 255 seconds]
gunnarahlberg has quit [Ping timeout: 240 seconds]
__Myst__ has joined #zig
mnoronha has quit [Ping timeout: 245 seconds]
mnoronha has joined #zig
fsateler has joined #zig
fsateler_ has quit [Ping timeout: 255 seconds]
tobbez has joined #zig
Hejsil has joined #zig
mnoronha has quit [Ping timeout: 252 seconds]
mnoronha has joined #zig
<Hejsil>
suirad I didn't get it to work, but I noticed that you pass the pointer to the function and not the function itself. When I looked in gdb i noticed that __unamed2 was the function that crashes, but __unamed2 is a variable and not a function. https://godbolt.org/z/LNMG-V
<Hejsil>
My fix makes your code crash with "Program received signal SIGILL, Illegal instruction."
return0e_ has joined #zig
return0e has quit [Ping timeout: 250 seconds]
mnoronha has quit [Ping timeout: 268 seconds]
mnoronha has joined #zig
<nbjoerg>
W^X?
mnoronha has quit [Ping timeout: 245 seconds]
mnoronha has joined #zig
_whitelogger has joined #zig
mnoronha has quit [Ping timeout: 245 seconds]
mnoronha has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Ping timeout: 252 seconds]
dewf has quit [Quit: Leaving]
mnoronha has quit [Ping timeout: 245 seconds]
mnoronha has joined #zig
ltr_ has quit [Remote host closed the connection]
kristate has joined #zig
__Myst__ has quit [Ping timeout: 246 seconds]
__Myst__ has joined #zig
mnoronha has quit [Ping timeout: 240 seconds]
mnoronha has joined #zig
mnoronha has quit [Ping timeout: 250 seconds]
Hejsil has quit [Ping timeout: 256 seconds]
mnoronha has joined #zig
halosghost has joined #zig
kristate has quit [Remote host closed the connection]
kristate has joined #zig
kristate has quit [Ping timeout: 252 seconds]
noonien has joined #zig
mnoronha has quit [Ping timeout: 245 seconds]
mnoronha has joined #zig
kristate has joined #zig
Akuli has joined #zig
<Akuli>
how do i std.debug.warn a pointer to a struct?
<Sahnvour>
I guess the `orelse` emits IR than contains a ptr load, and it ends up crashing
daurnimator has quit [Ping timeout: 252 seconds]
mnoronha has joined #zig
Sahnvour has quit [Ping timeout: 256 seconds]
daurnimator has joined #zig
Sahnvour has joined #zig
<Sahnvour>
andrewrk: the compiler panics when trying to unwrap a ?comptime_int because it is a field access, it works fine with a local variable instead. I don't really know where to look, any idea ?