HNHacker News
TopNewBestAskShowJobs

shric

1,485 karma · joined November 6, 2012

submissionscomments
shric··on Baba Is You: A puzzle game where the rules are objects you can manipulate
Discussed a few days ago (234 points, 73 comments): https://news.ycombinator.com/item?id=40689759
shric··on Address Sanitizer Internals
"For this article, you’ll need the following knowledge:

Basic C understanding (Memory, Stack, Heap, Syscall)."

Obviously, since C doesn't prescribe any kind of heap, stack or syscall behavior (or if they even exist), I assume the author meant something like "Basic understanding of how C is often implemented on certain operating systems and hardware".

shric··on POV-Ray – The Persistence of Vision Raytracer (2021)
Nothing, except it's thousands (literally) of times slower than alternatives because it uses primitives instead of meshes and therefore doesn't lend itself well to GPU parallelization
shric··on The rarest move in chess [video]
Yes, I've done it many times!

At the time of writing based on total games played at https://database.lichess.org/ one in every 272,369 games are mine :p

shric··on The rarest move in chess [video]
He stated that he tried using master tournament games but the dataset was way too small.

But yes indeed, the single example game he showed was indeed a result of the winner playing very silly moves and the loser allowing it rather than resigning.

shric··on The rarest move in chess [video]
The creator admits it early on -- it's measuring rarity based on the specific notation everyone uses, which greatly influences the classification of rarity.

Fundamentally all chess moves are a piece moving from one source to another destination including:

- castling as a king move with a distance greater than 1

- pawn moves to the 8th or 1st rank with the additional datum of a new piece

- en passant is the same as a regular pawn capture, it just requires the victim pawn to have moved two squares previously.

Algebraic notation also has an arbitrary and reasonable amount of extraneous detail despite dropping the source location if it's unambiguous.

For example, the captures (x), check(+) and checkmate(#) symbols are all unnecessary given the previous state of the board is always known. With en passant it's also unnecessary to have a special symbol indicating an en passant capture, and indeed there isn't one.

I was initially hoping to get some insight on e.g. which pairs of squares had the fewest moves for a given piece etc.

That being said, I thoroughly enjoyed the video. It was beautifully illustrated and explained everything clearly.

shric··on Microsoft Recall should make you consider Linux
Tell that to anyone wanting a performant Wayland experience with an Nvidia GPU and Sway while maintaining secure boot.

It's doable, but it doesn't "just work".

shric··on GNU Nano 8 comes with modern key bindings
Is there any reason to use nano over vim other than learning curve?

If nano ever gets run for some reason (e.g. I forgot to set EDITOR) I immediately quit and launch vim.

I readily admit nano is easier for beginners to get something done, but I don't see any value in it if you already know vim enough for basic edits.

shric··on The evolution of a Scheme programmer (2020)
(2020)
shric··on Making a 3D modeler in C in a week
> Arrays in C have length information. Pointers do not.

This is 100% correct. The parent of the parent is confused (or is just using terminology incorrectly) as are the current siblings to my comment.

One post claims pointers carry length information so that free works. This has nothing to do with pointers, it has to do with the implementation of malloc and friends. It's only a promise of a successful malloc that you can free, nothing to do with the pointer other than it was returned by malloc. Pointers can point to all sorts of things, the only information they intrinsically have are the type of the object they point to and its address.

Two posts claim a function can return an array of bytes. This is impossible in C. You can't return an array of bytes. You can return a pointer that might point into a continuous sequence of bytes. You could also return a struct whose member is an array, but that's rarely done. When you return (or pass) what looks like an array syntactically, it is converted to a pointer to its first element.

Arrays, on the other hand, always carry length information via the sizeof operator. A special hand waving case would be you could define a pointer to an array (not a pointer to the first element of an array), so in effect the length is contained within the pointer type. E.g. char (*foo)[42] declared foo as a pointer to an array of char with length 42.

shric··on Bicycle use now exceeds car use in Paris
I bought my current bike in 2014 for $200, still my daily commuter.
shric··on Psychiatric risks for worsened mental health after psychedelic use
You're technically correct (the best kind of correct)!

However, I don't think any materialist would deny laws of physics exist. We might say that how materials interact with each other is an intrinsic property of material itself, just as an electron behaves as though it has a certain mass.

What definition of material would you use that separates it from its laws?

shric··on Moderate Exercise Linked to Lower Depression Risk
It's clear to me personally (N=1) that exercise is fantastic to reduce/prevent depression, but I don't see any indication this study showed causality (nor does it claim to, to be fair).

People who are depressed are less likely to have the initiative/will power to get out of bed and do some moderate exercise.

shric··on Psychiatric risks for worsened mental health after psychedelic use
I don't know.

The universe does not know or care about our laws and they are incomplete.

For example, we have no idea how consciousness works, so at this point we stop at "I don't know", rather than inventing explanations.

I don't know if consciousness is computable -- I suspect it isn't.

If it is not computable then we cannot come up with laws to explain it.

Or maybe the whole universe is computable but its kolmogorov complexity is larger than its information capacity.

shric··on Psychiatric risks for worsened mental health after psychedelic use
I believe they're our current best approximation to how the universe behaves based on our empirical observations.
shric··on Psychiatric risks for worsened mental health after psychedelic use
I'm an extreme materialist, I don't believe in gods or spirits or anything of the sort. I don't even believe in the magic some people call "free will".

I first tried LSD about 10 years ago and have taken various forms of psychedelics once or twice a year since. Some of them were, without a doubt, the most profound experiences of my life. You're right about the vague transcendentalist nonsense. The problem is there are no words to describe it adequately.

Despite only having pleasant experiences myself, I would never encourage any friend or stranger to try them. That is something only they can decide with their own research and risk appetite. There are absolutely serious potential consequences.

I think the worst consequence for me is that I have started to like weird music like psytrance even when sober.

shric··on [dead]
Why do you link to the github.io which is a screenshot instead of directly to https://yesnotarot.org/?
shric··on Show HN: I3wm Alt+Tab Workspace Switcher
One big reason I use i3 is because I find the Windows and macOS style alt/cmd tab incredibly unintuitive. It is not easy to consistently predict how many times to press it to get the desired result.

With i3 I bind keys to specific things (including workspaces) so I can switch instantly.

shric··on ADHD linked to evolutionary success in ancient humans
Fixed.

For those not familiar with the slang, "Scooby" is apparently a response to say one doesn't understand what you're talking about and could use a clue.

However, even a Google search on the typo of "repoructive" was able to reveal what I meant with zero context.

shric··on ADHD linked to evolutionary success in ancient humans
ADHD doesn't need to be free of negatives as long as it improves survival and reproductive chances.

The inability to focus and lack of memory recall, for example, may either not matter or just be negligible compared to other factors.

While ADHD does lead to focus problems, people with ADHD are usually just as good at focusing as anyone else when their life depends on it.

shric··on Everyone Wants Your Email Address. Think Twice Before Sharing It
I've been using the foo+bar@mydomain trick for over 20 years. I have given this form of email address to well over 1,000 companies and I get exceptionally little spam to foo@mydomain.
shric··on How to commit part of file in Git
Not the GP but we tend to use decently small and meaningful commits to make PRs easier to review. They then get squashed, so you can only (easily) revert the whole PR.
shric··on The existence of a new kind of magnet has been confirmed
Well I wasn't sure if it would be downvoted due to low effort, but it got 17 points, so thanks :p
shric··on Firefly III: A free and open source personal finance manager
How easy is it to move data from YNAB to this? i.e. transactions, categories and accounts?
shric··on The existence of a new kind of magnet has been confirmed
It looks like this is already a polarizing topic
shric··on Sora: Creating video from text
Let's say, for the sake of argument, AI could generate absolutely perfect invented videos of arbitrary people doing literally anything. The consequence will be that video will no longer be taken seriously as evidence for crimes. People will also quickly not trust video calls without an extreme level of verification (e.g. asking about recent irl interactions, etc.)

Yes some people will be scammed as they always have been, such as the recent Hong Kong financial deepfake. But no, millions of people will not keep falling for this. Just like the classic 419 advanced free fraud, it will hit a very small percentage of people.

shric··on .ai website registrations are a windfall for tiny Anguilla
I realize you're referring specifically to general .au, but I don't think the average person will think to try foo.au instead of foo.com.au and .com.au isn't opened up to my knowledge. The name must be derived from your registered Australian business (ACN or ABN).

I've had a .net.au since 1999 and the same rules apply there.

shric··on The failure of self-checkout technology
The ones in Australia aren't perfect though. I use Coles and Woolworths mostly in the Sydney CBD:

- bad touch screens that lag.

- even more lag when you're trying to pay.

- frequent (about 60% of visits) requirement for staff because it disagrees that I've put something in the bagging area, or some other reason

- unnecessary and slow modal dialogs about rewards programmes, receipt etc. I wish there was just a "leave me alone and let me pay by card" button that just lets me tap and pay.

I still use them most of the time because there is almost never a queue, but if the human checkout lines are empty or almost empty I'll use them instead, it's much faster.

shric··on The Book of Shaders (2015)
I didn't make any claim around the quality of "The Book of Shaders", I was objecting to the unqualified implication of the OP that a book is low quality due to being incomplete.

If OP had expanded on why it was low quality other than just saying it's incomplete then I wouldn't have raised it.

shric··on The Book of Shaders (2015)
Books of this nature don't need to be completed to be useful and high quality.
← PreviousPage 6 of 19Next →