ChanServ changed the topic of #zig to: zig programming language | ziglang.org | be excellent to each other | channel logs: https://irclog.whitequark.org/zig/
qazo has quit [Ping timeout: 250 seconds]
qazo has joined #zig
qazo has quit [Ping timeout: 250 seconds]
JinShil has joined #zig
darithorn has joined #zig
qazo has joined #zig
bb010g has joined #zig
<bb010g> Are there existing SQLite bindings that I can use for extensions? Just doing an @cImport("sqlite3ext.h") makes Zig choke.
<andrewrk> bb010g, no
<andrewrk> feel free to file an issue regarding C import of sqlite3ext.h and I'll have a look
<bb010g> Ok.
<andrewrk> bb010g, what does @cImport("sqlite3ext.h") do? does it crash zig?
<bb010g> Just a sec, getting a MWE together
<bb010g> It generates some invalid Zig
<bb010g> Sorry, @cInclude, not @cImport.
<andrewrk> bb010g, ah interesting. I'll have a look, thanks!
<andrewrk> want a workaround?
<bb010g> andrewrk: Sure! (@cInclude("sqlite3ext.h") produces "error: C include valid only inside C import block".)
darithorn has quit [Remote host closed the connection]
qazo has quit [Read error: Connection reset by peer]
<bb010g> What should you do when implementing an allocator if you can't guarantee alignment?
<bb010g> Nevermind, that seems to be the case with Windows and std.heap.DirectAllocator, and you do n + alignment + @sizeOf(usize) (I'd imagine so that you're safe).
tiehuis has joined #zig
davr0s has joined #zig
<tiehuis> small initial benchmark og zif big-integers: https://github.com/tiehuis/zig-bn/tree/master/bench
<tiehuis> performance seems alright so far, on par with native c/rust implementations (not assembly)
<tiehuis> i'd be interested in seeing if changing to the add/sub/mul overflow builtins can get improvement here
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
meena has quit [Remote host closed the connection]
meena has joined #zig
davr0s has joined #zig
lqd is now known as zekjhfozbe
zekjhfozbe is now known as lqd
<GitHub178> [zig] Hejsil opened pull request #1000: Added Slice as its own type info in userland (master...slice-type-info) https://git.io/vpipS
davr0s has quit [Quit: Textual IRC Client: www.textualapp.com]
davr0s has joined #zig
<tiehuis> wow, not even 2x slower than gmp now with no assembly on that fib benchmark
<tiehuis> exactly 2x slower, i should say
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
JinShil has quit [Quit: Leaving]
tiehuis has quit [Quit: WeeChat 2.1]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
qazo has joined #zig
onehrxn has joined #zig
qazo_ has joined #zig
qazo has quit [Ping timeout: 255 seconds]
qazo_ has quit [Read error: Connection reset by peer]
qazo has joined #zig
_whitelogger has joined #zig
<GitHub172> [zig] andrewrk pushed 1 new commit to master: https://git.io/vpPud
<GitHub172> zig/master 116914a Andrew Kelley: Merge pull request #1000 from zig-lang/slice-type-info...
<GitHub47> [zig] andrewrk closed pull request #1000: Added Slice as its own type info in userland (master...slice-type-info) https://git.io/vpipS
steveno_ has joined #zig
<andrewrk> tiehuis, wow! exciting results
<bodie_> I just realized zig is a reference to that classic "move zig" vid
<bodie_> excellent
<bodie_> if it's not, great unintentional reference
<andrewrk> all your codebase are belong to us
qazo has quit [Read error: Connection reset by peer]
qazo has joined #zig
clownpriest has joined #zig
bheads_ has joined #zig
davr0s has joined #zig
clownpriest has quit [Ping timeout: 246 seconds]
steveno_ has quit [Quit: Leaving]
darithorn has joined #zig
onehrxn has quit [Ping timeout: 264 seconds]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
davr0s has joined #zig
jjido has joined #zig
jjido has quit [Ping timeout: 260 seconds]
jjido has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
jjido has quit [Ping timeout: 250 seconds]
davr0s has joined #zig
qazo has quit [Read error: Connection reset by peer]
_whitelogger has joined #zig
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
_whitelogger has joined #zig
SimonNa has quit [Remote host closed the connection]
SimonNa has joined #zig
davr0s has joined #zig
jjido has joined #zig
<GitHub17> [zig] isaachier closed pull request #993: Add clang-tidy run on zig sources, minor CMake improvements (master...cmake-clang-tidy) https://git.io/vpo8N
isaachier has joined #zig
<isaachier> hey everyone. i'm curious about the self hosting compiler. is the work on master? i don't see how the IR is/will be represented.
<isaachier> i see ir.zig but that looks pretty minimal
<andrewrk> isaachier, hi yes the work is on master
<andrewrk> currently there is only a parser - but it is a complete parser
<isaachier> i see. how much of the c++ needs to be used from zig if any.
<andrewrk> and we have `zig fmt` - which is almost complete- it only lacks support for preserving same-line comments
<andrewrk> the self hosted compiler re-uses zig_llvm.a which is src/zig_llvm.cpp
<andrewrk> which is just a C API wrapping the parts of the LLVM C++ that we depend on
<isaachier> ok cool. i noticed it wasn't quite working yet.
<isaachier> so that explains the zig self-hosting compiler not producing any output
<isaachier> or more precisely producing crashing programs
<andrewrk> I'm experimenting with a job-based system using async I/O and M:N threading, multiplexing kernel threads onto coroutines
<isaachier> ok got it
<andrewrk> that's in the self-hosted-threaded branch, which is disorganized
<isaachier> so what are the big efforts now and where can i help out?
<andrewrk> are you interested in userland code? e.g. coding in zig
<isaachier> ya anything would be good for me
<andrewrk> check out the "userland" label, and check out the "help wanted" label
<andrewrk> you might see an issue there that catches your eye
<andrewrk> and I can think of more ideas if not
<andrewrk> some of these would involve contributing to other projects, such as valgrind, or LLVM
<isaachier> just as long as it is ready to go. i know there is an issue about package manager but i'm questioning if the language is ready for that.
<andrewrk> yeah. figuring out the order of things to implement can be tricky
<isaachier> ya i'm open to anything and i'll take a look. thanks for the help.
jjido has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<andrewrk> isaachier, another thing you can do is start with writing some other project - a game, a server, a whatever thing you would want to build with zig - and then you'll inevitably run into something you'll want to improve about zig
<andrewrk> and than we can follow that chain down to a leaf node
<isaachier> ya that's what i'm thinking
<isaachier> i'm actually looking at porting some popular c library, as soon as i find a good one to port
<andrewrk> isaachier, what os are you on? stack traces for windows or macos would be really wonderful
<isaachier> i just saw that. actually at home have linux but my work gives me a mac laptop i can use for that.
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<isaachier> k g2g but i'll take a look at the stacktraces @andrwrk
isaachier has quit [Quit: Page closed]
davr0s has joined #zig
SimonNa has quit [Quit: Leaving]
isd has joined #zig
steveno_ has joined #zig
steveno_ has quit [Remote host closed the connection]
davr0s has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]