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

Sure but if you ever listen to his longer interviews, in particular those with Tim Dodd (Everyday Astronaut), it's very clear he has a deep understanding of rocket mechanics, production, logistics, launch pad development, etc. It's well beyond manager-just-regurgitating-stuff they hear. One interview he stops briefly and gets into some nitty gritty about hold-downs on the starship pad or something.

comment 4y ago · link · parent

I love how some folks are like "Elon isn't a real engineer!" and then he starts going on a tangent in the middle of a presser about how flanges are a PITA to seal once you exceed a few hundred bar (just over a few thousand PSI), and how welding improves the plumbing significantly.

Like, what!? That's not how C-suite bigwigs talk. That's primo enginerd banter.

comment 4y ago · link · parent

> This sort of begs the question: where does classical OOP, the one taught to all undergrad CS majors in programs that use Java or C++, really fit in nowadays?

Hot take: nowhere. I mostly kid. But really I don't know of any domain in which strict inheritance and data hiding beats mixins/composition, interfaces, and dataclasses. It's so much easier to reason about the behavior of an interface in a given role, than an "Object" which spans all kinds of scopes.

comment 4y ago · link · parent

Thunderf00t is such a strange fellow. He's clearly quite bright and has some fantastic takedowns of pseudoscience and scammy things, and even disproves a claim about dipoles from a Veritasium video.

But then he goes off with these screeds like the Starlink one as if like they are going to scale up v0.5 without any revision or cost improvement. In the name of "skepticism" or "rationality". But a real rational look at the situation would maybe give the ops and biz folks at SpaceX a bit more benefit of the doubt that they can project out profit/loss over multiyear timeframes.

comment 4y ago · link · parent

Is it bad that my thought in response was, well if you consider suborbital rockets a fractional satellite, then you can analytically continue the function of satellites over time all the way back to the invention of blackpowder? 1 satellite = ability to orbit at least once = ~150 km apogee. So a 150m launch would be 1 millisatellite...

I too probably should lay off the coffee.

comment 4y ago · link · parent

Awscli. It's not just the complexity or inconsistency; that kinda comes with the territory. It's just not discoverable. Constantly have to be googling stuff.

Boto is in a similar vein. Stupid capital letter arguments. No type information, no autocomplete.

comment 4y ago · link · parent

Two tips: use brew or the dedicated installers promoted by the developers for awscli. Don't use python, pip, pipx, or conda to install awscli.

Use pipx to install any python "tools" (cli executables and the like). keeps each package in its own venv, so they don't clash.

comment 4y ago · link · parent

I get that folks are jaded over the Iraq WMD things. I get it. The US itself is not above disinformation at times.

But to imply that Russia isn't willing, able, or actively running disinformation ops, and in fact it's the US State Dept that's lying and running the false flag...like, what!?

Russia:

- we have no intentions of putting missiles in Cuba

- we're not rolling tanks into Afghanistan

- dunno how that polonium got into that spy's tea

- idk, that spy just happened to die from a nerve toxin that's only produced in one russian chemical weapons facility.

I'm hardly read up on world politics but anyone paying attention to basic history knows that this is what Russia does. They constantly gaslight the rest of the world with a thin veil of plausible deniability, while leaving obvious "calling cards" as a message of deterrence to anyone that can read between the lines.

comment 4y ago · link · parent

Short answer: Russia is quite different from Iraq because it has nukes. Iraqi WMD was all about chemical/biological and the capability of a nuclear program. Most sources today say that Iraq had halted and dismantled their CBW program in the 90s, but they did have those weapons prior to that.

USA will proxy war with Russia all over the world, but always falls short of direct conflict. It's too likely to turn nasty, and trigger MAD.

I think it's an important distinction that the US isn't gearing up for war with Russia (US-Russia), but rather readying themselves for a Ukraine-Russia escalation, and whatever ways in which that might spill over. Arguably they are already at war. The concern is not just another territory grab, but outright attack on Ukrainian sovereignty.

I don't know enough about world politics to have a say in to what degree the US is willing to come to Ukraine's defense. I do know that US doctrine since the Cold War is to not directly square off with the bear, not discounting giving the bear death stares from across the bar.

comment 4y ago · link · parent

Yeah that sounds more technically correct.

comment 4y ago · link · parent

"That ship has sailed" i.e. POSIX forbidding argc==0 when standardizing.

I agree it's worth considering it now. I think argc>0 is close enough to a convention that things ought to mostly work, but it kind of irks me that it's necessary. But it should reduce ambiguity.

comment 4y ago · link · parent

So let me paraphrase to see if I understand the context correctly:

- the only guaranteeS are argc>=0, argv[argc] == NULL, and envp comes right after argv

- argc is _almost always_ >= 1

- a widely used sbin (polkit) just assumes argv is always at least 1 element and so iterates starting at argv[1] (without checking argc)

- said polkit also mutates argv, so if it is fed with argc actually zero, it actually mutates envp

- some devs want a patch to the kernel to prevent calling execve with argc==0, (which probably should have been in the original spec, but that ship has sailed) as a way of preventing other similar footguns.

- other devs are like "that's gonna potentially break userspace" which is a valid concerne

Is that more or less it?

comment 4y ago · link · parent

Water is "actually" blue, as in due to the chemistry of its electronic configuration. A deep column of water has a blue color in a way that other liquids, such as benzene, do not. There was a cool picture of this demonstration in one of my old chemistry books.

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

Reflection of the sky accounts for much of the color of natural bodies of water, but it's cool to know that it's blue even in the absence of blue reflection.

comment 4y ago · link · parent

No, cause Elon is obsessed with Mars, and a Kessler cascade would make it that much harder to set up a Mars base, so even just from a totally self-serving angle, Elon has a high prerogative to avoid space collisions.

Not to mention it would be terrible for SpaceX business on a far shorter timescale.

If there's one thing you can count on, it's that billionaires will defend their bottom line.

comment 4y ago · link · parent

My understanding is the bugginess is due to* unintended* nondeterminism, in other words, things like a race condition where two threads write some result to the same memory address, or singularities/epsilon error in floating point calculations leading to diverging results.

Make no bones about it, these are programming faults. There's no reason why distributed, long-running models can't produce convergent results with a high degree of determinism given the input state. But this takes some amount of care and attention.

> So you might want to change the seed on every run to protect yourself from such nasty phantom effects.

That's a perfect example of what I mean where a seed is actually worse. If you know you can't control determinism, then you might as well go for the opposite: ensure your randomness is high quality enough such that it approximates a perfect uniform distribution. Adding a seed here means you are more likely to capture the true distribution of the output.

comment 4y ago · link · parent

> "The model generated totally different output every time you ran it, even with fixed seeds." - I remember seeing code takedowns of the model from anti-lockdown people who repeatedly cite this issue. But there is a valid reason for this to happen, and it doesn't mean bugs in the code. If the code is run in a distributed way (multiple threads, processes or machines), which it was, the order of execution is never guaranteed.

Then there's literally no point to using PRNG seeding. The whole point of PRNG seeding is so you can define some model in terms of "def model(inputs, state) ->" output, and get the "same" output for the same input. I put "same" in quotes because defining sameness on FP hardware is challenging. But usually 0.001% relative tolerance is sufficiently "same" to account for FP implementation weirdness.

If you can't do that, then your model is not a pure function, in which case setting the seed is pointless at best, and biasing/false sense of security in the worst case.

As you mention, non-pure models have their place, but reproducing their results is very challenging, and requires generating distributions with error bars - you essentially "zoom out" until you are a pure function again, with respect to aggregate statistics.

It does not sound like this model was "zoomed out" enough to provide adequate confidence intervals such that you could run the simulation, and statistically guarantee you'd get a result in-bounds.

comment 4y ago · link · parent

It's not reasonable, but for different reasons. Building a carbon copy of LHC would not add anything new in the way of science. A better example would be LIGO. Adding another gravity wave detector of the exact same spec but halfway around the world would be fantastic, because it increases our triangulation ability, and keeping the engineering, hardware, and software the same reduces cognitive load of the scientists running it. Yes that means any "bug" in the first is present in the second, but that also means you have a common baseline. In fact there will inevitably be discrepancies in implementation (no two engineering projects are identical, even with the same blueprint), and you can leverage that high degree of similarity to reduce the search space (so long as subsystems are sufficiently modular, and the software is a direct copy).

The original comment was with respect to some n-back training program. There's so many other potential places of bias in an experiment like that, that you'd be foolish not to start with the exact same program. If an independent team uses a different software stack, and can't replicate, was it the different procedure, software, subjects, or noise?

The first step in scientific replication is almost always, "can the experiment be replicated, or was it a fluke?" In this stage, you want to minimize any free variables.

It's a matter of (leaky) abstractions. If I'm running a chemistry replication, I don't need the exact same round bottom flask as the original experiment; RBFs are fungible. In fact I could probably scale to a different size RBF. However, depending on the chemistry involved, I probably don't want to run the reaction in a cylindrical reactor, at least not without running in the RBF first. That has a different heating profile, which could generate different impurities.

Likewise, I probably don't need the exact same make/model of chromatograph. However, I do want to use the same procedure for running the chromatograph.

comment 4y ago · link · parent

Well yes, but no. You want to avoid any systematic bias, which if you reuse tooling/instruments/code, you run the risk of, but source code is also something which can be peer-reviewed.

Reproducing the code base from scratch just isn't going to be tractable for large scientific pieces of software (e.g. CERN).

Better to have the source code and dig through it carefully as part of the review and replication than insist everyone write their own cleanroom copy just to avoid systematic bias.

comment 4y ago · link · parent

> Same problems exist in other languages, although "import numpy as np" doesn't explicitly say that you're importing a random head from someone's master.

Sure, python is just implicitly doing so, is that any better? Lets say you know nothing about python or numpy. You see "import numpy". What/who is numpy? How is it provisioned? Is there only one thing called numpy? How do you know it's installed locally/site-packages/editable/PYTHONPATH? You can answer these questions, but not immediately. Numpy is a poor example because it's so well know, but the other day I was trying to sort out "from pylab import *". Can't "pip install pylab". Turns out, matplotlib provides it, but for weird legacy reasons, pylab is a top level namespace.

The whole point is, if you don't trust "liyue201", then you can immediately know not to import that package. It's completely explicit in what it's doing, and no one is making you install libs from github.

comment 4y ago · link · parent

I'm not using tapes through, I'm using ssds, flash drives, and hdds. I'm sure they have some internal ecc, but is it enough?

comment 4y ago · link · parent

> It was truly bizarre that a new, backwards-incompatible version was created really just to fix a missing unicode datatype and add async.

That's a very reductive way of looking at what was in reality a far more complicated situation, that required a tremendous amount of engineering to even arrive at the compromises they came to. It's not very charitable to all the folks who worked very hard to make that transition even happen.

You think they would have actually gone through all this pain and trouble to add a unicode type and some async? You'd think if it were that easy, MS, Google, Dropbox, and friends would have just banded together, slapped on some unicode classes, and called py2.8 a day.

The problems necessitating python3 run far deeper than that.

comment 4y ago · link · parent

Just use repl.it? Honestly it's even easier, you don't have to think about dependencies, you just "import numpy" and woah it just installs it for you when you hit run!

https://replit.com/

comment 4y ago · link · parent

> but it means that your code handling things-that-might-be-strings-or-bytes often needs to have a different structure than the rest of your code.

Isn't that the point? String and bytes are different beasties. You can often encode strings to bytes and just about anything accepting bytes will accept it, but the converse is not true. Bytes are more permissive in that any sequence of any 0x00-0xff is acceptable, but str implies utf8 (not always guaranteed, I've seen some shit), meaning e.g. you can dump it to json without any escaping/base encoding.

comment 4y ago · link · parent

PSA: don't use brew to manage your development python, unless you like having the carpet pulled out from under you by brew deciding to change 3.8 to 3.9 on you.

Use brew to install pyenv (or bootstrap it from github). Use pyenv to manage python versions, and then use a virtualenv.

Or conda, if that is your jam.

https://github.com/pyenv/pyenv

comment 4y ago · link · parent

Is there a unix-style streaming tool, like tar/zstd/age, that does forward error correction? I'd love to stick some ECC in that pipeline, data>zstd>age>ecc>tape, cause I'm paranoid about bitrot. I search for such a thing every few months and haven't scratched the itch.

The closest is things like inFECtious, which is more of just a library.

I would prefer something in go/rust, since these languages have shown really high backwards compatibility over time. Last thing you want is finding 10 years later building your recovery tool that you can't build it. Will also accept some dusty c util with a toolpath that hasn't changed in decades.

https://github.com/vivint/infectious

Ok I just dug up blkar, this looks promising, but the more the merrier.

https://github.com/darrenldl/blockyarchive

comment 4y ago · link · parent

Is there a way to restore the servo tracks? This sounds like the kind of hack a dedicated nerd could pull off with an arduino and duct tape.

comment 4y ago · link · parent

That's kinda like saying Bob built a go-kart in his garage over a couple months, it moves you from A to B, I don't see why a Toyota Corolla needs a massive factory. Spotify's product isn't just a streaming media player. It's also all the infrastructure to produce the streams, at scale, for millions of users.

How often are you actually launching spotify? I start it once when I boot and that's it until my next reboot, weeks/months later.

Now you might of course ask, "why isn't the velocity 6554x that of winamp, even when correcting for non-eng staff, management, overhead, etc". Well, they probably simply aren't allocating that much to the client development.

Also often times one dev who knows exactly what he is doing can be way more effective than a team; no bikeshedding, communication, PRs, etc. What happens when they get hit by a bus?

comment 4y ago · link · parent

Yeah none of those luster dust formulations should qualify as "non-toxic" in my book.

Copper and lead salts are not only acutely and chronically toxic to humans, they can be disastrous to aquatic life if they get into water ways. Cu powder gets a solid GHS09: dead fish. Suprisingly does not get the the Health Hazard GHS8. PbS gets GHS7/8/9, right proper toxic.

Maybe they mean it's not acutely toxic? Usually either short or long term toxicity is more than sufficient to call something "toxic".

comment 4y ago · link · parent

Yep, good catch. "buccal administration" is a bit more obscure so I often just refer to sublingual unless I know the audience.

Mucosal absorption is definitely way faster than pills (unless you chew them) or drink.

One time a friend and I tried making caffeine patches with DMSO as a transport, and put it on our arms with a cotton ball and tape...NOT PLEASANT. Extreme pruritus and erythema at the administration site. Hoo boy were we alert though. Nowadays the gum is perhaps a bit too fast even, it's easy to overdue and I get palpitations.

Follow me for more horrible ideas and biohacks. /s. I don't actually have a channel for my misadventures and shenanigans...maybe I should?

comment 4y ago · link · parent

> The aim of the present study was to examine the effects of drugs (amphetamine, methylphenidate and atomoxetine)

> We observed decreased expression of this enzyme for all applied substances.

Yeah no I'm not buying it. Amphetamine, perhaps, but atomoxetine causing DNA damage? That sets off my "spurious results" detector, hard.

I'll look into it more but I've done deep research into all things psychostimulants and I have not seen any indication of genotoxicity of methylphenidate or atomoxetine. Amphetamine has a slight risk of increased oxidative stress due to making dopamine leak places where it shouldn't, and DA's electronic structure makes it prone to generating singlet oxygen and ROS, but it's typically only observed in really high doses, like the equivalent of hundreds of mgs per dose.

Like, maybe there's some increased ROS due to any drug that boosts DA/NA (oxidizing catecholamines produces ROS in general), but like, "ritalin causes DNA damage" is the wrong conclusion to draw from that.

1
363738
85