HNHacker News
TopNewBestAskShowJobs

Snarwin

177 karma · joined July 8, 2020

submissionscomments
Snarwin··on Paredit mnemonics for slurping and barfing Lisp symbolic expressions
vim-sexp-mappings-for-regular-people [1] uses really easy-to-remember shortcuts for these:

- "backward slurp" is "<(" (move opening paren to the left)

- "forward slurp" is ">)" (move closing paren to the right)

- "forward barf" is "<)" (move closing paren to the left)

- "backward barf" is ">(" (move opening paren to the right)

[1]: https://github.com/tpope/vim-sexp-mappings-for-regular-peopl...

Snarwin··on Split the States (2021)
Given two binary numbers a and b, the set of bits set to 1 in a|b is the union of the set of bits set to 1 in a and the set of bits set to 1 in b. Likewise for & (bitwise and) and intersection. So using bitwise operators to represent set operations like this is not too big of a stretch.
Snarwin··on LuaTeX Comes of Age (2017)
> Documents can be saved in TeXmacs, Xml or Scheme format and printed as Pdf or Postscript files. Converters exist for TeX/LaTeX and Html/Mathml. Notice that TeXmacs is not based on TeX/LaTeX.

From http://texmacs.org/tmweb/home/welcome.en.html

Snarwin··on The mermaid is taking over Google search in Norway
The median Google search user probably never learned to use any of these "advanced" features in the first place. For them, having Google ignore the precise wording of their query and show results for more common related terms is almost certainly an improvement.
Snarwin··on Non Session Manager vs New Session Manager
Sounds like it might be time to pull a Libera and migrate to a new mailing list.
Snarwin··on Kinda a Big Announcement
Alternatively: set DuckDuckGo as your default search engine and type `!python setattr`.
Snarwin··on Vim Modes Transition Diagram
Alt+char in terminal Vim is just another way of typing Esc+char.
Snarwin··on An Object-Oriented Language for the '20s
In D, this is called "uniform function call syntax." [1] It's really handy, not just for OOP but also for pipeline-style functional programming, since it lets you compose functions from left to right.

[1] https://tour.dlang.org/tour/en/gems/uniform-function-call-sy...

Snarwin··on Google isn’t happy with Microsoft over online news
The YouTube thing was back in 2018:

https://www.cnet.com/news/mozilla-exec-says-google-slowed-yo...

Snarwin··on Asdf – An Extendable Version Manager
Not the Advanced Scientific Data Format either.

https://github.com/asdf-format/asdf

Snarwin··on gemini:// space
Seems like the simplest fix is to allow the user to ask the screen reader how a word is spelled.
Snarwin··on I no longer trust The Great Suspender
The fact that you have to manually type in `apt-get update` (or similar) means it's not automatic. You have full control over when the update takes place, and which packages get updated.
Snarwin··on Haskell is a Bad Programming Language (2020)
Explaning monads in terms of category theory is like explaining regular expressions in terms of finite automata. It's a good idea if you're writing a textbook, but maybe not so much if you're writing documentation for users of a programming language.
Snarwin··on Porn, Zen, and .vimrc
Instead of `sudo vi`, you can use `sudo -e` (or its equivalent, `sudoedit`) to run the editor as your user.
Snarwin··on C’s Biggest Mistake (2009)
More precisely, it doesn't have a string type.
← PreviousPage 2 of 2