8,487 karma · joined Feb 1, 2017 (9y ago) · 2,549 submissions
comment 4y ago · link · parent
The chief problem I have with all stimulants is too fast of an impulse response. It comes on too fast, crashes too fast. For me, for instant release drugs, I experience the following half-lives:
- methylphenidate: 60-90m
- amphetamine salts/dexedrine: 3-4h
- caffeine: 3h
- modafinil: 6-8h
Once a drug reaches about 1.5 HLs (about one Tau/time constant, conveniently), I start fading hard. There is a hysteresis effect: peaking/crashing/re-dosing is not the same as plateauing at some in-between value. Once my brain checks out, that's kind of it for the day.
So what Concerta, Adderall XR, and similar do for me, is give me what feels like two randomly spaced doses of instant release over a 4-6h window. This is unpredictable and thrashes my mental state. It peaks too high and crashes too low. The companies market these drugs based on averaging the plasma profiles of individuals to show a nice smooth curve, but I dug into the literature and this is NOT what you see on an individual level, at all. Concerta just doesn't do it for me.
Vyvanse is way smoother. The plasma peak is already low-pass filtered by the pharmacokinetics of hydrolysis of the lysdexamphetamine. As a result, my subjective experience is basically a 6h plateau. I split my dose to basically get a nice, actually smooth profile over 8-12h with a gentle taper instead of a crash. That also means lower peak plasma conc, and peak plasma is the greatest risk factor in neurotoxicity.
If you actually dig into the literature on neurotoxicity of amphetamines, you basically don't see any until you start getting to the equivalent of 50-100mg IR, and even then it's basically within the noise floor until you get to hundreds of mg per day.
comment 4y ago · link · parent
Have you been evaluated for ADHD? This is one of the classic tells. Methylphenidate is structurally and chemically very similar to cocaine.
Vyvanse is definitely the best when it comes to duration and classical stimulants. Modafinil has even longer duration, but it isn't always as effective at targeting ADHD symptoms. Vyvanse is kind of stupid expensive, but you can get a savings card. It would be $330 for me even with a good Rx plan, and the card knocks it down to $45/month. Sounds like you would also respond well to Concerta (extended release methylphenidate). I don't like it because I apparently have the metabolism of a honeybadger and get like 4-6h of otherwise "all day" meds like concerta. I have to split my vyvanse and take it in two doses to get a full day.
> This is what people like Bezos and Musk must be like
My headcannon is both these guys are ADHD and/or on the spectrum, have a doctor's script for vyvanse, adderall, modafinil, and/or whatever else, and have figured out how to ride the tolerance curve properly to maximize productivity.
comment 4y ago · link · parent
Neurotransmitters tend to be context-depended, so when you wash over the whole body with a small molecule which hits in a neurotransmitter-specific rather than context-specific way, you can get some funky effects. Most of the activity comes from the coincidence that there are some domains which correlate well with context: dopamine tends to affect anything resembling taxis, so physical movement, but also goal seeking, prediction, etc.
On top of all that, receptors and enzymes are physical things, and thus different folks have different affinities for transmitters and drugs. Pharmacokinetics - how your body distributes and clears drugs - is a huge variable.
Modafinil in particular is interesting because it's what drug chemists call a "greasy brick" - highly lipophilic, low solubility, to the point where ensuring consistent bioavailability is hard. Cephalon has put in a fair bit of work ensuring a certain particle size and excipient profile (emulsifiers to facilitate absorption) and personally I've experienced quite the difference between name brand and generic, the later often does jack-all for me.
td;dr - small molecules act on broad regions and impact many subsystems at once. Biology is complicated and crufty.
comment 4y ago · link · parent
"The Men Who Stare At Goats" is a delightful book that was made into a film about the subject.
More practically, bouncing bomb: https://en.m.wikipedia.org/wiki/Bouncing_bomb
comment 4y ago · link · parent
My one suggestion: use a distinct symbol for assignment and equality, either :=/==, =/==, or even :=/=. I kinda like the Go way of doing things, := assigns and initializes, == is equality (not sure you have a need for = re-assignment, but maybe). But I would definitely warn against = for context-dependent assignment or equality comparison.
You've got "let" so I guess that is kind of a syntactical difference; I guess the trippy part is seeing "=" do equality comparisons.
comment 4y ago · link · parent
Where is the data coming from? Employees table. What's coming out? 20 rows of sum_gross_cost.
What could improve this is function signatures. It's kind of nice to have the whole abstraction up top...like an abstract.
comment 4y ago · link · parent
`x ?= default` is perfect IMHO. There's already prior art (Makefiles) that this means exactly "present? else = ..." with lazy evaluation of RHS expression.
It also would allow eliminating the "if x is SENTINEL" pattern, where None is a valid non-default argument.
comment 4y ago · link · parent
https://docs.python.org/3/library/dataclasses.html#dataclass...
Functions are in fact objects as well, so there might be some way to do this sort of behavior with decorators.
I would actually contend that "if x is None, x =Bar()" is actually a superior pattern in some/many cases. I used to use "x or Bar()" or "x if x is not None else Bar()" quite a lot, due to its compactness. However I learned that actually sometimes code coverage fails to ensure proper coverage of these ternary assignments. If your default argument is just because you need to initialize a mutable object, ternary works fine. However if the presence or lack of a parameter is an important part of your state space, you probably want explicit coverage.
https://stackoverflow.com/questions/47958166/code-coverage-a...
comment 4y ago · link · parent
Sam's lab looks like it cost somewhere north of $10k, but south of $50k. But I mean that's like from empty garage with nary a multimeter to your name.
comment 4y ago · link · parent
comment 4y ago · link · parent
http://sam.zeloof.xyz/sio2-patterning/
See my other threads. HF is Serious Business, but approachable for the hobbyist if you know about chemical hygiene. You can buy Whink at the hardware store.
comment 4y ago · link · parent
There's a line between "demands respect and thought during handling" and "reckless/insane". Having a properly ventilated workspace, and knowing how to handle dangerous chemicals, I would say HF is dangerous but not insane. Borderline insane for a hobbyist would be things like generating primary explosives/peroxides or toxic gases: cyanides, phosphines, hydrogen sulfide, ketene. I worked as a lab chemist for years and even with a decent home lab, I would be loathe to do any experiments which generates toxic gases in anything greater than 100's of mg quantity, because discharging your vent hood becomes a big concern. I've heard stories where someone accidentally acidified some cyanide (in a hood) and it killed a bunch of pigeons on the roof.
HF, eh, that's fume hood and PPE territory. Neutralize with calcium hydroxide, evaporate it in a hood to salt, and dispose as you would other solid chemical waste. It's just fluorite mineral at that point.
comment 4y ago · link · parent
There doesn't seem anything more toxic than what you would find in your run-of-the-mill chemical research lab. One time I got to handle a few liters of trimethylsilylcyanide (at work, not in my garage lol), that was an exciting day in the lab.
This is but one example of articles I've read talking about how "toxic" chip fab is...and I'm like, have you seen the coal industry?
https://www.allaboutcircuits.com/news/reevaluating-the-toxic...
> Aside from being caustic, many commonly-used chemicals are known human carcinogens. Some examples that can carry high risk are toluene, acetone, methylene chloride (DCM), xylene, chloroform, and isopropyl alcohol.
You mean paint stripper? Granted, DCM is being phased out, but I've worked with gallons of the stuff. Xylene/toluene are in spray paint. Acetone and isopropanol are literally under my bathroom sink. Acetone is straight-up not a carcinogen, and IPA is carcinogenic in the same way bacon and beer are carcinogenic. Like, technically yes, but it's not exactly methyl iodide.
> Others—like glycol ethers—may even cause reproductive harm.
You mean windex? Contains ethyl/butyl glycol ether (cellosolve).
Sure later in the article they mention mercury, cadmium, tellurium, those are pretty yucky. But how many NiCd batteries do consumers improperly dispose of every day?
Chip fab is probably no worse than your average autobody garage/paint shop combined with a metal plating facility. Yeah don't go dumping your effluents in landfills or storm drains, but we already have protocols and pipelines for chemical hygiene and waste management.
Chip fab actually has the advantage of tons of money to throw at proper chemical hygiene, unlike fossil fuel industry with razor thin margins.
Can we do something about the mining, fracking, and coal burning industries though?
comment 4y ago · link · parent
That would require kernel devs to radically rethink how they interact with I/O, which would probably require specific architectures.
In other words, writing a kernel portable on any of the existing ISAs that is also performant is basically impossible, barring some humongous breakthrough in compiler technology.
Seems to me that when it comes to brass tacks, UB is kind of the "we are all adults here" engineering tradeoff that enables shipping fast and useful software, but is technically not strictly defined and thus usually does what you want, but can result in bugs.
comment 4y ago · link · parent
The difference is that viruses have many more tools available in order to evolve and adapt. Prions, like crystal polymorphs, merely have the configuration space of the molecule. Viruses have the configuration space of dozens of proteins, and complexity can increase, so in theory there is no upper bound.
So I guess yes, they are all replicators that differ in extent by the amount of phase space available to their lifecycle. But the complexity jump between prions and viruses is huge, and prions are inherently bounded.
comment 4y ago · link · parent
What I want to know is, is there anything out there like kubernetes but stripped down to just the control loop engine part? Like a glorified IFTTT but without all the overhead and baked-in assumptions of k8s. Some kind of daemon/library where I can write an arbitrary controller which reads a spec, queries some state, and has actions to push the system toward the desired state.
The actual I/O is just writing an API and could basically just be a CRUD. What I'm looking for is the state management engine; that is tricky.
comment 4y ago · link · parent
It's like saying QEMU is the new Systemd; it doesn't even make sense, it's a category error.
comment 4y ago · link · parent
Lua and JS are not even binary languages.
comment 4y ago · link · parent
At the very least, the US drug schedule system is completely out of whack with actual risks. There's tons of sched 1 drugs which are objectively safer than alcohol.
comment 4y ago · link · parent
I'm sure it's a highly personal thing, but Matthew Butterick proclaims it's more universally bad than it actually is.
That is why there's a checkbox for enabling ligatures.
Like why is this a thing? It's like proclaiming certain font sizes aren't worth it. My dev machine is my interface. I should be able to do what I like with it.
Edit: I guess he addresses this in a footnote, but hardly:
> “What do you mean, it’s not a matter of taste? I like using ligatures when I code.” Great! In so many ways, I don’t care what you do in private. Although I predict you will eventually burn yourself on this hot mess, my main concern is typography that faces other human beings.
A) I've never burned myself b) other than screen shares (again, nary a complaint, but several "cool! How do I get that?") I'm never rendering code for others to consume. I agree that a ligatured font would be bad e.g. for publishing code in a whitepaper.
comment 4y ago · link · parent
Yeah, actually it is. It's immediately intuitive to me. It makes string interpolation way easier. Quick, how do you do -d {object} and pass in environment variables with correct string escaping? Do you start with single quote or double quote? Where do I put backslashes? Bash vs zsh compatibility? Plus you have to make sure all the slashes, quotes, brackets and braces match.
Vs
--jp foo=$FOO --jp bar="baz-${BAR:-default-bar}" --jp date="\"$(date)\""
(I'm iffy on the last one, but it's WAY easier than trying to build that into an object)
comment 4y ago · link · parent
OTOH, if you ignore using curl to GET resources to download, >90% of my curl usage is slinging json, and often involves interpolating strings and hence copy-pasting, so this feature would be immediately useful to me.
Curl is kind of the swiss army knife of the web so I don't think a long manpage is out of line.
comment 4y ago · link · parent
There's actually 5 main subtypes of the dopamine receptor. They express in different concentrations in different brain regions, and have different functions.
DRD2 is kind of the heavy lifter when it comes to goal seeking. If you had to boil it down to one idea, I'd call it "go/no go". It might be tempting to try to map D2 to something like a coefficient, perhaps even the "run coefficient" in run and tumble. But it's not at all like that, even on its own. It's very nonlinear. Furthermore, the action of D1 modulates D2 in a concentration-dependent way. So you have not just D2 signaling, D1 signalling, but also the differential signal as well. We don't know exactly how it maps out, but we know it plays a roll in weighing risk/reward ratios. Screwing with this pathway often results in "low risk low reward" mild manner folks switching to "high risk high reward", often going into gambling, manic spending, hypersexuality, and grandiose thinking. This can be seen occasionally with e.g. Parkinson's drugs such as L-DOPA.
Actually my headcannon is there are some parallels between Parkinson's and control theory. Net loss of dopaminergic neurons results in lower bandwidth on your control loop. In PID loops, one of the symptoms of insufficient I/D gain is ringing, where the controller constantly hunts for the setpoint and overshoots. Tremor is a common symptom of Parkinson's (though it affects much more than just tremor), but if you notice, it's usually not a continuous tremor, it's only when trying to execute motor control, especially fine motor control. The body knows kinematically where it wants to be in space, but the feedback loop rings constantly as it isn't able to get sufficient bandwidth to error correct.
Anyway, I think the point of TFA is not to suggest that this loop is a single parameter, it's just to model it as such. It's a spherical cow reduction. That kind of reduction lets you build practicable theories and test hypotheses. Such as: if Parkinson's is the result of reduced bandwith, can we treat the symptoms by increasing dopamine gain? And in fact, we can, that checks out.
comment 4y ago · link · parent
There is a top-level algorithm of "find mate and reproduce", which is enjoyable. How does it boost the odds? By doing things to be more attractive, for example. But how does one "know" one is on the right path? Activities which we learn increase attractiveness are enjoyable. There's a gradient we follow. More attractive = more enjoyable. So you end up with complex behaviors that basically become self-hoisting; the activity itself becomes the reward.
Basically, games and hobbies. Something becomes enjoyable vis a vis various learned reward functions, so we just pursue the enjoyable thing.
There's also a meta-loop wherein staying mentally stimulated and curious is itself a useful fitness, so we do things which are interesting, because it's enjoyable to do that.