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/
errpr has joined #zig
kristoff_it has joined #zig
kristoff_it has quit [Ping timeout: 268 seconds]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
kristoff_it has joined #zig
<scientes> andrewrk, this ARM board supports up to 64GB of ram, so if you can afford it it will work a bit better than the Pinebook Pro which only support 4GB which isn't enough https://developer.solid-run.com/products/honeycomb-lx2k/
kristoff_it has quit [Ping timeout: 240 seconds]
laaron has quit [Remote host closed the connection]
doesntgolf has joined #zig
laaron has joined #zig
kristoff_it has joined #zig
kristoff_it has quit [Ping timeout: 258 seconds]
fengb has quit [Remote host closed the connection]
vegai has quit [Read error: Connection reset by peer]
jzck has quit [Remote host closed the connection]
BitPuffin has quit [Read error: Connection reset by peer]
Snektron has quit [Read error: Connection reset by peer]
D3zmodos has quit [Read error: Connection reset by peer]
Demos[m] has quit [Write error: Connection reset by peer]
qazo__ has joined #zig
qazo has quit [Read error: Connection reset by peer]
Demos[m] has joined #zig
mahmudov has quit [Remote host closed the connection]
laaron has quit [Remote host closed the connection]
laaron has joined #zig
laaron has quit [Remote host closed the connection]
BitPuffin has joined #zig
vegai has joined #zig
jzck has joined #zig
D3zmodos has joined #zig
fengb has joined #zig
Demos[m] has quit [*.net *.split]
tridactyla has quit [*.net *.split]
tracernz has quit [*.net *.split]
Demos[m] has joined #zig
qazo has joined #zig
laaron has joined #zig
qazo__ has quit [Ping timeout: 276 seconds]
doesntgolf has quit [Quit: WeeChat 1.9.1]
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
ky0ko_ has joined #zig
ltriant_ has joined #zig
ltriant has quit [Ping timeout: 268 seconds]
chemist69 has quit [Ping timeout: 246 seconds]
laaron has joined #zig
tridactyla has joined #zig
tracernz has joined #zig
chemist69 has joined #zig
kristoff_it has joined #zig
laaron has quit [Client Quit]
kristoff_it has quit [Ping timeout: 240 seconds]
laaron has joined #zig
<meowray> scientes: are you willing t play with https://github.com/ziglang/zig/pull/3149 :) as an llvm contributor
<mikdusan> meowray: can you shed a little light on the use case with LLVM .so? ie: is it a distro, or are you building .so yourself for llvm development?
kristoff_it has joined #zig
a_chou has joined #zig
kristoff_it has quit [Ping timeout: 268 seconds]
a_chou has quit [Quit: a_chou]
<meowray> mikdusan: i regularly build llvm trunk. i don't install a release llvm-8 llvm-9 to save disk space. i don't run `ninja -C ~/llvm/Release install` - that is slow if you regularly rebuild things
<mikdusan> are you building BUILD_SHARED_LIBS=ON ?
<meowray> yes, -DBUILD_SHARED_LIBS=ON, because it saves time. i sometimes test with -DBUILD_SHARED_LIBS=Off because it saves relocation resolving time
<mikdusan> when BUILD_SHARED_LIBS=ON, what executables link with that?
<meowray> as the descriptin says: -DLLVM_LINK_LLVM_DYLIB=OFF -DBUILD_SHARED_LIBS=ON => link against libLLVM*.so
<mikdusan> so the 3 distinct modes are: { *.a, *.so, LLVM.so } and when building for LLVM.so, are there any .a products?
<meowray> libLLVM.so and libLLVM*.so can coexist, libLLVM.so and libLLVM*.a can coexist
<meowray> libLLVM*.so and libLLVM*.a can't
<mikdusan> is your need for zig to work against *.so, and LLVM.so is not a need?
<meowray> the patch works for all 3 flavors. i persoanlly will use libLLVM*.so
slusenti has joined #zig
<slusenti> hello there! I'm new
<slusenti> i want to know if there's any os or project that is based on pluto kernel
slusenti has quit [Remote host closed the connection]
kristoff_it has joined #zig
ltriant_ has quit [Quit: leaving]
kristoff_it has quit [Ping timeout: 258 seconds]
kristoff_it has joined #zig
laaron has quit [Remote host closed the connection]
laaron has joined #zig
kristoff_it has quit [Ping timeout: 258 seconds]
laaron has quit [Remote host closed the connection]
laaron has joined #zig
laaron has quit [Remote host closed the connection]
laaron has joined #zig
slusenti has joined #zig
FireFox317 has joined #zig
earnestly has quit [Ping timeout: 240 seconds]
FireFox317 has quit [Remote host closed the connection]
kristoff_it has joined #zig
avoidr has quit [Quit: leaving]
kristoff_it has quit [Remote host closed the connection]
errpr has quit [Ping timeout: 268 seconds]
slice has quit [Ping timeout: 246 seconds]
slice has joined #zig
return0e has quit [Ping timeout: 258 seconds]
return0e has joined #zig
mattmurr has quit [Quit: ZNC 1.7.2+deb3 - https://znc.in]
laaron has quit [Remote host closed the connection]
laaron has joined #zig
laaron has quit [Remote host closed the connection]
laaron has joined #zig
knebulae has quit [Read error: Connection reset by peer]
meheleventyone has joined #zig
meheleventyone has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
meheleventyone has joined #zig
meheleventyone has quit [Client Quit]
laaron has quit [Remote host closed the connection]
laaron has joined #zig
<Tetralux> Anyone else been running into "Call parameter type does not match function signature" when trying to call a function that returns a value and you assing it to an already declared identifier?
<Tetralux> Namely, in my case:
<Tetralux> slice = allocator.realloc(slice, 2*slice.len)
<Tetralux> Note that slice is []u8 but realloc returns a ![]u8.
<Tetralux> How handy!
<fengb> Weirdly, I don't get a compile error on my local
<Tetralux> `zig version`: 0.4.0+774f77005
<fengb> I can't interpret git shas :P
<fengb> But really, you need to `try realloc`
<Tetralux> Clearly :)
<fengb> The error message should be better though since that's obviously a return mismatch
<Tetralux> Without any doubt.
<Tetralux> Not only that
<Tetralux> Zig didn't output any error.
<Tetralux> I have another similar problem with return types.
<Tetralux> I have a function that returns ?T, but then actually returned a []const u8, and it crashes rather than erroring.
Aransentin has quit [Remote host closed the connection]
halosghost has joined #zig
alexander92 has joined #zig
slusenti has quit [Remote host closed the connection]
waleee-cl has joined #zig
_Vi has joined #zig
alexander92 has quit [Ping timeout: 245 seconds]
Pursche01 has joined #zig
_Vi has quit [Ping timeout: 252 seconds]
_Vi has joined #zig
<Tetralux> andrewrk
<fengb> What's a good baremetal embedded board?
kristoff_it has joined #zig
dingenskirchen has quit [Remote host closed the connection]
dingenskirchen has joined #zig
ky0ko has quit [Remote host closed the connection]
doesntgolf has joined #zig
ky0ko has joined #zig
<andrewrk> fengb, I've gotten good answers to that question in #osdev
<andrewrk> (that topic is also welcome here, I just know there are knowledgeable people there)
<fengb> Well I want to play with something that’s Zig friendly :)
<andrewrk> that will be any architecture Tier 3 or better with the freestanding target
kristoff_it has quit [Remote host closed the connection]
THFKA4 has joined #zig
<andrewrk> fengb, or riscv64 - which gets bumped up to tier 3 with the merge of llvm9 branch within 1 week
meheleventyone has joined #zig
wootehfoot has joined #zig
_Vi has quit [Ping timeout: 252 seconds]
knebulae has joined #zig
laaron has quit [Quit: ZNC 1.7.1 - https://znc.in]
laaron has joined #zig
kristoff_it has joined #zig
kristoff_it has quit [Ping timeout: 245 seconds]
kristoff_it has joined #zig
kristoff_it has quit [Ping timeout: 265 seconds]
<fengb> Ah cool thanks
meheleventyone has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
halosghost has quit [Ping timeout: 258 seconds]
halosghost has joined #zig
_Vi has joined #zig
afon has joined #zig
<mq32> fengb, what layer of "bare metal" do you talk about?
Pursche01 has quit [Quit: Connection closed for inactivity]
<fengb> Freestanding / no OS
<fengb> And something simple enough to not require drivers
avoidr has joined #zig
doesntgolf has quit [Ping timeout: 240 seconds]
Aransentin has joined #zig
afon has left #zig [#zig]
kristoff_it has joined #zig
kristoff_it has quit [Ping timeout: 258 seconds]
return0e has quit [Read error: Connection reset by peer]
return0e has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
wootehfoot has quit [Read error: Connection reset by peer]
halosghost has quit [Quit: WeeChat 2.6]
mahmudov has joined #zig
<_Vi> How zig's error variant numbering plays together with dynamic linking?
<andrewrk> dynamic linking uses the C ABI. error sets / error unions are not allowed in externally facing types
errpr has joined #zig
<_Vi> Shall there be some nicer error message when using `--target` instead of `-target`?
<Tetralux> (unrelated)
<_Vi> Why just including `--library c`(without actual usage) in musl mode significantly bumps final --release-small executable size significantly. For example, why `stdio/vfprintf.c` gets included. Is there some LTO to enable?
<Tetralux> _Vi: Try using --strip as well.
<_Vi> Tetralux, Obviously, with `--strip`.
<_Vi> `zig build-exe hello.zig --release-small -target x86_64-linux-musl --single-threaded --strip --library c && ls -l hello` -> 38192. Without `--library c` it's 9288.
<_Vi> Why `aarch64-linux-gnu` is `invalid target: unrecognized architecture`?
<Tetralux> Does Zig optimize away C functions that aren't used from libc?
<Aransentin> Is it just me that don't understand zig-ternary, or does Zig miscompile the second example here (`foo2`)?: https://godbolt.org/z/S3WFXg
<Tetralux> I suspect not.
<Tetralux> const v = if(condition) true_value else false_value;
<Aransentin> Hm? That works, but not if you set a struct field with it
<Tetralux> That smells like a bug.
<Aransentin> I'll report it
<Tetralux> I actually think I've run into something related to ternaries before.
<_Vi> Maybe error message when using too short target name (e.g. `aarch64` instead of `aarch64v8`) should be customized, not just `unrecognized architecture`?
<Tetralux> Aransentin: (Updates the paste)
<_Vi> It would be nice if it shown closest matched valid arch name by edit distance.
<Aransentin> Yeah
<Tetralux> That would be convienient.
<Aransentin> You can see the asm output in the godbolt code, too. It always returns 0
<Tetralux> Indeed.
<Tetralux> Curious.