Better HN
topnewbestaskshowjobs
Log inSign up

kortex

8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions

Submissions

comment 5y ago · link · parent

Speaking of fact checking, this whole post needs a _citation needed_. I don't recall fact checkers _ever_ say masks below N95 "doesn't work". There was a brief period where mask wearing wasn't recommended, in a possibly ill-suited ploy to prevent hoarding.

I don't recall fact checkers ever saying the lab theory was "preposterous", only that it was unsupported by evidence at the time.

I don't recall fact checkers ever saying the vaccine "stops" the virus spread, only that it dramatically reduces transmission. There was always concerns about variant escape from like, April 2020.

Addition: Clearly, there is a disconnect between what I experienced "fact checkers" saying, and you, or others, experienced. Using the phrasing "fact checkers said X" is extremely veridical in tone, and opens the door for lots of clashing with anyone (such as myself) with differing observations.

Also, when you say "fact checkers did X", are you speaking for _all_ fact checkers? Some? Which ones? It's an epistemological mine field.

Addition 2, before I get nit-picked over the "masks don't work". OP's statement is:

> In early 2020, the fact checkers told us that anything less than an N95 mask doesn't work. The fact checkers of today tell us that any face mask prevents the transmission of the virus...

So I interpret "work" here to mean "prevent transmission of the virus." I remember extremely distinctly at the time the recommended guidance, because my aunt asked about whether she should wear a mask. I told her, as was guidance at the time, late Feb 2020, that a typical surgical mask would not dramatically reduce her risk of contracting COVID, she would need a respirator (N95), and at this point in time, unless you were high risk, this was probably overkill. Cases were rare enough that your best bet at the time was handwashing and social distancing. Then, two weeks later, around Mar 14, I told her "yeah actually you should be wearing a mask around others, even cloth ones, lest you be an asymptomatic carrier." What changed in that timeframe? The number of cases in the USA started skyrocketing, and we discovered that COVID can be asymptomatic in a large percent of cases, and has a long incubation period. New information was acquired, the recommendations changed. That's how all rational, informed decision making should work.

comment 5y ago · link · parent

I thought it did both but I could be totally mistaken.

comment 5y ago · link · parent

> I don't think you're suggesting we serialize the entire GUI?

Yup that's exactly what people do in some GUIs. Tons of GUI frameworks and systems rely on varying degrees of defunctionalization and serialization. Microsoft COM and XServer for example. I don't know exactly how granular they get but I believe it's quite granular in what you can do over RPC.

comment 5y ago · link · parent

> And with AI, it's going to get worse.

Cynical prediction: AI influencers, possibly with a hybrid components. Accounts powered by some GPT-esque generator, acting like a real human, shilling various widgets in a naturalistic way. Use humans-in-the-loop to add randomness and natural-ness. Or just AI extending how much marketers can generate.

And/or microinfluencers. Platforms benefitting (otherwise regular) users in some way to adopt some stance. Oh, you said good things about Brawndo, and our fingerprinting was able to trace your social media to your amazon wishlist, which happens to have Brawndo in it? Free pack of brawndo shipped to you from a "mystery admirer". Post a selfie with a logo prominently, CV bots pic it up, get swag. Gossip quickly spreads that if you say nice things about X, or take pics of Y, you get free swag. Suddenly your feed is full of your friends giving a lot of organic-seeming attention to corporate products. It'll put the Sunoco bumper sticker campaign to shame.

comment 5y ago · link · parent

Static typing in python isn't "cargo culting." In fact I'd go even farther in the opposite direction, and say that if you are using python for production software engineering, and aren't typing most (>50%) of your function signatures, you are wasting everybody's time, your teams', code reviewers', and most of all your own time. Opinion, but empirical experience bears this out for me.

I'm not talking mypy --strict here, heck I've yet to achieve that myself. But if your are writing functions with obvious realizations of interfaces and not typing them, all you are doing is creating more mental strain for the next consumer (often future you) of that function down the road.

At $LASTCO I inherited some jupyter-notebook-copy-pasted datascience ML abomination of a pipeline. Dicts everywhere, mutation everywhere, zero docstrings, nary a type hint in sight. Took two exceptionally stressful months, with constant back and forth with the authors, to get it working in prod ("it works on my machine, I don't understand the problem"). $THISCO embraces type hints, functional style, etc. My stress level has actually normalized.

Typing `foo(bar: Optional[float])` takes what, 2s, more than `foo(bar)`? Asking "hey Steve, what does "bar" take in function "foo"? on slack is already more time and characters than just annotating it, times every dev that doesn't know and has to ask.

comment 5y ago · link · parent

That's just like, your opinion, man!

I'm a die-hard pydantic fan, but it's refreshing to see other perspectives, while the author is acknowledging it is their opinion, without getting all holy-war. Also, they aren't orthogonal. Pydantic is definitely heavier than attrs in terms of processing. This is what makes pydantic a great bastion at shearing layers. "Validate all 10000 ints" is exactly what you want when parsing a request, CLI input, or some configuration.

Also, pydantic makes it almost trivial to write top-level app config logic that is populated from configs, env variables, secrets, etc.

Also, I can generate pydantic structures from openApi, jsonschema, etc, and conversely generate schema/swagger from pydantic. This is game-breaking amounts of awesomeness.

On the other hand, inside business logic, pydantic has the downsides TFA mentions. I would however still contend some validation sprinkled in with business is helpful to reign in some of that zany python dynamicism in huge codebases.

I like the simplicity and composability of the c/attrs approach. Along with the "pydantic does not like positional args," (`__root__=(a,b,c,...)`, ugh) I'll be considering this for retrofitting some code paths that are currently dicts with actual structured types.

I didn't know about the performance differences. Sam Colvin strikes me as very thorough and the community is very involved, so I don't think the benchmarks claiming pydantic faster than attrs is wrong. I know pydantic uses cython under the hood (no idea what) - is it possible that environmental differences are causing the discrepancy?

comment 5y ago · link · parent

I thought salting+hashing was primarily to mitigate damage in an event of someone scooping the credentials data store. And/or bruteforcing.

If there were one login system/site in the whole world, you'd still want to hash/encrypt them.

I mean hashing is one of the easiest things to do to add a layer of security, so even if the db is encrypted, why not? Maybe I'm missing your point.

comment 5y ago · link · parent

Ah ok I see what you are saying. My bad.

Totally agree with your main point of "tokens, like passwords, should be kept discrete."

comment 5y ago · link · parent

No.

Semantically these are very different objects/concepts

Passwords:

- tightly couple authentication (I am kortex) and authorization (I can do everything logged-in kortex can do)

- not meant to be rotated unless breached (forced password rotation mandates weaken passwords, imho)

- are passwords meant for human transport, if even briefly

- hard to revoke (once expired, still valid until user rotates)

- usually insufficient entropy, dependent on user habits

- one flavor: a secret string

Tokens:

- decouple authentication and authorization

- ephemeral

- revokable

- enable automatic rotation (session tokens vs auth tokens)

- can have metadata

- as much entropy as you want

- many flavors

comment 5y ago · link · parent

One subtle hack I picked up on was "stealing" yeast from a pizzeria you like. I envision someone subtly coming in with a paper cup of the same kind the pizza joint uses, but it's filled with flour water, leaving it next to them as they eat, trying not to accidentally drink it by mistake, and going home with their prized culture.

Also, TIL the word "poolish."

comment 5y ago · link · parent

I'm sure. Timeshares are a thing. Juicero was a thing. MLMs and myriad other scammy things continue to be things despite a ton of outcry against them.

Everyone thinks they won't be the one left holding the bag.

comment 5y ago · link · parent

> As it sounds, they are one regulation/ruling away from going bankrupt.

I can't wait. I'm sure it'll move with all the haste of government bureaucracy, but the sooner this gets shut down, the better. This is inevitably going to entangle tons of people who don't know better or think they can make a buck. It's a recipe for creating legal rats nests.

No (with a material interest) wins. I don't even think the banks win. Early investors will make out like bandits. People with purely fiscal interests will largely win (some will get hosed). Equity owners will lose. Information-poor decision makers will lose. Prospective buyers in the neighborhood will probably see collateral damage.

comment 5y ago · link · parent

Do you want the ease of timesharing, the convenience of homeowner associations, the security of subprime mortgage bundling, the property-value-normalizing aspect of AirBnB, and the totally-not-bubbly aspect of MLMs?

Boy, do I have a bridge^W unicorn for you!

Edit: actually this probably is a fantastic company to invest in, precisely because humans are terrible and I have zero hope in our collective decision-making ability, especially in light of short-term profits.

comment 5y ago · link · parent

I just want Result types I can map over. That would cut out a bunch of clutter. Even if I could pair one fallible function with one infallible function, that's 50% less err != nil

   val, err := int_or_err(foo)
   if err != nil { return nil, err}
   return val.add(bar), nil
Vs

   result := int_or_err(foo)
   return val.map(add,bar) 
I'd even take some sort of

   result := int_or_err(foo)
   return val.map(add,bar).tuple()
to return a val,err pair in order to match conventional go.

comment 5y ago · link · parent

I dunno, ZSA (ergodox/moonlander) has a phenomenal UX. Online keyboard editor that generates hex code that you flash using their fully open source tool. And it's all QMK powered so I could program it by myself (it'll never be a brick), I just don't want to.

comment 5y ago · link · parent

I find that this pain is a symptom of complecting. If you well and truly can't test your code to 80% or better confidence until other feature comes online, well then maybe there are insufficient separation of concerns.

Typical CRUD stuff should be like at least 80% purely functional business logic (that is 100% testable without integration) and 20% or less IO code. If you really need that integration to find all the rough edges and work out the bugs, you probably have too much surface area in your IO "tainted" code.

Java-style-OOP really encourages this sort of thing by subconsciously compounding data state with functional methods. The whole "I needed a banana and you gave me a whole jungle" problem.

comment 5y ago · link · parent

Mice/rats are a decent model, you just have to know how to extrapolate:

- toxicity - rats are actually pretty good once you correct for metabolism (divide LD50 by 6). Humans and rats consume lots of xenobiotics due to our versatile diets

- neuroscience, anything below the prefrontal cortex is pretty well conserved between rats and primates

- cancer - kinda garbage. Mice and rats get cancer at the drop of a hat. But if it doesn't give rats cancer, that's a really good indicator of safety

- exercise - generally extrapolates pretty well

The worst is probably things like higher neuroscience, Alzheimers, and diet. Mice in particular are more vulnerable to high fat and high sugar diets than humans. It's fairly easy to induce diabetes in mice, but again, useful in that it increases sensitivity. But also means anti-diabetes drugs may have exaggerated effects.

comment 5y ago · link · parent

Tagatose can be produced relatively easily and has 38% of the caloric content.

https://en.m.wikipedia.org/wiki/Tagatose

comment 5y ago · link · parent

> CFS is a recognized disorder by the medical community, although the causes are unkown.

My point was, it wasn't even a recognized disorder until fairly recently. As I understand it, part of the problem is a cottage industry of quackish medicine sprung up around the unfalsifiability of chronic Lyme and CFS. But instead of the medical community taking an agnostic stance "we see you are suffering but we can't explain it", there was a strong push in the opposite direction, asserting that it's psychosomatic / "only in your head" / "here's some antidepressants." And you see this pattern again and again. I think the dismissive attitude is starting to abate among the younger medical professionals but you still see this air of "anything I wasn't trained on isn't a thing" among many of them.

comment 5y ago · link · parent

That's fair. But I'd rather humor the quackish side of chronic lyme and see some progress being made, rather than lean to the side of dismissing them, along with people with legitimate complaints.

The inability to adequately assay Lyme speaks more to how bad we are at assaying diseases, than to the (il-)legitimacy of the disease.

comment 5y ago · link · parent

I am pretty they do, while I haven't seen them in my yard, they love my neighbor's ~1acre lawn abutting woods across the street. I see them hanging out there all hours of the day.

I actually just learned about guinea fowl elsewhere in this thread! Definitely will be looking into it.

I also started doing the permethrin soaked cotton balls in tubes. Mice collect the cotton for their nest and it kills ticks. Also our dog gets tick-killing meds and takes out a non-trivial amount just by collecting and killing them.

comment 5y ago · link · parent

My partner got a bullseye-inducing tick byte in our front yard in suburban upstate NY. Hardly little-traveled.

The absolute quantity of deer is more important than the deer/human ratio. Lawns make it super easy for deer to migrate, human presence suppresses wolves and other predators, and mice love our trash, houses, bird feeders, and pet food.

comment 5y ago · link · parent

Graveyard of "not considered a real/serious disease/threat by the medical consensus until a frankly embarrassingly amount of time later"

[x] "cadaverous particles" (washing hands after autopsies)

[x] "hysteria" (likely a combination of various mental health conditions and/or PCOS, polycystic ovarian syndrome)

[x] "GRID" (HIV/AIDS)

[x] leaded gas bad

[x] asbestos bad

[x] smoking bad

[?] refined sugar bad

[x] Autism

[x] ADHD

[x] COVID-19 (from ??-2019 until Feb/Mar 2020)

[ ] chronic lyme/other tickborne illness

[ ] ME/CFS

Hopefully, the skyrocketing case load of the latter two (due to explosive spread of tickborne illness, and "long covid", respectively ) will get the gears actually turning and change consensus.

I don't get what's wrong with the medical community acknowledging "hey we have all these odd cases, we can't pin down a cause, but here's the leading theories." Instead, just look at the "Myth/Fact" thread elsewhere in the comments here. Stating with such authority "antibiotics totally cure Lyme". Since when is anything in medicine a sure bet? You're telling me it's impossible that an evolving lifeform can't possibly evade the immune system and selection pressure and become persistent? What?

Ok, please rebut me, tell me how this line of reasoning, "these currently 'orphan' diseases deserve taking a closer look, and not dismissed out of hand" is wrong.

comment 5y ago · link · parent

The recalcitrance of the broader medical research community to acknowledge that spirochetes can persist after antibiotics and continue to wreak havoc, is truly astounding. You'd think after all the "whoops, my bad" moments in history - handwashing, thalidomide, GRID/AIDS, to name a few, they would learn to be a bit more conservative in their stance, e.g. "we have not found direct evidence of chronic Lyme, but it has a plausible mechanism and widespread reports."

I've already seen the needle shift from "Lyme is impossible after antibiotics" to "well I guess some cases escape first round of treatment."

comment 5y ago · link · parent

Ah yes, technical truth, the best kind of truth.

There could be asteroids of pure palladium, platinum, gold, and silver, and it wouldn't matter a fig until it was cost competitive with digging rocks out of the ground, sticking them on a slow barge to a massive refinery and processing them with cheap, probably exploitative, labor.

comment 5y ago · link · parent

On the other hand, college was tough, but didn't kill/maim/disfigure/traumatize me.

comment 5y ago · link · parent

At one point I dug a bit into the python impl of Flatbuffers, and while I forget the exact details, I was struck by how inefficient it looked. Basically every accessor call requires parsing/casting (into python) bytes into objects, without any awareness of whether it had been parsed before.

comment 5y ago · link · parent

If I google what?

"aspartame cancer"

> Increasing consumption of aspartame-containing beverages was not associated with the development of lymphoma, leukemia, or brain cancer (3). A 2013 review of epidemiologic evidence also found no consistent association between the use of aspartame and cancer risk (4).Aug 10, 2016 https://www.cancer.gov › risk › diet Artificial Sweeteners and Cancer - National Cancer Institute

comment 5y ago · link · parent

If it's fully unsaturated, 1,4-oxazinane. If it's 2 double bonds, 1,4-oxazine, or more commonly oxazinone if it's part of a larger fused structure (eg nile red). If you fully aromatize it, it becomes oxazinium. That's a weird one, probably unstable. I think there are some peroxo species with a 1,4-oxazin-1-ium but it's a bit wacky.

The meta (1,3) oxazinium is more stable, but it still needs 3 big electron-withdrawing groups to stabilize it in the case of 2,4,6-Triphenyl-1,3-oxazine-1-ium.

https://en.m.wikipedia.org/wiki/Oxazines

https://chemdrawdirect.perkinelmer.cloud/js/sample/index.htm...

comment 5y ago · link · parent

> I think a geometric interpretation can help some non-chemists understand how intercalating molecules bind to dna.

Absolutely, geometry of electric fields is the primary factor in biochemical interactions. "The electron is where its at" as my o-chem teacher always said.

But that's exactly why aspartame is totally different than intercalators like EthBr, doxorubicin, and PAHs. That phenyl moeity has a rotational degree of freedom, and the whole peptide backbone is floppy. EthBr has a Ph but it's stabilized in-plane by the tri-ring. Intercalators typically have 300-500 daltons worth in a "planar greasy brick" regime, with very little in the way of bulky or floppy steric groups. On paper, aspartame looks pretty flat, but you gotta think about thermal molecules in solution.

E: just noticed this

> I would also say two rings with a carbon-carbon link seem to be potent binding as well.

Oh yeah, like biphenylyl, -Ph-Ph? So that's actually much more planar than a single Ph. The conjugation (any time you see carbon chains with alternating double bonds) of the pi-orbitals stabilizes the rings in-plane. Also it's rather unnatural, there's not a lot of reactions which forge a sigma bond between two aromatics like that.

https://en.m.wikipedia.org/wiki/Biphenyl

1
495051
85