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/
a_chou has quit [Ping timeout: 240 seconds]
<fengb> \o
<companion_cube> o/
<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:
<moinstar> Nypsie, thanks
<Nypsie[m]> No problem :)
waleee-cl has joined #zig
<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]
<companion_cube> https://github.com/rui314/chibicc if it's not been posted here already
SimonNa has joined #zig
cole-h has joined #zig
riba has joined #zig
hnOsmium0001 has joined #zig
riba has quit [Ping timeout: 240 seconds]
riba has joined #zig
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
Barabas has joined #zig
<Barabas> Hiya, it looks like my zig compiler (master, version: 0.6.0+0e2d858d6) is stuck trying to compile my code (or probably the std)
<Barabas> It just does 100% cpu and after 5 minutes still nothing.
<Barabas> I'm on Windows. Any suggestion on how to figure out what's going on?
layneson has quit [Ping timeout: 264 seconds]
frett27 has joined #zig
riba has quit [Ping timeout: 264 seconds]
<Piraty> companion_cube: i recommend tcc
codemessiah has joined #zig
codemessiah has quit [Client Quit]
codemessiah has joined #zig
osa1 has quit [Ping timeout: 264 seconds]
frett27 has quit [Ping timeout: 264 seconds]
<nikki93> the "Building self-hosted component" step is supposed to take a while right? just checking in case it's stuck or something
<nikki93> aha got past it :D
FireFox317_ has quit [Ping timeout: 265 seconds]
ur5us has joined #zig
jjido has joined #zig
redj has quit [Ping timeout: 240 seconds]
redj has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
marnix has quit [Ping timeout: 272 seconds]
traviss has joined #zig
<andrewrk> companion_cube, I bet that book will be really educational! I have a lot of respect for Rui
FireFox317_ has joined #zig
FireFox317_ has quit [Ping timeout: 260 seconds]
<companion_cube> I hope that some day there'll be similar efforts for zig
<companion_cube> (for rust, too, but it's a *lot* more difficult to write a rust compiler, even a simple one)
<ikskuh> i think the same goes for zig
<ikskuh> comptime and lazyness makes compilation harder
Akuli has quit [Quit: Leaving]
<andrewrk> yes, zig is a fundamentally more complex implementation than C
<andrewrk> not using the language, but implementing it
<companion_cube> you can't make a one pass compiler
<companion_cube> but it might still be not that hard
<companion_cube> after all C also has ugly implementations details, like cpp
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
casaca has quit [Remote host closed the connection]
<pixelherodev> ikskuh: I'm so so sorry
<pixelherodev> I've sinned.
<pixelherodev> My 130THz estimate?
<pixelherodev> That was pessimistic.
<bfredl> why do we terahertz?
<pixelherodev> 3.8 million terahertz - when the entire address space is nops
<pixelherodev> It's basically being JITed to "PC += 0x10000; cycles += 0x40000;"
<pixelherodev> which it can apparently do multiple times per physical cycle
<pixelherodev> 38000000000GHz on a effectively 1.6GHz CPU
<bfredl> i need to do more beamracing
<bfredl> not sure if "emit char to pty" should be the primitive
<pixelherodev> 23750000000 emulated cycles per physical cycle...
<bfredl> or rather a RRGGBB + ünicode thing already
<bfredl> zig would be the reference implementation
<bfredl> but ideally bash or something, so it is "portable"
<pixelherodev> POSIX sh > bash for portability
<pixelherodev> Some people use zsh/fish/mrsh/dash/ash/etc
<bfredl> bourne shell + powershell polyglot
<bfredl> oops
<bfredl> i mean .bat batch file
<bfredl> and 6502+vic-ii asm just because it is fun
<pixelherodev> Anyone know of a more useless z80 benchmark I can optimize for? :p
<pixelherodev> I can't think of any lol
<bfredl> hmm, with z80
<bfredl> it should run on my ti82+stats also
<bfredl> but bw only (low energy)
<bfredl> hmm
<bfredl> can you "do" 4k in UEFI already
<bfredl> then i can quit linux already
xackus has quit [Ping timeout: 260 seconds]
casaca has joined #zig
leeward has joined #zig
isolier has quit [Read error: Connection reset by peer]
isolier has joined #zig
traviss has quit [Remote host closed the connection]
ur5us has quit [Ping timeout: 240 seconds]
ave_ has quit [Quit: Ping timeout (120 seconds)]
traviss has joined #zig
ave_ has joined #zig
ur5us has joined #zig
earnestly has quit [Ping timeout: 258 seconds]