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/
cole-h has quit [Ping timeout: 268 seconds]
<andrewrk> more progress since the stream this morning: https://clbin.com/4PzpP
meinside has joined #zig
Miaourt3 has joined #zig
motersen has quit [Ping timeout: 240 seconds]
Miaourt has quit [Ping timeout: 246 seconds]
Miaourt3 is now known as Miaourt
mokafolio has quit [Ping timeout: 250 seconds]
motersen has joined #zig
mokafolio has joined #zig
notzmv has quit [Ping timeout: 252 seconds]
gpanders has quit [Quit: ZNC - https://znc.in]
gpanders has joined #zig
motersen has quit [Ping timeout: 240 seconds]
motersen has joined #zig
gpanders has quit [Quit: ZNC - https://znc.in]
gpanders has joined #zig
mikdusan has quit [Ping timeout: 252 seconds]
carldd has quit [*.net *.split]
vent has quit [*.net *.split]
allan0 has quit [*.net *.split]
nore has quit [*.net *.split]
rinfo has quit [*.net *.split]
via has quit [*.net *.split]
carldd has joined #zig
allan0 has joined #zig
vent has joined #zig
rinfo has joined #zig
nore has joined #zig
via has joined #zig
ifreund has quit [Ping timeout: 265 seconds]
ifreund has joined #zig
gpanders has quit [Quit: ZNC - https://znc.in]
gpanders has joined #zig
mikdusan has joined #zig
gpanders has quit [Remote host closed the connection]
gpanders has joined #zig
dongcarl has quit [Ping timeout: 240 seconds]
zenkuro has quit [Ping timeout: 268 seconds]
nycex has quit [Ping timeout: 240 seconds]
earnestly has quit [Ping timeout: 252 seconds]
nycex has joined #zig
notzmv has joined #zig
<wilsonk> marler8997, instead of buying a gpu alone, could you buy an entire machine to get the gpu and then resell what you don't need to save some money? I think pre-builts can still be found at a somewhat reasonable price (sorry for the late reply but I forgot to ask the other day)
<marler8997> I seriously considered that route, I found systems with a 3080 for around $3000
<marler8997> but they were always on backorder, and I just never felt confident enough to pull the trigger on it especially with risk of dammage in shipping
<marler8997> I ended up going with the 6900 xt, my VR looks very nice now :)
<wilsonk> Ah, ok...well have fun with it! :)
antaoiseach has joined #zig
cr1901_modern has quit [Ping timeout: 276 seconds]
sord937 has joined #zig
cole-h has joined #zig
eyepatch0 has joined #zig
<eyepatch0> I'm trying to incrementally migrate an existing C executable to Zig as a learning exercise. I'd prefer to let C be the driver here, and call out to Zig, so that means that I need to have C strings on ABI boundaries. I'd like to call std.fmt.parseInt on a C string, but I'm stuck on getting it to coerce or to convert appropriately.
<eyepatch0> export fn xstrtol(nptr: [*:0]const u8) i64 {
<eyepatch0>     var str: []const u8 = nptr;
<eyepatch0> }
<eyepatch0> Ah. Deleted the parseInt bit in the chat, but it's still in the paste.
eyepatchOwl has joined #zig
semarie_ has joined #zig
semarie_ is now known as semarie
semarie has quit [Killed (tepper.freenode.net (Nickname regained by services))]
semarie_ has joined #zig
semarie_ is now known as semarie
[wtf] has joined #zig
recalloc has quit [Remote host closed the connection]
<noam> eyepatch0: std.mem.span IIRC
sord937 has quit [Remote host closed the connection]
sord937 has joined #zig
TheLemonMan has joined #zig
antaoiseach has quit [Quit: Lost terminal]
waleee-cl has joined #zig
cole-h has quit [Ping timeout: 268 seconds]
cr1901_modern has joined #zig
earnestly has joined #zig
tnorth has joined #zig
eyepatchOwl has quit [Quit: Connection closed for inactivity]
lanodan has quit [Ping timeout: 258 seconds]
<TheLemonMan> lld is a goldmine of subtle bugs
klltkr has joined #zig
fireglow has left #zig ["puf"]
<mikdusan> this is so confusing. in builtin.os, we define `.glibc = .{ __version__ }` even when `.abi = .musl`
patwid has joined #zig
lanodan has joined #zig
carldd has quit [Ping timeout: 246 seconds]
drp has joined #zig
notzmv has quit [Ping timeout: 240 seconds]
notzmv has joined #zig
nycex has quit [Remote host closed the connection]
zenkuro has joined #zig
earnestly has quit [Ping timeout: 240 seconds]
proteusguy has quit [Ping timeout: 252 seconds]
haliucinas has quit [Remote host closed the connection]
Bernstein has joined #zig
haliucinas has joined #zig
voldial has quit [Ping timeout: 240 seconds]
zenkuro has quit [Ping timeout: 252 seconds]
zenkuro has joined #zig
zenkuro has quit [Ping timeout: 240 seconds]
notzmv has quit [Ping timeout: 240 seconds]
zenkuro has joined #zig
earnestly has joined #zig
jokoon has joined #zig
notzmv has joined #zig
eyepatch0 has quit [Quit: Connection closed]
jokoon has quit [Quit: Leaving]
zenkuro has quit [Ping timeout: 265 seconds]
zenkuro has joined #zig
notzmv has quit [Ping timeout: 246 seconds]
Guest39486 has joined #zig
Guest39486 has quit [Remote host closed the connection]
notzmv- has joined #zig
notzmv- is now known as notzmv
dongcarl has joined #zig
TheLemonMan has quit [Quit: "It's now safe to turn off your computer."]
zenkuro has quit [Ping timeout: 240 seconds]
zenkuro has joined #zig
klltkr has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
proteusguy has joined #zig
eyepatchOwl has joined #zig
leon-p has quit [Ping timeout: 252 seconds]
<eyepatchOwl> @noam, thank you. I'll check it out.
hiljusti has joined #zig
Raito_Bezarius has quit [Ping timeout: 248 seconds]
drp has quit [Quit: Leaving]
hiljusti has quit [Ping timeout: 276 seconds]
Raito_Bezarius has joined #zig
[wtf] has quit [Quit: [wtf]]
leon-p has joined #zig
cole-h has joined #zig
Bernstein has quit [Remote host closed the connection]
B767B has joined #zig
pretty_dumm_guy has joined #zig
plumm has quit [Quit: Textual IRC Client: www.textualapp.com]
plumm has joined #zig
aigoo_ has quit [Quit: leaving]
Akuli has joined #zig
B767B has quit [Remote host closed the connection]
aigoo has joined #zig
aigoo has quit [Client Quit]
aigoo has joined #zig
notzmv has quit [Ping timeout: 240 seconds]
B767B has joined #zig
<B767B> Hi folks - Short question: I want to move my test files out of the source directory in a directory next to src. But I get error: import of file outside package path: '../src/FileIWantTotest.zig'. What is the prefered way to move tests out of the source directory. I cannot see a clear strategy from looking at other applications.
<B767B> Just a pointer would be helpful.
<fengb> You can set the base directory with "--main-pkg-path" but most Zig projects colocate tests right next to the source files
Guest97962 has joined #zig
<B767B> Thanks fengb. I'll try it that way. I have seen https://github.com/andrewrk/zigimg and thought that's the way to go...
hiljusti has joined #zig
qbit has joined #zig
<qbit> yay aarch64-macos bootstrap \o/
carldd has joined #zig
wootehfoot has joined #zig
carldd has quit [Read error: Connection reset by peer]
awordnot has joined #zig
Guest97962 has quit [Remote host closed the connection]
notzmv- has joined #zig
Akuli has quit [Ping timeout: 250 seconds]
Akuli has joined #zig
B767B has left #zig ["ERC (IRC client for Emacs 27.2)"]
<andrewrk> yeah amazing work
<andrewrk> self-hosted linking of c++ code for aarch64-macos
B767B has joined #zig
Akuli has quit [Quit: Leaving]
Akuli has joined #zig
hiljusti has quit [Ping timeout: 276 seconds]
<B767B> Is it not possible to test non-pub functions if the tests are not in the same file as the implementation?
cole-h has quit [Quit: Goodbye]
<andrewrk> B767B, that's correct. however I think there may be a proposal open to ignore `pub` in a test build
cole-h has joined #zig
<B767B> andrewk That'd be helpful. Thanks!
eyepatchOwl has quit [Quit: Connection closed for inactivity]
sord937 has quit [Quit: sord937]
wootehfoot has quit [Read error: Connection reset by peer]
leon-p has quit [Quit: leaving]
carldd has joined #zig
B767B has quit [Remote host closed the connection]
catern has quit [Ping timeout: 258 seconds]
catern has joined #zig
marijnfs has joined #zig
<marijnfs> could i use zig as a resource compiler for c/c++?
<mq32> marijnfs: kinda?
<mq32> extern blob = @embedFile("blob").*;
<mq32> *export
<mq32> export const blob_len = blob.len;
marijnfs has quit [Ping timeout: 276 seconds]
Akuli has quit [Quit: Leaving]
pretty_dumm_guy has quit [Quit: WeeChat 3.2-dev]
so_ has quit [Ping timeout: 240 seconds]
di-wu has quit [Ping timeout: 240 seconds]
so has joined #zig
Flaminator has quit [Quit: Houdoe]
aengin has joined #zig
xackus has quit [Ping timeout: 260 seconds]
klltkr has joined #zig
<andrewrk> this auto leak checking that GPA does is really nice for development workflow. most of the time that it reports a memory leak, it's actually finding a critical bug in the incremental compilation system
<andrewrk> but it's finding it earlier in the dev process while everything is fresh in my mind, so it's easier to fix
<mq32> btw, is (name) aliasing analysis also part of astgen?
<andrewrk> yes but if there are any usingnamespace then there is an additional check in semantic analysis
<andrewrk> usingnamespace is a bit of a wart on the language
<g-w1> agreed
<g-w1> it could probably get solved if @Type took decls
<andrewrk> I don't see the connection
<g-w1> pub const os = @Type(... os.zig.decls ++ bits.zig.decls)
<g-w1> very ugly if you want to do a switch too, might be too ugly :(
<andrewrk> how does this address requiring type information to check for decl aliasing?
<g-w1> ah, this would look the same from the outside, but it could not be the same on the inside :(