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/
<ugla> Nice new website :)
<andrewrk> thanks ugla!
donniewest has quit [Quit: WeeChat 3.0]
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
ur5us_ has quit [Ping timeout: 264 seconds]
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
ur5us_ has joined #zig
<daurnimator> TIL we have a new website
mokafolio has joined #zig
<kameliya> lol!
<kameliya> it looks awesome
<pixelherodev> We do?
<pixelherodev> We do!
mokafolio has quit [Quit: Bye Bye!]
marler8997 has quit [Read error: Connection reset by peer]
mokafolio has joined #zig
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
<companion_cube> Nice website indeed!
<companion_cube> Looks good on mobile
ur5us has joined #zig
jacobsandlund has joined #zig
ur5us_ has quit [Ping timeout: 264 seconds]
paulsmith has joined #zig
<rowbee> much less of an eyesore
<rowbee> good work
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
marler8997 has joined #zig
<marler8997> saw "why Zig over C++/D/Rust" was moved
<marler8997> it mentions that Rust has operator overloading, but so does C++ and D
mokafolio has quit [Client Quit]
mokafolio has joined #zig
<andrewrk> it mentions that too
<andrewrk> oh I see the sentence you're talking about
<marler8997> yeah, another sentence in the same paragraph has as similar issue
<marler8997> Rust has operator overloading, so the + operator might call a function
<marler8997> CORRECTIOn: All 3 languages have operator overloading, so the + operator might call a function
<marler8997> D has throw/catch exceptions
<marler8997> CORRECTION: D and C++ have throw/catch exceptions
<andrewrk> the content was duplicated and then updated here: https://ziglang.org/learn/overview/#small-simple-language
<marler8997> having fun re-reading the linked articles
<marler8997> browsing the Way Cooler code that stopped using Rust...the C code looks so clean
<marler8997> wait a second "This repository has been archived by the owner. It is now read-only."
<marler8997> ??
<marler8997> rebased my "require array format specifiers" PR...and looks like more bugs have been introduced that are missing the "{s}" specifier :)
<andrewrk> is that one ready to land?
<marler8997> not passing CI yet
<andrewrk> oh still a draft
<andrewrk> fwiw I basically never look at drafts
<marler8997> good to know
<marler8997> I actually didn't know it was still in draft...still getting use to dark mode
<andrewrk> I got plenty of ready-to-merge PRs to review
<daurnimator> andrewrk: did you see the discussion last night on comptime pointers to "stack"?
<andrewrk> no
<daurnimator> andrewrk: essentially, http://sprunge.us/N7fPiv?diff is a dangerous function: if you don't call it prefixed with `comptime` you'll hit UB.
<paulsmith> possibly dumb q: i see that macOS x86_64 is listed as a tier 1 target, which if i understand means the os interface is implemented in Zig ... but if i look in lib/std/os, only linux seems to have syscalls/ABI implemented. sorry if i'm missing something, i'm just trying to understand - also i want to write a program using termios on macOS and wondering whether to use libc or not.
<fengb> macOS syscalls are all through libc
<fengb> Whereas Linux is implemented as direct syscalls
<marler8997> so on Mac you bascially have to link libc?
<daurnimator> marler8997: yes
<fengb> In BSDs, the stable ABI is libc and not the kernel syscalls
<daurnimator> linux is the only OS with a "stable" syscall ABI
<paulsmith> ahhh ok
<marler8997> interesting
<daurnimator> (and I don't mean specific to zig: linux is the only OS "vendor" to promise syscall numbers don't change at random after updates etc)
<daurnimator> all other OSes say the only supported way to call their syscalls are through libc syscall interface; or for Windows, NTDll... but only for *some* syscalls "it's complicated"
<paulsmith> related question then: what about libc functions like tc{g,s}etattr() that are in the generic os.zig -- do they just need the structs and constants defined in the libc header for the os set up in a os/{os}.zig file?
<paulsmith> zig's tcgetattr() currently doesn't work on macOS
<daurnimator> paulsmith: you'll see os.tcsetattr is a wrapper around os.system.tcsetattr
<paulsmith> for darwin, it currently lacks the termios struct
<paulsmith> and some #define equivalents like the flags
<daurnimator> paulsmith: os.system.tcsetattr is then provided by std.c.tcsetattr
<paulsmith> hmmm ok
<daurnimator> paulsmith: sounds like we need to add the missing definition to bits.zig
<daurnimator> paulsmith: https://github.com/ziglang/zig/blob/master/lib/std/os/bits/darwin.zig#L1717 termios struct seems to exist...
<paulsmith> ok that's what i thought - i started copying over some from termios.h to to os/bits/darwin.zig
<paulsmith> ohhhhh - looks like it was just added in the past month. need to update my checkout. ok, thanks!
<paulsmith> does it makes sense maybe to update the text on https://ziglang.org/learn/overview/#tier-system about Tier 1? "Thus it is practical to write a pure Zig application with no dependency on libc."
<daurnimator> Is that incorrect?
<paulsmith> just caveat it for linux only
<daurnimator> good point
<daurnimator> worth opening an issue for
<paulsmith> it's not a big deal - just about stable ABI and libc was helpful for me to understand - might help another user.
Techcable has quit [Quit: ZNC - http://znc.in]
xackus has joined #zig
xackus_ has quit [Ping timeout: 264 seconds]
ur5us_ has joined #zig
waleee-cl has quit [Quit: Connection closed for inactivity]
ur5us has quit [Ping timeout: 256 seconds]
ur5us_ has quit [Ping timeout: 256 seconds]
remby has joined #zig
<mikdusan> would be cool if a PR can be marked as "squash before merge" or some such
benjif has joined #zig
<mikdusan> ie. so add commits to PR for requested changes. then when final merge, automatically knows to squash and use only first commit message
xackus has quit [Ping timeout: 256 seconds]
<mikdusan> or maybe simpler. 3 states: 1. work in progress. 2. review. 3. ready for commit
xackus has joined #zig
<daurnimator> mikdusan: you mean like with `git commit --fixup`?
adamkowalski has joined #zig
<adamkowalski> Have any of you all had issues getting zig lsp to work?
<adamkowalski> I am able to get autocompletion for things in the standard library
<adamkowalski> however, in my build.zig I have a test step, and I add a package containing my library and my path
<adamkowalski> and inside my test code I import the library and call it in my unit test, which works fine when running zig build test
<adamkowalski> however, no autocompletion goto definition works for my own code
<mikdusan> daurnimator: looks like that is my meaning. it's more to do with github workflow and team members, when WIP is marked as ready for review... then commits get added and I want to leave them so
<mikdusan> those who requested changes can see diff easier,
<mikdusan> but then when req changes are done, review passed, want to go in there and swash any of the noisy commits away
<mikdusan> before andy commits... but at same time, don't want him wasting his time figuring out which commits were only for sake or PR review
<daurnimator> mikdusan: FWIW I don't like that flow because it drops commit signatures. but that was never really a thing the zig repo cared about
<adamkowalski> Any ideas?
<mikdusan> but aren't those commit sigs only useful during the PR WIP/review? once it goes merge, not needed anymore
<daurnimator> mikdusan: no, I use them as proof of authorship (or at least commitship): if you see a commit ostensibly from me without a commit signature from my gpg key... it's likely to be someone pretending to be me
<mikdusan> for example, I had a macOS version commit. This particular change (imo) is best seen as 1 commit. but it got 2 in the master branch because not squashed
<mikdusan> hmmm wait how does squashing effect signatures? I can squash and my sig remains.
<daurnimator> when you sqaush it will also sign the new (squashed) commit. but obviously that only happens if *you* do it
<mikdusan> right. the whole point is that _I_ do it. not person hitting merge button
<mikdusan> put the work on PR maker to get one-last-crack at squashing
<daurnimator> mikdusan: in which case you can use `git commit --fixup` and then when review passes do `git rebase -i --autosquash` and it'll collapse them all down for you
adamkowalski has quit [Quit: Lost terminal]
<mikdusan> yeah I don't have any problems using rebase. it's the process flow of me getting a chance to do a rebase after all reviews are done, and accepted
<daurnimator> mikdusan: right.
<daurnimator> mikdusan: FWIW I always fixup locally and force-push to my PRs. github still gives you diff of what changed
<mikdusan> hmm maybe that is what I'm doing wrong. If say you request a change in my PR... ok to rebase + force-push ?
<daurnimator> yeah that's what I do
<mikdusan> heh ok. That solves my quirk :)
<daurnimator> mikdusan: just install that linked via as .local/bin/git-fixup and enjoy :)
<daurnimator> s/via/script/
<mikdusan> `git commit --amend --reset-author` to give most recent message a new timestamp; my fav.
<daurnimator> how did I even typo 'script' as 'via'
<daurnimator> sigh. lack of sleep I guess
<daurnimator> mikdusan: why do you want a new timestamp on your commit?
<daurnimator> mikdusan: commits have 2 timestamps: 1. when authored. 2. when committed.
<mikdusan> git log by default likes to show 1. and lots of times there is a large time span between the "merge" commit and actual commit. I've always found that confusing.
<mikdusan> merge e564d2ca3c7a7b2bdb18649e9bdd24f06478f2df refers to f2be1fb23edc272c0a310a9ceb9cdff45e011d98 which is about 12 commits back
<daurnimator> mikdusan: ps, try `tig`, its an ncurses UI for `git log`
<mikdusan> heh i get it. spelled backwards
benjif has quit [Quit: Leaving]
<daurnimator> mikdusan: thoughts on tig?
<mikdusan> still running (port install tig)
<daurnimator> ah
<daurnimator> the last git experience advice I'll give for now is: `git config --global remote.origin.fetch '+refs/pull/*/head:refs/remotes/origin/refs/pull/*/head'`
<mikdusan> `tig` is pretty slick
<daurnimator> mikdusan: highlight a commit with up/down/j/k. press enter to see a diff of it. q to get back
<mikdusan> and left/right arrows even work if content is wide
<daurnimator> and page up/down work to scroll the most specific pane :)
WilhelmVonWeiner has quit [K-Lined]
<daurnimator> mikdusan: did you make that config change I suggested? if so, now run `git fetch` (or `git pull`)....
hspak has joined #zig
adsr has quit [Remote host closed the connection]
jacobsandlund has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
adsr has joined #zig
jacobsandlund has joined #zig
jacobsandlund has quit [Client Quit]
nycex has quit [Remote host closed the connection]
gazler has joined #zig
decentpenguin has quit [Read error: Connection reset by peer]
decentpenguin has joined #zig
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
tnorth has joined #zig
sord937 has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
nycex has joined #zig
cole-h has quit [Quit: zzz]
mokafolio has joined #zig
mokafolio has quit [Quit: Bye Bye!]
ky0ko has quit [Remote host closed the connection]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
midgard has quit [Remote host closed the connection]
midgard has joined #zig
fputs has quit [Ping timeout: 240 seconds]
ur5us_ has joined #zig
tnorth has quit [Quit: Konversation terminated!]
remby has quit [Quit: Konversation terminated!]
mokafolio has joined #zig
kbd has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
isolier has quit [Ping timeout: 256 seconds]
isolier has joined #zig
tnorth has joined #zig
jaens[m] has joined #zig
ur5us__ has joined #zig
ur5us_ has quit [Ping timeout: 264 seconds]
ur5us__ has quit [Ping timeout: 240 seconds]
hnOsmium0001 has quit [Quit: Connection closed for inactivity]
leon-p has quit [Quit: leaving]
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
xackus has quit [Ping timeout: 256 seconds]
bitmapper has quit [Quit: Connection closed for inactivity]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
endragor has joined #zig
mokafolio has joined #zig
codemyst has joined #zig
mokafolio has quit [Quit: Bye Bye!]
codemyst has quit [Quit: Connection closed]
sord937 has quit [Ping timeout: 240 seconds]
mokafolio has joined #zig
<xyproto> daurnimator: nice discovery, wish I knew where to start to try to fix this in the zig compiler :)
sord937 has joined #zig
osa1 has quit [Quit: osa1]
osa1 has joined #zig
osa1 has quit [Quit: osa1]
osa1 has joined #zig
tomku has quit [Ping timeout: 272 seconds]
tomku has joined #zig
endragor has quit [Remote host closed the connection]
fputs has joined #zig
mokafolio has quit [Quit: Bye Bye!]
bitmapper has joined #zig
donniewest has joined #zig
mokafolio has joined #zig
mokafolio has quit [Client Quit]
isolier has quit [Ping timeout: 272 seconds]
isolier has joined #zig
jacobsandlund has joined #zig
jacobsandlund has quit [Client Quit]
mgxm has quit [Quit: ....]
mgxm has joined #zig
jacobsandlund has joined #zig
jacobsandlund has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kbd has joined #zig
aarvay has joined #zig
jacobsandlund has joined #zig
Akuli has joined #zig
fputs has quit [Ping timeout: 256 seconds]
fputs has joined #zig
jacobsandlund has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kbd has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kbd has joined #zig
mokafolio has joined #zig
jacobsandlund has joined #zig
waleee-cl has joined #zig
jacobsandlund has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Remote host closed the connection]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
remby has joined #zig
mokafolio has quit [Client Quit]
a_chou has joined #zig
mokafolio has joined #zig
mokafolio has quit [Client Quit]
hnOsmium0001 has joined #zig
josuah has joined #zig
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
tnorth has quit [Ping timeout: 258 seconds]
bitmapper has quit [Quit: Connection closed for inactivity]
jacobsandlund has joined #zig
<paulsmith> just submitted my first PR to zig -- it's small but i'm excited to contribute. hope to add more. great project, great community
<remby> indeed
<Nypsie[m]> Welcome!:)
jacobsandlund has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
a_chou has quit [Quit: a_chou]
fputs has quit [Quit: WeeChat 3.0]
jacobsandlund has joined #zig
aarvay has quit [Quit: Connection closed for inactivity]
kbd has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
kbd has joined #zig
kbd has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
cole-h has joined #zig
lanodan has quit [Ping timeout: 260 seconds]
mokafolio has joined #zig
jacobsandlund has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
mokafolio has quit [Quit: Bye Bye!]
oats is now known as Hornswaggler_Man
mokafolio has joined #zig
Hornswaggler_Man is now known as HornswagglerMang
cole-h has quit [Quit: Goodbye]
cole-h has joined #zig
xackus has joined #zig
Nypsie has joined #zig
lanodan has joined #zig
HornswagglerMang is now known as oats
mokafolio has quit [Quit: Bye Bye!]
kbd has joined #zig
mattnite has joined #zig
bitmapper has joined #zig
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
Nypsie has quit [Quit: ZNC 1.6.5+deb1+deb9u2 - http://znc.in]
mokafolio has quit [Client Quit]
kbd has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
l1x has joined #zig
mokafolio has joined #zig
mokafolio has quit [Client Quit]
leon-p has joined #zig
ur5us__ has joined #zig
sord937 has quit [Quit: sord937]
mokafolio has joined #zig
Akuli has quit [Quit: Leaving]
mattnite has quit [Quit: Connection closed]
ur5us__ has quit [Ping timeout: 264 seconds]
ur5us has joined #zig
kragacles has joined #zig
<andrewrk> welcome paulsmith!
<oats> congrats on the new website!
<oats> looks slick :)
mokafolio has quit [Quit: Bye Bye!]
heitzmann[m] has joined #zig
mokafolio has joined #zig
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
<andrewrk> you can thank Loris for that, he did all the work
mokafolio has joined #zig
jacobsandlund has joined #zig
remby has quit [Quit: Konversation terminated!]
mokafolio has quit [Client Quit]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
mokafolio has joined #zig
bitmapper has quit [Quit: Connection closed for inactivity]
jacobsandlund has quit [Quit: My Mac Mini has gone to sleep. ZZZzzz…]
<daurnimator> xyproto: which thing was that in reply to?
mokafolio has quit [Quit: Bye Bye!]
mokafolio has joined #zig
mokafolio has quit [Client Quit]
donniewest has quit [Quit: WeeChat 3.0]
mokafolio has joined #zig
jacobsandlund has joined #zig
kbd has joined #zig