Better HN
topnewbestaskshowjobs
Log inSign up

shuss

962 karma · joined Sep 6, 2013 (13y ago) · 74 submissions

Author of Unixism. Garden variety nerd.

- https://unixism.net - https://twitter.com/shuveb

Submissions

1.

The Four Pillars of a Ralph Wiggum Loop(mfbt.ai ↗)

2 points · by shuss · 9mo ago · discuss

2.

Efficient Ralph Wiggum Loops on a Raspberry Pi(mfbt.ai ↗)

1 points · by shuss · 9mo ago · discuss

comment 9mo ago · link · parent

There are many impediments to scaling vibe coding. We built a tool to internally scale vibe coding to vibe engineering: https://mfbt.ai/blog/vibe-coding-vs-vibe-engineering/

4.

Specification Grounding: The Missing Link in Vibe Coding(unstract.com ↗)

7 points · by shuss · 1y ago · discuss

comment 2y ago · link · parent

Fast changing libraries are a huge pain. That's why a no-code approach like Unstract (https://github.com/zipstack/unstract) makes sense.

comment 2y ago · link · parent

There's also Gocker: https://github.com/shuveb/containers-the-hard-way

7.

Show HN: Unstract – AGPL, LLM-powered Fivetran/Twilio for unstructured docs(unstract.com ↗)

5 points · by shuss · 2y ago · discuss

8.

Show HN: Unstract(AGPL) – Launch LLM-powered APIs to structure unstructured docs(github.com ↗)

25 points · by shuss · 2y ago · 1 comment

comment 6y ago · link · parent

Yep. Docker is famously written Go. The only reason I wrote this is as an educational tool to discuss how containers under Linux really work. It’s self-contained (pun unintended) except for the usage of the go-containerregistry package, which anyway does stuff unrelated to how containers are managed on Linux.

10.

Gocker: Docker implemented in 1.3k lines of Go(unixism.net ↗)

186 points · by shuss · 6y ago · 85 comments

11.

Gocker: Docker implemented in 1.3k lines of Go(unixism.net ↗)

2 points · by shuss · 6y ago · discuss

12.

Containers the hard way: Gocker: A mini Docker written in Go(unixism.net ↗)

2 points · by shuss · 6y ago · discuss

13.

Containers the hard way: Gocker: A mini Docker written in Go(unixism.net ↗)

2 points · by shuss · 6y ago · discuss

14.

What kind of traffic does Hacker News generate? See my Google Analytics data(unixism.net ↗)

1 points · by shuss · 6y ago · discuss

15.

What kind of traffic does Hacker News generate? See my Google Analytics data(unixism.net ↗)

2 points · by shuss · 6y ago · discuss

comment 6y ago · link · parent

This is such a great point. Never thought how async I/O could be a problem this way. In the SQ polling example, I used BPF to "prove" that the process does not make system calls:

https://unixism.net/loti/tutorial/sq_poll.html

Could be a good idea to use BPF to expose what io_uring is doing. Just a wild thought.

comment 6y ago · link · parent

io_uring_get_probe() needs v5.6 at least.

comment 6y ago · link · parent

True. Have to agree, here. Although one advantage over aio for block I/O that io_uring will still have is to use polling mode to almost completely avoid system calls.

comment 6y ago · link · parent

The raw io_uring interface, once you ignore the boilerplate initialization code, is actually a super-simple interface to use. liburing is itself only a very thin wrapper on top of io_uring. I feel that if you ever used io_uring, after a while you'll end up with a bunch of convenience functions. liburing looks more like a collection of those functions to me today.

One place where a slightly high-level interface is provided by liburing is in the function io_uring_submit(). It determines among other things if there is a need to call the io_uring_enter() system call depending on whether you are in polling mode or not, for example. You can read more about it here:

https://unixism.net/loti/tutorial/sq_poll.html

Otherwise, at least at this time, liburing is a simple wrapper.

comment 6y ago · link · parent

For regular files, aio works async only if they are opened in unbuffered mode. I think this is a huge limitation. io_uring on the other hand, can provide a uniform interface for all file descriptors whether they are sockets or regular files. This should be a decent win, IMO.

comment 6y ago · link · parent

The author here: All examples in the guide are aimed at throwing light at the io_uring and liburing interfaces. They are not very useful or very real-worldish examples. The idea with this example in particular is to show the difference how readv/writev work synchronously vs how they would be "called" io_uring. May be I should call out the fact that these programs are more tuned towards explaining the io_uring interface a lot more in the text. Thanks for the feedback.

comment 6y ago · link · parent

Oh, yeah. QEMU 5.0 already uses io_uring. In fact, it uses liburing. Check out the changelog: https://wiki.qemu.org/ChangeLog/5.0

23.

Lord of the io_uring: io_uring tutorial, examples and reference(unixism.net ↗)

267 points · by shuss · 6y ago · 74 comments

123