HNHacker News
TopNewBestAskShowJobs

smatija

225 karma · joined December 21, 2022

ICCF correspondence chess master
submissionscomments
smatija··on Django and Postgres for the Busy Rails Developer
You can use Hotwire libs with Django - integrating stimulus into my django project wasn't any more complicated than integrating tailwindcss for example.
smatija··on Developer wrote 25k lines of Neovim plugin code using phone and touchscreen
Important to note that this too big to fail point occurs very quickly in some cases. Non-IT companies are generally very risk/change averse in regards to their IT infrastucture (and for very good reason, see e.g. [1] and [2]). So if you are capable enough to learn their legacy codebase you will be very quickly the only person worldwide capable of maintaining it.

[1] - https://www.cio.com/article/274138/enterprise-resource-plann...

[2] - https://www.theregister.com/2024/12/06/birmingham_erp_budget...

smatija··on Developer wrote 25k lines of Neovim plugin code using phone and touchscreen
Word of mouth.

The point is to realize that almost every non-IT company of certain size (lets say 50-100 employees+) that started before SAP&similiar became popular in your country has large body of custom software and that the guy who built it is probably thinking about retiring.

Minus is of course that most custom software is pretty horrible from code quality standpoint, so you need to have a high tolerance for debuging and that you need to have a little knowledge of everything (specialisation is not possible).

smatija··on Developer wrote 25k lines of Neovim plugin code using phone and touchscreen
I think this experience is true if you work in software companies.

I work for a factory maintaining it's existing custom ERP and building new software for it (basically imagine a programmer consultant for 1 costumer just with regular contract). Mix of maintaining legacy code, writing new one and servicing hardware is dynamic enough not to be bored and I have a lot of independence in the job. It's comfy af.

smatija··on Petnames: A humane approach to secure, decentralized naming
So you can trust friend of a friend only after awaiting him (with apologies to https://journal.stuffwithstuff.com/2015/02/01/what-color-is-...)?
smatija··on Charset="WTF-8"
w3c recommends adding a separate field for pronounciation - see e.g. paragraph after second image in https://www.w3.org/International/questions/qa-personal-names...
smatija··on Something weird is happening with LLMs and chess
In my experience you are lucky if it manages to give you 10 legal moves in a row, e.g. https://news.ycombinator.com/item?id=41527143#41529024
smatija··on Former President Trump has won the presidency
Pretty sure no one in Vietnam appreciates USA use of Agent Orange.
smatija··on Trump wins presidency for second time
Tell that to 12 million victims of US in Korea, Iraq, Vietnam, Afghanistan and Pakistan.
smatija··on Trump wins presidency for second time
Historically main problem of a large part of the world (from Vietnam to Yemen) is USA bombing them ...
smatija··on Async Rust is not safe with io_uring
This reference at the bottom of article was very interesting to me: https://without.boats/blog/io-uring/

"So I think this is the solution we should all adopt and move forward with: io-uring controls the buffers, the fastest interfaces on io-uring are the buffered interfaces, the unbuffered interfaces make an extra copy. We can stop being mired in trying to force the language to do something impossible. But there are still many many interesting questions ahead."

smatija··on Buy payphones and retire
In Slovenia local farmers started using vending machines for homegrown milk, eggs, pig fat and similiar produce. While they were very rare just a few years ago, now they are very commonplace, even in smaller towns.
smatija··on Pretty.c
I tried switching to US a few times, but every time muscle memory made me give up soonish - especially since there are big benefits to using same keyboard layout as other people in your office are using.

Also practically everytime I need to write a comment, commit message or email I need my č, š and ž. It's kinda nice to have them only a single keypress away.

smatija··on Pretty.c
Just as example, on my slovenian QWERTZ layout: [ - altgr+f, ] - altgr+g, { - altgr+b, } - altgr+n, \ - altgr+q, | - altgr+w, ~ - altgr+1.

You get used to them, though you start feeling like a pianist after a short coding session. The one most annoying for me are the fancy javascript/typescript quotes, which I have to use all too often: ` - altgr+7.

smatija··on I give you feedback on your blog post draft but you don't send it to me (2021)
"Poor Faulkner. Does he really think big emotions come from big words? He thinks I don’t know the ten-dollar words. I know them all right. But there are older and simpler and better words, and those are the ones I use." - Hemingway
smatija··on Notes on OpenAI's new o1 chain-of-thought models
While it passes at "How many 'r' are in strawberry" test, it still halucinates quite a lot in nontrivial questions.

The question I always ask GPT is about chess: "Isolani structure occurs in two main subtypes: 1. black has e6 pawn, 2. black has c6 pawn. What is the main difference between them? Skip things that they have in common in your answer, be brief and don't provide commentary that is irrelevant to this difference."

In isolani structure white has d4 pawn, while he doesn't have either c or e pawns. Black has either e6 or c6 pawn, but he doesn't have d-pawn.

Correct answer would be, that in structure with e6 black king is a bit safer, since f7-a2 diagonal is covered by e6 pawn, which is also controlling f5 point.

o1 answered: "With Black's e6 pawn, the d5 pawn is supported from behind, but Black's light-squared bishop is restricted by the pawn chain, and the open c-file offers White opportunities for pressure. With Black's c6 pawn, the d5 pawn is supported from the side, allowing Black's light-squared bishop more freedom to develop, but the pawn on c6 can become a target, and the absence of an e6 pawn leaves e6 more vulnerable."

while d5 pawn is simply not present in this structure.

So I gave it a little hint: "which diagonal is weakened by absence of c6 pawn and which by absence of e6 pawn? Which diagonal is more meaningful and why?"

And got a smart sounding answer: "In the Isolani structure:

Absence of Black's c6 pawn (Black has an e6 pawn):

Weakened Diagonal: The c8–h3 diagonal (the long light-squared diagonal) is weakened. Reason: Without the pawn on c6, this diagonal becomes open, allowing White's light-squared bishop or queen to target critical squares like d5 and f7, and to potentially infiltrate via c4. Absence of Black's e6 pawn (Black has a c6 pawn):

Weakened Diagonal: The f1–a6 diagonal (the long dark-squared diagonal) is weakened. Reason: The missing e6 pawn leaves this diagonal open, enabling White's dark-squared bishop to exert pressure on b7, d5, and potentially attack Black's queenside. Which Diagonal is More Meaningful and Why?

The f1–a6 diagonal (weakened by the absence of Black's e6 pawn) is more significant. Here's why:

Control Over Critical Squares: This diagonal allows White to target Black's central and queenside weaknesses more effectively, especially the b7 pawn and the d5 pawn, which are crucial in the Isolani structure.

Bishop Activity: White's dark-squared bishop becomes a powerful piece, influencing the game by controlling key squares and supporting potential pawn advances like d4–d5.

Pressure on Black's Position: The open f1–a6 diagonal increases tactical opportunities for White, such as pinning pieces or creating threats that are difficult for Black to parry without the defensive support of the e6 pawn.

In contrast, while the weakened c8–h3 diagonal (due to the absence of c6) does offer White some opportunities, it is generally less impactful. The light-squared bishop's influence along this diagonal doesn't pressure Black's critical central pawns as directly, and Black can often more easily defend against threats on light squares.

Summary: The absence of Black's e6 pawn weakens the f1–a6 diagonal, which is more meaningful because it enhances White's attacking prospects and puts greater pressure on Black's central and queenside defenses."

The problem is though that not even the first few lines of this answer ("The c8–h3 diagonal (the long light-squared diagonal) is weakened. Reason: Without the pawn on c6, this diagonal becomes open") make sense, since c6 is not on c8-h3 diagonal.

smatija··on Show HN: Tailwind Template Directory
For me it's just a few seconds, but my css needs are rather compact. Luckily I don't have to change styles daily though.
smatija··on Show HN: Tailwind Template Directory
Agreed, I find tailwind defaults sensible, but it tends to make templates quite unreadable.

My compromise with it is just using @apply in css files:

styles.css:

.button { @apply px-2 py-1 rounded-sm shadow-md hover:shadow-lg font-bold cursor-pointer block; height: 32px; }

.button.create { @apply bg-green-700 text-white; }

template.html:

<button class="button create">...</button>

smatija··on Microsoft AI spying scandal: time to rethink privacy standards
Just look at atrocities USA is commiting in Yemen today. Or in Palestine proxied through Israel.
smatija··on Chickens in Trees
My mother's chickens once caught a snake, stampeded it to death and then promptly ate it. Dinosaurs for sure.
smatija··on Leaving Substack
Well Ghost is free if you self-host - but I agree that while hosting it is simple, it is still a barrier to entry.
smatija··on Calculus Made Easy
I would argue that internet makes good resources even harder to find - there is so much of everything, with no curation, that any resource's chance of gaining long term recognition is practically zilch.
smatija··on Calculus Made Easy
The problem isn't that resources like this didn't exist in the past (Calculus Made Easy was written in 1910 after all), problem is that they aren't wellknown - and that is unlikely to change even today.
smatija··on March marks yet another record in global heat
In Slovenia weather is like a rollercoaster this year. 24th March we had snow and yesterday we had record high 32°C.

Forecast is showing sub zero temperatures in the morning will be back in a bit more than a week.

smatija··on Avoid blundering: 80% of a winning strategy
They don't - ratings of everyone under 2000 got increased, according to formula: player rating + 0.4 * (2000 - player rating).

So everyone now has rating above 1400, except if their rating fell under in meantime, in which case they will be removed from next rating list.

smatija··on Avoid blundering: 80% of a winning strategy
It is since new rating regulations, which are in effect as of 2024: https://handbook.fide.com/chapter/B022024

See 7.1.2. Ratings aren't tracked by clubs even when players are under this cutoff - all games for rating are submitted to FIDE.

smatija··on Avoid blundering: 80% of a winning strategy
Minimum FIDE rating is 1400, so you really cannot be 800 FIDE. Also the gap between online and FIDE ratings is closer than people think.
smatija··on Avoid blundering: 80% of a winning strategy
Chess.com isn't really more sophisticated than lichess - it's only trying to appear so.

It's definition of blunder etc is still based only on engine evaluation. For example it marks as briliant all sound sacrifices, even the most routine ones. This is good marketing, but I doubt it's good analysis.

smatija··on Avoid blundering: 80% of a winning strategy
When playing against much better player there are two possible strategies in practice:

1. try to simpifly position as much as possible and hope for a draw (and inevitably lose the endgame due to playing too passively);

2. complicate position so much that neither you nor your opponent can calculate or understand it, then hope that your opponent will mess up before you will.

Take from that what you will.

smatija··on Avoid blundering: 80% of a winning strategy
I agree - all attempts at automatic classification of blunder have same problem. This is why analysing games without engine still matters and is going to matter for foreseable future.

Don't forget also impact of time control - shorter games lead to more mutual mistakes. While in 90+30 first big blunder should decide the game, in blitz it's just the beginning.

Amusing example is Chessbrah speedruning to 2000, while hanging queen in every game: https://www.twitch.tv/videos/593176969

← PreviousPage 2 of 3Next →