Better HN
topnewbestaskshowjobs
Log inSign up

patrulek

90 karma · joined Jun 14, 2022 (4y ago) · 126 submissions

Submissions

comment 4mo ago · link · parent

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 :)

comment 4mo ago · link · parent

Yes you need, but the initial problem here were sequential loads from L1 into registers.

comment 4mo ago · link · parent

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?

comment 5mo ago · link · parent

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.

comment 5mo ago · link · parent

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.

comment 5mo ago · link · parent

Cooking another crypto bot on Solana, as with constantly changing market conditions, my previous bot basically stopped earning anything.

comment 5mo ago · link · parent

> 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.

comment 5mo ago · link · parent

It isnt programmers fault though.

comment 5mo ago · link · parent

> 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?

comment 5mo ago · link · parent

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?

comment 6mo ago · link · parent

This is why im using ramdisk for a browser cache.

comment 7mo ago · link · parent

To be honest, you can feel code is too complex even without reading a single line of it.

comment 7mo ago · link · parent

So its true what they were saying about bitcoin. It is used by criminals.

comment 7mo ago · link · parent

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.

comment 8mo ago · link · parent

But it would be also possible that sentinel value used for comparison changed because of bitflip, not data structure used by program.

comment 8mo ago · link · parent

Waiting for THChat

comment 8mo ago · link · parent

I would be angry too. Its definitely not that micro.

comment 11mo ago · link · parent

Not usable for me because im using "snake/slide typing".

comment 11mo ago · link · parent

If you cant break something, steal it.

comment 1y ago · link · parent

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.

comment 1y ago · link · parent

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?

comment 1y ago · link · parent

Understood. I’ll end the conversation here. If you change your mind in the future, you can simply start a new chat. Take care.

comment 1y ago · link · parent

It seems that in spec-driven development era "reverse enginnering" gonna change its meaning...

comment 1y ago · link · parent

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).

comment 1y ago · link · parent

Lack of gladiators?

comment 1y ago · link · parent

Study made by far left researchers?

comment 1y ago · link · parent

Two sentences? This is the whole article or am i blind?

comment 1y ago · link · parent

Number changes with every refresh though.
12345