109 karma · joined Nov 7, 2018 (8y ago) · 51 submissions
comment 8mo ago · link · parent
def visit_bf(g):
n, children = g
yield n
if children:
iterators = [iter(visit_df(c)) for c in children]
while iterators:
try:
yield next(iterators[0])
except StopIteration:
iterators.pop(0)
iterators = iterators[1:] + iterators[:1]
The difference between DFS and BFS is literally just the last line that rotates the list of child trees.Python is a pretty mainstream language and even though the DFS case can be simplified by using `yield from` and BFS cannot, I consider that just to be syntactic sugar on top of this base implementation.
comment 8mo ago · link · parent
comment 8mo ago · link · parent
The SLEEF Vectorized Math Library [1] does this and therefore can usually provide accuracy guarantees for the whole floating point range with a polynomial order lower than theory would predict.
Its asinf function [2] is accurate to 1 ULP for all single precision floats, and is similar to the `asin_cg` from the article, with the main difference the sqrt is done on the input of the polynomial instead of the output.
[1] https://sleef.org/ [2] https://github.com/shibatch/sleef/blob/master/src/libm/sleef...
comment 1y ago · link · parent
So now you have a choice of either disabling SMT in the bios, or make sure the application correctly interprets the CPU topology and only spawns one thread per physical core. The former is often the easier option, both from software development and system administration perspective.
comment 1y ago · link · parent
In addition to needing SMT to get full performance, there were a lot of other small details you needed to get right on Xeon Phi to get close to the advertised performance. Think of AVX512 and the HBM.
For practical applications, it never really delivered.
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
Would this be possible to achieve in CSS? I presume having a larger box with the blur, but clipping it to a smaller box or something like that.
comment 2y ago · link · parent
Let's say each dimensions added has a finite set of N possible values. Then for k dimensions there are a total N^k possibilities.
Combinatorical growth would actually be faster still, scaling like k!.
comment 2y ago · link · parent
In the contrary, I expect the owners of an ESOP are very much in favor of having a well managed separate employee retirement fund. More so than in a publicly owned company.
But of course you are right that the risks factors of losing your income and losing your investment are pretty much 100% correlated for an ESOP. Some investment diversification is always a good idea.
comment 2y ago · link · parent
comment 2y ago · link · parent
But don't forget that while coding, the IDE, compiler, or whatever will correct your spelling mistakes in a very short feedback loop, with hardly any penalty for your output rate. That might mean that your dyslexic super programmer has never learned the value of carefully going over each text before submission.
comment 2y ago · link · parent
comment 3y ago · link · parent
comment 3y ago · link · parent
We support both government institutions in modelling critical infrastructure (think rail transport, storm surge defense, power grid) and multinationals in bringing their research software to production quality standards. The ideal candidate combines elements of a mathematical consultant, software architect, HPC specialist and all-round coder.
A bit of Fortran doesn't scare you? Come and join us building computational software at VORtech. https://www.vortech.nl/en/about-us/vacancies/scientific-soft... (If you are not already proficient in Dutch, you welcome the opportunity to learn Dutch quickly)
comment 4y ago · link · parent
That is not true. FTZ and DAZ are perfectly reasonable in a lot of scientific computing scenario's, where computation errors in general are closely scrutinized.