Live data from Hacker News

Viewing profile — ali_m

ali_m

HN member
Joined
Thu, Jun 07, 2018, 11:06 PM UTC
HN karma
71
Public activity
42 items

About ali_m

No profile information was provided.

Recent public activity

  1. comment
    Comment #48582831

    This is surely trolling? "Fullbody Ultrasonic Computational Tomography" has quite the acronym..

  2. comment
    Comment #46231368

    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 …

  3. comment
    Comment #41066288

    https://www.google.com/search?q=dutch+angle

  4. comment
    Comment #37932143

    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 a…

  5. comment
    Comment #37927875

    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 synt…

  6. comment
    Comment #37617013

    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 bindin…

  7. comment
    Comment #37616336

    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. comment
    Comment #37287143

    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. Ot…

  9. comment
    Comment #37286028

    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. comment
    Comment #36972649

    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…

  11. comment
    Comment #36798161

    One fairly common convention is to suffix with `_` to avoid shadowing, e.g. `input_`

  12. comment
    Comment #36318416

    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…

  13. comment
    Comment #36318374

    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 mark…

  14. comment
    Comment #36318264

    No, you have to carry the fire

  15. comment
    Comment #36154284

    > 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…

  16. comment
  17. comment
    Comment #30560300

    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).

  18. comment
    Comment #30384153

    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 sl…

  19. comment
    Comment #28914008

    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…

  20. comment
    Comment #27848722

    > This is a completely new model that was entered in CASP14 and published in Nature.

  21. comment
    Comment #27061125

    > 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 th…

  22. comment
    Comment #27055234

    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 KeyErr…

  23. comment
    Comment #26867385

    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…

  24. comment
    Comment #26864411

    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 "indepe…

  25. comment
    Comment #26860717

    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 othe…