Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
rockorager
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
7 ms
·
1.
▲
by
rockorager
11mo ago
If you work with LLM agents, you will immediately be able to tell this issue is written by one. The time cost of this sort is almost certainly not real, as others have pointed out. I’ve had agents find similar “performance bottlenecks” that
2.
▲
by
rockorager
1y ago
I think exposing a C lib would be very nice. Feel free to open a discussion or issue on the Github.
3.
▲
by
rockorager
1y ago
Oh no - where at?
4.
▲
by
rockorager
1y ago
Oh that's cool. `find` is another tool I thought could benefit from io_uring like `ls`. I think it's definitely worth enabling io_uring for single threaded applications for the batching benefit. The kernel will still spin up a thr
5.
▲
by
rockorager
1y ago
You would have to write your IO to have a fallback. The Ghostty project uses `io_uring`, but on kernels where it isn't available it falls back to an `epoll` model. That's all handled at the library level by libxev.
6.
▲
by
rockorager
1y ago
I didn't include `busybox` in my initial table, so it isn't on the blog post but the repo has the data...but I am 99% sure busybox does not have locale support, so I think GNU ls without locale support would probably be closer to
7.
▲
by
rockorager
1y ago
Yeah, I wrote this as a fun little experiment to learn more io_uring usage. The practical savings of using this are tiny, maybe 5 seconds over your entire life. That wasn't the point haha
8.
▲
by
rockorager
1y ago
Author of the project here! I have a little write up on this here: https://rockorager.dev/log/lsr-ls-but-with-io-uring
9.
▲
by
rockorager
2y ago
I've discussed with Mitchell a bit in the past on this, but there are a few ways to opt in to this. First, let's imagine there is some escape sequence that tells the terminal to ignore some set of escape sequences. 1. The shell co
10.
▲
by
rockorager
2y ago
I understand the fear of living near such a heinous crime, but you have to see the difference between the two situations. Random crime is scary, but is random. All signs point to this being an assassination . Brian Thompson wasn't the
11.
▲
by
rockorager
2y ago
It could definitely work for that. You have to think of zig in this context as a build system which can download and compile C/C++ codebases.
12.
▲
by
rockorager
2y ago
Exactly - these should be reported along with any other input event as an escape sequence. There are other comments on this post that link to how this is done.
13.
▲
by
rockorager
2y ago
The single downside being you can get signals for SIGWINCH, while the (legacy) xterm escape sequence requires polling. I wrote a proposal[0] to have terminals send these updates in-band, instead of requiring polling a-la xterm. So far, foot
14.
▲
by
rockorager
2y ago
I've been daily driving Ghostty for over a year now, and have been a somewhat regular contributor. As a TUI library author, I've worked with several terminal authors on bug fixes and implementing features - Mitchell is among the n
15.
▲
by
rockorager
2y ago
Ghostty has both mode 2027 and kitty image protocol
16.
▲
by
rockorager
2y ago
The state of the art here is to detect mode 2027, and enable it when supported. This lets you know the terminal will handle graphemes properly. I maintain two TUI libraries which use this technique and emoji support has been (nearly) great.
17.
▲
by
rockorager
2y ago
This isn't using any "fancy" terminal features, aside from the synchronized update sequences (which terminals that don't support typically will ignore, though windows has a special case where it must be ignored). That sa
18.
▲
by
rockorager
2y ago
I guess my point is that even for key input, you don't need terminfo. Modern terminals, and I would agree with your definition of that, all use the same keyboard encodings. There is the notable case of backspace/delete you mention
19.
▲
by
rockorager
2y ago
> Do you still need terminfo? It depends. If you just want to style some text and maybe do some basic cursor operations: probably not. If you want to use more advanced operations or read key input: probably yes. I disagree. The vast ma
20.
▲
by
rockorager
2y ago
Neovim already supports these keys as long as you are using a terminal that supports the Kitty keyboard protocol (Kitty, wezterm, alacritty, foot, ghostty)
21.
▲
by
rockorager
2y ago
Kitty keyboard protocol does indeed support modifier sides.
22.
▲
by
rockorager
3y ago
I don't see why not. 1.0 would mean the API isn't changing. And they can certainly swap out the language and still keep the API the same.
23.
▲
by
rockorager
3y ago
https://git.sr.ht/~rockorager/vaxis A(nother) golang TUI library. Targeting modern terminal features, and a few different APIs for building applications. I really like notcurses, but the CGO cost when setting individua
24.
▲
by
rockorager
3y ago
There aren’t any that go direct to maildir. There is mujmap that syncs to notmuch. I wasn’t able to get it to work the way I wanted, and wrote my own that I’d be happy to share. I’ve been using it for around a month with no issues but that’
25.
▲
by
rockorager
15y ago
I'm a chemical engineer myself, and often wondered if there were any others interested in programming as much as I am. I'd be interested to see what sorts of marriages you have made between the two fields. Do you have any links you could
26.
▲
by
rockorager
15y ago
There are very few "sit down and read" type books about chemical engineering. That being said, there are two books that I reference every day: the first physically, the second philosophically. 1) Perry's Handbook for Chemical Engineers (P