Better HN
topnewbestaskshowjobs
Log inSign up

kortex

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

Submissions

comment 1y ago · link · parent

> It’s only adversarial because you want to get as much pay as possible out of them for as little productivity as possible.

And the employer wants to pay the employee as little as possible for as much productivity as possible.

In a perfect world with perfect information and rational actors on a level playing field, this is great: we expect supply and demand to converge, this is econ 101.

But it's not a perfect playing field, one side is coercive, holds most/all the cards, calls all the shots, treats people with lives and experiences as "resources", and seeks profit over all other objective functions. This is class dynamics 101.

comment 1y ago · link · parent

And early Europeans avoided saying the name of the terrifying land mammal out of taboo / fear it would summon it, and instead referred to it as either "the brown one" or "wild animal" (exact etymology is unclear which it was), giving us the word "bear", to the point where the "arktos" based word has been lost. Often times euphemisms stick.

https://en.wikipedia.org/wiki/Bear#Etymology

comment 1y ago · link · parent

> The typical [HACKERnews] article [about hacking] that is applicable to [computer enthusiasts].

Fixed that for you.

comment 1y ago · link · parent

Thought-provoking but also pretty vague. It makes no distinction between hard auth-left and hard auth-right.

comment 1y ago · link · parent

It really won't. For some use-cases, yes.

> WebAssembly is a true write-once-run-anywhere experience.

Except not. The wasm ISA is really quite limited in the types of operations. A full-blown RISC/CISC ISA will have way more opportunities for optimization. To say nothing of multithreading and pipelining. JITing also has overhead.

> You can compile several languages into WebAssembly already.

But if you can compile them, why not just compile to container, and get free performance?

Wasm will have a hard time with anything low level: networking, I/O, GPU, multimedia codecs.

comment 1y ago · link · parent

What is undemocratic is suggesting that somehow the civil participation process just goes on hold between every election.

People are seeing a trajectory even worse than anticipated and sounding the alarm. The Trump administration is blasting off executive orders that many feel are unconstitutional, and the populace wants to pump the brakes.

comment 1y ago · link · parent

That is exactly how go usually works with error handling though.

    func mayfail() error {
        if snafu {
            return errors.New("oops")
        } else { return nil}
    }


    err := mayfail()
    if err != nil { handle }

Same as `mayfail() ? handle : happypath` would behave with lazy evaluation.

comment 1y ago · link · parent

How does one even begin to write drivers for nvme, ata, rtl nics, etc? I know mice and keyboards use HID which is a standard, but are there similar standard protocols for all other devices?

Is this how linux manages to avoid needing to "install drivers" in the vast majority of cases? And if there are standard device APIs, why does windows have to go through that whole install driver routine every time I plug something in?

comment 2y ago · link · parent

That ship has long sailed. ALGOL 1958 used := and Pascal popularized it.

https://en.m.wikipedia.org/wiki/Assignment_(computer_science...

comment 2y ago · link · parent

I have never tried to shoot a snake but I imagine their high aspect ratio makes getting a critical hit on them challenging, compared to just "yoinking" them.

Garret Galvin @fishingarrett has made a name for himself yoinking all sorts of critters in the wild but in particular seems to be targeting invasive pythons in the Everglades. He's very entertaining if you like nature stuff, he's like Steve Irwin's spiritual successor.

comment 2y ago · link · parent

Hot take: "choice" is a myth when it comes to long-term executive processing, one doesn't choose to be obese/not, drug addicted/not, etc, the same way one chooses whether they want chicken or beef ramen for lunch. It's an unending grind of executive functioning against more basal impulses, that is heavily influenced by the blend of nature and nurture and life events.

comment 2y ago · link · parent

There's no world in which atomized nicotine, glycol/glycerin, and some flavors, is comparable, let alone worse, than inhaling smoldering tobacco leaves. Even the purest, organic tobacco made from the nicest leaves lovingly collected by happy family farmers, is still gonna give you cancer if you burn it and inhale the smoke. That's just chemistry.

The only exception is if the vape juice contains something it "shouldn't", like the vitamin E acetate debacle, but if you put the same wrong things in tobacco, you get the same issue. This problem is avoided entirely with a verified source of ingredients.

Partial combustion products will always contain, at minimum, polycyclic aromatic hydrocarbons, a verified carcinogen. The hotter the conditions, the more complex the precursors, and the more incomplete the reaction is, the more nasty junk you will create. Vaping might or might not be bad, but the chemistries of smoking includes the full set of chemistries of vaping, and then way way more, due to the incomplete combustion of the much larger molecules in plant matter.

Bottom line: probably don't put the volatile reaction products of substances heated above 100°C into your lungs: tobacco smoke, vape, campfire smoke, car exhaust, brake dust, etc. But some reactants are far worse than others.

comment 2y ago · link · parent

What's to stop someone from downloading an open source model, running it themselves, and either just not sharing the hashes, subtly corrupting the hash algo so that it gives a false negative, etc?

Also you need perceptual hashing (since one bitflip of the generated media alters the whole hash) which is squishy and not perfectly reliable to begin with.

comment 2y ago · link · parent

Ammonia is produced at scale by the Haber-Bosch process, N2 + 3H2 => 2NH3. Most H2 is currently produced by steam reformation of natural gas, CH4 + 2H2O => CO2 + 4H2.

It's not really feasible to turn ammonium nitrate back to natural gas, moreso GP was insinuating it's a way to export (a proxy for) natural gas, eg to bypass sanctions.

comment 2y ago · link · parent

Cool stuff! Might be fun to integrate with a type validation library like Pydantic or Msgspec to provide in-line coercion/assertion.

What is the performance hit like? I could see these getting pretty expensive (but correctness is invaluable). Seems like it would be great for something like aws lambda in python where you have already decided performance isn't an utmost priority and scrutability is difficult, so any correctness you can bolt on is a boon.

comment 2y ago · link · parent

I kinda dig zeeb! Naming is hard. Really awesome project by the way! Should have mentioned that first. Build systems are neat. I've always wanted to try building a build system, in a "learn how it works" sense, not so much "yet another build tool".

comment 2y ago · link · parent

How do you pronounce "Zb"? Zee-bee?

comment 2y ago · link · parent

> The goal of supporting non-deterministic builds also seems to go against this.

I think this is actually a great escape hatch. Supporting non-deterministic builds means more folks will be able to migrate their existing build to zb. Postel's law and all that.

comment 2y ago · link · parent

That's not what makes things artificial vs natural. Artificial vanillin is "more vanilla than real vanilla". A natural vanillin molecule is indistinguishable from fully synthetic vanillin from crude oil. The latter is still called "artificial flavor".

comment 2y ago · link · parent

Definitely eyebrow raising but I'm always a fan of a bit of "mad scientist" self-experimentation (within reason), whether it be Barry Marshall chugging H. pylori or Thought Emporium giving himself lactase gene therapy.

comment 2y ago · link · parent

> Rather, it's using the energy to deoxidize rust.

Exactly, really what they are storing is electrons.

Rusting the iron directly releases heat, which limits your efficiency to the delta-T of the process. Reducing steam to hydrogen and then converting the hydrogen in a fuel cell allows higher efficiency to produce electricity.

comment 2y ago · link · parent

Iron oxide is completely inert. You can store it in piles, under the elements. Iron powder less so, you need to keep it dry, but again you can just pile it up. The only tricky part is moving dense dry solids around at the huge scales required.

Edit: wait I forgot that direct reduced iron powder exothermically reacts with oxygen and water in the air, that's how single-use instant hand warmers work. So yeah you gotta isolate the iron powder a bit more than stick it under a tarp.

I've been playing too much Factorio lately so of course my mind goes towards rail systems (could repurpose coal plants) in combination with pneumatics.

comment 2y ago · link · parent

Provisioning a DynamoDB table is scarcely more effort than provisioning a bucket. And you get way nicer constructs (still not as nice as RDBMS) for locking like ConditionalUpdate and TransactWrite.

comment 2y ago · link · parent

I worked on a DARPA anti-deepfakes project up until spring 2021, so just before the real tidal wave of generative AI. At that time, state of the art (of publicly known tech) required a few hours of target footage to train something passably deepfaked. Since then, there's been huge advancements in the generalizability of models. I don't know how little the threshold is, but it has gone from "only really feasible on celebs/politicians/folks with extensive video presence" to "feasible from a handful of videos". Like your average American's social media footprint.

You still need a pretty beefy rig (array of multiple 4090 gpus) to do convincing video generation in a non-glacial amount of time but it's totally possible with readily available hardware.

The bigger problem is actually "cheapfakes", so many people are so confirmation-biased that they will readily amplify even poorly put-together disinformation.

comment 2y ago · link · parent

I think both need some workshopping. I tried search for "error oracle" and all I got were results about errors while using Oracle the database product. I gotta search "error oracle cryptography".

"doom principle" isn't great either since the first hit points to TFA, second to this very thread, and that article doesn't really use the actual term of art.

comment 2y ago · link · parent

> This seems very much like a solution in search of a problem.

My friends and I independently came up with this exact idea at the most recent regional burn event, specifically to better coordinate meeting back up after wandering, and then discovered this device, so it's very much a real problem in need of solving.

Concerts are usually pretty easy to find your friends after splitting up. They are usually at the bar, restrooms, or a handful of viewing spots or seats. Big raves, music festies, burns, and other large gatherings are spread over a much wider area.

comment 2y ago · link · parent

Binary is a local maximum in terms of entropy vs complexity. Going from one state per element to two states per element is an increase from 0 to 1 bits: an ∞% increase. Going from two to three states increases it to 1.585 bits per element, or a 59% increase.

Cheeky math aside, getting signalling logic to work with ternary, especially when clock rates go so high the signal starts to look less like square wave pulses and almost more like a modulated sine (due to slew), you now need much more sophisticated decoders.

comment 2y ago · link · parent

I was expecting lulz but this was actually very well written and gets into a lot of the softer aspects of human-computer interaction.

Also the double entendre of "plug" in technology contexts, subtly brilliant.

comment 2y ago · link · parent

> If you see people using requirements.txt in the wild instead of a poetry lock file or you see people using the decades-long broken python built-in logging framework instead of loguru you can see there’s opportunities for improvement everywhere

The irony of TFA mentioning the midwit meme.

50 iq - just use python's stdlib logger

100 iq - use loguru or some other custom log lib with fancy colors and formatting

150 iq - just use python's stdlib logger (with your own formatter)

Loguru is great for user-facing applications (especially when that user is a developer), it's pretty, structured out of the box, nice to use API. It's also pretty bloated and adds hundreds of ms of startup latency. Terrible for lambda/Faas cold starts.

Lately I've taken to just making a dict of the various field names and format strings, and json.dumps it into logging.basicConfig, boom, instant json structured logs. Middleware takes care of the rest. It Just Works(tm) and one of the most frustrating things is buggy loggers. The less overhead between `python3 /app` and getting some indicator everything is norminal, the better.

> don’t be bringing your outdated Python 3.7 sand castle to my Python 3.12 cathedral.

This is hilariously pretentious. Yeah 3.7 is EoL and if you're running it you probably need a kick in the pants to update deps, but it's far from the worst python sin.

comment 2y ago · link · parent

Yes, but actually no. If the DEA or local LEOs actually wanted to crack down, there is plenty enough wiggle room in the scheduled substances act and all the related add-on laws (esp. Federal Analogue Act), there is enough molecular similarity between the various cannabinoids, and insufficient sensitivity in most chemical tests, plus the tendency of THC-A to decarb (eject a carbon dioxide molecule to give THC) under heating, that these agencies could absolutely give you a hard time and make your life hell for a while. Even if charges didn't stick, you'd still have a bad time and be out thousands in legal feels.

What's actually happened is de facto, not de jure, legalization (in effect, but not in law), because of the unpopularity of cannabis prohibition. It's just not worth it in most situations to go after these products at this point.

There's still a strong need for actual legalization at this point.

1
567
85