Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
ali_m
searching Neon…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
5 ms
·
1.
▲
by
ali_m
3mo ago
This is surely trolling? "Fullbody Ultrasonic Computational Tomography" has quite the acronym..
2.
▲
by
ali_m
9mo ago
Yes, this only prevents the callee from mutating it, it can't provide a strong guarantee that the underlying mapping won't be changed upstream (and hence MappingProxyType can't be washable).
3.
▲
by
ali_m
2y ago
https://www.google.com/search?q=dutch+angle
4.
▲
by
ali_m
3y ago
Yes, some screen readers such as JAWS can be configured to use a different voice to represent bold text, for example. They can also use non-speech sounds to represent things such as HTML elements. One of the things that really blew my mind
5.
▲
by
ali_m
3y ago
I remember reading somewhere in a different HN thread that some tools use pitch to represent indentation depth. There are all sorts of audio cues that can be used to represent syntactic information about code.
6.
▲
by
ali_m
3y ago
I think ctypes shines when it comes to fast prototyping, since you can iterate on the python bindings without a compilation step. It can also simplify distribution since the bindings can be pure python. Where it's arguably not so good
7.
▲
by
ali_m
3y ago
You can absolutely use numpy arrays with C functions using ctypes. Numpy has `numpy.ctypeslib` which takes care of some of the boilerplate involved.
8.
▲
by
ali_m
3y ago
If we're treating them as ordered containers then it really ought to be surprising and confusing that two dicts with the same elements in a different order are considered equal. Other ordered containers such as lists or tuples don&#x
9.
▲
by
ali_m
3y ago
Dicts already have confusing half-ordered, half-not semantics. As of 3.7 they are guaranteed to be insertion-ordered, but operators like == don't care about order.
10.
▲
by
ali_m
3y ago
I don't think it's that simple. No one acts 100% rationally all of the time. In this respect, addicts, children, and the mentally unwell differ from the rest of us by degree - they may have diminished responsibility for their own
11.
▲
by
ali_m
3y ago
One fairly common convention is to suffix with `_` to avoid shadowing, e.g. `input_`
12.
▲
by
ali_m
3y ago
And they are dancing, the board floor slamming under the jackboots and the fiddlers grinning hideously over their canted pieces. Towering over them all is the judge and he is naked dancing, his small feet lively and quick and now in doublet
13.
▲
by
ali_m
3y ago
I think there's a beauty in the bleakness. Some of the descriptions are just so vivid, like a charcoal sketch. > He came forward, holding his belt by one hand. The holes in it marked the progress of his emaciation and the leather at
14.
▲
by
ali_m
3y ago
No, you have to carry the fire
15.
▲
by
ali_m
3y ago
> I'm sure they'd love to carry guns around Some of them would, but perhaps not a majority. When the Police Federation most recently surveyed their members on this question in 2017 [1], 66% were opposed to routinely arming offi
16.
▲
by
ali_m
5y ago
I agree, although I'm not sure if it's partly an unflattering screenshot. To me some of the lowercase letters look a bit indistinct (especially the 'e's and 'a's).
17.
▲
by
ali_m
5y ago
I think one of the challenges with stellarators is that they are harder to simulate due to the twisted geometry of the chamber (with a tokamak you can often simulate a single 2D slice of the torus).
18.
▲
by
ali_m
5y ago
If you can turn it into a collection of STL or MSH files then you can simulate it in MuJoCo. There are some caveats - MuJoCo will use the convex hull of the mesh for collisions, so if you want to accurately simulate collisions with concave
19.
▲
by
ali_m
5y ago
> This is a completely new model that was entered in CASP14 and published in Nature.
20.
▲
by
ali_m
5y ago
> The default function itself should throw KeyError on values that are logically not in the dict (including, due to Python’s dynamically typed nature, those which are outside of the key domain because of type.) That's not how `defau
21.
▲
by
ali_m
5y ago
IMO defaultdicts are kind of dangerous, especially when passed as arguments to other calls that expect a normal dict. Silently returning a default value instead of a raising KeyError can lead to hard-to-find bugs. I generally prefer to use
22.
▲
by
ali_m
5y ago
I'm not sure what you're getting at - if you agree with me that "independent" is clearer than "agnostic" then what's the problem? I could understand your objection if you felt that the replacement word was
23.
▲
by
ali_m
5y ago
I think this is about clarity rather than political correctness. Used in this context, "agnostic" is basically just a bit of jargon that's used where what we really mean is "independent". The latter is a drop-in rep
24.
▲
by
ali_m
5y ago
Well, it's a policy document for Google developers, who presumably aren't free to just pick and choose which rules to follow. I personally agree with ~95% of the list, and the other 5% seems too trivial to be worth arguing over. I
25.
▲
by
ali_m
5y ago
I think the goal is to provide practical guidance to developers. Splitting it into N different lists seems strictly worse in this regard.
26.
▲
by
ali_m
5y ago
To be fair, it does say: > Ceph is a unified, distributed storage system designed for excellent performance, reliability and scalability. although it's annoyingly hidden away in a carousel. Carousels - not even once.
27.
▲
by
ali_m
5y ago
I'm in a very similar situation - I basically just slept through almost all of Good Friday. I really regret not spending a bit more for a flat with a garden or terrace - I used to mock my friends in London for being so proud of their p
28.
▲
by
ali_m
5y ago
The hyperactive, glossy aesthetic is definitely similar, although I'd place Iglooghost closer to hip-hop/grime (e.g. "White Gum"). Sophie sounds more like a mutated version of chart pop music.
29.
▲
by
ali_m
5y ago
Well you probably do still want the type checker to at least look at the public interfaces of any libraries you depend on, since you want it to enforce that you're calling into them correctly.
30.
▲
by
ali_m
5y ago
Type annotations may be part of the language spec, but the way they are enforced is not. Different type checking libraries have made different design choices (leniency vs strictness, type inference vs gradual typing etc.). Although these di
More ›