Better HN
topnewbestaskshowjobs
Log inSign up

kortex

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

Submissions

comment 4y ago · link · parent

Emergent just means a more complex behavior (foxes tending to flee towards interactivity-dense areas) resulting from a simpler rule (while fox.spooked, maintain 100 triangles of distance away).

Flocking is an emergent behavior that is basically minimizing a loss function of "maintain x distance". If you implemented boid AI (birds) in skyrim and used triangle count as your metric, you'd be able to spot points of interest by the sudden increase in density of flocks. But players might extrapolate to the idea that "birds flock denser in cities". But no one programmed that behavior. It just emerged.

comment 4y ago · link · parent

Yeah, that would be something we'd want to do long-scale simulation tests of before setting sail. Build a simulated spaceship, probably in orbit for maximum accuracy, and see how everything holds up.

Tbh I'd be more concerned about the humans cracking psychologically before the fungus dying. They are hardy buggers.

comment 4y ago · link · parent

Helminth therapy is supposed to help moderate it. I did it to get a handle on my asthma and allergies and it worked quite well. There's various websites and support groups which detail the process and why it works etc.

There's a bit of squick factor to get over but it is worth it for the relief.

https://helminthictherapywiki.org/wiki/index.php/Helminthic_...

comment 4y ago · link · parent

I mean why not? Hard radiation tends to destroy whatever it hits on a molecular/atomic level. If you have a biological shield which is constantly refreshing itself, you can possibly have a much lighter assembly. Mycelium has also been used to purify water. It might be possible to integrate shielding with water storage/buffer and recycling.

It'll probably require layering different types of material to convert higher energy radiation (like cosmic rays) to more manageable spectra.

comment 4y ago · link · parent

So don't use them or configure your terminal for monochrome? I for one welcome the disco.

Well, you can tell from the way I use nGrok, I'm a jq man, no time for awk

comment 4y ago · link · parent

I'm the same way. Why waste time reading when syntax highlighting draws your eyes to important info? Also, iTerm2 with triggers or whatever they are called? Magnifique.

I have limited focus as is, if I can make mental search easier, it takes a noticeable cognitive load off.

comment 4y ago · link · parent

Even at the height of Covid, I was still bundling up in PPE and going to the grocery store. Not to mention all the outside things to do.

Even the biosphere-style experiments, there's always the subconscious knowledge that you can make a call and bail at any time.

That's very different than knowing you have no lifeline. Les Stroud from Survivorman talks about how on one of his stints, he tested the emergency walkie/satellite phone or whatever and got nothing. So he's got some idea.

There are people out there who can do it, but it takes a special breed.

So yeah, take Covid stress, and like turn it up to 11.

comment 4y ago · link · parent

From what I remember, the lymphatic system is basically open-ended. Blood vessels "leak" interstitial fluid, which flows through the body, collects into lymph vessels, and gets "pumped" by various processes back to the circulatory system.

Everything in chemistry is equilibrium-driven, so I can readily see some process evolving with the assumption of X units of some chemical flowing through this system, and trying to restore homeostasis in space by increasing hemolysis.

comment 4y ago · link · parent

As a GAE native speaker quite comfortable with [ɹ] (inverted r), the voiced [post]alveolar approximant, I find this sound super fascinating. It's very rare in languages, suggesting it is very unusual phonetically, but it happens to be prominent in two of the most widely-spoken languages, so many speakers can pronounce it.

I've always found alveolar trills more aesthetically pleasing, but you casually drop them in English conversation and you get weird looks and questions.

Question for the peanut gallery: what the heck is the difference between the voiced alveolar approximant and the r-colored vowel, ɝ, (schwa plus hook)? They have different IPA so presumably they have distinct pronunciation, but I cannot hear a difference, nor can I feel a difference in my tongue placement when I say them.

Also, curse HN's lack of unicode support. ~~I think it's related to MySql's stupid utf8 is actually utf8mb3 thing~~. I think they rendered? I see it in my comment after posting, but they are blank squares in the text form.

comment 4y ago · link · parent

(Not saying you are wrong, I'm trying to clear up my misconceptions) I didn't realize that phonemes were perceptually distinct units of sound, in the same way graphemes are visually distinct units. (yes there is the whole "some speakers recognize different sounds in their brain as the same" wrinkle).

What would the term be for units of sound which are perceptually distinct regardless of listener's perspective? E.g. [p] and [pʰ] are non-phonemic in English but are in Korean, and you can tell them apart with a spectrogram. Or is that just not a distinction linguists make?

comment 4y ago · link · parent

I use DVC to store periodic snapshots of raw notebooks, and export them to .py files to be tracked by plain git.

They are still kind of a mess because I use them as scratch space. Anything worthwhile gets polished and put into a package manually.

comment 4y ago · link · parent

What is this voodoo? I thought HN didn't support emoji? It's sure 🆒 though.

comment 4y ago · link · parent

I would argue yes, that atoi is defective. Stripping characters is equally defective.

A QA walks into a bar and orders "123hello456" beers. The correct answer is not for the barkeep to give them 123 beers, its to ask "I beg your pardon?" So the truncation in general is the problem. If the operation fails - too many bytes, wrong encoding, string too long - the operation should fail. It's not the db's job, that is the business logic's job.

comment 4y ago · link · parent

For the end user, not the maintainers. Who's gonna sign up to keep that ENIAC, PDP-11, ALGOL 58, python2.3, win3.1, etc, code running, stable, and not a source of exploits?

Or do you mean in the abstract, fairy-tale ending sense?

comment 4y ago · link · parent

Why is the A[rtificial] under debate? It's not natural (biological) intelligence, unless one goes the route "humans are a part of nature therefore the things we make like plastic and skyscrapers and hamburgers are natural".

comment 4y ago · link · parent

Sorry, "pigs are smarter than dogs" is gonna need a Citation Needed. I don't doubt some pigs are smarter than some dogs, and maybe they are comparable on average, but I'd put money on any of the working breed dogs over pigs.

("smarter" being general intelligence, reasoning, working memory, and inference. There might be some specific tasks pigs excel at, but that is different than measuring "smarts")

comment 4y ago · link · parent

It's a figure of speech. Looks like TFA clarified:

> But the JWST was not designed or tested in a vacuum (pun only partially intended)

It's not the clearest writing, even though they are going for a joke.

JWST was not "designed or tested in a vacuum" [in isolation without knowledge of prior art]". But it was designed for vacuum and its parts were tested in a vacuum, including I believe bringing the whole assembly down to cold vacuum.

Designing in a literal vacuum sounds painful for the designers. :)

comment 4y ago · link · parent

Yeah, they might have just had unit tests with mocked db, or there wasn't enough combinatorial variety. It's insufficient to test the lack of double billing - you have to specifically induce a race condition, assert the race occurred, and that the interlock prevented double spend. It's tricky. Personally I'd try to engineer around race condition entirely, like some scheme with tokens and pagination.

I agree, this sort of thing seems like it should be extra-well covered, but, y'know, move fast and double charge folks.

comment 4y ago · link · parent

Sure, but like, you don't have to break code on .Y changes.

Changing semantics of a query operator is something worth saving for a "big major" update, if you change it all.

Some breaking changes are really obvious and easy to catch. Others can introduce pernicious bugs which slip through tests. The change Mongoid is solidly the latter. And yeah, they say they use actual Semver.

comment 4y ago · link · parent

There's a huge difference between "zero testing" and "we didn't have this particular test case covered because the state space is massive". Lets say you even have "100% code coverage", do you really have a unique case for each possible condition in that query? Often times chaining operators like TFA give "deceptive" coverage results because they mark that whole code path as covered, without verifying the state space of the operands is covered fully. You can sometimes "cheat" coverage e.g. by using ternary operator assignment in place of if/else (often by mistake).

comment 4y ago · link · parent

Yeah, that is probably the smart way to do it. Frontload all of your necessary new features in 8.9/9.0-dev (so you can complete the deprecations), roll over the major and remove only the deprecated code paths without introducing any new ones.

comment 4y ago · link · parent

That is asinine. Why not change it in 5.x->6.0 if they knew it was a problem. Why even use version numbers at that point? Just use DateVer or 0ver at that point.

comment 4y ago · link · parent

Introducing changes to the semantics of query operators in minor releases sounds like a great way to introduce security issues.

How many CVEs over the years are because of someone screwing up their operator precedence in permissions checks?

comment 4y ago · link · parent

That's not really the point. There's a gulf of difference between "we patched a CVE and now spacebar-heating is broken" and "we knowingly and deliberately changed the semantics of a query operator in a minor/patch release in a 7.x library in wide production with 3,900 stars on gitub."

Semver doesn't mean "guarantee no breaking changes in minor" - that's impossible - and people love to point this out for whatever reason. It totally misses the point. I think most engineers have a decent intuition most of the time about whether a change is breaking or not.

comment 4y ago · link · parent

Yep, that gets a pin to "==x.y.z # pinned to prevent BREAKING CHANGE, do not update without reading <link>" and also some defensive regression tests on their api lest someone update by mistake.

comment 4y ago · link · parent

Do you or your team review every item of every changelog of every dependency in your stack (recursively for their dependencies) for every minor update, and/or 100% coverage for all of your assumptions of how they are used?

Sure it was a mistake by OP in TFA but it's an honest mistake any of us could make. And it's a really Bad Move by the Mongoid devs. It'd be a bad move in 1.2->1.3, but by 7.3? I'd just be like "whelp, this is how this function behaves now in perpetuity, I guess just document that it has different semantics than AR" even if an 8.0 was released. This is the kind of change which causes really subtle bugs. It's rarely worth it. Just introduce .chain_or() or something.

comment 4y ago · link · parent

Yeah the whole point about "everyone agrees on a protocol therefore it is centralized" is one hell of a strawman. Centralized means "some small number of entities can unilaterally decide to change the rules". Anyone can change the rules at any time and users can decide to follow or not. This is just a hard fork.

comment 4y ago · link · parent

That is certainly a cool idea, but how would a system like that cope with getting "wires crossed"? The nice thing about standard protocols (a form of consensus) is that there is a schema and at least at the transport level, there are no unambiguous values.

Without consensus, you have the risk of party A saying something, and party B interprets it in a different way than intent.

comment 4y ago · link · parent

> Be kind. Don't be snarky. Have curious conversation; don't cross-examine. Please don't fulminate. Please don't sneer, including at the rest of the community.

> Eschew flamebait.

https://news.ycombinator.com/newsguidelines.html

comment 4y ago · link · parent

The public aspect of the content is orthogonal to the public aspect of the data. E.g. let's say the grade record is encrypted. Anyone party to the key is able to verify that the record is (un)tampered, but the wide world cannot read your grade.

And that is orthogonal to whether the content is mutable or not. It just means that mutation is deliberate and obvious.

1
383940
85