HackerTrans
TopNewTrendsCommentsPastAskShowJobs

superdimwit

no profile record

comments

superdimwit
·2 jaar geleden·discuss
Thanks!
superdimwit
·2 jaar geleden·discuss
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?).
superdimwit
·3 jaar geleden·discuss
https://eli.thegreenplace.net/2012/07/12/computed-goto-for-e...

is a good summary
superdimwit
·3 jaar geleden·discuss
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.
superdimwit
·3 jaar geleden·discuss
Try dear-imgui + implot. There are Python bindings