<pixelherodev>
andrewrk: would you have any issue with accepting patches through the mailing list as an alternative to GitHub?
<andrewrk>
no issue
<andrewrk>
you might lose some priority, just due to convenience factors
_whitelogger has joined #zig
earnestly has quit [Ping timeout: 256 seconds]
a_chou has joined #zig
ur5us has joined #zig
klltkr has quit [Ping timeout: 240 seconds]
omglasers2 has quit [Read error: Connection reset by peer]
jj__ has quit [Quit: Leaving]
jj__ has joined #zig
jj__ has quit [Client Quit]
jjsullivan1 has joined #zig
ur5us has quit [Ping timeout: 240 seconds]
ur5us has joined #zig
ur5us has quit [Ping timeout: 240 seconds]
<nikki93>
was diving through the `Builder` code but couldn't figure this out -- i wanted to, at the end of the build, copy the artifact 'zig-cache/lib/blah' to the root of the project
<nikki93>
(i'm serving the root of the project when developing and wanted a .html file that was there to be able to refer to the sibling main.wasm file)
<andrewrk>
nikki93, how do you expect your application to find this file when it is "installed" properly?
<nikki93>
tbh the main way was that i'd just `zig build` it as above and then i have a 'publish' rsync command that just pushes index.html and main.wasm and some other things to a static web server
<nikki93>
so far i've just been doing `zig build-lib ...` at the command line and the resulting file has been working out -- both for dev and publish
<andrewrk>
I wonder if we need a different concept of "installation" that is not based on the unix file system hierarchy standard
<nikki93>
most wasm zig projects i've found seem to just write the direct `zig build-lib` command in the readme and don't actually have a 'build.zig' file -- https://github.com/raulgrell/zig-wasm-webgl
<andrewrk>
one that just puts all the output artifacts in the same output directory. and make windows default to use this one
<nikki93>
that seems fine. then i could name the index.html and index.css and whatnot files in the build.zig and then have it copy them to some dir i'm serving locally (during dev) or a diff dir that i just rsync to publish
<nikki93>
but yea as it stands i just want some quick way to have zig build copy an artifact to the project source directory so i can serve it
<nikki93>
maybe i can just add some step that does `fs.updateFile`
<andrewrk>
as a workaround you can do a system command that runs cp
<nikki93>
cool
<andrewrk>
but I think the real fix for this is improving zig build system's abstraction of an "installation"
<nikki93>
i was wondering if there was some way i could just use some zig code written within build.zig -- but the only kinda 'flexible' addX step seems to be `addSystemCommand`
<nikki93>
yeah agree that that seems like a good route
gpanders has joined #zig
kristoff_it has quit [Ping timeout: 272 seconds]
a_chou has quit [Quit: a_chou]
waleee-cl has quit [Quit: Connection closed for inactivity]
nullheroes has quit [Quit: WeeChat 2.9]
nullheroes has joined #zig
cole-h has joined #zig
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
lanodan has quit [Quit: WeeChat 2.8]
marnix has joined #zig
lanodan has joined #zig
_whitelogger has joined #zig
_whitelogger has joined #zig
<andrewrk>
alright whose project is no longer building correctly from the merge of #6250? lay it on me
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
<pixelherodev>
andrewrk: I'm fine with losing priority if it means I can drop my GitHub account finally
_whitelogger has joined #zig
_whitelogger has joined #zig
<alexnask[m]>
I think xq has a couple of broken projects but I believe they all have to do with #6250
osa1 has joined #zig
osa1 has quit [Ping timeout: 240 seconds]
earnestly has joined #zig
cole-h has quit [Ping timeout: 258 seconds]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
wootehfoot has joined #zig
<mq32>
andrewrk: you broke a lot of stuff in my projects :D
bambams has quit [Ping timeout: 240 seconds]
xackus has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
osa1 has joined #zig
<andrewrk>
mq32, hoping to get it all sorted out tomorrow
<mq32>
no worries
<mq32>
i either fixed/worked-around/reverted the stuff locally
<mq32>
i can continue programming with a pre-6250-compiler for most projects
<mq32>
and i try finding what broke in 6250 with a current git-build
<mq32>
also: sorry for #6501, i was impatient
mq32 is now known as ikskuh
McKael has quit [Quit: leaving]
_whitelogger has joined #zig
<moinstar>
Are there any documentation on std library and for common things like files and string handling, and collections
<Nypsie[m]>
Chapter 2 of ziglearn has a little bit on collections and file handling:
<earnestly>
Heh, afaics zig doesn't have something like Ada's loop ... end loop; or Rust's loop {...} to indicate infinite loops. C typically uses the idiom if for(;;), what is zig's? while (true)?
<earnestly>
s/if for/of for
<Nypsie[m]>
Yes, in Zig an infinite loop would be `while(true){}`
<earnestly>
Nypsie[m]: Can it be expressed with for?
<Nypsie[m]>
No
<earnestly>
Okay that makes it less of an idiom which is probably for the best
jjido has joined #zig
marnix has quit [Ping timeout: 240 seconds]
marnix has joined #zig
marnix has quit [Ping timeout: 264 seconds]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
wootehfoot has joined #zig
g_w1 has quit [Ping timeout: 265 seconds]
g_w1 has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has joined #zig
Akuli has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has joined #zig
marnix has joined #zig
FireFox317 has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
jjido has joined #zig
FireFox317_ has joined #zig
FireFox317 has quit [Ping timeout: 260 seconds]
layneson has joined #zig
riba has joined #zig
riba has quit [Ping timeout: 240 seconds]
a_chou has joined #zig
a_chou has quit [Remote host closed the connection]