163 karma · joined Apr 23, 2024 (2y ago) · 49 submissions
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
It seems with some JavaScript generated from Java via Gwt. Regardless, I prefer it over VSCode UI.
comment 2y ago · link · parent
This can’t be answered in general. Flamegraphs are measurements of what happened. But just like a ruler doesn’t tell you whether a given human is atypically short or tall for its species, a flamegraph can’t tell you which portion of the program takes too long a time. You need to have prior knowledge about data structures, algorithms, memory bandwidth etc in order to confront your justified expectations with the reality and be surprised with something. And it will all depend on the particular program you profile.
comment 2y ago · link · parent
Obviously in the next step you achieve enlightenment when you then write them as just one horizontal line, but most don’t reach that stage.
comment 2y ago · link · parent
comment 2y ago · link · parent
Alternatively:
1px = (1/96)in
1pt = (1/72)in = (1/72)*(96/72)*(72/96)in = (96/72)*(1/96)in = (4/3)*1px = (4/3)px
9pt = 9*1pt = 9*(4/3)px = 12px
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Values_...comment 2y ago · link · parent
The only problem is: Safari has piss-poor ad blockers. Firefox blocks custom system-wide keyboard shortcuts (on Mac).
comment 2y ago · link · parent
Correct me if I’m wrong, but I don’t think that you can guarantee a routine is constant-time by using intrinsics. You need asm for that. Asm that won’t be changed by the compiler. So you need to write an external asm file for that now, which is fair enough, but I just wouldn’t present intrinsics as all-around superior.
comment 2y ago · link · parent
2. The inset used by the headings is jarringly big.
3. The text is too wide for comfortable reading.
4. The fonts used in the body and in the figures don’t match.
Other than that, it’s probably the best-formatted Word document I’ve seen.
I wouldn’t want to use Word, because in my experience even outside of maths its UI is working against me. In particular it’s hard to recreate the same document in two different major versions of Word. The spacing, the sizes are always off. Moreover, I don’t like how formatting is very sticky based on where you position your text cursor. I constantly need to disable styling copied from some text nearby.
comment 2y ago · link · parent
FTFY. If you learn TeX from Knuth’s TeX book, along with the typographical concepts it works with, the error messages generated by documents written in raw TeX are understandable.
LaTeX on the other hand is what the metaprogramming-heavy Boost/STL libraries are to C or C++. Abandon all hope.