HackerTrans
TopNewTrendsCommentsPastAskShowJobs

nuclear_eclipse

no profile record

comments

nuclear_eclipse
·5 jaar geleden·discuss
We have multiple CPython core developers at Facebook, and the Cinder team (among others) are heavily involved in discussions around CPython's direction. There are many pieces of Cinder that would never get accepted upstream, or would take a decade of PEPs and incremental improvements to get there. Cinder is both a proof of concept that these ideas can work in CPython, and something that we can use today, rather than waiting a decade to realize these benefits from a pure open source perspective.
nuclear_eclipse
·5 jaar geleden·discuss
The big benefit of type hints things like Pydantic (and some things I've written myself) is that it can provide useful runtime information. If you know that property `obj.foo` is hinted with `List[Foo]`, then that allows you to do something expecting to have a list of `Foo` objects. This is really extraordinary for deserializing untyped data (like a json blob) into appropriate objects at runtime. You can take something like `{"foo": [...]}` and attempt to deserialize each element of the `foo` list into `Foo` objects, rather than just guessing at what the list contains. If you stop being able to understand type hints at runtime, then the only thing they're good for is documentation and static analysis.
nuclear_eclipse
·5 jaar geleden·discuss
I've been on Dvorak full-time since 2008, and even though I generally don't use vim itself for programming, I do still use vim-mode in my editors and IDE. But I gave up on using hjkl long before switching to Dvorak, and I've always just either used motions like w/b/f/t/n/etc, or moved to the arrow keys for shorter motions. This also lets me share more of the muscle memory for movements when I'm typing into standard text boxes like this.
nuclear_eclipse
·5 jaar geleden·discuss
If someone signs a bad contract because they refuse to read and understand it, and just signs it anyways, they're still generally bound by the terms of the contract. iOS and Android both have pretty clear descriptions in their permissions dialog of what the app is asking for.
nuclear_eclipse
·5 jaar geleden·discuss
Presenting a screen/dialog to the user at first login asking for permission to access contact data does not sound like "forcefully harvested". Users rarely understand the consequences of their decision, which is why I would love to see iOS and Android eliminate the option of wholesale contact access, but use of Facebook apps is not predicated upon receiving your contact data.
nuclear_eclipse
·5 jaar geleden·discuss
Your friends can (and almost certainly will) share their contact info (including your name/phone/email) with Facebook , Messenger, or Whatsapp, even if your account is deleted and doesn't exist.
nuclear_eclipse
·5 jaar geleden·discuss
Assuming that the data is just your phone number and name/email, is it not possible that this is just from friends who have allowed Facebook and/or Messenger to share contact info? Your original account data almost certainly would have been deleted/purged due to various regulatory requirements, but that doesn't necessarily stop your contact info from being shared again and making its way back into the system.
nuclear_eclipse
·5 jaar geleden·discuss
Sanitize, normalize, and distrust. All three cover different use cases.
nuclear_eclipse
·5 jaar geleden·discuss
It's legal negotiation. You sue for the maximum allowable penalty/damages in hopes of settling for something in between the maximum and zero.
nuclear_eclipse
·5 jaar geleden·discuss
I've been a lifelong fan of Calvin & Hobbes, and I have all of the books, but I both don't have the time to revisit them, or when I do, I binge way too much.

Is there any way to get a personal, daily comic via RSS or similar that starts from the very beginning, without having to wait for one of the syndication sites like gocomics to wrap around back to the beginning?
nuclear_eclipse
·5 jaar geleden·discuss
Just wait until you get Python 3.9 and can do:

    >>> a, b = 2, 4
    >>> f"{math.gcd(a, b) = }"
    'math.gcd(a, b) = 2'
nuclear_eclipse
·6 jaar geleden·discuss
I presume they would claim them with fake/fresh username/email info to get legitimate licenses/keys, then resell those after the fact.
nuclear_eclipse
·6 jaar geleden·discuss
I've been extraordinarily happy with iStat Menus for showing a variety of system info in the menu bar.

https://bjango.com/mac/istatmenus/
nuclear_eclipse
·6 jaar geleden·discuss
resell them on various sites for < MSRP
nuclear_eclipse
·6 jaar geleden·discuss
If you can answer the why, then I think physicists around the world would really like to know. We "know" the universe is expanding because we can observe the effects (eg, red shift of further away stars/galaxies), but the "why" has been the big, fundamental question for as long as it was predicted and/or observed. It's almost certainly related to some property of physics that we don't yet understand, but ultimately, we may never know any reason beyond "that's just how it is".
nuclear_eclipse
·6 jaar geleden·discuss
The easy answer is C extensions. PyPy does not support C extensions, and thereby does not support a wide range of native, accelerated libraries. Facebook infra is heavily dependent on wrapping C/C++ libraries (like Thrift) for use in many languages, and not having C extensions (or Cython) would cut off a large portion of our shared codebase.
nuclear_eclipse
·6 jaar geleden·discuss
As someone who operates two Nest cameras (one doorbell, one camera, both record audio) in California with clear line of sight towards public areas (sidewalk and street), I would really like to know what sources make you believe this is illegal. I find that claim very hard to believe.
nuclear_eclipse
·6 jaar geleden·discuss
Most laws around street legality center around certification of the chassis, safety equipment, and emissions. Don't run the jet engine during a smog test, and prove that all the necessary safety equipment function (signals, airbags, seatbelts, etc), and you're going to pass. This is why most kit cars depend on a "donor" chassis that gets stripped down and have the new car built on top of.
nuclear_eclipse
·6 jaar geleden·discuss
If only we had a government mechanism for holding service providers to higher standards for neutral delivery of services to citizens regardless of economic incentives.
nuclear_eclipse
·7 jaar geleden·discuss
If it's entirely CPU bound, you can use multiprocessing to negate most of the GIL issues, and transparently send inputs/outputs between the parent and child processes. If it's I/O bound, then AsyncIO is a great way to express asynchronous workflows. If it's a combination of both I/O and CPU bound workloads, there are ways to mix multiprocessing and AsyncIO to better saturate your cores without losing the simplicity or readability of Python: https://github.com/jreese/aiomultiprocess