ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
steveno has joined #zig
achamb has quit [Ping timeout: 240 seconds]
achamb has joined #zig
steveno has quit [Remote host closed the connection]
pupp has quit [Ping timeout: 240 seconds]
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
cenomla has joined #zig
dimenus has quit [Quit: Leaving]
pupp has joined #zig
pupp has quit [Ping timeout: 240 seconds]
pupp has joined #zig
cenomla has quit [Quit: cenomla]
arBmind has joined #zig
arBmind has quit [Quit: Leaving.]
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
Vinski has quit [Ping timeout: 252 seconds]
Vinski has joined #zig
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
dtzWill has quit [*.net *.split]
monteslu has quit [*.net *.split]
dtzWill has joined #zig
monteslu has joined #zig
achamb has quit [Ping timeout: 240 seconds]
achamb has joined #zig
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
dpk has quit [Ping timeout: 258 seconds]
pupp has quit [Ping timeout: 248 seconds]
pupp has joined #zig
pupp has quit [Ping timeout: 268 seconds]
dpk has joined #zig
_whitelogger has quit [Ping timeout: 250 seconds]
_whitelogger has joined #zig
_dev_zero has quit [*.net *.split]
pupp has joined #zig
_dev_zero has joined #zig
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
Guest89418 has joined #zig
Guest89418 has quit [Remote host closed the connection]
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
dimenus has joined #zig
<dimenus> hmm, trying to get cmake to grab my non-system clang build
<dimenus> works when there's no other clang installed
<dimenus> does not work when there's a /mingw64/bin/clang
eena is now known as meena
<ltr_> there are some hard coded paths in zig/cmake/Findclang.cmake and Findllvm.cmake
<andrewrk> dimenus, the trick is -DCMAKE_PREFIX_PATH
<andrewrk> it should prefer that
<dimenus> on windows that works well, fails on mingw
<dimenus> i've come up with a solution though
<dimenus> if you call find_library() it overrides any path you've set
<dimenus> but you can specify NO_DEFAULT_PATH and include a zig specific value like ZIG_LLVM_ROOT
<dimenus> or to not make it platform specific, ZIG_NO_SYSTEM_LLVM=on and then use CMAKE_PREFIX_PATH
Maxxii has joined #zig
<Maxxii> so just to confirm: the unicode way of handling string work is with library calls?
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
puppp has joined #zig
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
pupp has quit [Ping timeout: 250 seconds]
<GitHub100> [zig] dimenus opened pull request #599: Added the ability use a non-system llvm build on *nix platforms (llvm6...llvm6) https://git.io/vFEoD
puppp has quit [Ping timeout: 268 seconds]
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
puppp has joined #zig
<andrewrk> dimenus, let me help you come up with a simpler way to get working what you're trying to get working
<dimenus> i can just use CMAKE_PATH_PREFIX to do what we need I think
<dimenus> i just hope it matches to that path first before the rest
<andrewrk> I believe it does
<dimenus> ok this just became a very simple fix then
<dimenus> we just need to translate CMAKE_PATH_PREFIX into an absolute path
<dimenus> that's it
<andrewrk> can you supply an absolute path on the cmake line?
<andrewrk> then we need no changes at all
<andrewrk> Maxxii, zig language has only the concept of bytes. unicode is a set of standards for encoding bytes. depending on what kind of operation you need to perform, you may be able to process encoded bytes, or you may need to decode bytes into unicode points, and perform operations on those
<andrewrk> if you explain what you're trying to do, I can give you more clear direction
puppp has quit [Ping timeout: 264 seconds]
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig
<dimenus> andrewrk: yes, that works. apologies
<dimenus> it also does search CMAKE_PATH_PREFIX first
<Maxxii> I was just trying to understand what the ideal most convenient way to work with unicode will be in zig. In an issue you said that it will never be built into the language, so I guess if there is a json library then it has to internally make sure to use some kind of special extra unicode library
<dimenus> **PREFIX_PATH
puppp has joined #zig
<andrewrk> dimenus, no worries. I'm just relieved we can keep the build system simpler
<andrewrk> Maxxii, what do you mean about json? there will be standard library functions to encode and decode bytes to/from different encodings, such as UTF-8, and they'll work at compile-time.
<andrewrk> for json, what you would probably want to do, is parse the json, decode the strings, and re-encode them as utf-8, and provide utf-8 format in the json library API
<dimenus> andrewrk: hmmm, for mingw we can't just use ZigLLVM_COFF to determine what compiler driver to call
<dimenus> have to expand ZigLDDLink to take a combination of the os/env
<andrewrk> dimenus, does mingw use COFF or ELF?
<andrewrk> also, lld master branch added a mingw driver API
<dimenus> hmm, i'm using master but it's a couple days old
<dimenus> there's just ldd::mingw::link
<andrewrk> yeah that's the one
<dimenus> coff for mingw, elf for cygwin
<andrewrk> interesting
<dimenus> iirc
<andrewrk> so mingw and cygwin are different
<dimenus> yeah let me see what the triple is in cywin
<dimenus> *cygwin
<andrewrk> I think if it's --target-os windows --target-environ gnu, then we know to use mingw
<andrewrk> the environ is cygnus for cygwin
<dimenus> not elf
<dimenus> i swear there was utility to print the target triple....
<andrewrk> zig targets
<dimenus> no i mean of the native cygwin env
<dimenus> spose I could just make a simple llvm using app
<dimenus> maybe we shouldn't worry about cygwin too much
<dimenus> WSL is already a better idea for native linux tools
<dimenus> and mingw for windows tools
<dimenus> llvm is version 3.8 in msys2/cygwin
<andrewrk> I consider cygwin a pretty low priority
<andrewrk> are you looking for something to do?
<andrewrk> if you're looking for something to do windows-related, we have the `os-windows` label on github
<dimenus> i was going to hopefully get the compiler using the mingw driver on llvm6
<andrewrk> ah, nice
<dimenus> is there a cmake command to refresh dependencies?
<dimenus> scenario is that i updated to your latest commit on master, but the std lib in my build dir is still old
<dimenus> so tests are looking for structs in io.zig that don't exist in the std lib (well they do but not in the build dir)
<andrewrk> dimenus, make install
<dimenus> nah msvc
<dimenus> i'll just clean it out :)
<andrewrk> make -p:Configuration=Release INSTALL.vcxproj
<andrewrk> or if this is a debug build
<andrewrk> sorry msbuild not make
<dimenus> that pulls old files from the build dir though
<dimenus> rather than the fresh ones from root of the zig tree
<dimenus> meh, i'll just delete the build dir
<andrewrk> no, it copies the fresh ones to the install dir
<dimenus> was just curious
<andrewrk> I'm 100% sure that it copies fresh std/ files into the install dir
cenomla has joined #zig
l1x has joined #zig
<l1x> hi guys, does zig use glibc?
<andrewrk> hi l1x. are you talking about the zig compiler itself, or programs written in zig?
<l1x> if i write a zig application will it be linked against glibc?
<andrewrk> only if you use --library c
<andrewrk> and even then you can choose which libc to link against
<l1x> nice!
<l1x> i guess i could use something like musl (https://www.musl-libc.org/)
<andrewrk> yes
<l1x> amazing
<l1x> thank you
<andrewrk> you're welcome. I haven't tried linking against musl yet. Please be patient if something goes wrong when you try it, file a githtub issue, and we'll get it working.
<l1x> no worries, i was just looking for something totally irrelevant (NES + GO) and i have noticed zig. i will look into it and submit github issues if i find anything. thank you Andrew
<l1x> s/irrelevant/unrelated/
<andrewrk> neat! I guess that side-bar I put on my site worked :)
<andrewrk> l1x, one more thing - if the zig standard library is good enough for your application, you can use that instead of libc
<andrewrk> and then you will create a static binary that does not depend on libc at all
<l1x> yeah that works too
dimenus has quit [Quit: Leaving]
Maxxii has quit [Ping timeout: 260 seconds]
_dev_zero has quit [Remote host closed the connection]
_dev_zero has joined #zig