ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
JinShil has joined #zig
cenomla has quit [Quit: cenomla]
lroy has left #zig ["Leaving"]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
quc has quit [Ping timeout: 256 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
adrusi has quit [Ping timeout: 248 seconds]
adrusi has joined #zig
darithorn_ has joined #zig
darithorn has quit [Ping timeout: 245 seconds]
dbandstra has joined #zig
davr0s has joined #zig
tankf33der has left #zig [#zig]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
bheesham has joined #zig
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hejsil has joined #zig
<Hejsil> Urg, this is an awful bug I have somehow created https://i.imgur.com/dog7wYC.png
<Hejsil> Somehow TypeId's type get's allocated twice
<Hejsil> So they can't cast between eachother
davr0s has joined #zig
JinShil has quit [Read error: Connection reset by peer]
JinShil has joined #zig
dbandstra has quit [Ping timeout: 244 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
M-hash has joined #zig
JinShil has quit [Quit: Leaving]
davr0s has joined #zig
Ichorio has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
nicolaslekoala has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
achambe has quit [Quit: leaving]
p0nce has left #zig [#zig]
quc has joined #zig
<bodie_> good luck with the new adventure andrewrk!
edr has joined #zig
allan0 has joined #zig
davr0s has joined #zig
Hejsil has quit [Quit: Page closed]
commande1 has quit [Quit: leaving]
commander has joined #zig
<andrewrk> Hejsil do you have a small test case?
<andrewrk> thanks bodie_ :)
bheads_ has joined #zig
bheads has quit [Ping timeout: 240 seconds]
darithorn has joined #zig
guest__ has joined #zig
nicolaslekoala has quit [Read error: Connection reset by peer]
nicolaslekoala has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
pjmp has joined #zig
davr0s has joined #zig
guest__ has quit [Ping timeout: 260 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
file_crafter has joined #zig
<file_crafter> hello what do I need to know if I already know C?
davr0s has joined #zig
<darithorn> I would say not much else. Just program in Zig to get comfortable with the comptime and the different idioms.
<file_crafter> the testing thing in the stdlib is pretty cool
<file_crafter> do I have to worry about memory leaks in zig?
<darithorn> yes, if you allocate memory on the heap then you have to free it once you're done
<darithorn> but allocation is completely explicit. zig doesn't allocate anything without you knowing
<file_crafter> very cool
<darithorn> If a function, at least from the stdlib, needs to allocate something one of the parameters it needs will be an allocator.
<darithorn> you can look at std/mem.zig and std/heap.zig for examples
bheads__ has joined #zig
bheads_ has quit [Ping timeout: 256 seconds]
file_crafter has quit [Ping timeout: 260 seconds]
dbandstra2 has joined #zig
bheads_ has joined #zig
bheads__ has quit [Ping timeout: 256 seconds]
Hejsil has joined #zig
<Hejsil> andrewrk, the std-meta branch can't compile any tests because of the problem i described
<Hejsil> It's hard to get a small testcase
<Hejsil> It happend after I tried to remove the @typeId builtin
<andrewrk> ah
<andrewrk> I can have a look at the branch
<Hejsil> I've stepped through a few times, and couldn't spot exactly where both TypeId type entries are allocated
<andrewrk> maybe we could put something like if (thing.name == "TypeId") { BREAKPOINT; }
<Hejsil> You knowledge of ir/analyze.cpp would be much appreciated :)
<andrewrk> ok I'll have a look
Hejsil has quit [Client Quit]
jjido has joined #zig
Hejsil has joined #zig
<Hejsil> Also, maybe std.reflection is a better name that std.meta
<Hejsil> Idk :)
bheads__ has joined #zig
tobbez has quit [Quit: Segmentation vault]
bheads_ has quit [Ping timeout: 240 seconds]
<andrewrk> we're about to have * for pointers instead of & and that's going to fix a lot of comptime bugs
<andrewrk> I'm about halfway done
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
guest__ has joined #zig
tobbez has joined #zig
pjmp has quit [Quit: Page closed]
<nicolaslekoala> Hi, I'm currently reading the zig source code (the part that it is written in zig, at least), and I'm wondering how you navigate around the source code?
<nicolaslekoala> I added tags and Tagbar support very quickly, and it's better than nothing
<nicolaslekoala> But it's still not optimal. Is there something that you recommend? A tool that you use? Other than familiarity with the code base
guest__ has quit [Quit: Page closed]
<andrewrk> nicolaslekoala, I'm afraid there are not yet any good tools
<andrewrk> https://github.com/ziglang/zig/issues/21 will help a lot
bheads_ has joined #zig
<andrewrk> both of these will come with the self hosted compiler. it's a big effort but it's coming up very soon. we have the parser and zig fmt fully done
bheads__ has quit [Ping timeout: 240 seconds]
<Hejsil> Started working on an example for parsing zigs command line with my zig-clap lib https://github.com/Hejsil/zig-clap/blob/master/examples/core.zig
<Hejsil> Be aware, that this is an example of clap.core, which doesn't have the args->struct convinience
<Hejsil> But on linux, this allocates no memory!
<andrewrk> oh neat
Hejsil has quit [Quit: Page closed]
SomeOtherGuy_ has joined #zig
<SomeOtherGuy_> Hello world
<SomeOtherGuy_> Is there any talk about dependency/package management with zig?
<andrewrk> hello SomeOtherGuy_
<SomeOtherGuy_> Thanks man
<SomeOtherGuy_> Nice language by the way
<andrewrk> thank you
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<SomeOtherGuy_> Reading through github, I noticed where zig seems to be on concurrency. I have an abstraction I like, I might try and implement in the c++ compiler as an expirement. https://vorpus.org/blog/notes-on-structured-concurrency-or-go-statement-considered-harmful/
<SomeOtherGuy_> They python "async with" code snippet just seemed really straightforward
SomeOtherGuy_ has quit [Quit: Page closed]
isaachier has joined #zig
<isaachier> andrewrk, out of curiosity, have you considered porting the compiler to C and translating that to zig. it seems like a solution to the issue of maintaining a separate C++ source.
<isaachier> granted the output would not be idiomatic zig
Ichorio has quit [Ping timeout: 244 seconds]
adrusi has quit [Read error: Connection reset by peer]
adrusi- has joined #zig
adrusi- is now known as adrusi
isaachier has quit [Quit: Page closed]
return0e_ has quit [Read error: Connection reset by peer]
return0e has joined #zig