HNHacker News
TopNewBestAskShowJobs

benjaminogles

26 karma · joined January 24, 2019

submissionscomments
benjaminogles··on Awk Technical Notes (2023)
I feel the same about using Awk, it is just fun to use. I like that variables have defined initial values so they don't need to be declared. And the most common bits of control flow needed to process an input file are implicit. Some fun things I've written with awk

Plain text accounting program in awk https://github.com/benjaminogles/ledger.bash

Literate programming/static site generator in awk https://github.com/benjaminogles/lit

Although the latter just uses awk as a weird shell and maintains a couple child processes for converting md to html and executing code blocks with output piped into the document

benjaminogles··on Show HN: I built an online interactive course that helps you learn Vim faster
https://github.com/tpope/vim-surround
benjaminogles··on Ask HN: How do you balance reading books vs. articles
I experienced the same thing. Waiting for recommendations from similarly minded people helped me get past it.

I didn't read any non-fiction for a long time before I was given a book as a gift [0] that was really good. Since then, I have received a few other recommendations that I enjoyed [1-2].

[0] Artificial Intelligence by Melanie Mitchell

[1] Algorithms to Live By by Brian Christian and Tom Griffiths

[2] The Theoretical Minimum Series by Leonard Susskind

benjaminogles··on Ask HN: Best technologies for indoor position tracking?
Good question, my main motivation is to learn more about how such a system would work. I am interested in signal processing and especially radar like systems so implementing one would be a fun experience.

In general, systems based on radar are trying to replace wearables for sleep states tracking, elderly fall detection etc. But I'm not sure yet what other applications it might have. The ability to track my location just seemed like a good first step.

benjaminogles··on Hardware cost evaluation of the posit number system
I have not read the paper yet but the abstract says that they compared two hardware adders synthesized from C++ code. It seems like a fair comparison but I wonder whether it might be possible to hand design a much more efficient posit adder that is more competitive with hand designed floating point adders. I can see how the number of lookup tables used in synthesis would be proportional to the number of gates used on a dedicated chip though so maybe there would be no difference in comparing hand optimized adders on ICs.