HNHacker News
TopNewBestAskShowJobs

shric

1,476 karma · joined November 6, 2012

submissionscomments
shric··on Vtm: Text-Based Desktop Environment
If it had i3/sway tiling behaviour/bindings, that would be great.
shric··on Anime fans stumbled upon a mathematical proof
You can read them in any order
shric··on Atlassian announces end of support for Opsgenie
Perhaps I'm in the minority, but I was immediately put off when I saw "AI-native" on that page.

I don't want my incident management system to be AI anything. But then I thought maybe I'm being unreasonable so I checked out https://betterstack.com/docs/uptime/incident-silencing/ which was the first thing I found that was AI related.

Frankly, the thought of some black box AI system deciding when to silence incidents utterly terrifies me. I want to be absolutely 100% certain that I'm receiving all my alerts. If they're too noisy or repetitive, it's on me and my team to improve the alert quality, not leave it to "AI" to figure out what to silence.

shric··on Sayonara, R35: Nissan Japan has stopped taking orders for the GT-R
> Technically, yes, you will put down faster times on a bike.

Motorcycle track rider here. They're generally slower than performance cars around the track due to reduced cornering traction and therefore speed.

shric··on Atlassian announces end of support for Opsgenie
From my point of view they ended support a long time ago.

Sep 8, 2022 - I sent a 2 line PR to fix an incorrect spelling of a json field and add a missing one in their Go SDK.

June 23, 2023 (9 months later) - It was reviewed and merged.

https://github.com/opsgenie/opsgenie-go-sdk-v2/pull/89

shric··on The cost of Go's panic and recover
For me an unrecoverable error is when my program gets into an unexpected state. Given that I didn't anticipate such a thing ever happening, I can no longer reason about what the program will do, so the only sensible course of action is to crash immediately.
shric··on The cost of Go's panic and recover
I programmed in Go for 5 years (stopped 2 years ago) and didn't even know the language had recover() until 5 minutes ago.

I used panic() all day, but never recover. I use panic for unrecoverable errors. I thought that's why it's called "panic".

shric··on Writing small docs is a game changer
I like how a site called bufferbuffer.com is down for insufficient storage
shric··on The number line freaks me out (2016)
Not all non computable numbers are undescribable. Chaitin's constant[1] is non-computable but can be described.

[1] https://en.m.wikipedia.org/wiki/Chaitin%27s_constant

shric··on What about K?
My first thought was "weird, they made a language called k even though there is already a language called K". I then realized it's actually talking about K.

Thoroughout the article it's spelled k consistently except at the start of a sentence. This is weird. The language is K not k. Nobody spells the C language as c.

shric··on Linux as co-operative Windows process (2017)
I've been using Linux with Nvidia GPUs since the RIVA TNT up to the RTX 4090, it works just fine.
shric··on Show HN: A website that heatmaps your city based on your housing preferences
Everyone's preferences matter.

I know a homeless guy in Texas whom I talk to on IRC daily. Even he has preferences. He lives under a bridge near a library that gives him Internet access.

shric··on If your customers don't talk, NPS is a vanity metric
As an INTP Virgo who's unlikely to recommend products to your friends or colleagues, you would say that.
shric··on Macrodata Refinement
Upon request, I can also perform a hug.
shric··on Ask HN: Tips for Interview Preparations with ADHD?
I have ADHD and I couldn't handle college. How did you manage a Masters degree in Computer Science? It must've been a huge challenge, so well done.

I'm 48 and was diagnosed at 40. I've just accepted that ADHD makes things harder than for others and I work with my limitations. Have you tried going for slightly less challenging job interviews to get back into stability and then you can be more relaxed in advancing your career once you've found your feet again?

shric··on The FizzBuzz that did not get me the job
The fact that one interviewer decided someone can't use Objective C shouldn't really give you any confidence that interviewers there are generally unreasonable.

I have no affiliation with Google.

shric··on Interview with Jeff Atwood, Co-Founder of Stack Overflow
I tried CUDA on Fedora 41 (no quotes) and got exclusively results around Fedora 41 without any changes required, weird.
shric··on Interview with Jeff Atwood, Co-Founder of Stack Overflow
For me it depends on what I need.

Google -> stackoverflow is typically much faster than chatgpt.

If you are a fast typer and can formulate a short question then you can often get from thought to answer in well under 10 seconds.

With chatgpt there is a small thinking delay then often a long token sequence of filler before you get the few lines you're looking for.

ChatGPT shines compared to stackoverflow for something you know that requires a dialog of prompts or you're asking it to write some specific code instead of just finding out how to accomplish a small task with very clear syntax.

shric··on Hotel booking sites overcharge Bay Area customers
> In reality, what stops bad behavior is regulation because in reality, people do not have infinite time and infinite information to assess each thing they consume.

Reputation is much easier to destroy and bad behavior is much harder to hide today than 50 years ago due to the easier spread of information.

There is still a huge spectrum of business behaviour that is not violating regulations. In the aggregate businesses who please their consumers more will thrive compared to those that don't.

shric··on Hotel booking sites overcharge Bay Area customers
Most businesses struggle to stay afloat without adding racial discrimination.

I suspect almost all such businesses would die quickly.

So yes, there would be such public disgust and stigma that even those patrons who valued such a business would hopefully hesitate to expose their bigotry.

shric··on Hotel booking sites overcharge Bay Area customers
In theory this discrimination will be discovered (as in, see article) and if people don't like it they will select for companies that do not have (or have less) such discrimination.

If all businesses discriminate then there is an opportunity to compete using no discrimination as an edge.

Just as, for example, if a business decided (if it was legal) to only allow people of a certain race to enter, I would like to think that most members of that race would be disgusted enough to boycott that business and the business will rightly fail.

Finally, people already effectively pay different amounts for all sorts of things due to varying amounts of tax paid.

The private sector can't detect or profit from your tax paid so they use where you live and other signals like whether you're using an iPhone etc. as a proxy for your income/wealth.

shric··on Decoding the telephony signals in Pink Floyd's 'The Wall'
The session singer who did "The Great Gig in the Sky" vocals on The Dark Side of the Moon famously got £30. She later sued and got an undisclosed settlement.

https://en.m.wikipedia.org/wiki/Clare_Torry

shric··on A Raycaster in Bash
Beautiful. Correct me if I'm wrong, but this looks like a bash version of https://lodev.org/cgtutor/raycasting.html

Edit: ah, just noticed this is in the readme :(

shric··on Silk – Interactive Generative Art (2011)
I see people ITT saying "all", do they both happen to mean "both"?
shric··on Preferring throwaway code over design docs
> Don't forget: "weeks of coding can save hours of planning" ;)

Also, "weeks of planning can save hours of coding" :)

shric··on The First 50M Prime Numbers (1975) [pdf]
Yeah, although that's better than 19937 ones in a row.
shric··on UK bans daytime TV ads for cereals, muffins and burgers
It was a mistake because I got downvoted by issuing a correct statement (if punter is interpreted as a gambler).

I am from the UK but moved to Australia about 35 years ago

shric··on UK bans daytime TV ads for cereals, muffins and burgers
I'm only familiar with the latter definition. My mistake I guess.
shric··on Flappy Bird in 1000 lines of C
Please show me how to do the equivalent of https://github.com/stillwwater/raycaster/blob/master/src/boo... in C. There are many examples that are impossible in C, I just picked an obvious one.
shric··on Flappy Bird in 1000 lines of C
Too many people have replied to my post saying I'm wrong in some way, so rather than replying the same thing to almost every single comment, I'm going to reply to myself.

My original response was to the person claiming that it was basically cheating to use SDL. You need abstraction, so there is nothing wrong with having SDL in the way.

Someone said that it's C all the way down. It's not. The Linux kernel is not 100% C and it cannot possibly be.

There are no C facilities to:

- Read a keystroke and/or mouse (required for Flappy Bird) directly. C only supports reading from the stdin and stdout streams.

- Generate graphics (more on this below).

As I mentioned in the original post, some operating systems let you write straight to graphics memory.

While you can technically do this in C with a pointer to an address, you're still going to have to issue e.g. a BIOS call to set the mode to something other than the default text mode. But we can let that slide.

There is absolutely no way to do "C all the way down" when reading and writing I/O ports, executing interrupts, etc. which is required for I/O beyond just the buffered stdout and stdin streams that C provides.

Linux of course provides things in /dev, but they're also not C all the way down.

If there was a hypothetical computer which supported all graphics and other I/O via reading and writing to/from streams, then sure, but I don't think that computer exists.

I know very well what C can and cannot do, I've been using it for 40 years.

← PreviousPage 4 of 19Next →