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

Because it's been life-changing for me, and countless others? It's not just time release; that's the old school drugs like Concerta.

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

> But normal. The cloud of thoughts gone, I am able to make myself do anything with one thought, I have energy, the aches are gone, the tinnitus is gone, I don't second guess, I don't overthink. I just am and I do. It's amazing.

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

Sublingual caffeine is definitely a thing. There is caffeinated gum you can get on Amazon. You can feel it kick in almost immediately.

comment 4y ago · link · parent

Paradoxical and other unusual effects can occur with any kind of drug. Brain drugs in particular seem to be prone to a wide variance in the effect profile. I speculate that in part it is due to the heavy "reuse" of neurotransmitters for various purposes (neurotransmitters themselves being mostly reused modified amino acids). For example, dopamine modulates motor activity, reward pathways, attention, and error correction, and more. Serotonin modulates smooth muscle, appetite, uterine contraction, mood, visual salience, and more. Both can affect circadian rhythms. NMDA/AMPA and GABA are widely present and are the basic "wires" for excitatory/inhibitory signals, so drugs that affect these can do all kinds of zany things.

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

Psychic spies: https://en.m.wikipedia.org/wiki/Stargate_Project

"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

So they essentially binned the rocket parts much the same way a chip fab would?

comment 4y ago · link · parent

Someone just needs to copyright the number 451 and then they won't be able to return that HTTP response!

Checkmate, google!

comment 4y ago · link · parent

That is actually what I was expecting when I clicked the link. Was pleasantly surprised!

comment 4y ago · link · parent

Love it. This reads so much better in my mind than SQL. I love how easy it is to abstract with functions.

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

I think it's quite a common convention in engineering - not just software - that the input to a process "goes in the top and out the bottom". We humans read top->bottom (regardless of left/right/vertical, I don't know any languages that write bottom up). Conventional voltage in circuit diagrams usually flow top to bottom. Gravity loads in schematics flow top to bottom. Chemical pathways are usually written top to bottom. And of course functions take arguments up top and return at the bottom, maybe with some short circuits. I think the only counter example of note is distillation columns.

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

I agree. I think python needs some solution to the `def foo(mylist=[])` which is a mistake I see devs make all the time. `foo=>func(a)` is awful. There's too much precedent that `x = f => {}` defines a lambda with x as a parameter. This flips it on its head. `@` would be challenging for the parser. `:=` also does not match the walrus semantics.

`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

If this is a class, you can use dataclasses.field with default_factory. However I don't think there is anything analogous for standalone functions.

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

Depends tremendously on how good you are at scrounging. Assuming you have more time than money and know how to find fruitful sources (ebay is meh, local universities, local industry, electronics recylers, equipment auctions, and knowing a guy are the best ways to get cheap/free gear), you could probably do something like the z1 for a few grand.

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

I'm quite pro-taxing-corporations, but I don't see the connection. How is taxing certain tech companies more going to make the field more competitive? IMHO anti-trust laws are the tools need here. I don't see how you could target just the FAANG-esque companies with higher taxes without collateral impact to the very competitors you want to get more market share.

comment 4y ago · link · parent

> Instead of a standard HF etch, a buffered oxide etch of NH4F (Ammonium Fluoride) in HF can be used to control the etch rate and photoresist lifting. I use approximately 20-30g of 100% NH4F per 50mL of HF (stock whink rust remover) and etch time for 6000Å SiO2 is 20min at 20C. A couple drops of Triton X-100 nonionic surfactant may be added to the BOE to improve etch uniformity, wetting, and ensure consistency through a thicker resist. A good BOE recipe can be found here but assumes industrial-strength HF.

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

HF is scary but not that insane and not impossible to get without a license (in the US). You can get kits to etch glass which contain in-situ HF (armor etch for example). You can produce your own by obtaining fluoride salts and adding acid - though I would NOT recommend doing this without having some sort of lab chemistry training.

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

What are the toxic chemicals used in chip fab? (serious question) I have literally all the chemicals mentioned in the first chart on this page in my modest maker garage, sans arsenic and phosphine; though anyone with certain rat poisons would have them.

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

Is it even possible to have zero undefined behavior in languages that allow user-defined pointers? It seems like allowing even just one degree of memory indirection creates a singularity beyond which any kind of formal guarantees become impossible. Seems like you'd have to allow only structures which hide memory implementation details if you truly want to avoid all UB. Same goes for any arithmetic which could overflow.

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

But there is a difference between e.g. crystals and viruses. Both "want" to exist under some conditions. Crystals will even "evolve" to a small extent that more stable/lower-solubility polymorphs will dominate, and there have been cases of polymorph "infection" (ritonivir) between production facilities. Prions are like crystals in this aspect.

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.

https://www.pnas.org/content/100/5/2180.

comment 4y ago · link · parent

Obviously the "Oranges: the new apples?" title is off-base; k8s is fundamentally a control loop engine, Wasm is a runtime.

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

Yeah, I'm not seeing it, either. Kubernetes' scope is right in the name: control loops. K8s is basically a super powerful IFTTT engine: it looks at state, looks at spec, and figures out how to jigger the system until state matches spec. It has nothing a priori to do with containers, it just happened to be written in service of that space. You could use k8s to run your teakettle.

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

No, no, and no. The only one remotely close in scope is LLVM-IR, and even then scope is pretty significantly different. LLVM-IR is a general purpose IR for native compilation. Wasm is deliberately small in scope and designed for sandboxing.

Lua and JS are not even binary languages.

comment 4y ago · link · parent

I'm fine with alcohol being the high water mark. We can fairly objectively rank the health and societal harms of various drugs. Hard to quantify, but straightforward to build an ordinal list. Caffeine, weed, basically all psychedelics, amphetamine, mdma, and tobacco all make the cut (the latter just barely). Coke, meth, heroin, unsurprisingly worse than alcohol, ought to have some distribution controls at the very least. Prescription opioids actually look surprisingly bad.

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

Nit: that study is cigarettes. There is more to tobacco than nicotine, such as harmala alkaloids and miscellaneous MAOIs.

Either way, that's super interesting.

comment 4y ago · link · parent

I make less errors and find errors more readily with ligatures on. The instant I saw them on my coworker's machine, I had installed Fira and enabled ligatures in Jetbrains. I have ADHD and I'm a highly visual person. I love ligatures, emojis, and any CLI tool that "makes my terminal look like a disco" (to quote a different coworker).

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

> Is this any easier to remember than normal JSON?

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

I'm already well past the stage of using moar/micro/[rip]grep to scan through curl's manpage and find what I need.

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

It's definitely not a single parameter. I've been down this rabbit hole a bunch.

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

I think these "overdriven goals" might be the result of leaky abstraction. We are basically seeing an implementation detail come to light. As TFA points out, there is really just one reward-taxis algorithm. Everything drive-related is a variation on it. Meaning there is no "obtain visual appeal via body building until sufficiently attractive" algorithm.

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.

comment 4y ago · link · parent

"Perano" is a terrible name. Some far better alternatives:

- neutronium

- catastrophic violet

- Rayleigh-Blue-Jeans

1
373839
85