Better HN
topnewbestaskshowjobs
Log inSign up

superdimwit

210 karma · joined Apr 9, 2018 (8y ago) · 76 submissions

Submissions

comment 2y ago · link · parent

Thanks!

comment 2y ago · link · parent

Clang recently got a new calling convention that makes these tail calls much cheaper (avoids the need for the caller to preserve some registers). I can never remember the name - it’s either preserve_all or preserve_none (whose perspective is the preservation from?).

comment 3y ago · link · parent

https://eli.thegreenplace.net/2012/07/12/computed-goto-for-e...

is a good summary

comment 3y ago · link · parent

On 1: this small amount of overhead matters because the amount of work you do on each opcode can be tiny. The extra jump could be 20% of your runtime! On 2: yes, this helps the indirect branch target predictor. In a real program you’ll often get repeated sequences of opcodes (increment, then compare) that can be predicted. These branch predictors can be pattern based.

comment 3y ago · link · parent

Try dear-imgui + implot. There are Python bindings

6.

Show HN: A site for competitive performance programming and micro-optimisation(highload.fun ↗)

3 points · by superdimwit · 3y ago · discuss

comment 4y ago · link · parent

There’s a Hello World on the page

comment 4y ago · link · parent

30 years?

comment 4y ago · link · parent

Agreed, autovec is in my experience where clang really shines.

comment 4y ago · link · parent

Disappointed this wasn't an article about bath houses

comment 4y ago · link · parent

One nice property is their stable addressing. A linked list element won't move once allocated.

comment 4y ago · link · parent

Amsterdam is good for options market making, most of the techniques in this book come up a lot in trading

comment 4y ago · link · parent

reinterpret_cast comes up a lot when handling binary protocols - e.g. reading a message struct off a buffer / packet. How would this be handled in Rust or otherwise without copying the data?

comment 5y ago · link · parent

You can just define a generic fallback method like `eff(p, d1, d2) = eff(p, d2, d1)`

comment 5y ago · link · parent

Could a difference in alignment of the hot loop also have an effect here?

comment 5y ago · link · parent

QR, Cholesky

comment 5y ago · link · parent

I most often need to restart the REPL when redefining structs.

comment 5y ago · link · parent

If they don't, and can't demonstrate that they're doing something else useful with that money, investors get angry and fire the board.

comment 5y ago · link · parent

I am hopeful that Julia should be able to get this cross-session caching of compiled code. Would make restarting the REPL (to e.g. add a field to a struct) much less frustrating.

comment 5y ago · link · parent

even better, don't leave it as a comment. Leave it uncommented, as a syntax error, so when you try and run your code on Monday morning you are reminded of it!

comment 5y ago · link · parent

Big if/else lists will often get compiled into a jump table anyway.

comment 5y ago · link · parent

Go Channels?

comment 5y ago · link · parent

ARKK is far from passive

comment 5y ago · link · parent

A low-latency GC would also be great. But again, the JVM only has that due to many millions of dollars spent over decades.

comment 5y ago · link · parent

In your experience, what are the current limitations?

comment 5y ago · link · parent

Who writes the third party library, though?

comment 5y ago · link · parent

It does look like the benchmarks include compilation time.

comment 5y ago · link · parent

You can memory map Arrow

comment 5y ago · link · parent

or a husband?

comment 5y ago · link · parent

Exactly, and I don't see how it would work any less well in a to café than VScode remote SSH.
123