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/
proteusguy has quit [*.net *.split]
leon-p has quit [*.net *.split]
linuxgemini has quit [*.net *.split]
gpanders has quit [*.net *.split]
ncon has quit [*.net *.split]
jicksaw has quit [*.net *.split]
semarie has quit [*.net *.split]
philtor has quit [*.net *.split]
so has quit [*.net *.split]
Seich has quit [*.net *.split]
bsrd has quit [*.net *.split]
nullheroes has quit [*.net *.split]
nvmd has quit [*.net *.split]
ky0ko has quit [*.net *.split]
decentpenguin has quit [*.net *.split]
tomku has quit [*.net *.split]
hspak has quit [*.net *.split]
paulsmith has quit [*.net *.split]
dingenskirchen has quit [*.net *.split]
Stephie has quit [*.net *.split]
tyrion-mx has quit [*.net *.split]
Snektron has quit [*.net *.split]
fengb has quit [*.net *.split]
ziguana[m] has quit [*.net *.split]
mtiljeset[m] has quit [*.net *.split]
siraben has quit [*.net *.split]
flokli has quit [*.net *.split]
cole-h has quit [*.net *.split]
gazler has quit [*.net *.split]
haliucinas has quit [*.net *.split]
adsr has quit [*.net *.split]
lunamn has quit [*.net *.split]
nyaa8 has quit [*.net *.split]
companion_cube has quit [*.net *.split]
swills has quit [*.net *.split]
jjsullivan has quit [*.net *.split]
bkleiner has quit [*.net *.split]
dominikh has quit [*.net *.split]
signop has quit [*.net *.split]
kandinski has quit [*.net *.split]
sjums has quit [*.net *.split]
ur5us has quit [*.net *.split]
hnOsmium0001 has quit [*.net *.split]
waleee-cl has quit [*.net *.split]
jzelinskie has quit [*.net *.split]
sharpobject has quit [*.net *.split]
karrick has quit [*.net *.split]
sjd has quit [*.net *.split]
JoshAshby has quit [*.net *.split]
Sahnvour has quit [*.net *.split]
gonz_ has quit [*.net *.split]
wjlroe has quit [*.net *.split]
bodie_ has quit [*.net *.split]
euantorano has quit [*.net *.split]
waddlesplash has quit [*.net *.split]
guan has quit [*.net *.split]
josuah has quit [*.net *.split]
urluck has quit [*.net *.split]
vesim has quit [*.net *.split]
M-ou-se has quit [*.net *.split]
osa1 has quit [*.net *.split]
kwilczynski has quit [*.net *.split]
oats has quit [*.net *.split]
ovf has quit [*.net *.split]
eddyb[legacy] has quit [*.net *.split]
bgiannan has quit [*.net *.split]
drvirgilio has quit [*.net *.split]
pafmaf[m] has quit [*.net *.split]
tcsc has quit [*.net *.split]
xentec has quit [*.net *.split]
knebulae has quit [*.net *.split]
nickster has quit [*.net *.split]
nore has quit [*.net *.split]
DarkUranium has quit [*.net *.split]
mht has quit [*.net *.split]
letoram has quit [*.net *.split]
[RMS] has quit [*.net *.split]
meatcar has quit [*.net *.split]
veltas has quit [*.net *.split]
protheory8-new-m has quit [*.net *.split]
heitzmann[m] has quit [*.net *.split]
ky0ko1 has quit [*.net *.split]
ltr has quit [*.net *.split]
cCCCCcccccCCc has quit [*.net *.split]
tines9 has quit [*.net *.split]
redj has quit [*.net *.split]
yeti has quit [*.net *.split]
dbohdan has quit [*.net *.split]
halbeno has quit [*.net *.split]
bens has quit [*.net *.split]
drewr has quit [*.net *.split]
lohengrin has quit [*.net *.split]
midgard has quit [*.net *.split]
dongcarl has quit [*.net *.split]
lonjil has quit [*.net *.split]
Snetry has quit [*.net *.split]
crimson_penguin has quit [*.net *.split]
Ankhers has quit [*.net *.split]
mokafolio has quit [*.net *.split]
lanodan has quit [*.net *.split]
larme has quit [*.net *.split]
jmiven has quit [*.net *.split]
justin_smith has quit [*.net *.split]
dch has quit [*.net *.split]
daurnimator has quit [*.net *.split]
lqd has quit [*.net *.split]
travv0 has quit [*.net *.split]
commander has quit [*.net *.split]
mixi has quit [*.net *.split]
rom1504 has quit [*.net *.split]
torque has quit [*.net *.split]
cmrs has quit [*.net *.split]
earl has quit [*.net *.split]
di-wu has quit [*.net *.split]
dddddd has quit [*.net *.split]
hch has quit [*.net *.split]
Pistahh has quit [*.net *.split]
Nilium has quit [*.net *.split]
amk has quit [*.net *.split]
dkibi has quit [*.net *.split]
ikskuh has quit [*.net *.split]
blackbeard420 has quit [*.net *.split]
nycex has quit [*.net *.split]
edr has quit [*.net *.split]
alvv___ has quit [*.net *.split]
isolier has quit [*.net *.split]
marler8997 has quit [*.net *.split]
pixelherodev has quit [*.net *.split]
kragacles has quit [*.net *.split]
tsujp1 has quit [*.net *.split]
chivay has quit [*.net *.split]
Tharro has quit [*.net *.split]
xyproto has quit [*.net *.split]
Miaourt has quit [*.net *.split]
Cloudef has quit [*.net *.split]
teratorn has quit [*.net *.split]
V has quit [*.net *.split]
shodan45 has quit [*.net *.split]
ugla has quit [*.net *.split]
Biolunar has quit [*.net *.split]
racoon has quit [*.net *.split]
rowbee has quit [*.net *.split]
neptunepink has quit [*.net *.split]
johnLate has quit [*.net *.split]
tughi has quit [*.net *.split]
lemmi has quit [*.net *.split]
greeb has quit [*.net *.split]
jaredmm has quit [*.net *.split]
doublej41 has quit [*.net *.split]
mla has quit [*.net *.split]
ave_ has quit [*.net *.split]
kameliya has quit [*.net *.split]
blueberrypie has quit [*.net *.split]
Ekho has quit [*.net *.split]
Ristovski has quit [*.net *.split]
squeek502 has quit [*.net *.split]
idxu has quit [*.net *.split]
shachaf has quit [*.net *.split]
sawzall has quit [*.net *.split]
factormystic has quit [*.net *.split]
sebonirc has quit [*.net *.split]
mikdusan has quit [*.net *.split]
drp has quit [*.net *.split]
cow-orker has quit [*.net *.split]
leah2 has quit [*.net *.split]
ifreund has quit [*.net *.split]
wilsonk__ has quit [*.net *.split]
Wolf480pl has quit [*.net *.split]
st4ll11 has quit [*.net *.split]
andrewrk has quit [*.net *.split]
braket has quit [*.net *.split]
albertito has quit [*.net *.split]
pjz has quit [*.net *.split]
casaca has quit [*.net *.split]
viashimo has quit [*.net *.split]
Yardanico has quit [*.net *.split]
ask6155 has quit [*.net *.split]
dom96 has quit [*.net *.split]
s-ol has quit [*.net *.split]
via has quit [*.net *.split]
m6w6 has quit [*.net *.split]
Ziemas has quit [*.net *.split]
ifreund_ has quit [*.net *.split]
shurane has quit [*.net *.split]
jaens[m] has quit [*.net *.split]
yrashk has quit [*.net *.split]
BaroqueLarouche has quit [*.net *.split]
Bastian[m] has quit [*.net *.split]
kushalp has quit [*.net *.split]
lucus16 has quit [*.net *.split]
tracernz has quit [*.net *.split]
r0bby has quit [*.net *.split]
procnto has quit [*.net *.split]
dputtick has quit [*.net *.split]
tdeo has quit [*.net *.split]
Amun_Ra has quit [*.net *.split]
betawaffle has quit [*.net *.split]
albertito has joined #zig
tughi has joined #zig
osa1 has joined #zig
ur5us has joined #zig
alvv___ has joined #zig
cole-h has joined #zig
nycex has joined #zig
cCCCCcccccCCc has joined #zig
ltr has joined #zig
factormystic has joined #zig
hnOsmium0001 has joined #zig
mokafolio has joined #zig
haliucinas has joined #zig
waleee-cl has joined #zig
adsr has joined #zig
heitzmann[m] has joined #zig
gazler has joined #zig
kragacles has joined #zig
lanodan has joined #zig
josuah has joined #zig
isolier has joined #zig
jaens[m] has joined #zig
marler8997 has joined #zig
midgard has joined #zig
kameliya has joined #zig
ave_ has joined #zig
lunamn has joined #zig
sebonirc has joined #zig
Ziemas has joined #zig
larme has joined #zig
mikdusan has joined #zig
cow-orker has joined #zig
greeb has joined #zig
drp has joined #zig
di-wu has joined #zig
xentec has joined #zig
tines9 has joined #zig
knebulae has joined #zig
jmiven has joined #zig
dkibi has joined #zig
leah2 has joined #zig
pixelherodev has joined #zig
ifreund has joined #zig
wilsonk__ has joined #zig
dddddd has joined #zig
xyproto has joined #zig
Bastian[m] has joined #zig
BaroqueLarouche has joined #zig
ugla has joined #zig
ifreund_ has joined #zig
protheory8-new-m has joined #zig
pafmaf[m] has joined #zig
Biolunar has joined #zig
dongcarl has joined #zig
travv0 has joined #zig
companion_cube has joined #zig
nickster has joined #zig
racoon has joined #zig
kwilczynski has joined #zig
hch has joined #zig
jzelinskie has joined #zig
blueberrypie has joined #zig
Ekho has joined #zig
andrewrk has joined #zig
sharpobject has joined #zig
justin_smith has joined #zig
Ristovski has joined #zig
tsujp1 has joined #zig
lonjil has joined #zig
st4ll11 has joined #zig
redj has joined #zig
DarkUranium has joined #zig
swills has joined #zig
nore has joined #zig
rowbee has joined #zig
oats has joined #zig
kushalp has joined #zig
lucus16 has joined #zig
squeek502 has joined #zig
r0bby has joined #zig
neptunepink has joined #zig
tracernz has joined #zig
jjsullivan has joined #zig
ovf has joined #zig
eddyb[legacy] has joined #zig
procnto has joined #zig
braket has joined #zig
dch has joined #zig
sjd has joined #zig
Pistahh has joined #zig
Snetry has joined #zig
bgiannan has joined #zig
yeti has joined #zig
karrick has joined #zig
bkleiner has joined #zig
dputtick has joined #zig
mht has joined #zig
dbohdan has joined #zig
pjz has joined #zig
Nilium has joined #zig
sjums has joined #zig
kandinski has joined #zig
signop has joined #zig
johnLate has joined #zig
tdeo has joined #zig
dominikh has joined #zig
betawaffle has joined #zig
M-ou-se has joined #zig
guan has joined #zig
euantorano has joined #zig
gonz_ has joined #zig
bodie_ has joined #zig
wjlroe has joined #zig
vesim has joined #zig
JoshAshby has joined #zig
casaca has joined #zig
Amun_Ra has joined #zig
amk has joined #zig
meatcar has joined #zig
lemmi has joined #zig
lqd has joined #zig
viashimo has joined #zig
Tharro has joined #zig
letoram has joined #zig
[RMS] has joined #zig
drvirgilio has joined #zig
idxu has joined #zig
ky0ko1 has joined #zig
commander has joined #zig
veltas has joined #zig
tcsc has joined #zig
Miaourt has joined #zig
halbeno has joined #zig
mixi has joined #zig
jaredmm has joined #zig
crimson_penguin has joined #zig
ikskuh has joined #zig
bens has joined #zig
shachaf has joined #zig
edr has joined #zig
Yardanico has joined #zig
lohengrin has joined #zig
yrashk has joined #zig
drewr has joined #zig
Ankhers has joined #zig
torque has joined #zig
cmrs has joined #zig
shurane has joined #zig
rom1504 has joined #zig
earl has joined #zig
blackbeard420 has joined #zig
dom96 has joined #zig
teratorn has joined #zig
V has joined #zig
shodan45 has joined #zig
Cloudef has joined #zig
doublej41 has joined #zig
via has joined #zig
m6w6 has joined #zig
s-ol has joined #zig
mla has joined #zig
ask6155 has joined #zig
Sahnvour has joined #zig
sawzall has joined #zig
chivay has joined #zig
daurnimator has joined #zig
urluck has joined #zig
waddlesplash has joined #zig
Wolf480pl has joined #zig
nyaa8 has joined #zig
tyrion-mx has joined #zig
fengb has joined #zig
Snektron has joined #zig
ziguana[m] has joined #zig
mtiljeset[m] has joined #zig
siraben has joined #zig
flokli has joined #zig
nvmd has joined #zig
decentpenguin has joined #zig
ky0ko has joined #zig
leon-p has joined #zig
tomku has joined #zig
paulsmith has joined #zig
gpanders has joined #zig
hspak has joined #zig
Stephie has joined #zig
jicksaw has joined #zig
ncon has joined #zig
philtor has joined #zig
proteusguy has joined #zig
dingenskirchen has joined #zig
linuxgemini has joined #zig
bsrd has joined #zig
nullheroes has joined #zig
Seich has joined #zig
semarie has joined #zig
so has joined #zig
ziguana[m] has quit [Ping timeout: 240 seconds]
heitzmann[m] has quit [Ping timeout: 246 seconds]
ifreund_ has quit [Ping timeout: 246 seconds]
pafmaf[m] has quit [Ping timeout: 244 seconds]
tyrion-mx has quit [Ping timeout: 240 seconds]
fengb has quit [Ping timeout: 240 seconds]
mtiljeset[m] has quit [Ping timeout: 240 seconds]
Snektron has quit [Ping timeout: 240 seconds]
siraben has quit [Ping timeout: 240 seconds]
protheory8-new-m has quit [Ping timeout: 246 seconds]
jaens[m] has quit [Ping timeout: 246 seconds]
BaroqueLarouche has quit [Ping timeout: 268 seconds]
Nypsie[m] has quit [Ping timeout: 264 seconds]
jicksaw has quit [Ping timeout: 264 seconds]
ugla has quit [Ping timeout: 260 seconds]
Bastian[m] has quit [Ping timeout: 268 seconds]
jicksaw has joined #zig
ur5us has quit [Ping timeout: 260 seconds]
BaroqueLarouche has joined #zig
protheory8-new-m has joined #zig
pafmaf[m] has joined #zig
ziguana[m] has joined #zig
ifreund_ has joined #zig
xackus_ has joined #zig
BaroqueLarouche has quit [Ping timeout: 246 seconds]
pafmaf[m] has quit [Ping timeout: 268 seconds]
protheory8-new-m has quit [Ping timeout: 244 seconds]
ifreund_ has quit [Ping timeout: 268 seconds]
ziguana[m] has quit [Ping timeout: 268 seconds]
ur5us has joined #zig
Bastian[m] has joined #zig
ugla has joined #zig
siraben has joined #zig
jaens[m] has joined #zig
ifreund_ has joined #zig
pafmaf[m] has joined #zig
fengb has joined #zig
BaroqueLarouche has joined #zig
Snektron has joined #zig
mtiljeset[m] has joined #zig
ziguana[m] has joined #zig
protheory8-new-m has joined #zig
Nypsie[m] has joined #zig
ur5us_ has joined #zig
ur5us has quit [Ping timeout: 258 seconds]
alvv___ has quit [Quit: Leaving]
<marler8997> off topic, I just finished 4 days of triaging a locale issue. The problem ended up being that I was using glibc 2.25 but the yocto tool to create the archive was newer, which added some new entries to the LC_TIME locale...whoever decided not to version the locale-archive binary has caused the world sooo much pain
<marler8997> and I don't understand how glibc doesn't have proper error handling...this could have taken 10 minutes if glibc would have just logged a proper error message when it found the unexpected data
ltr has quit [Quit: leaving]
bitmapper has joined #zig
<kameliya> alright!!! aarch64 kernel boots and uses the uefi-provided framebuffer as a console to print a greeting/version
<kameliya> i had to disable mmu but i'm still really proud i got this far :<
<kameliya> for any curious: uefi bootloader: https://git.kameliya.ee/daintree/tree/dainboot/src/dainboot.zig, kernel entry point (uefi exited): https://git.kameliya.ee/daintree/tree/os/src/entry.zig
<kameliya> time to clean it all up
<kameliya> debugging panics was "fun", since it just crashed qemu. but the registers showed the pointer to the panic message which i could grab out of the image.
sebonirc has quit [Quit: sebonirc]
<pixelherodev> kameliya: you can override the panic handler to dump message over UART
<pixelherodev> I've done it, and andrewrk did it on a Pi IIRC
osa1 has quit [Ping timeout: 240 seconds]
<kameliya> i'm sure i will at some stage! i am so far behind having UART :)
<kameliya> have just worked out how to force strict align since i'm running with no MMU still
gazler has quit [Ping timeout: 260 seconds]
gazler has joined #zig
shirty has joined #zig
shirty has quit [Quit: Going offline, see ya! (www.adiirc.com)]
xackus has joined #zig
shirty has joined #zig
xackus_ has quit [Ping timeout: 246 seconds]
<kameliya> pixelherodev: https://files.catbox.moe/hgvctg.png as long as the framebuffer itself is OK, this works!
shirty has quit [Ping timeout: 260 seconds]
Biolunar has quit [Ping timeout: 260 seconds]
Biolunar has joined #zig
<pixelherodev> :)
shirty has joined #zig
ur5us_ has quit [Ping timeout: 240 seconds]
shirty has quit [Quit: Going offline, see ya! (www.adiirc.com)]
gazler_ has joined #zig
squeek502 has quit [Remote host closed the connection]
gazler has quit [Ping timeout: 240 seconds]
ur5us_ has joined #zig
knebulae has quit [Read error: Connection reset by peer]
gazler_ has quit [Remote host closed the connection]
gazler_ has joined #zig
ur5us_ has quit [Ping timeout: 264 seconds]
knebulae has joined #zig
gazler_ has quit [Read error: Connection reset by peer]
gazler__ has joined #zig
kbd_ has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
waleee-cl has quit [Quit: Connection closed for inactivity]
gazler_ has joined #zig
gazler__ has quit [Ping timeout: 246 seconds]
slact has joined #zig
osa1 has joined #zig
tnorth_ has joined #zig
bfredl has joined #zig
shirty has joined #zig
cole-h has quit [Ping timeout: 260 seconds]
proteusguy has quit [Ping timeout: 264 seconds]
proteusguy has joined #zig
squeek502 has joined #zig
shirty has quit [Quit: Going offline, see ya! (www.adiirc.com)]
endragor has joined #zig
FireFox317 has joined #zig
<FireFox317> andrewrk, are you online?
sord937 has joined #zig
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
waffle_ethics has quit [Remote host closed the connection]
heitzmann[m] has joined #zig
FireFox317 has quit [Quit: Leaving]
sord937 has quit [Write error: Broken pipe]
nycex has quit [Write error: Broken pipe]
sord937 has joined #zig
nycex has joined #zig
ltr has joined #zig
Xatenev has joined #zig
nvmd has quit [Ping timeout: 246 seconds]
nvmd has joined #zig
koakuma has joined #zig
shirty has joined #zig
Akuli has joined #zig
ltr has quit [Quit: leaving]
tnorth_ is now known as tnorth
endragor has quit [Remote host closed the connection]
donniewest has joined #zig
sord937 has quit [Ping timeout: 240 seconds]
<fengb> It's 7am for him so probably not :P
sord937 has joined #zig
sawzall has quit [Read error: Connection reset by peer]
sawzall has joined #zig
waleee-cl has joined #zig
shirty has quit [Quit: Going offline, see ya! (www.adiirc.com)]
koakuma has quit [Quit: Leaving.]
frett27 has joined #zig
Xatenev has quit [Remote host closed the connection]
FireFox317 has joined #zig
<FireFox317> fengb, yeah makes sense :P
kbd has joined #zig
kbd_ has joined #zig
kbd has quit [Ping timeout: 260 seconds]
<Snetry> hey, I have been maintaining a Zig COPR (think Ubuntu PPA but Red Hat), would it be okay if I added it to the wiki page?
waddlesplash has left #zig [#zig]
tnorth has quit [Ping timeout: 260 seconds]
Snetry has quit [Quit: left Freenode]
Snetry has joined #zig
inet56 has joined #zig
cole-h has joined #zig
inet56 has left #zig [#zig]
inet56 has joined #zig
inet56 has left #zig [#zig]
inet56 has joined #zig
<inet56> hi!
inet56 has left #zig ["WeeChat 3.0"]
wootehfoot has joined #zig
<ifreund> I'd be nice if we had a mem.eql() for sentinel-teminated pointers that wasn't std.cstr.cmp
<ifreund> *It'd
<ifreund> heck, maybe we could just make mem.eql() handle sentinel terminated things as well
knebulae has quit [Ping timeout: 256 seconds]
knebulae has joined #zig
<ifreund> it could also optimally compare slices with sentinel temrinated pointers which you have to implement yourself currently
<justin_smith> yeah, in tests it would be nice to succinctly compare data literal strings with my app data that ends up in slices
<justin_smith> I can use helper functions of course, but it feels like boilerplate
sawzall has quit [Read error: Connection reset by peer]
<ifreund> it's also suboptimal to iterate the whole sentinel first with e.g. mem.span()
sawzall has joined #zig
osa1_ has joined #zig
osa1 has quit [Ping timeout: 264 seconds]
sord937 has quit [Quit: sord937]
xackus has quit [Ping timeout: 260 seconds]
inet56 has joined #zig
inet56 has left #zig [#zig]
hnOsmium0001 has joined #zig
FireFox317 has quit [Ping timeout: 260 seconds]
layneson has joined #zig
sawzall has quit [Read error: Connection reset by peer]
sawzall has joined #zig
cole-h has quit [Ping timeout: 240 seconds]
layneson has quit [Ping timeout: 272 seconds]
shirty has joined #zig
<ifreund> Here's my current ugly code for comparing optional sentinel terminated pointers: https://github.com/ifreund/river/blob/ab05ab2a98c38d839e2f986670cebb0acca2e9a7/river/Option.zig#L81-L85
v0idify has joined #zig
<v0idify> Hey! How do I cancel (stop) a handle? context: I have a connection running in main(), and a different function run as `async func()` that takes stuff from stdIn. I want it to stop when the connection closes.
<v0idify> tbh I'm struggling a bit with zig's async model
camconn has joined #zig
<andrewrk> v0idify, there's no way to cancel an async function, the same way there is no way to cancel a regular function call. There's an open proposal to discuss the possibility of adding this: https://github.com/ziglang/zig/issues/5913
<andrewrk> it's unlikely to be accepted I think, it's quite tricky to implement into the language in a way that is simple and easy to reason about
<v0idify> andrewrk, what would be my option then? I can't do a check of "did the connection end?" because .read is forever
<v0idify> i don't like the idea of "cancelling" a function call either but I don't know how to do this in any other way
<andrewrk> this is an area that is not well-trodden yet, so you're not going to get a satisfying answer
<andrewrk> if you're using async functions you're using evented I/O mode right? so reading is non-blocking
<v0idify> yeah, but in the code itself i'm just awaiting something from stdin
<andrewrk> yeah ok I see
<andrewrk> let's see, how is this going to work when everything is finished... (thinking)
<andrewrk> I think you would use this accepted-but-not-yet-implemented feature: https://github.com/ziglang/zig/issues/5263
<v0idify> that makes sense, it's the way i would do it in go
<andrewrk> you're up against the parts of the async I/O design that are still very experimental and volatile
<andrewrk> good time to get involved in working on the event loop and language - bad time to be productive using async I/O
<v0idify> haha
<v0idify> i see, language design terrifies me
<andrewrk> why's that?
<v0idify> i guess it's part of my imposter syndrome :)
notzmv has joined #zig
<fengb> Also in general, cancelling concurrent things is a pain
<v0idify> yeah i can't see that going right
waffle_ethics has joined #zig
<v0idify> i like the select approach more, it's like go which i like quite a lot
<v0idify> hmm. I just realized something, that might not work for what i'm doing. can I send a (simplified) pastebin?
<v0idify> context: i'm building an irc client, although i stripped basically all irc components from that
ur5us_ has joined #zig
sebonirc has joined #zig
<justin_smith> there are some patterns that help - for example, if possible only have one block of code using a resource (eg. have a dedicated async reader, and if there are other consumers that reader should push the data to them)
<justin_smith> v0idify: it's also common to have some "signal" - whether that's a literall kill -N signal via the OS or a lock that you await or a latch or whatever - something that tells the other thread you are done
<ifreund> communcation with pipes is much better than using signals IMO
<justin_smith> and agreed that killing things from the outside usually creates more problems than it solves, it's usually worth the extra complexity to have a thread voluntarily exit
<ifreund> signals are the worst part of posix
<justin_smith> ifreund: that's another good one, yes
<justin_smith> IMHO file handles being ints is pretty bad too (but less likely to lead to disaster)
Akuli has quit [Quit: Leaving]
Akuli has joined #zig
Akuli has quit [Quit: Leaving]
notzmv has quit [Ping timeout: 240 seconds]
ur5us_ has quit [Ping timeout: 264 seconds]
yrashk has quit [Read error: Connection reset by peer]
shurane has quit [Read error: Connection reset by peer]
shurane has joined #zig
yrashk has joined #zig
ugla has quit [Ping timeout: 246 seconds]
siraben has quit [Ping timeout: 246 seconds]
ugla has joined #zig
Cadey has joined #zig
siraben has joined #zig
kushalp has quit [Ping timeout: 268 seconds]
dputtick has quit [Ping timeout: 268 seconds]
tdeo has quit [Read error: Connection reset by peer]
tdeo has joined #zig
tracernz has quit [Read error: Network is unreachable]
procnto has quit [Read error: Connection reset by peer]
betawaffle has quit [Read error: Connection reset by peer]
r0bby has quit [Read error: Connection reset by peer]
dputtick has joined #zig
r0bby has joined #zig
procnto has joined #zig
kushalp has joined #zig
betawaffle has joined #zig
tracernz has joined #zig
heitzmann[m] has quit [Ping timeout: 268 seconds]
lucus16 has quit [Ping timeout: 268 seconds]
Snektron has quit [Ping timeout: 268 seconds]
jaens[m] has quit [Ping timeout: 268 seconds]
lucus16 has joined #zig
mtiljeset[m] has quit [Ping timeout: 260 seconds]
BaroqueLarouche has quit [Ping timeout: 260 seconds]
ziguana[m] has quit [Ping timeout: 260 seconds]
marijnfs has joined #zig
<marijnfs> how do I fmt to a buffer?
<andrewrk> std.fmt.bufPrint
<andrewrk> if you want to heap allocate: std.fmt.allocPrint
Snektron has joined #zig
<marijnfs> ah allocPrint
<marijnfs> somehow I can't find bufprint
<marijnfs> and how would one read line by line from stdin?
<marijnfs> basically like a console
racoon has quit [*.net *.split]
rowbee has quit [*.net *.split]
neptunepink has quit [*.net *.split]
johnLate has quit [*.net *.split]
tughi has quit [*.net *.split]
greeb has quit [*.net *.split]
lemmi has quit [*.net *.split]
mla has quit [*.net *.split]
jaredmm has quit [*.net *.split]
doublej41 has quit [*.net *.split]
johnLate has joined #zig
jaredmm has joined #zig
lemmi has joined #zig
tughi has joined #zig
racoon has joined #zig
jaens[m] has joined #zig
freshmaker666 has joined #zig
doublej41 has joined #zig
<andrewrk> we don't have a std lib abstraction for that, you need a more sophisticated terminal UI lib for that
<v0idify> the del.dog that i sent before provides an abstraction for any kind of reader
neptunepink has joined #zig
<v0idify> that reads line by line without alloc
<andrewrk> if you want something really primitive, you can just call read() (not readAll)
<v0idify> justin_smith, i am following a pattern like that, that is not my problem
<marijnfs> andrewrk: so get the stdIn().reader() and i can do that?
<andrewrk> nah not even a reader, just stdin.read()
<marijnfs> I guess read() is blocking reading every character?
<marijnfs> ah
<andrewrk> it will give you an OS-determined amount of bytes
<andrewrk> which for a terminal will be 1 line
<marijnfs> thats fine
<andrewrk> this is the primitive way to do it, if you want something more user friendly, you gotta get fancy
<marijnfs> yeah then i would have to read every keypress
rowbee has joined #zig
hspak4 has joined #zig
mtiljeset[m] has joined #zig
<marijnfs> I need to give read a buffer?
BaroqueLarouche has joined #zig
frett27 has quit [Ping timeout: 272 seconds]
ziguana[m] has joined #zig
hspak has quit [Ping timeout: 246 seconds]
hspak4 is now known as hspak
decentpenguin has quit [Read error: Connection reset by peer]
g_w1 has joined #zig
<andrewrk> you don't know how much data you're going to get until you ask for it
<andrewrk> you find out after read() whether your buffer was big enough
<g_w1> check this out https://github.com/g-w1/shig/blob/main/src/main.zig#L16 it works for me in a loop
decentpenguin has joined #zig
<marijnfs> I see stdin.reader().readUntilDelimiterAlloc sounds interesting
<marijnfs> Just read() seems to still work though
<marijnfs> I just give it a big buffer;)
g_w1 has quit [Quit: Connection closed]
<v0idify> is there a hacky way to do what i'm trying to do somehow?