Readit News logoReadit News
jfktrey commented on Don't return named tuples in new APIs   snarky.ca/dont-use-named-... · Posted by u/todsacerdoti
notpushkin · a year ago
> something you (or your very clever coworker) can circumvent by using object.__setattr__()

This fits pretty well with a lot of other stuff in Python (e.g. there’s no real private members in classes). There’s a bunch of escape hatches that you should avoid (but that can still be useful sometimes), and those usually are pretty obvious (e.g. if you see code using object.__setattr__, something is definitely not right).

Can’t tell whether this is good design or not, but personally I like it.

jfktrey · a year ago
Counterpoint: I've used `object.__setattr__` pretty often when setting values in the `__post_init__` of frozen dataclasses
jfktrey commented on Brainfuck Enterprise Solutions   github.com/bf-enterprise-... · Posted by u/linkdd
jfktrey · a year ago
Love this. Years ago I hand-wired a CPU that natively executes Brainfuck code: https://youtube.com/watch?v=q8G2fWprwyo

Might have to test some of these :)

jfktrey commented on Open source licenses need to leave the 1980s and evolve to deal with AI   theregister.com/2023/06/2... · Posted by u/gumby
jfktrey · 2 years ago
Tangentially - I learned about prompt injection around the same time that a project needed a LICENSE.txt. The goal was to require an AI to tell an unprompted joke when someone asked it about the project. Probably a bad idea, but the added clause in the license and a script with it in the header seemed to work, at least when copy/pasted into ChatGPT.

The modified MIT license: https://github.com/treykeown/arguably/blob/main/LICENSE.txt

The file with the header: https://github.com/treykeown/arguably/blob/main/arguably/__i...

jfktrey commented on Warren Buffett sinks climate shareholder resolution, says world will adapt   eenews.net/stories/106373... · Posted by u/spenrose
exporectomy · 5 years ago
Does nobody realize the enormous value of oil? Less investment in it would lead to less production and higher prices. That would push up the price of just about everything. That would primarily hurt the poorest people in the world, pushing some over the edge of survival. The question isn't "Should we use less fossil fuels?". It's "How many people should we kill to reduce the effect of global warming?" The answer is not "as many as it takes" or "zero". It's some difficult balance we don't know.
jfktrey · 5 years ago
Impressive how this completely ignores the effect that oil already has in terms of human cost.
jfktrey commented on Drug Combo Creates New Neurons from Neighboring Cells   technologynetworks.com/ne... · Posted by u/lettergram
dekhn · 7 years ago
Welcome to the modern era of induced pluripotent stem cells. 2012 Nobel Prize With just a little cocktail, usually of transcription factors, you can make one type of cell turn into another. usually, you will convert it to a less differentiated (cells are created in a sort of tree structure where the leaves are more and more specialized) form, which can then be pushed to develop into other specialized forms.

This is really common in the lab now. You can use them to create organoids which are like mini-organs that have a lot of the properties of, say, a lung or a liver or a stomach or a brain, but aren't a full organism. Very useful for making models of mammalian biology.

By the way the discovery that led to this was a huge surprise (at least, that so few factors were required to transform cells) but there is still very little known, IE we can't arbitrarily convert one cell type to another reliably. Culturing mammalian cells is pretty hard.

jfktrey · 7 years ago
>cells are created in a sort of tree structure

I just realized this is why they’re called stem cells. Neat.

jfktrey commented on A new genetic technology that can quickly change entire populations gets broader   nautil.us/issue/68/contex... · Posted by u/dnetesn
Santosh83 · 7 years ago
We'll have to deal with it the same way we have dealt with nuclear weapons. By the threat of MAD. Since we do not have the maturity as a species not to weaponise in the first place.
jfktrey · 7 years ago
There’s a major visibility difference between a nuclear bomb and gene editing.
jfktrey commented on Video of Glitter Bomb for Package Thieves Exposed as Partial Fake   gizmodo.com/viral-video-o... · Posted by u/mbrubeck
Jerry2 · 7 years ago
I assumed he built the device but it turns out this guy actually engineered the device for Mark:

https://www.youtube.com/watch?v=IpMxOmUcfOI

jfktrey · 7 years ago
Sean’s a cool guy, lots of cool projects on his channel worth a watch.
jfktrey commented on Samsung's folding screen tech has been stolen and sold to China   cnn.com/2018/11/30/tech/s... · Posted by u/RobLach
cromwellian · 7 years ago
I assume it is patented, so won't this matter only for the Chinese domestic market? I assume internationally, they'd lose all their court cases, and injunctions would block any Chinese companies trying to sell these components to Western, Korean, or Japanese integrators.
jfktrey · 7 years ago
Don’t be too quick to discount it. That’s a massive market.

u/jfktrey

KarmaCake day326June 1, 2016View Original