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 joined #zig
ur5us has joined #zig
benjif has quit [Read error: Connection reset by peer]
ur5us has quit [Ping timeout: 260 seconds]
<dongcarl> Hey all, wondering if the best way to make HTTP requests right now is to use libcurl or sth else
mattnite has joined #zig
mattnite has quit [Client Quit]
mattnite has joined #zig
a92 has quit [Quit: My presence will now cease]
mattnite has quit [Quit: Lost terminal]
mattnite has joined #zig
mattnite has quit [Remote host closed the connection]
xackus has quit [Ping timeout: 256 seconds]
forgot-p1ssword has joined #zig
forgot-password has quit [Ping timeout: 256 seconds]
johnLate has quit [Ping timeout: 256 seconds]
earnestly has quit [Ping timeout: 240 seconds]
earnestly has joined #zig
spiderstew_ has joined #zig
spiderstew has quit [Ping timeout: 240 seconds]
a_chou has joined #zig
<scientes> dongcarl, you should write some code
<scientes> http/1.1 is not terribly difficult, especially if you only add what you need as you go along
<scientes> and then submit it to std lib
mattnite has joined #zig
<scientes> it only get absolutely horrible when you have to implement TLS with all its ASN.1 non-sense
earnestly has quit [Ping timeout: 272 seconds]
a_chou has quit [Quit: a_chou]
waleee-cl has quit [Quit: Connection closed for inactivity]
chiefkemist has joined #zig
terinjokes has quit [Quit: ZNC - http://znc.in]
hio has joined #zig
terinjokes has joined #zig
<hio> Please convince me that ziglang is the future, thank you
osa1 has quit [Quit: osa1]
<hio> My complaints are as follows: 1. syntax isn't really attractive 2. features are only subjectivey ~25% better than C
osa1 has joined #zig
<chiefkemist> May I ask what makes Zig ~25% better than C for you?
<hio> the few extra safety and type features
<hio> I mean you're basically asking me to switch from C with insane undefined behavior and random crashes from a single memory byte mistakes to... another language with that too but slightly less of it. It's not that convincing of a sell
* semarie doesn't remember to have asked someone the switch from language-1 to language-2 because language-2 is prettiest
cole-h has quit [Ping timeout: 264 seconds]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
<chiefkemist> Personally "zig cc" + "cross compilation" got my attention
<pixelherodev> hio: tjat
<pixelherodev> whoops
<pixelherodev> that's really not an accurate description of either C *or* Zig
_whitelogger has joined #zig
_whitelogger has joined #zig
tomku has quit [Ping timeout: 256 seconds]
squeek502 has quit [Read error: Connection reset by peer]
gpanders has quit [Ping timeout: 260 seconds]
squeek502 has joined #zig
tomku has joined #zig
forgot-p1ssword has quit [Ping timeout: 240 seconds]
johnLate has joined #zig
chiefkemist has quit [Remote host closed the connection]
knebulae has quit [Read error: Connection reset by peer]
chiefkemist has joined #zig
mattnite has quit [Quit: Lost terminal]
chiefkemist has quit [Ping timeout: 260 seconds]
<andrewrk> this channel is not for arguing about whether or not zig is good; it is for working on the zig project and helping people write software
hio has left #zig [#zig]
chiefkemist has joined #zig
neptunepink has quit [Ping timeout: 260 seconds]
neptunepink has joined #zig
chiefkemist has quit [Ping timeout: 260 seconds]
ky0ko has joined #zig
wootehfoot has joined #zig
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
wootehfoot has quit [Read error: Connection reset by peer]
chiefkemist has joined #zig
chiefkemist has quit [Ping timeout: 264 seconds]
_whitelogger has joined #zig
chiefkemist has joined #zig
jokoon has joined #zig
earnestly has joined #zig
chiefkemist has quit [Ping timeout: 260 seconds]
proteus-guy has joined #zig
forgot-password has joined #zig
forgot-password has quit [Ping timeout: 260 seconds]
gpanders has joined #zig
forgot-password has joined #zig
forgot-password has quit [Ping timeout: 265 seconds]
forgot-password has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
Ashpool has joined #zig
wootehfoot has joined #zig
Ashpool has quit [Remote host closed the connection]
forgot-password has quit [Ping timeout: 256 seconds]
forgot-password has joined #zig
forgot-password has quit [Ping timeout: 240 seconds]
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
sord937 has joined #zig
mokafolio has quit [Client Quit]
sord937 has quit [Ping timeout: 240 seconds]
swills has quit [Ping timeout: 246 seconds]
swills has joined #zig
mokafolio has joined #zig
sord937 has joined #zig
forgot-password has joined #zig
proteus-guy has quit [Remote host closed the connection]
forgot-password has quit [Ping timeout: 264 seconds]
chiefkemist has joined #zig
gpanders has quit [Quit: ZNC - https://znc.in]
gpanders has joined #zig
marijnfs has joined #zig
chiefkemist has quit [Ping timeout: 260 seconds]
<bitmapper> is there pattern matching in zig? i can't find anything about that
sord937 has quit [Remote host closed the connection]
sord937 has joined #zig
waleee-cl has joined #zig
xackus has joined #zig
Akuli has joined #zig
<g-w1> no, the closest thing is switching on a tagged union and then capturing the payload, but that doesn't switch on the shape of it
<g-w1> can I delete merge_anal_dumps.zig? someone on discord told me that it wasn't in use, and the code is heavily bitrotted (doesn't compile, very old apis). I am trying to update some depreciated interfaces in the code and trying to do it in that and then compile it failed, then I tried to update it, but figured why do it if its not in use.
leon-p has quit [Quit: leaving]
wootehfoot has quit [Quit: Leaving]
wootehfoot has joined #zig
<viashimo> is there any way to connect lldb, or another debugger, to a test (from zig test)?
<dch> g-w1: I would love to see pattern matching that would be awesome
<dbohdan> Has any made an extension for the Tcl interpreter in Zig?
<g-w1> viashimo, if the test fails it will show the path of it (zig-cache/xxxxx) and then you can run it and debug it
<viashimo> g-w1: oh huh, neat. thanks!
chiefkemist has joined #zig
crosbymichael has joined #zig
xackus has quit [Ping timeout: 260 seconds]
chiefkemist has quit [Ping timeout: 260 seconds]
proteus-guy has joined #zig
taman has joined #zig
crosbymichael has quit [Ping timeout: 240 seconds]
cren has quit [Quit: cren]
<marijnfs> I'm trying to build an external library (nng) with zig but get a weird error
<marijnfs> zig build test results in an illegal instruction
<marijnfs> sorry wrong link
<marijnfs> that's my repo
forgot-password has joined #zig
<marijnfs> I get: 'testingerror: the following test command crashed' and no backtrace, so I'm mostly trying to figure out if the it's a runtime error or something else
forgot-password has quit [Ping timeout: 260 seconds]
<g-w1> its probably a bug in the c code
forgot-password has joined #zig
<marijnfs> yeah true, when I comment some stuff out from the test it's fine. I have a var sock: c.nng_socket = undefined, and pass it to a function: c.nng_req0_open(&sock);
<marijnfs> this would work in c, so I guess something is wrong about the memory?
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
forgot-password has quit [Ping timeout: 256 seconds]
forgot-password has joined #zig
forgot-password has quit [Ping timeout: 260 seconds]
marnix has quit [Read error: Connection reset by peer]
benjif has joined #zig
marnix has joined #zig
xackus has joined #zig
forgot-password has joined #zig
chiefkemist has joined #zig
hnOsmium0001 has joined #zig
chiefkemist has quit [Ping timeout: 264 seconds]
sord937 has quit [Quit: sord937]
moo has joined #zig
ur5us has joined #zig
wootehfoot has quit [Quit: Leaving]
chiefkemist has joined #zig
chiefkemist has quit [Remote host closed the connection]
chiefkemist has joined #zig
marnix has quit [Ping timeout: 240 seconds]
marnix has joined #zig
chiefkemist has quit [Ping timeout: 268 seconds]
marnix has quit [Ping timeout: 240 seconds]
chiefkemist has joined #zig
chiefkemist has quit [Ping timeout: 264 seconds]
Akuli has quit [Quit: Leaving]
forgot-password has quit [Ping timeout: 268 seconds]
<marijnfs> /home/marijnfs/dev/zig-nng/zig-cache/o/b912f3836486bf7077f8bc39ecd71115/build /usr/local/bin/zig /home/marijnfs/dev/zig-nng /home/marijnfs/dev/zig-nng/zig-cache /home/marijnfs/.cache/zig test
<marijnfs> guys, what's going on there? is a build binary in zig-cache called 'build' being called with the zig executable which calls my binary?
<marijnfs> I'm a bit confused
forgot-password has joined #zig
<ifreund> yes, zig complies your build.zig into a build binary and runs it
forgot-password has quit [Ping timeout: 272 seconds]
crosbymichael has joined #zig
leon-p has joined #zig
<andrewrk> passing the zig executable to the build runner is the most reliable way for the build runner to have access to the same zig compiler you used to run `zig build`
xackus has quit [Remote host closed the connection]
xackus has joined #zig
forgot-password has joined #zig
marijnfs has quit [Ping timeout: 246 seconds]
marijnfs has joined #zig
fengh has joined #zig
jokoon has quit [Read error: Connection reset by peer]
jjsullivan1 has joined #zig
chiefkemist has joined #zig
crosbymichael has quit [Ping timeout: 265 seconds]
chiefkemist has quit [Ping timeout: 265 seconds]
ur5us has quit [Ping timeout: 260 seconds]
xackus has quit [Ping timeout: 256 seconds]
<marijnfs> thats pretty fair, i just wonder where the crash comes from
fengh has quit [Quit: WeeChat 3.0]
seadragon-droid has joined #zig