8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 4y ago · link · parent
comment 4y ago · link · parent
Like, what!? That's not how C-suite bigwigs talk. That's primo enginerd banter.
comment 4y ago · link · parent
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
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
I too probably should lay off the coffee.
comment 4y ago · link · parent
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
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
- 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
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
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
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
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
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
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
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
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
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
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.
comment 4y ago · link · parent
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.
comment 4y ago · link · parent
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
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
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
> 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.