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/
ur5us has joined #zig
kristoff_it2 has quit [Ping timeout: 260 seconds]
a_chou has joined #zig
jjsullivan1 has quit [Remote host closed the connection]
decentpenguin has quit [Quit: ZNC crashed or something]
xackus has quit [Ping timeout: 272 seconds]
jjsullivan1 has joined #zig
decentpenguin has joined #zig
CodeSpelunker has joined #zig
dbandstra has quit [Quit: leaving]
cole-h has quit [Quit: Goodbye]
cole-h has joined #zig
<andrewrk> the git shortlog for this release is 3018 lines
ur5us has quit [Ping timeout: 264 seconds]
a92 has quit [Quit: My presence will now cease]
data-man has joined #zig
<data-man> andrewrk: tiny PR for release :) https://github.com/ziglang/zig/pull/7017
tomku has quit [Quit: Lost terminal]
tomku has joined #zig
omglasers2 has quit [Quit: Leaving]
x2C25 has quit [Remote host closed the connection]
x2C25 has joined #zig
a_chou has quit [Quit: a_chou]
earnestly has quit [Ping timeout: 260 seconds]
lucid_0x80 has joined #zig
lucid_0x80 has quit [Client Quit]
<daurnimator> oops; I got my days wrong; I thought the release was this morning
<virgohg> 0.7.0 release?
<virgohg> If that's the case, it is quite nice.
data-man has quit [Quit: Konversation terminated!]
mmohammadi9812 has quit [Quit: Quit]
mmohammadi9812 has joined #zig
_whitelogger has joined #zig
x2C25 has quit [Ping timeout: 264 seconds]
Kingsquee has quit [Ping timeout: 244 seconds]
squeek502 has quit [Remote host closed the connection]
x2C25 has joined #zig
tomku has quit [Remote host closed the connection]
tomku has joined #zig
knebulae has quit [Read error: Connection reset by peer]
waleee-cl has quit [Quit: Connection closed for inactivity]
osa1 has joined #zig
lucid_0x80 has joined #zig
Kingsquee has joined #zig
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
marnix has quit [Read error: Connection reset by peer]
<marler8997__> g-w1, that seems like a pretty safe and small change to just create a PR
marnix has joined #zig
CodeSpelunker has quit [Quit: CodeSpelunker]
lucid_0x80 has quit [Ping timeout: 260 seconds]
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #zig
cole-h has quit [Ping timeout: 260 seconds]
foobles has quit [Ping timeout: 245 seconds]
_whitelogger has joined #zig
lucid_0x80 has joined #zig
lucid_0x80 has left #zig ["Leaving"]
kristoff_it2 has joined #zig
lucid_0x80 has joined #zig
lucid_0x80 has quit [Quit: Leaving]
lucid_0x80 has joined #zig
lucid_0x80 has quit [Client Quit]
lucid_0x80 has joined #zig
AceNovo has joined #zig
AceNovo has quit [Client Quit]
AceNovo has joined #zig
kwilczynski has quit [Ping timeout: 240 seconds]
wjlroe has quit [Ping timeout: 246 seconds]
procnto has quit [Ping timeout: 264 seconds]
karrick has quit [Ping timeout: 246 seconds]
betawaffle has quit [Ping timeout: 260 seconds]
lqd has quit [Ping timeout: 260 seconds]
rzezeski has quit [Ping timeout: 272 seconds]
r0bby has quit [Ping timeout: 264 seconds]
dch has quit [Ping timeout: 244 seconds]
jzelinskie has quit [Ping timeout: 268 seconds]
utzig has quit [Ping timeout: 264 seconds]
dputtick has quit [Ping timeout: 264 seconds]
gonz_ has quit [Ping timeout: 240 seconds]
eddyb[legacy] has quit [Ping timeout: 240 seconds]
guan has quit [Ping timeout: 260 seconds]
shurane has quit [Ping timeout: 260 seconds]
yrashk has quit [Ping timeout: 260 seconds]
Cynthia has quit [Ping timeout: 272 seconds]
strmpnk has quit [Ping timeout: 268 seconds]
l1x has quit [Ping timeout: 240 seconds]
ovf has quit [Ping timeout: 264 seconds]
nikita` has quit [Ping timeout: 260 seconds]
hnOsmium0001 has quit [Ping timeout: 246 seconds]
travv0 has quit [Ping timeout: 260 seconds]
nikki93 has quit [Ping timeout: 268 seconds]
tracernz has quit [Ping timeout: 272 seconds]
euantorano has quit [Ping timeout: 260 seconds]
kwilczynski has joined #zig
r0bby has joined #zig
guan has joined #zig
karrick has joined #zig
procnto has joined #zig
ovf has joined #zig
rzezeski has joined #zig
travv0 has joined #zig
strmpnk has joined #zig
jzelinskie has joined #zig
l1x has joined #zig
wjlroe has joined #zig
betawaffle has joined #zig
yrashk has joined #zig
Cynthia has joined #zig
lucid_0x80 has quit [Ping timeout: 256 seconds]
lqd has joined #zig
dch has joined #zig
shurane has joined #zig
eddyb[legacy] has joined #zig
hnOsmium0001 has joined #zig
tracernz has joined #zig
nikki93 has joined #zig
dputtick has joined #zig
utzig has joined #zig
euantorano has joined #zig
gonz_ has joined #zig
nikita` has joined #zig
omglasers2 has joined #zig
rzezeski has quit [Ping timeout: 264 seconds]
rzezeski has joined #zig
procnto has quit [Ping timeout: 272 seconds]
procnto has joined #zig
x2C25 has quit [Ping timeout: 256 seconds]
AceNovo has quit [Quit: Konversation terminated!]
AceNovo has joined #zig
earnestly has joined #zig
kristoff_it has joined #zig
kristoff_it2 has quit [Ping timeout: 260 seconds]
gpanders has quit [Read error: Connection reset by peer]
gpanders has joined #zig
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
osa1 has quit [Remote host closed the connection]
x2C25 has joined #zig
mmohammadi9812 has quit [Ping timeout: 272 seconds]
mmohammadi9812 has joined #zig
marnix has quit [Ping timeout: 256 seconds]
marnix has joined #zig
AceNovo has quit [Quit: Konversation terminated!]
AceNovo has joined #zig
osa1 has joined #zig
osa1 has quit [Client Quit]
osa1 has joined #zig
Kingsquee has quit []
dingenskirchen has quit [Quit: ZNC 1.7.5 - https://znc.in]
dingenskirchen has joined #zig
dingenskirchen has quit [Client Quit]
dingenskirchen has joined #zig
dingenskirchen has quit [Client Quit]
dingenskirchen has joined #zig
mmohammadi9812 has quit [Ping timeout: 256 seconds]
mmohammadi9812 has joined #zig
mmohammadi9812 has quit [Ping timeout: 256 seconds]
mmohammadi9812 has joined #zig
skuzzymiglet has joined #zig
RoguePointer has quit [Quit: <>]
waleee-cl has joined #zig
knebulae has joined #zig
sergeeeek[m]1 has joined #zig
x2C25 has quit [Ping timeout: 256 seconds]
Kena has joined #zig
<Kena> Hello, please what paradigm Zig adopts? It is more related to imperative, declarative or procedural?
brainfunnel has joined #zig
RoguePointer has joined #zig
RoguePointer has quit [Changing host]
RoguePointer has joined #zig
<alexnask[m]> Isnt procedural and imperative basically the same?
<alexnask[m]> zig fits into the imperative paradigm, to answer your question
_whitelogger has joined #zig
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
<Kena> Thanks! In fact, the former derives from the latter.
<Kena> imperative <- procedural <- object oriented
<Kena> and from another point of view, declarative <- functional
Kena has quit [Remote host closed the connection]
plakband has joined #zig
plakband has left #zig ["WeeChat 2.9"]
skuzzymiglet has quit [Ping timeout: 260 seconds]
plakband has joined #zig
plakband has quit [Client Quit]
plakband has joined #zig
lucid_0x80 has joined #zig
tane has joined #zig
xackus has joined #zig
lucid_0x80 has quit [Quit: Leaving]
Techcable has quit [Quit: ZNC - http://znc.in]
Techcable has joined #zig
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
wilsonk_ has joined #zig
Guest91899 has quit [Ping timeout: 260 seconds]
skuzzymiglet has joined #zig
<hch> hi. this site https://ziglang.org/download/ is missing the hyperlink to doc/0.6
<hch> ziglearn.org addresses zig/master ? i get an error on the very first helloworld
<Nypsie[m]> Yes as noted in chapter 0, Ziglearn uses master
<g-w1> I think 0.7.0 is coming out today so you might just want to wait :).
<travv0> looks like the documentation link for 0.6.0 is called Language Reference instead for some reason
<hch> indeed
<g-w1> also std.debug.warn works like std.debug.print on ziglearn for 0.6.0 hch
<hch> yeah, i'll look at 0.6 docs for now
<hch> just to get going
<g-w1> is 0.7.0 coming out today, or did i read something wrong?
<Nypsie[m]> Yeah today
<alexnask[m]> It is, Loris is also hosting a release party featuring Andrew on his stream (https://zig.show/ for countdown)
<g-w1> awesome!
<hch> oh well!
<hch> congrats!
<Piraty> can 0.7 build without prebuilt zig?
<Piraty> geat. Void needs llvm11 first
<Snektron> Piraty: I made a local version of llvm 11, let me take a look at upstreaming it to void-packages
<Snektron> i've never done that before though
<Piraty> i am taking a look of how it's supposed tbd, not sure yet why muliple empty llvmN packages are kept in the tree
<Piraty> there's a transition phase obviously
<Snektron> i think the only thing i need to do is bump a few dependencies, and fix some patches that didn't work
<Piraty> Snektron: join #xbps if you want to help
<Snektron> i just removed them because it was powerpc anyway
<Piraty> hehe don't tell that the llvm template's maintainer (he ported Void to ppc)
<Snektron> oh, turns out whatever that patch did has been fixed upstream
marnix has quit [Read error: Connection reset by peer]
marnix has joined #zig
cole-h has joined #zig
mokafoli- has joined #zig
mokafolio has quit [Ping timeout: 246 seconds]
mokafoli- is now known as mokafolio
mmohammadi9812 has quit [Read error: Connection reset by peer]
mmohammadi9812 has joined #zig
skuzzymiglet has quit [Ping timeout: 256 seconds]
lucid_0x80 has joined #zig
lucid_0x80 has quit [Quit: Leaving]
wootehfoot has joined #zig
Kena has joined #zig
Kena96 has joined #zig
<Kena96> I have a question about alignment. Each type we use a boolean type, we waste 7 bits rights? As the bool has only 1 bit of values but claim 1 byte of memory. But 7 bits don't represent anything in term of space, correct? So is there anyway some kind of performance lost in terme in cycle processor required to evaluate an expression including a
<Kena96> boolean value?
osa1 has quit [Quit: osa1]
<Kena96> And/or there is really some space lost too.
<Kena96> ?
Kena has quit [Ping timeout: 245 seconds]
osa1 has joined #zig
<hch> doc/0.6 mentions "// This header is generated by zig from mathtest.zig" at a few places, but i don't see how that is done.
<g-w1> ah
<g-w1> it was a regressed feature when the frontend got self hosted
<g-w1> it is being worked on rn. it is supposed to work with -femit-h
<hch> passed where? build.zig?
<g-w1> zig build-lib lib.zig -femit-h. it should work on 0.6.0
<alexnask[m]> also LibExeObjStep.emit_h in build.zig iirc
<hch> i was looking for options to Builder, but https://ziglang.org/documentation/0.6.0/std/#std;build.Builder is not helpful
<hch> thanks everyone, that should suffice
<hch> lib.femit_h = true;
<g-w1> it is better to read the standard library, because that documentation is very experimental and doesn't have everything https://github.com/ziglang/zig/blob/master/lib/std/build.zig
<hch> i see
<hch> femit_h is not part of 0.6, will need to build from master then ...
<Nypsie[m]> Master does not have support for header generation
<g-w1> it probably wont work on master, and also you can download master from the website
<hch> master is not the dev branch?
<Nypsie[m]> It is
<g-w1> the feature regressed
<hch> ok
<hch> so manual Makefile it is
<hch> good for learning mechanics anyway
wootehfoot has quit [Ping timeout: 260 seconds]
wootehfoot has joined #zig
demizer has quit [Quit: WeeChat 2.9]
hnOsmium0001 has joined #zig
mmohammadi9812 has quit [Quit: Quit]
Kena96 has quit [Ping timeout: 245 seconds]
mmohammadi9812 has joined #zig
Mahdi has joined #zig
Mahdi has left #zig [#zig]
dom96 has quit [Ping timeout: 246 seconds]
dom96 has joined #zig
dom96 has quit [Changing host]
dom96 has joined #zig
st4ll1 has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
plakband has quit [Ping timeout: 256 seconds]
donniewest has quit [Ping timeout: 244 seconds]
<kristoff_it> The release party is live, come join! https://twitch.tv/kristoff_it
<oats> \o/
adamkowalski has joined #zig
<adamkowalski> is there a way to expect a assertion to trip during unit testing?
<adamkowalski> as in I have a std.debug.assert in my code because I have a precondition that needs to be met
<adamkowalski> I do not return an error.Something
<adamkowalski> But I want to demonstrate that if the precondition is violated the assert will be tripped. Can I do that in a unit test?
<Nypsie[m]> You mean something like `std.testing.expectError(ErrorSet.SpecificError, result);` ?
<adamkowalski> not quite
GrooveStomp has quit [Ping timeout: 264 seconds]
<adamkowalski> so to give an example from the standard library if you have an array the precondtion is that the index is in bounds right
<adamkowalski> so when you index an array there is probably a std.debug.assert(self.len >= index);
<adamkowalski> then in a unit test I want to index an array out of bounds
<adamkowalski> and show that the assertion will fire
<adamkowalski> so you cannot index the array
<Nypsie[m]> Aaaah
<Nypsie[m]> I don't think that's possible actually
<adamkowalski> I want something like std.expect.assertFires(my_array[my_array.len + 1]);
<adamkowalski> dang
<josias> That sounds like try/catch or panic/recover, which iirc is not something wanted in Zig.
<adamkowalski> I don't really want to recover from it
<adamkowalski> it's a precondition
<adamkowalski> but I want to test for it correctly protecting me during unit tests
<josias> What will it do at runtime outside of tests?
<novaskell> There's an open issue for it https://github.com/ziglang/zig/issues/5917
<adamkowalski> outside of tests it doens't matter
<adamkowalski> it's undefined behavior
<adamkowalski> just like indexing an array
<adamkowalski> you can't afford bounds checking an array everywhere
<adamkowalski> but during debug builds you want it
GrooveStomp has joined #zig
<adamkowalski> you wouldn't make indexing an array return an error{OutOfBounds}!Element
<fengb> I have a proof of concept working with that fork
<adamkowalski> and then have to `try array[i]` everywhere
<fengb> Haven’t tried upstreaming yet
<fengb> That fork == monitoring forked child
<adamkowalski> Do you think that it has a chance to be merged in?
<adamkowalski> I don't really want to rely on unstandard behaviour yet
<adamkowalski> for now it's probably fine, i was just hoping there was some mechanism for doing that
<fengb> I think there’s an older issue asking for this
<adamkowalski> unless you all have some different way to approach the problem alltogether
<fengb> So there might be a more native solution
<adamkowalski> maybe I'm justing thinking about it wrong
<adamkowalski> I have a bunch of "tables" which have rows and column
<adamkowalski> the rows are conceptually entities
<adamkowalski> the columns are different attributes of the entities
<adamkowalski> you get runtime polymorphism by essentially filling out different columns for each entity
<adamkowalski> then you can say give me every entity with column x, y, z filled
<adamkowalski> but if you go to the wrong table and say give me information about entity 3
<adamkowalski> right now it will still give it to you
<adamkowalski> so I want to tag each entity with the table it came from so you can std.debug.assert(entity.table_id == table.id)
<adamkowalski> but since entities are at the core of the system, I can't pay for that during release builds, you just need to test the system and ensure that never happens in practice
<adamkowalski> any ideas?
<fengb> Assert is the correct solution yeah
mmohammadi9812 has quit [Remote host closed the connection]
<adamkowalski> okay, thanks!
mmohammadi9812 has joined #zig
adamkowalski has quit [Quit: Lost terminal]
ur5us has joined #zig
wilsonk has joined #zig
tane has quit [Quit: Leaving]
wilsonk is now known as Guest85216
cole-h has quit [Quit: Goodbye]
cole-h has joined #zig
marnix has quit [Ping timeout: 264 seconds]
marnix has joined #zig
frmdstryr has joined #zig
neptunepink has quit [Quit: Bye]
<yZ5vlALg86lP> i'm confused, how is this uaf possible? https://tpaste.us/vZZZ - and why does it always output '0xaaaa'
<Nypsie[m]> In debug mode, undefined has a value of 0xaaa to make it easier to detect
<oats> oh that's nifty
<yZ5vlALg86lP> ah. thx.
x2C25 has joined #zig
brainfunnel has left #zig ["thanks, bye!"]
marnix has quit [Ping timeout: 260 seconds]
marnix has joined #zig
marnix has quit [Ping timeout: 260 seconds]
adrian has joined #zig
adrian has quit [Remote host closed the connection]
adrianpk has joined #zig
adrianpk has quit [Client Quit]
<novaskell> kristoff_it: the ziguana drawing would be amusing on the release notes
<ikskuh> yes, please!
<ikskuh> let's ping andrewrk as well
<ikskuh> \o/
<novaskell> YES
virgohg_ has joined #zig
virgohg has quit [Ping timeout: 265 seconds]
frmdstryr has quit [Ping timeout: 240 seconds]
a_chou has joined #zig
wootehfoot has joined #zig
wootehfoot has quit [Read error: Connection reset by peer]
radgeRayden has joined #zig
Ashpool has joined #zig
frmdstryr has joined #zig
demizer has joined #zig
ur5us has quit [Ping timeout: 256 seconds]
x2C25 has quit [Ping timeout: 260 seconds]
AceNovo has quit [Quit: Konversation terminated!]
AceNovo has joined #zig
a_chou has quit [Ping timeout: 246 seconds]