HNHacker News
TopNewBestAskShowJobs

hibbelig

1,255 karma · joined April 21, 2013

submissionscomments
hibbelig··on Linguistic humor, Foreign hotel signs
I want a car that can trumpet melodiously.
hibbelig··on T. Rex Had a Body Temperature of 97°F
Doesn’t almost everybody cook? With boiling water?
hibbelig··on Bug Blindness
The point is that most websites have sidebars, but this one doesn't.

Let's say my preferred text width is 10 units. Due to sidebars, most websites require a browser window width of 20 units to show me 10 units of main text.

Then I visit this person's website and get text 20 units wide and it's very uncomfortable to read.

The text width I like doesn't change but the browser window width I need does change, and I don't want to change it when navigating around, to be honest.

I guess I could use the browser functionality to inject my own CSS rules for specific websites, then I could change the single-column no-max-width websites to show me a sensible text width.

But I also suppose that I'm not alone with this preference. I believe there have been studies about a suitable line length that is easy to read, and this is reflected in printed media. So those websites ask everyone to make such changes. That doesn't seem right.

hibbelig··on Bug Blindness
Making the browser windows narrow is a bad suggestion. Because most websites have some sort of navigation bar on the left and another bar on the right, so we need a wide enough window to get enough of the main text (width).

There are very few websites without those columns.

hibbelig··on We Rebuilt the Linux MicroVM Stack on Apple Silicon
Oh yes. I discovered that there are two scrollbars. By clicking somewhere in the blog text, you activate the inner one and then scrolling with the keyboard works.
hibbelig··on This blog is written in en-GB
How's that going with the numbers? Microsoft had this page where they explained that monetary amounts are formatted one way whereas other numbers are formatted another way. I found that most fascinating, but I don't know whether it matches reality. Also, how does software cope?

(Back in the eighties,) I had a teacher who taught both French and geography (I think), and he used the apostrophe as the thousands separator. With a twist. For example, he would write three million as 3'000'000, and then he would abbreviate that to 3''. Very fascinating. I wonder if that was somehow inspired by Swiss conventions.

hibbelig··on Cleaning up after AI rockstar developers
I believe GNU Emacs was created in 1984 or 1985, and it's still going strong. I guess it's not easy to work on it due to the long history, but I understand it's been refactored as the developers went along.
hibbelig··on I keep bouncing off the Scheme language
Recursion. Very interesting. My daughter didn’t know much about programming, then started CS. The first semester language was Ocaml and they of course used recursion quite heavily and she’d didn’t know it was supposed to be complicated. The second semester had assembly, C and Java and suddenly it was a problem. I had to remind her that she’s had already done it in the first semester.
hibbelig··on Hammerspoon
I used to be a fan of tiling window managers, but I found out that I tend to use fairly visually heavy apps on a Mac. By this I mean apps that need quite a bit of screen real estate to show everything that needs to be shown:

The mail program has a folder tree on the left, the list of messages in the center, and the current message on the right. The IDE has all these tool windows that need showing, in addition to the actual editor. Websites also like it if the window size is a bit more.

Back when I was using Emacs and xterm, mainly, it was nice to show Emacs in the left half and then two xterms on the right.

So instead of tiling, I've come to realize that I only need a couple of window positions and sizes: Mail program and IDE are full screen. The browser occupies 70% width and height, in the top right corner, and the terminal is in the bottom left corner, 200 columns by 44 rows or so. (Lazygit works better if the terminal is a bit larger.) The chat program is full height, 60% width, left edge.

In this way, while the IDE is building or running tests, I can summon the web browser and still see at the bottom and on the left what is the progress of build or test. Also, when I use the software through the browser, I can see a couple of lines of log messages, which is enough to tell me whether to switch.

So I'm now happy with hotkeys in Hammerspoon that reposition and resize the current window to one of these presets, and to jump to a specific app with a keypress. I use a modal for this.

I dig the idea of having multi-level modals, somehow this idea never occurred to me.

hibbelig··on Vim 9.2
I switched from screen to tmux due to rumor about the screen code base. Maybe not a good reason. But I don’t regret it, tmux works well.

Just an honest opinion of someone who didn’t have skin in the game. Not sure if it helps.

hibbelig··on The Day the Telnet Died
Telnet was available in the 90s. I reckon /dev/tcp is way more recent. GP did say a long time ago.
hibbelig··on Monotype font licencing shake-down
It sounded like something a screen reader would say to help visually impaired visitors. But I don’t actually have a clue what screen readers do say.
hibbelig··on Ask HN: Where to begin with "modern" Emacs?
For the keys you don’t need to type quickly, M-x can also be typed as ESC x. For any character x.

So it works well with M-|, but not so well with M-f, for example.

hibbelig··on Apple details the end of Intel Mac support and a phaseout for Rosetta 2
Your parent explicitly said amd64 which is the same thing as x86_64. Perhaps you misread amd64 and thought it was saying arm64?
hibbelig··on macOS Tips and Tricks (2022)
I used to use tiling window managers on Linux, but I found out that my Mac usage contains lots of “graphical” apps that don't like to live in a quarter of the screen or something like that.

So I've embraced overlapping windows. I strategically place them so that the import parts are visible. For example, my IDE is full screen, but the browser is only 70% with and height or so (so that the left 30% and the bottom 30% of the IDE are visible, which conveniently lets me peek into the log of the currently running program.

I have a Hammerspoon configuration that conjures up a modal window on a keypress, and then additional keypresses move the current window to a predefined position and size, e.g. m to maximize and p for the top right corner (70% width and 70% height).

I also have some keybindings in that modal window to jump to an app, e.g. w for the browser, i for the IDE, t for the email client, space for the terminal.

I very very rarely manually move a window around, one of the preset positions/sizes usually works for me.

hibbelig··on 1M Lazygit downloads, one embarrassment at a time
Here is one thing: I work on a feature branch off of main. It takes me a bit and I want to rebase my branch onto the newest changes.

It seems with the git command line the way to do it is to switch to main then pull then switch back to my feature branch then rebase.

With lazygit i hit f on the main branch which pulls its changes then i can rebase (r) right away.

I also like to review the diff of each file before staging it. I get a nice list of changed files, i can select one and see the diff in it, then I can stage it.

hibbelig··on Using Guile for Emacs
I use lazygit as a ui. I like it. I think magit can do way more.
hibbelig··on Speeding up the Rust edit-build-run cycle
That’s true but boy howdy does pausing the program at a breakpoint change timing!
hibbelig··on Speeding up the Rust edit-build-run cycle
Data point: I develop in Java and I use IntelliJ. I run everything in debug mode. So it’s really easy for me to enter the debugger.

But I find that if I have to step around more than a handful of times to find the issue then I forget what happened five steps ago. So I teach for print debugging quite often.

hibbelig··on Speeding up the Rust edit-build-run cycle
It’s very interesting. I’ve tried to observe myself. It seems that if I can see a breakpoint somewhere and then examine state and then see what the problem is, a debugger is great.

If, however, it’s something where I need to examine state at multiple times in the execution, I lose track in my mind of the state I’ve seen before. This is where print debugging shines: I can see how state evolved over time and spot trends.

hibbelig··on Ask HN: If you were rewriting Emacs from scratch, what would you do differently?
You’re misunderstanding. In those other apps the behavior is this: you open a document. You put the cursor on line 3 column 3. You use the mouse wheel or trackpad to scroll down to line 600. You hit cursor right. The cursor is now on line 3 column 4.

In emacs the cursor would be somewhere around line 600 instead.

hibbelig··on Germans decry influence of English as 'idiot's apostrophe' gets approval
It’s autocomplete being based on words. It knows computer and it knows keyboard and so in English it is trivial to type computer keyboard.

In German it also knows Computer and Tastatur, but I can’t use autocomplete to type Computertastatur.

Actually I just learned I can. Apparently this word is in the dictionary. But there are just so many compound nouns, it’s impossible for them all to be in the dictionary.

To make it work in such a language it has to understand about constructing compound nouns.

hibbelig··on Daemonization in Unix programs is probably about restarting programs
I recall that inetd started a new instance of the demon for every incoming connection, and this caused lots of processes when lots of connections happened.

I don’t recall whether you could tell inetd not to do that.

hibbelig··on Terminal colours are tricky
I wanted to like dark mode (before it was called that, back in the nineties), and I try again from time to time, but I've never been successful.

I'm also not happy with Solarized because it's so low contrast.

Some programs have Github themes that seem to be okay.

I tried Catppuccin but I'm not sure if I like it or not. It's better than Solarized but still pretty low contrast.

Is there a color scheme I might like that's supported across multiple applications? IntelliJ, iTerm2, lazygit, neovim come to mind.

hibbelig··on Critical Bug in Docker Engine Allowed Attackers to Bypass Authorization Plugins
Docker desktop for Mac: dockerd runs in the VM and the client from the host system wants to connect. But of course we all hope that the network it is exposed to is still only on the Mac.
hibbelig··on The Origin of Emacs in 1976
Thank you. I wonder: is FTP that old? I kind of thought UUCP predated FTP. My parent mentioned email possibly being a special mode of FTP.

_some poking around in Wikipedia_

Indeed, FTP is from 1971 and UUCP is from 1979. And the SMTP page describes that it all started as a mode in FTP.

hibbelig··on The Origin of Emacs in 1976
UUCP?
hibbelig··on Eza: A modern, maintained replacement for ls
Challenge: which of the letters a to z and A to Z are NOT switches that modify the behavior of ls?

I would guess that ls has at least 50 different behaviors based on the switches.

hibbelig··on Takeaways from the Jane Street bond prospectus
You may not be aware that it's a false friend. The German word Billion exists, and it means trillion.

So the German reader will read the English article (in English, not auto-translated), see the word billion, think “oh that looks familiar” and might assume it means the same as the German word Billion.

Machine translation makes quite a few mistakes, so I think if you have some decent knowledge of a language, you might be better off reading the original rather than a machine translation. At least my point of view from a couple of years ago. But it's also possible that machine translation has gotten WAY better in the last couple of years, I'm not sure.

hibbelig··on Bun 1.1
Java is compiled, too. The Java runtime is the JVM which runs byte code.
Page 1 of 23Next →