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

> something about the reflection of the water from the harbor

Temperature inversion? https://en.m.wikipedia.org/wiki/Inversion_(meteorology)

comment 5y ago · link · parent

> I use Make as the standard way to interact with every repo I own.

After much fussing around with many kinds of solutions, this too is what I have settled on. Download repo and run `make` will "do the needful" to get you going, and all the major entry points are make stanzas.

comment 5y ago · link · parent

Additionally, in 2011 China set standards requiring that companies recycle at least 98.5 percent of their silicon tetrachloride waste.

It's fairly easy and cost effective to recycle once you have the infrastructure in place. It seems most of the pollution reports are from before the mandate and also when precursors were way cheaper relative to the final product.

comment 5y ago · link · parent

1) corty addresses the inflexibility myth

2) there are always going to be Capex-dominated industries running full-bore 24/7 that need base power with the same power gen profile. Nuclear is perfect for this.

You exactly want to complement renewables with inflexible. You want 100% of your "DC component" of your load profile handled by base load power plants, and maximizing the utilization of power storage by variables.

comment 5y ago · link · parent

There's some interesting prospectives if you just search for 'psychedelics alzheimers'. Not a lot of direct research unfortunately, due to legality/stigma (which fortunately is ameliorating in recent years).

However, it's reasonable to believe it can help. Dosing of LSD/psilocybin (in rats) in moderation has shown to increase synaptogenesis, prospective and retrospective learning, BDNF expression (in some regions), and other related effects.

The currently most scientifically supported benefits revolve around anxiety and depression. Psychedelics have a robust effect against stress, anxiety, depression, and related neuroses. We know these neuroses have detrimental effects on cognition and life quality. Lowering stress levels in aging folks is likely neurobeneficial in general.

https://www.frontiersin.org/articles/10.3389/fnsyn.2020.0003...

comment 5y ago · link · parent

Sure, but as I mention in cousin-thread, there's a difference between being reckless with your own safety and well-being, and putting others at risk, physically, medically, fiscally, or legally.

He's certainly not the most safety-minded person, but if you watch enough of his videos, you see that there is very much a "controlled chaos" when it comes to external hazards. My point is, it's often less reckless than it looks at first glance, not un-reckless in an absolute sense albeit. Good showmanship and all that.

comment 5y ago · link · parent

Yeah, I see that attitude a lot in burner/circus arts/stunt circles. Limited concern for their own safety ("I know what I'm doing") but very safety conscious the moment other people involved.

Grinding some pipe with it in my hand? Yeah I got this.

Digging a tunnel that will have the cameraman and others in it, and might collapse the house of done wrong? That's worth some thought.

Some. Lol.

That reminds me of this greybeard that was helping us move some heavy machinery. "It won't hurt you!" as we have a 1400 lb top-heavy drill press dangling from an engine hoist. Um, yeah, heck yes that'll hurt you.

Wouldn't have gotten it into the uhaul in time were it not for him.

comment 5y ago · link · parent

He's definitely trying to preserve his original image, of twenty-something spontaneous punk-rock welder making crazy inventions with little regard for safety. I've been following his channel for years (fiveish) and watched a lot of his earlier stuff and those vids are definitely safety-third.

He's definitely still no Captain Tightpants by any means, but as a fellow former crazy maker / fire performer, you never fully grow out of it, but you mellow out over time and take less crazy risks (in favor of calculated risks).

comment 5y ago · link · parent

I think the one commenter hit the nail on the head with, "the stuff Colin does looks off-the-cuff and spontaneous, cause that's his bit, but there is almost certainly planning and engineer review going on before hand."

England tends to be even more tightwad about this kinda stuff than America, and with multimillion followers, it's not like he can do these big projects surreptitiously. There's the 360° swing, giant iron man mecha, underground bunker, and a few others which would absolutely draw ire from inspectors had they not been done aboveboard.

Pretty sure "we have to dig the tunnel stealthily so the neighborhood doesn't know!" is a bit. I bet all the neighbors are subscribers.

comment 5y ago · link · parent

The $ is 5 pixel points, so I think this is a case of "px" being more of a term of art rather than actually being 4 pixels wide per letter. I think. Would appreciate clarification.

comment 5y ago · link · parent

This is AWESOME! I already have a super container heavy workflow and abuse dockerfiles to do things like this. It's great to be able to generate artifacts in a container and slurp them back out (really tricky with normal dockerfile builds, you need exterior commands).

How well does it work with big builds in a single stage that fail? E.g. If I have a 3h CMake build that fails, does it keep the intermediate files in an image somewhere?

comment 5y ago · link · parent

Oh yup, that was tin pest and tin whiskers that I think I was thinking of.

My understanding is that Al wiring can be cheaper, but specifically in the housing domain, because virtually every fixture is copper based, it ends up being a huge PITA.

comment 5y ago · link · parent

Anything going into the lungs besides atmospheric air, and specific medications, is potentially inflammatory. At best, the VOCs (in vaping) do absolutely nothing in either direction. At semi-worst, they cause low-grade inflammation, and worst-case they cause chemical pneumonitis.

However, by comparison, tobacco smoke is like "what if we could engineer the perfect lung assailant."

Tar causes inflammation, damages DNA directly, intercalates DNA and induces replication errors, collapses alveoli, and paralyzes cillia, making clearance of all those chemical assailants from the lungs even harder.

comment 5y ago · link · parent

That's wonderful, but be careful generalizing your experience to others. You don't know who is struggling with mental illness, executive control issues, ADHD, OCD, depression, etc.

Tobacco is more than nicotine delivery. It contains harmaline alkaloids, which among other effects, is a monoamine oxidase inhibitor. Quitting a cocktail of nicotine and MAOIs, while those stimulants are "treating" underlying conditions, is a way harder task.

For these folks, vaping is absolutely a step up, and allows them to wean off the tobacco MAOIs, especially in conjunction with treatment such as bupropion.

comment 5y ago · link · parent

Facial detection has a lot of uses, and facial re-id (fusing tracks based on face vectors within a session) have lots of uses. Facial recognition, or what should really be called facial identification, where media is converted to a numeric fingerprint to look up in a database, really does not have a lot of use-cases that give me the warm-fuzzies.

IMHO, The only reasonable use for this kind of biometric fingerprinting is creating biometric models for validating key public figures against deep fake videos. This approach uses motion biometrics, so it's not even face-ID, but it is a form of "compare vector against existing database" so I count it. This is also super specialized and only applies to figures with hours of video to train on.

Also my opinion, any system which does identification of the general population is going to inevitably be abused.

Face detection, eye tracking, emotional and sentiment analysis, etc, has many uses in the videoconferencing space. The vector data only exists in the scope of a session.

The part that makes it nasty and authoritarian is any time you build a database/index coupling identities (even pseudonymous) with features, whether it be face, gait, voice, from CNNs, HoG, or even just browser fingerprints, this is the dangerous bit, and where laws should focus their effort.

Re-id in public (where you vectorize and fuse tracks starting with first glimpse) is a grey area and probably should be very scope-limited, e.g. active warrant, specifically signed by a judge to authorize use looking for only that person. Even then, kinda icky.

Disclaimer: I work in the video emotional recognition field

comment 5y ago · link · parent

Yeah, it's great for long haul like high tension wires, not so great for houses and electromechanical contrivances. Prone to oxidation/corrosion, so you have to usually use special lugs, or wire nuts filled with this goop.

I could be mis-remembering but I also feel like it's more prone to whiskers/pest when soldered to boards, especially lead-free mixes. Either way, ends have to be crimped, so that's more steps.

Just generally more annoying and expensive to work with than copper.

comment 5y ago · link · parent

Even with a super generous interpretation of "most non-ferrous metallic ore natural resources" - there's Lithium and other alkali metal salts, mined of dried lake beds. I think Group 2 is similar. Also aluminum from bauxite, which is sedimentary. Too lazy to keep googling counter-examples.

That line needs a lot of qualifiers to be correct. Unless they are using "non-ferrous" in some super bizarre way.

comment 5y ago · link · parent

Have you ever watched an amoeba do its thing? I wouldn't call it cognition, but its behavior is remarkable for something with no neurons. In fact microtubules are the exact structure posited to be responsible for where and how amoebas move their pseudopods.

https://pubmed.ncbi.nlm.nih.gov/7983169/

comment 5y ago · link · parent

No, a queue, like a clip (actual clip not a small-arms magazine, which as you mention are push-down LIFO).

comment 5y ago · link · parent

Food factories are FIFO, and you want FIFO dispensing, so I can only imagine the optimal solution is FIFO transport. I could readily imagine "magazines" for anything coming in cardboard boxes - spring or gravity fed, high-aspect ratio stacks in some kind of frame. Specially built container trucks which are easy to load with these "food mags". 6Axis robots to load them into the factory.

Spent mags get put into an empty trailer and sent back to the factory.

Loose bag items are trickier, but if you put those in reusable plastic totes, and put those in the mags, and automatically eject them into another mag, I think it would work well with the existing suction arm ones.

comment 5y ago · link · parent

Man, developing python with pydantic and "mypy --strict" (I follow pydantic's config [0] where I can) is such Type 2 Fun. It feels like a totally different language. Yeah it takes a little more time at first but then type inference and autocomplete starts to kick in and then you're screaming fast. And you "compile" it and everything just works. No hunting down edge cases or tracebacks cause you forgot to catch a None. I find it super satisfying. Much easier to stay in flow state when you aren't having to stop every few minutes to test stuff and dig through tracebacks.

[0] https://github.com/samuelcolvin/pydantic/blob/master/setup.c...

comment 5y ago · link · parent

Well, I think some companies had a massive conversion burden, but these are typically massive companies, like Google. Most companies had nowhere near as much python2 code.

I think you hit the nail on the head with "lack of meaningful tests". The entirety of "locked to 2" python code I've dealt with was a serpentine mess with little/no tests and so brittle even going from print to logger risked things breaking.

"But it currently works!"

comment 5y ago · link · parent

> How hard would it have been to support u so someone could support both versions more easily?

Exceptionally hard. Py2 str objects are tantamount to py3 bytes but with the py3 str apis. What this amounts to is every "str" in py2 is an untagged union of str/bytes. Python is exceptionally dynamic. This means if you allow different behavior in different modules, you risk silent, customer-data-corrupting bugs, among other headaches, as things continue to "work" but do the wrong thing.

At least with a hard 2/3 switch, you are on your toes and know there is a (mostly) finite transition period.

from __future__ import str basically guarantees you'll have "3-compatible code" causing headaches years into the future.

That's not even to touch on the difficulty of switching the engineering difficulty of interop of encoding-oblivious strings with unicode ones.

comment 5y ago · link · parent

Why wouldn't size correlate with magnitude? A whip crack breaks the sound barrier, it doesn't shatter windows. Same with a bullet, which goes even faster.

You need both pressure level (voltage) and momentum (current) in order to stay strong over distances (shock waves diffuse over time) to break windows. Small, super fast things create large pressure differentials, big jets create more momentum.

comment 5y ago · link · parent

The problem is, semantically and linguistically, there are two OOPs. There's Smalltalk OOP and Java OOP. I haven't worked with Smalltalk but from everything I've heard, it "does object-oriented right". Unfortunately, Smalltalk just isn't popular (not even in the top 50 on the Tiobe index, though it fares slightly better on Redmonk).

For better or worse, Java is massively popular, and thus the Java conceptualization of OOP, which is just frankly bad, is what most people think of when they think OOP.

OOP encapsulation works when you can't have objects with invariants violated, and when you can't cover the combinatorial space with tests. The problem is, Java-style setters and getters are an almost guaranteed way to get the above properties. That's why it's better to be able to just have a small number of course-grained state stores that you can interrogate easily (REST, Reactors, databases, and Kubernetes data models all exhibit this). Class Employee inherits Person, doesn't. Too fine-grained, too easy to mutate yourself into an absolute mess.

comment 5y ago · link · parent

> Just as a counterpoint, both as a user and a developer I've found the main cause of performance issues and UI bugs come from a combination of distributed state and caching.

Isn't that like, the main cause of most software headaches? insert joke about cache invalidation and naming things.

It sounds like you're saying bad caching can be worse than no caching. I can absolutely see that being the case.

> - Make it difficult for a human programmer to reason intuitively about the performance of the code they write.

Totally agree.

comment 5y ago · link · parent

Yes, that's exactly what I was getting at. It was less a criticism of FP (which is why I say it feels like it might be - it's not) and more a criticism of the bevy of techniques common in modern full-stack development.

Even then I'm not saying it's bad to do thing that way. They absolutely have their place. OOP has its place. FP has its place. Distributed computing has its place and vertical scaling has its place. The point is, dogmatically latching onto "X bad! Y good!" blinds you to potential solutions.

comment 5y ago · link · parent

Because it's not meant as a criticism of FP, or a list of FP things, in fact I actually really like FP. It's just that if you anti-optimize for bloat and slowness, you coincidentally end up with a lot of features that FP has.

Centralized state, immutability, wrapping, indirection, and nested data structures with garbage collection are very FP things. They are also almost always slower than mutate-everything imperative style, and require a lot more under the hood to make them performant. You basically need a clever compiler to really reap the benefits. Contrast with C with a dumb compiler, easy to get a fast, albeit buggy, program.

IO, bad caching, etc are very much not in the spirit of FP. The other points are just other bad things that I've seen a lot of apps do.

> Anyway, most of both lists apply perfectly to the modern "mandated microservices" architecture some place use, that I think was your point.

That was exactly my main point.

comment 5y ago · link · parent

It was mostly a quip that the first two anti-optimizations result in distributing the application across tons of machines. Since this is only the basis of the entirety of distributed computing, I thought it was only fair to include an instance where distributed computing patterns win out (fault tolerance and parallelization).

comment 5y ago · link · parent

Suppose I wanted to make a program inscrutable, hard to modify, hard to test, heavily coupled, and hard to reason about:

- hide information so that it's not queryable

- force information to flow through multiple hops

- make it hard/impossible to set the true state of the system in its entirety

- allow state to be mutated silently

- give interfaces roles and force certain state to have to flow through specific paths

- multiple concurrent access

- pointers

- spray the app across as many machines as possible

Sounds familiar, maybe like a scathing criticism of OOP? Well check this out. What if I wanted to make a program as slow and bloated as possible?

- put all state in one place. Bonus points if you can bottleneck it and force all changes to be well-ordered and sequential

- all data has to be immutable and copied over in its entirety when propagated

- use larger data structures than necessary. Lots of wrapping and indirection

- no caching. Can't trust data unless it's fresh

- read/write from disk/net tons

- use scripty garbage collected languages

- spray the app over as many machines as possible

The latter kind of feels like a criticism of FP, though really it's more critical of distributed monolith. What if I want to make my app as vulnerable to outage and overload as possible?

- concentrate the app in as few machines as possible

It's really interesting how all the different tradeoffs of approaches just kinda appear when you take this inverted approach. It's all too easy to get caught up on the positives of an approach.

(opinion - I still think FP comes out looking better than OOP, but it does suggest that you need a lot of techniques to safely hide optimizations to make FP more performant, which can make it harder to scrutinize all the layers)

1
525354
85