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.
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
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 :(