HackerTrans
TopNewTrendsCommentsPastAskShowJobs

sYnfo

no profile record

Submissions

[untitled]

1 points·by sYnfo·قبل سنتين·0 comments

CRuby writes files with 40% fewer syscalls than CPython

blog.mattstuchlik.com
3 points·by sYnfo·قبل سنتين·0 comments

Recording and visualising the 20k system calls it takes to "import seaborn"

blog.mattstuchlik.com
111 points·by sYnfo·قبل سنتين·53 comments

Counting CPU Instructions in Python

blog.mattstuchlik.com
2 points·by sYnfo·قبل سنتين·0 comments

[untitled]

1 points·by sYnfo·قبل سنتين·0 comments

comments

sYnfo
·قبل سنتين·discuss
You might find the syscall tracing functionality of Cirron useful: https://github.com/s7nfo/Cirron
sYnfo
·قبل سنتين·discuss
FYI vien [0] figured out that simply compiling with "-static -fno-pie" and _exit(0)-ing at the end puts the solution presented here to 15000 points and hence #4 on the leaderboard. Pretty funny.

[0] https://news.ycombinator.com/user?id=vient
sYnfo
·قبل سنتين·discuss
Neat! I'll add the best solution without explicit SIMD/asm in this thread to the post after I wake up, it's a great datapoint.
sYnfo
·قبل سنتين·discuss
14 already assumes unsigned accumulator! 255 [accumulator capacity] / (2 [shuffle-adds] * 9 [highest digit value]) ~= 14
sYnfo
·قبل سنتين·discuss
Map vs. territory. The challenge, as defined by the system the competition runs on, is to get 3 correct responses in a row. That's it.
sYnfo
·قبل سنتين·discuss
1) if you set BATCH_SIZE > 14 sums_acc may overflow

2) chunks with too many small numbers cannot be processed with just 2 shuffle-adds

3) (not mentioned in the post) HighLoad limits the size of the source code you can submit, so you can't put all possible values in the look-up table
sYnfo
·قبل سنتين·discuss
To be clear, it’s not dereferencing unmapped memory, I just haven’t shown how it’s being mapped, because it’s a little complex. As I note in the post, you can imagine as if I mmap all the necessary addresses at the start of the program.