HNHacker News
TopNewBestAskShowJobs

patrulek

90 karma · joined June 14, 2022

submissionscomments
patrulek··on Quadrupling code performance with a "useless" if
2 cycles vs ~5 cycles is still nice improvement plus its more deterministic (but not that fast in optimistic case; better in pessimistic case) than `if` appraoch and probably easier to "invent" and reason about. Definitely not that cool as your `if` solution though :)
patrulek··on Quadrupling code performance with a "useless" if
Yes you need, but the initial problem here were sequential loads from L1 into registers.
patrulek··on Quadrupling code performance with a "useless" if
You can utilize MLP (memory-level parallelism) and reduce memory latency by reading whole 8 bytes of next_j at every iteration. Just do something like

`uint64_t packed_next_j = *(uint64_t*)(&next_j[i])`

and then just shift right to find proper j. This way you remove dependency on previous iteration. Did you tried that?

patrulek··on Ask HN: What are you working on? (June 2026)
Its one of the options. Other is sniping new pools and copy trading. Im trying to develop zero/same-slot tx landing with shredstreams first, because its basically needed to be competitive.
patrulek··on Ask HN: Will programmers write more efficient code during the memory shortage?
I would say that in most cases you dont need fancy algorithms and data structures, you just need to stop treating RAM as a rough notebook. Allocating in a loop, not reusing buffers and pointer chasing are a performance killers and are quite easy to avoid before they are introduced to code. Other than that, just be more thoughtful about network and disk usage and nested loops. Its a sum of stupid things that make your program slow.
patrulek··on Ask HN: What are you working on? (June 2026)
Cooking another crypto bot on Solana, as with constantly changing market conditions, my previous bot basically stopped earning anything.
patrulek··on LLMs are eroding my software engineering career and I don't know what to do
> For example I have decades of Software experience, but wont know where to even begin what OP did.

Simple, you start by asking LLM for more info.

patrulek··on LLMs are eroding my software engineering career and I don't know what to do
It isnt programmers fault though.
patrulek··on LLMs are eroding my software engineering career and I don't know what to do
> mistakes as the programmers: taking 'rules' literally

Isnt it how we make stable, deterministic and predictable system? How do you want to create one with ambiguous rules?

patrulek··on Domain expertise has always been the real moat
Software engineering is a domain on its own, just a technical, not a business one. Good luck with looking for a once in a million data race or deadlock bugs. Good luck with synchronizing system distributed over a whole globe. And good luck with keeping your domain knowledge up-to-date while developing and maintaining your vibecoded system. Assuming you can even provide enough details and deterministic specification to AI agent, because understanding business and having knowledge is not equal to being able to write down specific and concise rules to make a system out of it.

And if you think LLM are (or will be) good enough to not care about software part, what makes you think that your domain will not be completely resolved by AI?

patrulek··on How to Write to SSDs [pdf]
This is why im using ramdisk for a browser cache.
patrulek··on How Complex is my Code?
To be honest, you can feel code is too complex even without reading a single line of it.
patrulek··on Bitcoin miners are losing on every coin produced as difficulty drops
So its true what they were saying about bitcoin. It is used by criminals.
patrulek··on How Complex is my Code?
You dont need to measure the code complexity, you can completely hallucinate those numbers if you feel that code is too complex and then watch how LLM will respond.
patrulek··on 10% of Firefox crashes are caused by bitflips
But it would be also possible that sentinel value used for comparison changed because of bitflip, not data structure used by program.
patrulek··on GPT‑5.3 Instant
Waiting for THChat
patrulek··on “Microslop” filtered in the official Microsoft Copilot Discord server
I would be angry too. Its definitely not that micro.
patrulek··on Show HN: A 2-row, 16-key keyboard designed for smartphones
Not usable for me because im using "snake/slide typing".
patrulek··on Testing shows automotive glassbreakers can't break modern automotive glass
If you cant break something, steal it.
patrulek··on Ask HN: What Are You Working On? (Nov 2025)
Polishing my dashboard for tracking profit on Solana blockchain for set of wallets: https://imgur.com/813aQsO

I want to extend it with a simple overview of most recent profitable wallets to look for new "metas" that i could profit on. This project may or may not end as open source eventually, but i currently keep it private.

patrulek··on Ask HN: I underestimated how lonely building solo can be
If you're looking for feedback and ideas you can just ask ChatGPT. Or maybe you just crave human interaction and doing something together with other human?
patrulek··on I do not want to be a programmer anymore
Understood. I’ll end the conversation here. If you change your mind in the future, you can simply start a new chat. Take care.
patrulek··on We reverse-engineered Flash Attention 4
It seems that in spec-driven development era "reverse enginnering" gonna change its meaning...
patrulek··on Development speed is not a bottleneck
Im not a scientist, just a freelancer (kind of) and its similar for me. I know probably only 2 langauges fluently enough that i could write in them without constantly checking for syntax/docs, but over my whole programming journey i got to know multiple languages with different syntaxes, coding styles and patterns, so i can easily read code written in multiple languages and know whether given code will do what i want (and even if i wouldn't, LLM can explain the code for me and in the worst case send me to the documentation to validate it by myself).

Asking LLM for a code and then read/review it is a huge speed up for me in a lot of cases comparing to when i would need to write the same thing by myself (but i agree it may not work well in a big/complex systems... yet).

patrulek··on A Roman Gladiator and a Lion Met in Combat. Only One Walked Away
Lack of gladiators?
patrulek··on Far-right populists much more likely than the left to spread fake news – study
Study made by far left researchers?
patrulek··on The young, inexperienced engineers aiding DOGE
Two sentences? This is the whole article or am i blind?
patrulek··on Using Linear Programming to find optimal builds in League of Legend
Number changes with every refresh though.
patrulek··on Why can't programmers be more like ants? Or a lesson in stigmergy (2015)
> Why Can't Programmers Be More Like Ants?

Because ants dont have business units. Most of us, programmers, are slaves to the business and we have to do what they want from us, not what we want or think is optimal to do. And the requirements can change often. How fast those changes would be notified by others in decentralized "ants approach"? Would the business survive with this approach?

patrulek··on How outdated information hides in LLM token generation probabilities
I think i had similar case yesterday for Python script. It gave me code for older version of a module, but when i pasted the error i got, it corrected itself and gave me proper solution for version i had installed.
Page 1 of 4Next →