ChanServ changed the topic of #zig to: zig programming language | https://ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
<andrewrk> fengb, hmm. the purpose of that never_inline call is to avoid that problem. could it be perhaps not working on that backend?
<andrewrk> as a test try making _start C calling convention instead of naked and see what happens
<andrewrk> is this debug or release?
<fengb> ReleaseFast
<fengb> Maybe I’m doing something wrong
<fengb> It’s saving an empty register so not sure what’s going on
mattnite has quit [Read error: Connection reset by peer]
<fengb> callconv(.C) does the same thing
<fengb> Making it always_inline actually fixed the problem
<andrewrk> interesting
paulgrmn_ has joined #zig
<Raito_Bezarius> just got, Unreachable at /build/source/src/stage1/ir.cpp:867 in const_ptr_pointee_unchecked_no_isf. This is a bug in the Zig compiler.
<Raito_Bezarius> is this a known bug?
<Raito_Bezarius> (or maybe I'm doing something wrong)
<Raito_Bezarius> trigerred on someBuffer.*[a..b].* :D
<Raito_Bezarius> where someBuffer: *const [*]u8
<Raito_Bezarius> thanks andrewrk for the clarification
<g-w1> Raito_Bezarius: try splitting that up into temporary variables
<Raito_Bezarius> just did, const buffer = someBuffer.*; const slice = buffer[a..B].*;
<Raito_Bezarius> got the same error
<Raito_Bezarius> same by removing the .* at the end and putting it in the usage site
<andrewrk> Raito_Bezarius, there are quite a few known stage1 bugs and right now my personal strategy is to focus on getting the self-hosted compiler completed rather than working on those bugs in the bootstrap compiler
<Raito_Bezarius> alright, no problem :)
Amun_Ra has joined #zig
paulgrmn_ has quit [Ping timeout: 268 seconds]
earnestly has quit [Ping timeout: 245 seconds]
nvmd has quit [Quit: Later nerds.]
aerona has quit [Quit: Leaving]
kushalp has joined #zig
r0bby has quit [Ping timeout: 252 seconds]
tracernz has joined #zig
kwilczynski has quit [Ping timeout: 245 seconds]
r0bby has joined #zig
kwilczynski has joined #zig
xackus_ has joined #zig
xackus has quit [Ping timeout: 268 seconds]
jsb has joined #zig
ur5us has joined #zig
pretty_dumm_guy has quit [Quit: WeeChat 3.2-dev]
r0bby has quit [*.net *.split]
bitmapper has quit [*.net *.split]
tdeo has quit [*.net *.split]
rtpg has quit [*.net *.split]
suhashebbar[m] has quit [*.net *.split]
siraben has quit [*.net *.split]
ur5us has quit [*.net *.split]
waleee-cl has quit [*.net *.split]
Anzh has quit [*.net *.split]
mmurd has quit [*.net *.split]
xentec has quit [*.net *.split]
kshlm has quit [*.net *.split]
plumm has quit [*.net *.split]
betawaffle has quit [*.net *.split]
eddyb[legacy] has quit [*.net *.split]
xackus_ has quit [*.net *.split]
clee has joined #zig
ur5us has joined #zig
xackus_ has joined #zig
Anzh has joined #zig
r0bby has joined #zig
bitmapper has joined #zig
tdeo has joined #zig
waleee-cl has joined #zig
suhashebbar[m] has joined #zig
siraben has joined #zig
plumm has joined #zig
kshlm has joined #zig
betawaffle has joined #zig
eddyb[legacy] has joined #zig
rtpg has joined #zig
dreda has joined #zig
casaca has joined #zig
Ristovski has joined #zig
sjums has joined #zig
Stephie has joined #zig
leon-p has joined #zig
Nypsie has joined #zig
kevinsjoberg has joined #zig
jcmdln has joined #zig
JoshAshby has joined #zig
signop has joined #zig
drvirgilio has joined #zig
st4ll11 has joined #zig
fireglow has joined #zig
waffle_ethics has joined #zig
daurnimator has joined #zig
V has joined #zig
xentec has joined #zig
yrashk has joined #zig
rom1504 has joined #zig
idxu has joined #zig
tav has joined #zig
lqd has joined #zig
flokli has joined #zig
nikki93 has joined #zig
lonjil has joined #zig
earl has joined #zig
larme has joined #zig
Thalheim has joined #zig
cbix has joined #zig
mipri has joined #zig
dputtick has joined #zig
GreaseMonkey has joined #zig
CommunistWolf has joined #zig
rbino has joined #zig
jeregrine has joined #zig
Cadey has joined #zig
l1x has joined #zig
johnLate has joined #zig
Ankhers has joined #zig
companion_cube has joined #zig
grive has joined #zig
detha has joined #zig
vent has joined #zig
dongcarl has joined #zig
benaiah has joined #zig
txdv has joined #zig
techtirade has joined #zig
pjz has joined #zig
hspak has joined #zig
daex has joined #zig
nullheroes has joined #zig
Nilium has joined #zig
wilsonk has joined #zig
kragacles has joined #zig
ave_ has joined #zig
amk has joined #zig
isolier has joined #zig
ncon has joined #zig
Snetry has joined #zig
terinjokes has joined #zig
oats has joined #zig
lanodan has joined #zig
mokafolio has joined #zig
dok has joined #zig
Yardanico has joined #zig
backwhack has joined #zig
nickster has joined #zig
rowbee has joined #zig
raggi has joined #zig
mmurd has joined #zig
SimonNa has joined #zig
Wolf480pl has joined #zig
Techcable has joined #zig
lemmi has joined #zig
factormystic has joined #zig
tcsc has joined #zig
jmiven has joined #zig
s-ol has joined #zig
braket has joined #zig
jaredmm has joined #zig
leah2 has joined #zig
mixi has joined #zig
mht has joined #zig
urluck has joined #zig
leibniz[m] has quit [Max SendQ exceeded]
tm-exa has quit [Excess Flood]
siraben has quit [Max SendQ exceeded]
tm-exa has joined #zig
aerona has joined #zig
cepheus has quit [Ping timeout: 245 seconds]
betawaffle has quit [Ping timeout: 245 seconds]
eddyb[legacy] has quit [Ping timeout: 245 seconds]
AtomToast has quit [Ping timeout: 252 seconds]
ziguana[m] has quit [Ping timeout: 252 seconds]
r0bby has quit [Ping timeout: 250 seconds]
fengb has quit [Ping timeout: 248 seconds]
suhashebbar[m] has quit [Ping timeout: 258 seconds]
bitonic has quit [Ping timeout: 252 seconds]
notzmv has quit [Ping timeout: 265 seconds]
superdump has quit [Ping timeout: 245 seconds]
jaens[m] has quit [Ping timeout: 245 seconds]
kshlm has quit [Ping timeout: 245 seconds]
waleee-cl has quit [Ping timeout: 258 seconds]
watzon has quit [Ping timeout: 276 seconds]
pafmaf[m] has quit [Ping timeout: 252 seconds]
Sumera[m] has quit [Ping timeout: 245 seconds]
ugla has quit [Ping timeout: 245 seconds]
Snektron has quit [Ping timeout: 248 seconds]
kameliya[m] has quit [Ping timeout: 248 seconds]
eddyb[legacy] has joined #zig
notzmv has joined #zig
waleee-cl has joined #zig
r0bby has joined #zig
ur5us has quit [Ping timeout: 258 seconds]
betawaffle has joined #zig
kshlm has joined #zig
ziguana[m] has joined #zig
Sumera[m] has joined #zig
jaens[m] has joined #zig
bitonic has joined #zig
siraben has joined #zig
ugla has joined #zig
leibniz[m] has joined #zig
cepheus has joined #zig
kameliya[m] has joined #zig
suhashebbar[m] has joined #zig
fengb has joined #zig
pafmaf[m] has joined #zig
superdump has joined #zig
watzon has joined #zig
Snektron has joined #zig
AtomToast has joined #zig
vrdhn has joined #zig
vrdhn has quit [Ping timeout: 265 seconds]
vrdhn has joined #zig
osa1 has joined #zig
dyeplexer has joined #zig
cole-h has quit [Ping timeout: 240 seconds]
retropikzel_ has joined #zig
bitmapper has quit [Quit: Connection closed for inactivity]
retropikzel has quit [Ping timeout: 240 seconds]
ur5us has joined #zig
vrdhn has quit [Ping timeout: 265 seconds]
sord937 has joined #zig
earnestly has joined #zig
teratorn_ has joined #zig
ur5us has quit [Ping timeout: 258 seconds]
aerona has quit [Quit: Leaving]
vrdhn has joined #zig
kameliya[m] has quit [Quit: Idle for 30+ days]
sord937 has quit [Quit: sord937]
v0idifyy has quit [Remote host closed the connection]
v0idify has joined #zig
v0idify has quit [Client Quit]
v0idify has joined #zig
v0idify has quit [Ping timeout: 240 seconds]
v0idify has joined #zig
ifreund has joined #zig
vrdhn has quit [Ping timeout: 240 seconds]
Anzh has quit [Ping timeout: 240 seconds]
tane has joined #zig
Anzh has joined #zig
xackus_ has quit [Ping timeout: 268 seconds]
vrdhn has joined #zig
vrdhn has quit [Client Quit]
amk has quit [Remote host closed the connection]
retropikzel_ has quit [Ping timeout: 250 seconds]
amk has joined #zig
retropikzel has joined #zig
klltkr has joined #zig
wootehfoot has joined #zig
TheLemonMan has joined #zig
notzmv has quit [Ping timeout: 240 seconds]
retropikzel has quit [Ping timeout: 250 seconds]
supercoven has joined #zig
_whitelogger has joined #zig
retropikzel has joined #zig
retropikzel has quit [Ping timeout: 250 seconds]
Anzh has quit [Ping timeout: 252 seconds]
Anzh has joined #zig
wootehfoot has quit [Ping timeout: 268 seconds]
paulgrmn_ has joined #zig
notzmv has joined #zig
cole-h has joined #zig
<Raito_Bezarius> what is the easiest way to pass callback to functions in Zig?
<Raito_Bezarius> anytype is the way?
wootehfoot has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
bitmapper has joined #zig
<g-w1> fn (u32) void
<g-w1> so it could be `fn takecallback(f: fn (u32) void) void`
<g-w1> as an example
<Raito_Bezarius> nice, thanks!
<Raito_Bezarius> while on the subject of questions, if I do inline asm, as I understand the LLVM docs on it, I could specify "i" as an input constraint for immediates values right?
<Raito_Bezarius> but in that case, Zig will tell me that comptime_int is not a sized integer
<Raito_Bezarius> do I need to do @as(uSomeSize, xxx); ?
<TheLemonMan> yes
<Raito_Bezarius> Alright
<g-w1> i *think* stage2 fixes this problem as it allows it to be coerced, but im not 100% sure
<TheLemonMan> yeah, each input has a result location slot of type usize
retropikzel has joined #zig
wootehfoot has joined #zig
Akuli has joined #zig
paulgrmn_ has quit [Ping timeout: 240 seconds]
paulgrmn_ has joined #zig
Anzh has quit [Ping timeout: 240 seconds]
paulgrmn_ has quit [Ping timeout: 268 seconds]
cole-h has quit [Ping timeout: 252 seconds]
ifreund has quit [*.net *.split]
mikdusan has quit [*.net *.split]
knebulae has quit [*.net *.split]
[RMS] has quit [*.net *.split]
proteusguy has quit [*.net *.split]
halbeno has quit [*.net *.split]
adsr has quit [*.net *.split]
mschwaig has quit [*.net *.split]
jicksaw has quit [*.net *.split]
cow-orker has quit [*.net *.split]
nore has quit [*.net *.split]
Witcher01 has quit [*.net *.split]
rinfo has quit [*.net *.split]
via has quit [*.net *.split]
ifreund has joined #zig
adsr has joined #zig
knebulae has joined #zig
halbeno has joined #zig
proteusguy has joined #zig
mikdusan has joined #zig
mschwaig has joined #zig
[RMS] has joined #zig
jicksaw has joined #zig
Witcher01 has joined #zig
cow-orker has joined #zig
nore has joined #zig
rinfo has joined #zig
via has joined #zig
dyeplexer has quit [Remote host closed the connection]
Anzh has joined #zig
notzmv has quit [Ping timeout: 240 seconds]
v0idify has quit [Remote host closed the connection]
v0idify has joined #zig
<mikdusan> andrewrk: what is the purpose of each of these uploads? $JSONFILE expands to "linux-.json"; not sure what that means
<ifreund> mikdusan: probably for https://ziglang.org/download/index.json ?
notzmv has joined #zig
<mikdusan> yes I can see how the 2nd file is used for that
tslil has joined #zig
<Raito_Bezarius> I have seen someone who has done something like:
<Raito_Bezarius> ./src/kernel/arch/x86/interrupts.zig:26:16: error: array literal requires address-of operator to coerce to slice type '[]fn() void'
<Raito_Bezarius> var handlers = []fn () void{unhandled} ** 48;
<Raito_Bezarius> but I get this error on Zig 0.7.1 (& 0.8.0)
<Raito_Bezarius> to initialize an array of fun ptrs
<Raito_Bezarius> is there a new syntax to do this?
<mikdusan> [_]fn () void
<Raito_Bezarius> thanks!
<mikdusan> fengb: yeah I'll merge the stack_traces stuff asap. I did local verify on linux/macos/freebsd but not windows. so that's the only platform likely to cause a delay in getting into master
<mikdusan> aw shucks... struct literal doesn't let me define functions
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
<fengb> Thanks :)
mikdusan1 has joined #zig
mikdusan has quit [Ping timeout: 246 seconds]
mikdusan1 is now known as mikdusan
<andrewrk> mikdusan, the update-download-page job runs after each OS-specific job runs and needs to check if they're all done; this is the file it uses to detect
amk has quit [Remote host closed the connection]
<mikdusan> yes but what is this file for? "linux-.json" ?
amk has joined #zig
<mikdusan> ie. we are uploading the same .json file twice
<mikdusan> to different pathnames on ziglang.org
<andrewrk> that must be linux-$GITBRANCH.json
<andrewrk> I used to have it set up so any branch also publishes builds, but maybe that regressed
<andrewrk> I'm fine with getting rid of that
pretty_dumm_guy has joined #zig
<mikdusan> ok so generally CI is useless for publishing? just have to do best care and change on master and baby sit?
<andrewrk> the problem is we don't have 1 CI that does everything, we have a bunch and they all work differently and also most are from proprietary providers that we may want to ditch if they start being shitty
<andrewrk> and I've migrated several times already
<andrewrk> so you're seeing CI code that is more CI-agnostic than most CI code
paulgrmn_ has joined #zig
* andrewrk afk
supercoven has quit [Ping timeout: 260 seconds]
tslil has left #zig ["Using Circe, the loveliest of all IRC clients"]
tslil has joined #zig
tslil has left #zig ["Using Circe, the loveliest of all IRC clients"]
a_chou has joined #zig
a_chou has quit [Remote host closed the connection]
ur5us has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 258 seconds]
paulgrmn_ has quit [Ping timeout: 260 seconds]
notzmv has quit [Ping timeout: 240 seconds]
pretty_dumm_guy has quit [Quit: WeeChat 3.2-dev]
tslil has joined #zig
Akuli has quit [Quit: Leaving]
notzmv has joined #zig
teratorn_ is now known as teratorn
tane has quit [Quit: Leaving]
cole-h has joined #zig
<mikdusan> fengb: fixed windows glitch locally; #8490 will prob go green in 2 hours and I'll merge