ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
Braedon has joined #zig
tiehuis has joined #zig
<tiehuis> in the process of revisting a big number library, should be finished in a week or so
qazo has quit [Ping timeout: 260 seconds]
tiehuis has quit [Quit: WeeChat 2.1]
qazo has joined #zig
isd has joined #zig
crimson_penguin has quit [Ping timeout: 260 seconds]
crimson_penguin has joined #zig
crimson_penguin has joined #zig
crimson_penguin has quit [Changing host]
qazo has quit [Read error: Connection reset by peer]
alpha1220 has joined #zig
alpha1220 has quit [Quit: Page closed]
davr0s has joined #zig
jab has quit [Ping timeout: 240 seconds]
alpha1220 has joined #zig
<alpha1220> Does zig support multi-methods? Or is there any example of visitor pattern in zig? I was planning to do `Crafting Interpreters` in zig.
alpha1220 has quit [Client Quit]
isd has quit [Quit: Leaving.]
alpha1220 has joined #zig
<alpha1220> Also, are there macos master builds available for download? The download page lists only homebrew which I believe is the stable build?
alpha1220 has quit [Client Quit]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
jjido has joined #zig
jjido has quit [Client Quit]
Braedon has quit [Ping timeout: 260 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
Hejsil has joined #zig
<Hejsil> alpha1220, no multi methods. Dispatching based on types in Zig is explicit: https://github.com/zig-lang/zig/blob/0ba85ea6ff910c7a49ae036625b945c475c0f58c/std/zig/ast.zig#L65
<Hejsil> Though, you can do some tricks to make it less verbose: https://github.com/zig-lang/zig/blob/d7b029995c8ac678598de39aa106076dca232902/std/zig/ast.zig#L88
alpha1220 has joined #zig
<alpha1220> Hejsil: Thank you.
alpha1220 has quit [Ping timeout: 260 seconds]
davr0s has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
alpha1220 has joined #zig
<alpha1220> Can zig compile to android? If yes, how? I tried `--target-environ android --target-arch armv7`. Then adb'ed the binary to the device. And I get a segmentation fault.
alpha1220 has quit [Quit: Page closed]
davr0s has joined #zig
<alexnask> $1 = {items = 0x2363000 "armebv8m_mainline", {heap_data = {length = 7021767589229589587, capacity = 792633534417233251}, bytes = "StackTrace\000\000\000\000\000\v"}, static LastByte = 15, static SmallBufferMaxItems = 15}
<alexnask> >.>
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
darithorn has joined #zig
davr0s has joined #zig
perfwill has joined #zig
<perfwill> hey
<alexnask> hi
jzelinskie has quit []
jzelinskie has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
<perfwill> how am I supposed to do ref count in zig?
<perfwill> like an ArrayList that automatically gets deallocated when it goes out of scope
<alexnask> There is currently no RAII capability
<alexnask> I think there are proposals for some simple form
<alexnask> What people usually do is: var resource = get_resource(); defer free_resource(resource); // Do stuff with resource...
<perfwill> got it
<perfwill> But how are we supposed to structure allocators in zig?
<perfwill> I see it being required everywhere
<perfwill> should we pass it down to functions or should we put it in a common import or something?
darithorn has quit [Quit: Leaving]
perfwill has quit [Ping timeout: 260 seconds]
Hejsil has quit [Ping timeout: 260 seconds]
alexnask_ has joined #zig
<alexnask_> Perfwill, in your own code thats your decision to make
<alexnask_> Personally i take it as a func argument
<alexnask_> And store it in structs that own mem on the heap
<alexnask_> A global is ok but i like making it explicit what can allocate and what cannot
<alexnask_> Plus it makes it easier to switch parts of the code tp use another allocator if you want to test it out
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
alexnask_2 has joined #zig
alexnask_ has quit [Ping timeout: 260 seconds]
alexnask_2 has quit [Quit: Yaaic - Yet another Android IRC client - http://www.yaaic.org]
alexnask_ has joined #zig
Ichorio has joined #zig
alexnask has quit [Ping timeout: 256 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
thejoshwolfe has joined #zig
davr0s has joined #zig
thejoshwolfe has quit [Quit: Leaving]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
aiwakura has quit [Quit: Ping timeout (120 seconds)]
aiwakura has joined #zig
mal`` has quit [Ping timeout: 240 seconds]
mal`` has joined #zig
Ichorio has quit [Ping timeout: 264 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
redj has quit [*.net *.split]
profan has quit [*.net *.split]
redj has joined #zig
profan has joined #zig
qazo has joined #zig
alexnask_ has quit [Quit: Page closed]