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

Metal fires (class D) are much harder to fight than petroleum fires (class B). They can burn way hotter, reignite after seemingly going out, and of course react to water to produce hydrogen.

Current fire fighter directives for putting out BEVs is either dump a loader bucket of sand on it (which most don't have yet), or drag it some place safe and let it burn out.

Also gasoline just sits there until ignited. Lithium battery packs can have various failure modes which send them into thermal runaway. Chevy Bolt EVs are being recalled en masse and owners told not to charge overnight or in a garage, least it go off unattended.

I'm very pro EV but lithium is spicy.

comment 4y ago · link · parent

Chernobyl was literally the worst case for nuclear power. The design flaws were myriad and the industry has learned a tremendous amount. It's not going to irradiate the whole planet, full stop.

Coal is killing the planet now.

comment 4y ago · link · parent

> Zero people died from the [Fukushima] plant.

Chernobyl had something like 60 direct deaths and a few hundred to thousand long term deaths.

That is equivalent to about one day of coal.

comment 4y ago · link · parent

Yes I'm aware, I've had to debayer imagery from industrial cameras and worked on media forensics. I think we are on the same page but commenting past each other.

The problem is vendors all seem to have their own definition of what RAW means nowadays. But the typical meaning is one with the raw pixels via color filter array (eg bayer8), and need debayering (to get the usual rgb8).

You can have raw/Bayer Tiffs, I've worked with them. So the file format is not enough, you gotta know the image encoding.

"RAW just means uncompressed" yes that is technically wrong, but the point I'm addressing is "You can still manipulate a RAW image" and "without the painting-like qualities of its default image processing." It does not matter what the color encoding is, you can still do painting-like processing. I've literally worked on detectors that detect manipulation of RAW, Bayer array images. This is not theoretical.

I guess what I am saying is, Apple giving the user a raw/.dng file is not a guarantee you are actually getting the ADC output straight from the sensor.

Really, the operant question is "what is the processing provenance of this image".

comment 4y ago · link · parent

So, no combining characters? Ok, even if you rule out Latin characters with accents and only use code points that consider the character with accent a single entity... you still have world languages which need combining in order to work, which means you can't really escape multiple encodings of the same "graphemes" (these languages don't exactly have "letters" like ASCII does).

comment 4y ago · link · parent

I've tried just about every python cli parser out there: argparse, click, Cleo, docopt, fire, hydra, typer, a few others. Nothing has been a slam dunk for me the way Clap for rust or cobra for go have been. But I've found a good enough system.

My criteria are: well supported, composable, sub commands, reusable options, sane stack traces.

My current pattern: Cleo plus pydantic. I can create a module of commonly used flags and options that I can share among commands. Commands are first class objects. I can use them as entry points. I can readily parse the options into a static structure with defaults read from env or a file using pydantic. This is feed to runner/API functions, with minimal logic in the command class itself. The one thing that is lacking is I wish I could define pydantic models that double as commands. That is a pretty specific nit to pick.

Overall I love it. Poetry runs on it so I think it's got a long support life. It's beautiful. Easy to use. Just the right amount of opinionated for me. Supports auto complete. Built in commonly used flags like version, quiet, and verbose levels.

I find click and any of the decorator based systems super obtuse and difficult to compose. They add tons of noise to stack traces.

Docopt is way too string based. I like static types.

Argparse is... surprisingly not bad. The main drawback is reuse is not very easy and it's hard to write composable structures.

comment 4y ago · link · parent

Wow, that really makes the France/Germany/Poland disparity stark.

comment 4y ago · link · parent

It has 1000000x the energy density. Even when accounting for refining losses, it's still way less mining than coal. And then there is thorium.

comment 4y ago · link · parent

We have never had a significant disaster of any gen >=3 reactor. TMI, Fukushima, Chernobyl were all gen 2, and gen 1 is all prototypes.

Anything built after 1972 has not had anywhere near this level of incidents.

Also Chernobyl had severe safety flaws due to its origin as an early model breeder reactor (and my head canon is that the test that caused the disaster was in some way related to surreptitious fuel changing to run breeding experiments. The RBMK reactors were designed for rapid fuel shuffling.... In other words, safety was compromised to keep the door open to the possibility of sneaky weapons grade material production).

Also also, Chernobyl had some other bone-headed flaws, such as a positive void coefficient and positive scram coefficient (read: trying to rapid shutdown during an emergency made the reaction increase). Humanity has learned a ton since then.

comment 4y ago · link · parent

> The actual cost of generating electricity by nuclear power is not published by EDF or the French government but is estimated to be between €59/MWh and €83/MWh (~$67-95).

Way cheaper than nuclear in USA.

https://en.m.wikipedia.org/wiki/Nuclear_power_in_France#:~:t....

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

comment 4y ago · link · parent

It's not blocking restaurants per se. It's doing some heuristic based match and seeing entries on the site with words like "wine" "whiskey" "cocktail" and determines the website is "alcohol and tobacco" and bans or limits it.

Ran into this at $lastco, as a chemist. Used to look up alcohol water azeotrope charts and half would be on homebrew sites and got blocked.

I just used my phone to email the charts to myself.

comment 4y ago · link · parent

I'm thinking he would be a fan of Get over it with Bennett Foddy. It's effectively deterministic with respect to user input (no "rolling dice" rng, just physics). No game board, you aren't physically stepping. Just you and the obstacle course.

comment 4y ago · link · parent

Release the schmoo!

That is pretty neat. The Wikipedia page on DTI does a pretty poor job of describing how they work, so thank you for the visual.

comment 4y ago · link · parent

> >>> import jc.parsers.dig

I think "jc" stands for "jesus christ!" because I just exclaimed that out loud thinking about the amount of time I've wasted trying to parse dig outputs, or something similar. Spent a nontrivial amount of time looking for lightweight tools to convert the typical "fwf" of coreutils style programs.

Definitely running "pipx install jc" immediately (pipx is great for managing python-based executable programs, avoid the mess of venvs).

comment 4y ago · link · parent

> any data with 33 bits of entropy is technically PII,

Well yes, but actually no.

I can run UUIDgen 33 times and put it on pastebin, via tor. That does not mean I have 128 peoples' worth of PII. In fact I have ~0 bits of PII. If I were to paste one of those numbers in this comment, now they are all linked to kortex, and however much entropy that username has (call it 32, this account is leaky). But you are still short 127 "PIIs". The rest of the entropy means nothing.

Conversely, a US phone number is <24 bits, but 100% PII.

It's not 33 bits of "entropy". It's 33 bits worth of a distribution which can be correlated to an identity. If it's not correlated, it's not PII.

comment 4y ago · link · parent

A) I'm not sure what nit you are picking, RAW formats are typically not compressed, and if they are (I haven't encountered any personally) they would be losslessly compressed. They certainly aren't quantized.

Edit: ok here's some lossless and lossy compression of RAW. IMHO, "lossy compressed raw" is an oxymoron. https://photographylife.com/compressed-vs-uncompressed-vs-lo...

B) the context is whether a raw photo can be "manipulated" in any way. The answer is a resounding yes. See: Darpa MediFor project. Search for work by Siwei Lyu (I'm on mobile and don't feel like digging through the links, there's tons of published work out there)

comment 4y ago · link · parent

A) I am not sure I'd say blake2 obsoletes blake, and certainly blake3 does not obsolete b2. They are a family, but still different algorithms.

B) blake3, afaik, is not yet as thoroughly vetted as b2.

C) I think some of the hype around b3 is deserved. It's crazy fast. If you don't care about crypto at all (e.g. file dedup), it's absolutely phenomenal. But the main downside of B3 right now is just novelty. Cryto algos are like fine wines.

D) I don't know enough about Keccak vs Blake, but just because Blake2 has received less scrutiny, doesn't mean it's insufficient. I'm sure there are tradeoffs that the kernel editors have chosen.

E: here's a link to some discussion:

https://crypto.stackexchange.com/questions/31674/what-advant...

comment 4y ago · link · parent

It's funny in the abstract. It's not so funny when the implication/connotation is to light a fire under the ass of FOSS maintainers.

That's how I read it at least.

comment 4y ago · link · parent

The pentagon and dodecahedron are also very interesting mathematically. Squares and triangles tile the plane, and have nice "round" number angles 90° and 60°. Pentagons don't tile and feature 108° angles. The diagonals of a convex regular pentagon are in the golden ratio to its sides. The inscribed pentagram has a very recursive feel for this reason, "tiling" (nesting) off to infinity.

comment 4y ago · link · parent

It's not a transmission line though, SNR does not apply in the same way. It's more like CMOS where the signal is refreshed at each gate. Each stage of an ANN applies some weight and activation. You can think of each input vector as a vector with a true value plus some noise. As long as that feature stays within some bounds, it is going to represent the same "thought vector".

It may require some architecture changes to make training feasible, but it's far from a nonstarter.

And that is only considering backprop learning. The brain does not use backprop, and has way higher noise levels.

comment 4y ago · link · parent

If that "1 task" happens to be performing matrix multiplication (or even merely fused multiply add), you can do a heck of a lot with that. You still need digital circuitry to support the IO, but the key idea is doing linear algebra in a way that is faster and/or generates less heat per unit compute.

comment 4y ago · link · parent

> Contribute nothing, and nothing will be left uncontributed.

- Dao de Dang

comment 4y ago · link · parent

I, for one, welcome our future basilisk overlord.

comment 4y ago · link · parent

I think that is exactly the point. The container has no notion of time. You have

     (container0, the_world0).map(operation) = (container1, the_world1)
So it is completely symmetric with respect to time. If you don't do any side effects, then the_world "cancels out". How you decide to partition the container and the rest of the world determines how it behaves, state/time/IO/side effects. But there is no a priori notion of time.

Contrast with OOP or structured imperative programming, where every object/field/register has state, and that state implicitly is a variable through time. The time is "baked in".

comment 4y ago · link · parent

> One day I'll pick up a religion, but it seems like they all would require a lot of mental gymnastics to keep consistent with my mental explorations.

> I wish there was a "Debian Sid" religion

Convert to Discordianism! We make mental gymnastics an Olympic sport! You are not only allowed to, but expected, nay, mandated to believe everything and nothing you want. You can compile your beliefs against any platform, arch, Goddess, God, Dog, Amphibian, or cat manufacturer.

comment 4y ago · link · parent

I'm kind of a pagan/panpsychist/discordian/chaos magician. I try to sidestep all that "is the supernatural 'real'?" baggage by treating it all as an abstraction layer - do my practices get what I want? Maybe it's Yahweh, the Force, universal consciousness, flying spaghetti monster, or just good ol' confirmation bias, I don't particularly care most of the time. Sometimes I straight up pretend I'm in a video game or the Matrix. It's fun. I try to lean into "Nothing is true; everything is permitted" when it comes to unfalsifiable stuff.

This is pretty much the only way I've been able to balance the super rational science heavy side of my mind with a deeper need to feel a spiritual connection.

I don't currently have a day to day practice, though I used to meditate daily. I really should get back into that though.

comment 4y ago · link · parent

Yeah it is definitely in the wildly popular upswing phase. I'm hoping it attracts a crew of maintainers to take some of the burden off.

The one thing it has going for it is much of the heavy lifting is done by starlette, maintained by encode.io, which is actively funded. It's not trying to be rails, rather it's relying on other libraries and packages to add functionality.

comment 4y ago · link · parent

OP asked for good projects to read. I think the code quality is very high, the documentation is great, it's been a joy to use, and it's been more than fast enough for my purposes.

I didn't make that speed claim, though I am aware that tidbit is controversial.

comment 4y ago · link · parent

Anything by Sebastian Ramirez (fastapi), Samuel Colvin (pydantic), or the encode team (starlette).

World class stuff.

https://github.com/tiangolo

https://github.com/samuelcolvin/pydantic

https://github.com/encode

comment 4y ago · link · parent

If you are willing to accept lookup tables or approximations, then yeah, arbitrary distributions are trivial. However for certain domains, you may want a more closed form solution for mapping uniform to your distribution, which may not be obvious. E.g. I would say generating pink noise is not "trivial" because there is no closed form solution (c.f. generating gaussian distribution via Box-Muller, that is trivial), so you need to pick a method which may have tradeoffs.
1
394041
85