home.social

#kqueue — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #kqueue, aggregated by home.social.

  1. 👨‍💻💾 Oh, you need to reinvent the wheel for detecting file changes on macOS? 🙄 Congrats on discovering #kqueue, the tool that's literally older than your dev career! But hey, at least you got a blog post out of it. 🚀🎉
    vegardstikbakke.com/kqueue/ #reinventthewheel #macOS #filechanges #devlife #blogpost #techhumor #HackerNews #ngated

  2. Ah, the classic tale of reinventing the wheel 🛞! Behold, the famed network server pattern, dear reader: marvel as it twiddles its thumbs for an event, then dispatches like a waiter at a Michelin-star restaurant 🍽️. Forget progress, let's wrap "epoll" and "kqueue" in redundant libraries and call it #innovation. 🚀
    geocar.sdf1.org/fast-servers.h #reinventingthewheel #networkserver #epoll #kqueue #softwaredevelopment #HackerNews #ngated

  3. Ah, the classic tale of reinventing the wheel 🛞! Behold, the famed network server pattern, dear reader: marvel as it twiddles its thumbs for an event, then dispatches like a waiter at a Michelin-star restaurant 🍽️. Forget progress, let's wrap "epoll" and "kqueue" in redundant libraries and call it #innovation. 🚀
    geocar.sdf1.org/fast-servers.h #reinventingthewheel #networkserver #epoll #kqueue #softwaredevelopment #HackerNews #ngated

  4. Ah, the classic tale of reinventing the wheel 🛞! Behold, the famed network server pattern, dear reader: marvel as it twiddles its thumbs for an event, then dispatches like a waiter at a Michelin-star restaurant 🍽️. Forget progress, let's wrap "epoll" and "kqueue" in redundant libraries and call it #innovation. 🚀
    geocar.sdf1.org/fast-servers.h #reinventingthewheel #networkserver #epoll #kqueue #softwaredevelopment #HackerNews #ngated

  5. Ah, the classic tale of reinventing the wheel 🛞! Behold, the famed network server pattern, dear reader: marvel as it twiddles its thumbs for an event, then dispatches like a waiter at a Michelin-star restaurant 🍽️. Forget progress, let's wrap "epoll" and "kqueue" in redundant libraries and call it #innovation. 🚀
    geocar.sdf1.org/fast-servers.h #reinventingthewheel #networkserver #epoll #kqueue #softwaredevelopment #HackerNews #ngated

  6. 🎉 Behold the groundbreaking revelation: wrapping #io_uring and #kqueue in a warm, fuzzy blanket to make them "user-friendly" for programmers who apparently can't handle raw I/O. 🙄 Gather 'round, fellow developers, for the riveting journey from blocking I/O to... an event loop that looks suspiciously like every other one you've seen. 🤦‍♂️
    tigerbeetle.com/blog/2022-11-2 #userfriendly #programming #eventloop #HackerNews #ngated

  7. @feld @david_chisnall @meka

    More generally: #kqueue still has several ragged edges, compared to poll/select.

    tty0.social/@JdeBP/11457405478

    tty0.social/@JdeBP/11457514245

    Every little helps in order to fill in all of these gaps.

    #FreeBSD

  8. 🤔 Oh great, another ex-ad guru turned tech philosopher pontificating on the riveting world of I/O multiplexing. Who knew dodging pop-up ads would qualify you to decipher the cryptic nuances of `select`, `poll`, and `epoll`? 🚀 Maybe next they'll teach us how to cast spells with `kqueue`! 😂
    nima101.github.io/io_multiplex #exadguru #techphilosophy #I/Omultiplexing #programminghumor #kqueue #HackerNews #ngated

  9. @meka

    A quick shufti and it looks like the test program is asking for EVFILT_WRITE and the driver is checking for EVFILT_READ.

    #kqueue #FreeBSD

  10. @meka

    I was wondering how far you had got with this.

    #kqueue #FreeBSD

  11. @meka

    One thing not strictly select()-related:

    EVFILT_PROC with NOTE_TRACK is another gotcha. It looks great at first glance.

    Until one really hammers it with lots of short-lived processes in a deep tree.

    Then it becomes apparent that NOTE_EXIT and NOTE_CHILD both use the data field for different purposes, but get merged, and grandchildren get lost from their parents.

    news.ycombinator.com/item?id=2

    #FreeBSD #kqueue

  12. @meka

    I'm currently working with an old kernel, and I don't know off the top of my head if/when this got fixed. But one of the things is that attempting to add an EVFILT_READ for a file descriptor that is /dev/null results/resulted in an ENODEV EV_ERROR event.

    It's generally edge case devices that didn't get attention because a lot of the relevant software still used select() and so no-one (apart from kevent()-everywhere people like me) really hit this.

    #FreeBSD #kqueue

  13. @meka

    It is always welcome to see more kevent(), if only because it lets other people share my pain, in the hope that that increases the push for kevent() to be fully completed and as good as select().

    There are a number of cases I have hit over the years kevent() cannot *quite* do what select() does.

    #FreeBSD #kqueue

  14. Currently super busy with life stuff ™️

    I added kqueue support to the notify crate, however this implementation currently doesn't report new files being created in a watched directory.

    If there is someone out there willing to help with this issue it would be awesome. github.com/notify-rs/notify/is

    #FreeBSD #OpenBSD #NetBSD #DragonflyBSD #kqueue #rust #notify

  15. And its merged, with the 5.0.0 release #notify for #Rust will finally support #kqueue on #BSD 🎉

    Next step, after the 5.0.0 release is out, help projects using it to update to that version, so we get proper file system event goodness on BSD. #alacritty #rust-analyzer #cargo-watch #mdBook #cobalt

    #FreeBSD #OpenBSD #NetBSD #dragonflybsd