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 :)
HN user
patrulek
Yes you need, but the initial problem here were sequential loads from L1 into registers.
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?
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.
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.
Cooking another crypto bot on Solana, as with constantly changing market conditions, my previous bot basically stopped earning anything.
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.
It isnt programmers fault though.
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?
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?
This is why im using ramdisk for a browser cache.
To be honest, you can feel code is too complex even without reading a single line of it.
So its true what they were saying about bitcoin. It is used by criminals.
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.
But it would be also possible that sentinel value used for comparison changed because of bitflip, not data structure used by program.
Waiting for THChat
I would be angry too. Its definitely not that micro.
Not usable for me because im using "snake/slide typing".
If you cant break something, steal it.
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.
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?
Understood. I’ll end the conversation here. If you change your mind in the future, you can simply start a new chat. Take care.
It seems that in spec-driven development era "reverse enginnering" gonna change its meaning...
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).
Lack of gladiators?
Study made by far left researchers?
Two sentences? This is the whole article or am i blind?
Number changes with every refresh though.
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?
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.