HNHacker News
TopNewBestAskShowJobs

shric

1,489 karma · joined November 6, 2012

submissionscomments
shric··on An Introduction to Display Editing with Vi (1980)
Just don't pronounce it "six"
shric··on An Introduction to Crystal
> Crystal’s build times are reasonable. Compiling my project Azula takes ~16s with the release flag. Compiling our barebones project above takes ~8s.

8s to compile a hello world is "reasonable"? Am I missing something?

shric··on Ask HN: How often do You write a comment/reply to this forum but not submit it?
Of course you're going to get an enormous bias in the answers here; how many people wrote out a reply to this question and decided it was best not to submit it?
shric··on Golang generics proposal has been accepted
> Go doesn't even implicitly de-reference things

Except when accessing a field via a pointer to struct.

https://tour.golang.org/moretypes/4

shric··on I converted my demoscene font collection to PNG and put it on GitHub
And don't forget Mode X

https://en.wikipedia.org/wiki/Mode_X

shric··on Programming Language Creator or Serial Killer?
I was thinking there would be at least one that's both programming language creator and serial killer.
shric··on Knuth-Morris-Pratt string-searching algorithm: DFA-less version
Because the writer of the function doesn't want to bother to check the null terminator. I'm not saying it's a good function, it just doesn't have an issue as long as the input is a valid string with a correct length.

strncpy, despite what its name implies, does indeed not necessarily produce strings.

Regardless, a C string is defined to have a null terminator. All bets are off if you don't provide a string.

shric··on Knuth-Morris-Pratt string-searching algorithm: DFA-less version
A string in C is, by definition, null terminated.
shric··on Knuth-Morris-Pratt string-searching algorithm: DFA-less version
I don't think it does, assuming the passed len is correct.
shric··on Ask HN: What are some channels that make you glad YouTube exists?
3blue1brown - Beautifully animated explanations; Inigo Quilez - Graphics, especially raymarching; Ben Felix - Investing, rational unbiased advice
shric··on On Learning Chess as an Adult – From 650 to 1750 in Two Years
Highly recommend lichess.org too. Completely free, open source, runs on donations, no ads or constant nagging to try premium.
shric··on The Tao of Programming (1987)
3.3 There was once a programmer who was attached to the court of the warlord of Wu. The warlord asked the programmer: "Which is easier to design: an accounting package or an operating system?"

"An operating system," replied the programmer.

The warlord uttered an exclamation of disbelief. "Surely an accounting package is trivial next to the complexity of an operating system," he said.

"Not so," said the programmer, "When designing an accounting package, the programmer operates as a mediator between people having different ideas: how it must operate, how its reports must appear, and how it must conform to the tax laws. By contrast, an operating system is not limited by outside appearances. When designing an operating system, the programmer seeks the simplest harmony between machine and ideas. This is why an operating system is easier to design."

The warlord of Wu nodded and smiled. "That is all good and well, but what about the rants on lkml?"

shric··on Amazon Review Scam
Next trick: solicit a flood of one star reviews for your business that all have trivial complaints beyond your control.
shric··on What the heck is the value of “-n % n” in programming languages?
This isn't correct, section 6.5.5 states merely that "The operands of the % operator shall have integer type."
shric··on Covid's cognitive costs? Some patients' brains may age 10 years
Link to the study: https://www.medrxiv.org/content/10.1101/2020.10.20.20215863v...
shric··on Ask HN: How to Think Clearly?
Have you considered getting tested for ADHD? Not saying you have it, but it's one explanation and could be mitigated somewhat with treatment.
shric··on I am seriously considering going back to desktop computers
This. Employers tend to give out laptops for home use, not desktops. I'm not about to use my personal desktop for work, or my work laptop for personal stuff.
shric··on I am seriously considering going back to desktop computers
My laptop (16" MacBook Pro) can allegedly drive four 4K monitors. I currently use two 32" 4K (landscape) and one 24" 1440p (portrait). The additional portrait 1440p is totally silly, and it was because work happened to send me it for WFH.
shric··on Ask HN: What did you purchase that measurably improved your quality of life?
The extension "SponsorBlock" works well for desktop browsers, it accepts user contributed segments to cut out sponsorships.
shric··on Backing up data like the adult I supposedly am
rsync.net: 100 GB for $18/year (no ingress/egress charge)

tarsnap: 100 GB would be $300/year (excluding ingress/egress)

Edit: I believe both support deduplication (borg and tarsnap), but no idea if one is superior to the other?

shric··on $250k books sold, to save lives
I guess, so maybe it's >250K profit?
shric··on $250k books sold, to save lives
Based on https://sive.rs/m and https://sive.rs/n he's self-publishing electronically for $15 (or $4 more for paperback), so I guess the costs are quite small.
shric··on Git commit accepts several message flags (-m) to allow multiline commits
I also like "git branch -d @{-1}" to delete the previous branch, which can of course be aliased.
shric··on Ennio Morricone has died
Based on the votes alone, yes?
shric··on BTFS – mount any .torrent file or magnet link as directory
Neat idea, but it seems like abuse of the torrent protocol. If peers don't grab chunks randomly then it partially defeats the purpose of bittorrent.
shric··on Robpike/Lisp: Toy Lisp 1.5 interpreter in Go
He also co-invented an obscure encoding called "utf-8" that nobody uses.
shric··on You can bypass YouTube ads by adding a dot after the domain
It stands for Software Development Engineer, but Google use SWE instead, as though "software" is two words.
shric··on CLIs are reified UIs (2017)
I really wish more CLIs would have a, ideally standard, flag to output something structured and easily parsable. One of the biggest arguments for CLIs is their composability, which is true for canonical examples like | sort | uniq -c | sort -nr | head -10 etc. However, I find myself constantly having to use awk, sed, cut, etc. far too often. A very much inexhaustive list of things one has to deal with:

- whitespace delimited with fields that contain whitespace.

- tabular lined up data that doesn't actually use tabs, and when a field is too wide, it just pushes the rest of the line over.

- 5,000 different variants of CSV

Of course some things (e.g. kubectl) have json and yaml output options, which can be nicely parsed with jq.

I also found https://github.com/kellyjonbrazil/jc handy, which attempts to convert many commands to json output.

shric··on Researchers achieve optical data transmission speed of 44.2 terabits per second
Yes, but this is average across the country. Singapore has a rather unfair advantage of being a city state.
shric··on We at $Famous_company switched to $Hyped_technology
Right, and those cowboys at SFAMOUS_COMPANY obviously haven't read the latest blog posts that clearly show $HYPED_TECHNOLOGY doesn't support $HIPSTER_PARADIGM in an async I/O functional stackless copy on write environment, meaning $FLASHY_LANGUAGE can't be used with dependent types unless you don't mind your static analyser giving false positives every time you try to multiplex coroutines in your template meta-programming frameworks; what were they thinking?
← PreviousPage 17 of 19Next →