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/
<Raito_Bezarius> can I get comptime function as parameters?
<Raito_Bezarius> I tried anytype and it didn't work
<g-w1> how?
<Raito_Bezarius> something like this
<g-w1> i see, but ho did it not work
<Raito_Bezarius> ./src/kernel/syscalls/index.zig:4:41: error: expected function, found 'type'
<Raito_Bezarius> pub var handlers = [_]fn () void{SYSCALL(exit)};
<Raito_Bezarius> as var seems to not exist anymore, I used anytype
<Raito_Bezarius> exit is a fn () void
<g-w1> pub var handlers = [_]fn () void{SYSCALL(exit)}; is line 4?
<Raito_Bezarius> indeed
<g-w1> whats the signature of your SYSCALL?
<Raito_Bezarius> pub fn SYSCALL(comptime function: anytype) fn (context: *FastSyscallContext) void { ā”‚~
<Raito_Bezarius> but I'm doing something wrong
<Raito_Bezarius> fn (*FastSyscallContext) should be the type of handlers
<Raito_Bezarius> in terms of arrays
<g-w1> can you do `@compileLog(@TypeOf(SYSCALL(exit)))`?
<Raito_Bezarius> it's worst, SYSCALL was the module containing SYSCALL :')
<g-w1> ah :P
tefter has quit [Quit: WeeChat 3.1]
<g-w1> yoo it got merged \o/
<andrewrk> whew
<g-w1> is https://github.com/ziglang/zig/issues/8820 as trivial as the redundant comptime thing? I think it is
<g-w1> just search up the scopes linked list until you find a defer
ikskuh has quit [Ping timeout: 250 seconds]
mq32 has joined #zig
<Raito_Bezarius> when I'm trying to create an executable with target {.cpu_arch = .x86_64, .os_tag = .freestanding }, I'm getting an ELF with no .text, .data, how to debug this?
cole-h has quit [Ping timeout: 268 seconds]
<Raito_Bezarius> though there is a .o beside in the folder with a .text
<g-w1> try build-obj
<g-w1> i suspect that build-exe means nothing for freestanding as you are not exporting anything šŸ¤”
<g-w1> also zig build --verbose might be useful
<Raito_Bezarius> but empty ahem
<Raito_Bezarius> indeed, it's calling build-exe
<Raito_Bezarius> alright
<Raito_Bezarius> exporting main as _start did the work
<g-w1> šŸ‘
<Raito_Bezarius> is there a way to have a friendly main if I know how to write down the _start ?
<g-w1> i would take a look at lib/std/start.zig
<g-w1> it might have some insights waiting for you
<Raito_Bezarius> seems like as long as the root file has a _start decl, it's good
<Raito_Bezarius> but if I want to hide this in some library or OS specific stuff
<Raito_Bezarius> is there a way to remotely set the decl for root files ?
<Raito_Bezarius> ha
<Raito_Bezarius> I understood
<Raito_Bezarius> if I declare somewhere _start as an export
<Raito_Bezarius> Zig will just declare there must be some _start somewhere and lld will pick it up
<Raito_Bezarius> so as long as I import my OS stuff and it contains an export _start and is able to call main properly, it's a win I suppose
<g-w1> yea
<Raito_Bezarius> thanks g-w1 !
<g-w1> you can do stuff like @export(@import("root").main, "_start") i think
<Raito_Bezarius> awesome
<g-w1> hmm, is there some way to either make breakpoints on something in another thread or make astgen single threaded (trying to break on a function in astgen, but i have a feeling that it is not happening in my thread)
<andrewrk> astgen is effectively single threaded
<andrewrk> I think you might be assuming something that isn't true because I don't understand your question
<g-w1> (gdb) b AstGen.ret
<g-w1> r (no breakpoints)
<g-w1> well, nothing breaks
<andrewrk> it sounds like it has to do with communicating breakpoints to gdb rather than anything to do with threads
<andrewrk> try a line number instead
<g-w1> ok
<andrewrk> if you're working on astgen you probably want to be using the `zig astgen` command rather than the full frontend. that will simplify your development experience
<g-w1> very weird, gna inversigate more
<g-w1> oh, good idea šŸ¤¦
casaca has quit [Ping timeout: 240 seconds]
mq32 has quit [Ping timeout: 245 seconds]
mq32 has joined #zig
<g-w1> ah, the problem is not that trivial
<g-w1> i see that anything after a defer block is also in a defer scope
casaca has joined #zig
hiljusti has quit [Ping timeout: 245 seconds]
tefter has joined #zig
zenkuro has joined #zig
zenkuro has quit [Ping timeout: 240 seconds]
zenkuro has joined #zig
arkurious has quit [Quit: Leaving]
hiljusti has joined #zig
zenkuro has quit [Ping timeout: 240 seconds]
zenkuro has joined #zig
ur5us__ has quit [Ping timeout: 250 seconds]
ur5us__ has joined #zig
hiljusti has quit [Ping timeout: 250 seconds]
detha has quit [Ping timeout: 276 seconds]
<andrewrk> stage1 solution is fine, it has a "defer expression scope" that the expression is in, which is distinct from the scope that the defer creates for statements after it
detha has joined #zig
zenkuro has quit [Ping timeout: 265 seconds]
detha has quit [Quit: ZNC - http://znc.in]
zenkuro has joined #zig
detha has joined #zig
Kingreil has quit [Quit: Kingreil]
squeek502_ has quit [Remote host closed the connection]
zenkuro has quit [Ping timeout: 240 seconds]
zenkuro has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
ur5us__ has quit [Ping timeout: 258 seconds]
gert_ has joined #zig
gert_ has quit [Client Quit]
km_ has quit []
ur5us__ has joined #zig
novakane has joined #zig
sord937 has joined #zig
gonz_ has joined #zig
B767B has joined #zig
<andrewrk> if there is an issue that is important to you, and is not assigned the 0.8.0 milestone, speak up now
hiljusti has joined #zig
ur5us__ has quit [Remote host closed the connection]
ur5us__ has joined #zig
cole-h has joined #zig
ur5us__ has quit [Ping timeout: 258 seconds]
semarie has quit [Ping timeout: 265 seconds]
semarie has joined #zig
zenkuro has quit [Ping timeout: 240 seconds]
zenkuro has joined #zig
novakane has quit [Quit: WeeChat 3.1]
novakane has joined #zig
tefter has quit [Ping timeout: 240 seconds]
tefter has joined #zig
[wtf] has joined #zig
squeek502 has joined #zig
jokoon has joined #zig
hiljusti has quit [Ping timeout: 258 seconds]
amk has quit [Read error: Connection reset by peer]
amk has joined #zig
Bernstein has joined #zig
novakane has quit [Ping timeout: 258 seconds]
jokoon has quit [Ping timeout: 245 seconds]
cole-h has quit [Ping timeout: 252 seconds]
earnestly has joined #zig
jokoon has joined #zig
leon-p has joined #zig
ur5us__ has joined #zig
knebulae has quit [Read error: Connection reset by peer]
betawaffle has quit [Read error: Connection reset by peer]
rtpg has quit [Read error: Connection reset by peer]
novakane has joined #zig
betawaffle has joined #zig
gonz_ has left #zig ["Leaving"]
gonz_ has joined #zig
rtpg has joined #zig
sm2n has joined #zig
notzmv has quit [Ping timeout: 240 seconds]
[wtf] has quit [Ping timeout: 265 seconds]
knebulae has joined #zig
waleee-cl has joined #zig
ur5us__ has quit [Ping timeout: 258 seconds]
[wtf] has joined #zig
sm2n has quit [Remote host closed the connection]
sm2n_ has joined #zig
jokoon has quit [Quit: Leaving]
sm2n_ has quit [Remote host closed the connection]
sm2n has joined #zig
arkurious has joined #zig
rbino has joined #zig
CommunistWolf has quit [Ping timeout: 268 seconds]
[wtf] has left #zig [#zig]
CommunistWolf has joined #zig
notzmv has joined #zig
sh4rm4^bnc is now known as sh4k4l
leon-p has quit [Quit: leaving]
leon-p has joined #zig
Kuraitou_ has joined #zig
novakane has quit [Quit: WeeChat 3.1]
<Raito_Bezarius> https://github.com/ziglang/zig/blob/master/lib/std/elf.zig#L365-L370 how to interpret the anytype here? is there an spec of what must be implemented to be a parse_source?
sm2n has quit [Remote host closed the connection]
sm2n has joined #zig
<Nypsie> Probably a std.io.fixedBufferStream or a std.fs.File
<Nypsie> This is by simply grepping `seekableStream` and seeing what structures support that. The `read` function could probably use some doc comments to provide examples. (Note that own readers are supported as well, as long as they support the io.Reader interface and seekableStream)
sm2n has quit [Remote host closed the connection]
nathanael has quit [Remote host closed the connection]
sm2n has joined #zig
nathanael has joined #zig
r4pr0n has joined #zig
r4pr0n has quit [Client Quit]
sm2n has quit [Remote host closed the connection]
Kingreil has joined #zig
Stephie has left #zig ["Leaving"]
<tributarian> Can I get a recommendation on a good zig codebase that I can read through to help me learn?
<op_4> has the hubbab over libera.chat been discussed here?
Ankhers has quit [Quit: ZNC 1.8.1 - https://znc.in]
<ifreund> op_4: not much to discuss, I'm squatting #zig on libera until andrewk wakes up
<ifreund> will talk with him then
Ankhers has joined #zig
<ifreund> context for the unaware: https://www.kline.sh/
<Thalheim> oftc may be a better choice because by association if ex-freenode staff founded it, they may not be in the clear yet
<betawaffle> wasn't oftc also founded by ex-freenode too, just longer ago?
<ifreund> Thalheim: fair point, I'm now sqatting #zig there as well :D
<ifreund> from what I've seen so far though, libera looks solid
<Thalheim> betawaffle: less involved with the current drama
cr1901_modern has quit [Quit: Leaving.]
cr1901_modern has joined #zig
<op_4> ifreund: great, thanks :)
earnestly has quit [Remote host closed the connection]
<daurnimator> ifreund: I just joined libera now... so far I've lost connection twice and there is no services?
<yeti> there is
<yeti> but probably currently overrun by too many requests
nathanael has quit [Remote host closed the connection]
nathanael has joined #zig
<yeti> currently lag >1200
<ifreund> daurnimator: I think there servers just got overloaded, it was working fine 15 min ago
<cr1901_modern> I can't even ping it right now
<ifreund> anyhow I have #zig registered there
<yeti> already in my autojoin list
<yeti> ;-)
nathanael has quit [Remote host closed the connection]
sord937 has quit [Remote host closed the connection]
Miaourt has quit [Quit: Bye!]
sord937 has joined #zig
mikdusan has joined #zig
Miaourt has joined #zig
leon-p has quit [Quit: leaving]
grive has quit [Quit: Bye]
grive has joined #zig
jmiven has quit [Quit: reboot]
grive has quit [Quit: Bye]
jmiven has joined #zig
v0idify has joined #zig
<v0idify> hey, what's gonna happen with this channel?
<ifreund> v0idify: nothing yet, I'm squatting #zig on libera and oftc until andrewrk wakes up
<v0idify> ifreund: okie, thanks <3
<gpanders> it's like a bank run over there, people grabbing channels and nicks like crazy
<Nilium> Iā€™m just sitting on my hands and waiting before I go join any channels and accidentally claim ops.
<Nilium> Figuratively. Would be hard to type if I actually sat on them.
<plumm> did you guys hear about the freenode walkout
<v0idify> yes that's what we're talking about :P
<plumm> sorry. ifreund are you able to register your nick there?
v0idify has left #zig ["WeeChat 2.3"]
<ifreund> plumm: yes I was an hour or two ago, their email server is under very heavy load for registration though it seems
<plumm> makes sense
semarie has quit [Quit: WeeChat 3.1]
powerofzero has joined #zig
<powerofzero> Is structure packing implemented in the stage2 compiler? I'm looking to implement packing of unions in stage1, but I wanted to see if there was an implementation I could reference. I couldn't find and equivelent function to `pack_const_int` in stage2. Does it exist? If not, does a spec exist that I have to be sure to match, or can I just do it in a reasonable way?
<ifreund> powerofzero: no, it is not yet implemented in stage2
<ifreund> there is also not yet a formal spec
<powerofzero> okay
grive has joined #zig
grive has quit [Quit: Bye]
powerofzero has quit [Ping timeout: 268 seconds]
hiljusti has joined #zig
grive has joined #zig
grive has quit [Client Quit]
grive has joined #zig
grive has quit [Quit: Bye]
grive has joined #zig
mikdusan has quit [Quit: WeeChat 3.0.1]
semarie has joined #zig
fwg has joined #zig
fwg has quit [Client Quit]
nathanael has joined #zig
nathanael has quit [Remote host closed the connection]
nathanael has joined #zig
hiljusti has quit [Ping timeout: 250 seconds]
nathanael has quit [Remote host closed the connection]
nathanael has joined #zig
nathanael has quit [Remote host closed the connection]
earnestly has joined #zig
patwid has left #zig ["WeeChat 3.1"]
mikdusan has joined #zig
semarie has quit [Quit: WeeChat 3.1]
semarie has joined #zig
grive has quit [Quit: Bye]
grive has joined #zig
eddyb[legacy] has quit [Quit: Updating details, brb]
Bernstein has quit [Remote host closed the connection]
sh4k4l has left #zig ["Leaving"]
zenkuro has quit [Ping timeout: 265 seconds]
bitmapper has quit [Quit: Connection closed for inactivity]
noeontheend has joined #zig
eddyb[legacy] has joined #zig
jokoon has joined #zig
[wtf] has joined #zig
r4pr0n has joined #zig
r4pr0n has quit [Client Quit]
notzmv has quit [Ping timeout: 246 seconds]
Kuraitou_ has quit [Quit: Leaving]
jokoon2 has joined #zig
hiljusti has joined #zig
jokoon has quit [Ping timeout: 258 seconds]
eddyb[legacy] has left #zig [#zig]
[wtf] has quit [Ping timeout: 260 seconds]
cole-h has joined #zig
CommunistWolf has left #zig ["The cause of labour is the hope of the world"]
plumm has quit [Quit: Textual IRC Client: www.textualapp.com]
jokoon2 has quit [Quit: Leaving]
plumm has joined #zig
cole-h has quit [Quit: Goodbye]
cole-h has joined #zig
cole-h has quit [Client Quit]
cole-h has joined #zig
<marler8997> I want to lookup a convo in zig irc that happened sometime last year, anyone know of a way to do that?
<txdv> what was your nick?
<nerthus> I tend to just look through the logs on whitequark
cole-h has quit [Client Quit]
<txdv> just click through the pages
cole-h has joined #zig
<marler8997> txdv, thanks I think that will work
hiljusti has quit [Ping timeout: 245 seconds]
<marler8997> found it!
cole-h has quit [Client Quit]
cole-h has joined #zig
cole-h has quit [Client Quit]
tomku has left #zig [#zig]
tjammer has joined #zig
noeontheend has quit [Ping timeout: 252 seconds]
cole-h has joined #zig
bitmapper has joined #zig
semarie has quit [Quit: WeeChat 3.1]
semarie has joined #zig
semarie has quit [Client Quit]
semarie has joined #zig
linuxgemini has left #zig ["o/ https://thelounge.lasagna.dev"]
kragacles has left #zig [#zig]
hiljusti has joined #zig
ChanServ changed the topic of #zig to: zig programming language IRC has moved to irc.libera.chat | don't chat here except to help people move over
tjammer has quit [Quit: terminated!]
tjammer has joined #zig
Akuli has joined #zig
betawaffle has left #zig [#zig]
ChanServ changed the topic of #zig to: zig programming language IRC has moved to irc.libera.chat | please use this room only to help people move over
semarie has left #zig ["WeeChat 3.1"]
Thalheim has left #zig [#zig]
cole-h has quit [Remote host closed the connection]
dutchie has left #zig ["WeeChat 3.1"]
cole-h has joined #zig
jeregrine has left #zig [#zig]
cole-h has quit [Remote host closed the connection]
notzmv has joined #zig
kiedtl has left #zig ["// unreachable code"]
hspak has left #zig ["bye"]
Akuli has left #zig ["Leaving"]
jaredmm has left #zig ["Leaving"]
ifreund has left #zig ["WeeChat 3.1"]
<g-w1> do i need to make an acct for https://libera.chat/ ?
<g-w1> the page was not that clear
<DarkUranium> g-w1, works exactly the same as FreeNode, account optional but recommended
<g-w1> hmmm, ok, i don't remember how i made a freenode acct :P
<DarkUranium> /msg NickServ help register
<g-w1> ill just join and see what happens
<g-w1> ah thx
Nilium has left #zig [#zig]
g-w1 has quit [Quit: ZNC 1.7.5 - https://znc.in]
ugla has quit [Quit: issued !quit command]
kiedtl has joined #zig
kiedtl has left #zig ["// unreachable code"]
cr1901_modern has left #zig [#zig]
kiedtl has joined #zig
kiedtl has left #zig ["// unreachable code"]
Miaourt has left #zig ["Bye!"]
doublej41 has quit [Quit: WeeChat 2.2]
xentec has quit [Quit: memento mori]
tjammer has quit [Quit: terminated!]
tjammer has joined #zig
xentec has joined #zig
kenran has joined #zig
oats has left #zig ["bye bye :("]
dmgk has quit [Quit: ZNC - https://znc.in]
raggi has quit [Quit: upgrades]
dmgk has joined #zig
raggi has joined #zig
Raito_Bezarius has quit [Ping timeout: 245 seconds]
kenran has quit [Quit: leaving]
traviss has joined #zig
rinfo has quit [Quit: leaving]
traviss has quit [Client Quit]
[wtf] has joined #zig
[wtf] has quit [Client Quit]
Raito_Bezarius has joined #zig
dmgk has left #zig [#zig]
mikdusan has quit [Quit: WeeChat 3.0.1]
sord937 has quit [Quit: sord937]
dingenskirchen has quit [Ping timeout: 260 seconds]
Snetry- has quit [Ping timeout: 260 seconds]
sjums has quit [Ping timeout: 260 seconds]
dingenskirchen has joined #zig
euantorano has left #zig [#zig]
pjz has quit [Ping timeout: 260 seconds]
squeek502_ has joined #zig
knebulae has quit [Ping timeout: 260 seconds]
squeek502 has quit [Ping timeout: 260 seconds]
Ristovski has quit [Ping timeout: 260 seconds]
Snetry has joined #zig
pjz has joined #zig
notzmv has quit [Ping timeout: 265 seconds]
sjums has joined #zig
[Ristovski] has joined #zig
noeontheend has joined #zig
Cadey has left #zig ["WeeChat 3.1"]
noeontheend has quit [Quit: noeontheend]
pretty_dumm_guy has joined #zig
jsb has left #zig ["Leaving"]
letoram has quit [Ping timeout: 245 seconds]
tjammer has quit [Remote host closed the connection]
bitmapper has quit []
ur5us__ has joined #zig
[Ristovski] is now known as Ristovski
pretty_dumm_guy has quit [Quit: WeeChat 3.2-dev]
pretty_dumm_guy has joined #zig
B767B has quit [Remote host closed the connection]
afk has left #zig ["WeeChat 1.9.1"]
ifreund has joined #zig
cCCCCcccccCCc has joined #zig
nullheroes is now known as wallyduchamp
wallyduchamp is now known as danielxvu
danielxvu has quit [Quit: WeeChat 3.1]
notzmv has joined #zig
xentec has quit [Quit: memento mori]
recalloc has quit [Quit: leaving]
recalloc has joined #zig
GreaseMonkey has left #zig ["HYDRA IRC LOL"]
v0idify has joined #zig
<v0idify> god dammoit
<v0idify> it auto-banned me permanently :P
<ifreund> what did you do?
<v0idify> i was trying nicks
<v0idify> and got banned for spamming
leah2 has left #zig ["trotz alledem!"]
<v0idify> already appealed, still :/
<v0idify> deserved though. [i'm talking about the other dimension of this channel, at libera.chat)
<ifreund> yeah, I imagine they have a lot of people spamming /nick right now :D
<v0idify> yyyup
<v0idify> should have been a tempban though, this will just cause a flood of support tickets probably
txdv has quit [Ping timeout: 240 seconds]
cCCCCcccccCCc has quit [Quit: ZNC - http://znc.in]
earnestly has quit [Ping timeout: 252 seconds]
v0idify has quit [Ping timeout: 240 seconds]
pretty_dumm_guy has left #zig ["WeeChat 3.2-dev"]
dch has quit []
sm2n has joined #zig
earnestly has joined #zig
v0idify has joined #zig
op_4 has left #zig ["leaving"]
sm2n has quit [Quit: Leaving]
sm2n has joined #zig
yeti has quit [Ping timeout: 240 seconds]