• 0 Posts
  • 9 Comments
Joined 2 years ago
cake
Cake day: June 12th, 2023

help-circle




  • The interpreter can’t make the replacement until it’s about to execute the line as __bool__ and __len__ are both (Python’s equivalent of) virtual functions, so it’s got to know the runtime type to know if the substitution is valid. Once it’s that late, it’ll often be faster to execute the requested function than work out if it could execute something faster instead. Even with type hints, it’s possible that a subclass with overridden methods could be passed in, so it’s not safe to do anything until the real runtime type is known.

    Once there’s a JIT involved, there’s an opportunity to detect the common types passed to a function and call specialised implementations, but I don’t think Python’s JIT is clever enough for this. LuaJIT definitely does this kind of optimisation, though.


  • AnyOldName3@lemmy.worldtoScience Memes@mander.xyzmeow >:)
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 month ago

    You’d need to test every cell in the embryo to be sure none of them had off-target mutations, and DNA sequencing doesn’t leave the cell alive, so you can’t prove it worked without killing the embryo. He tested some of the cells and discarded embryos where those cells were damaged, but there’s no way to know if the untested cells in the embryos were fine, and given what we know about the reliability, it’s more likely that there are problems than not.



  • AnyOldName3@lemmy.worldtoScience Memes@mander.xyzmeow >:)
    link
    fedilink
    English
    arrow-up
    2
    ·
    edit-2
    1 month ago

    He was found guilty of medical malpractice after gene editing babies by treating their embryos with CRISPR/Cas9. He claims that he was trying to make them resistant to HIV, and that medical ethics are preventing cures from being discovered, but his critics say that we know CRISPR is too unreliable to use on a genome the size of a human’s, and is more likely to introduce dangerous mutations than apply the intended change, hence why no one else has done this before.

    https://en.wikipedia.org/wiki/He_Jiankui