HNHacker News
TopNewBestAskShowJobs

jrapdx3

2,031 karma · joined August 23, 2014

submissionscomments
jrapdx3··on The Curse of Systems Thinkers
Sound like a solid approach. No surprise your documentation helps everyone including yourself, all of us are truly in the same boat. Now the trick is convincing other programmers to do what you do, if they did the world would indeed be a much better place. ;)
jrapdx3··on Exposure to 835MHz RF-EMF induces hyperactivity and demyelination in mice (2017)
True that lead, radioactive materials and asbestos are orders of magnitude more hazardous than moderate RF exposure. I think an issue raised by the research is the amount/frequency of RF needed to cause subtle injury to brain neurons and potential delayed effects that could emanate from exposure.

For example, the mouse study showed alterations to myelin sheaths. Conceivably there could be long-term implications, as in leading to conditions like multiple sclerosis. Of course this sort of hypothesis remains to be tested. Late-appearing effects are notoriously difficult to establish as consequent to small insults years or decades before.

Remains to be seen where this line of research goes. I sure don't expect to see any outcome of it in the near future.

jrapdx3··on The Curse of Systems Thinkers
To my way of thinking documenting the work is vitally important, even more important than planning in some respects. Or maybe we could say planning is just another form of documenting what we're doing (or trying to do).

Sure, writing code is the stimulating creative part. And purifying code, making it elegant, polishing the creation to a brilliant sheen is highly rewarding. By contrast, documenting what's been done is tedious, boring, a gigantic pain, a total drag. Yet if it's not adequately documented all that creative effort will inevitably amount to nothing but a reason to hate its creator.

Furthermore, is it really possible to write superb documentation for lousy code? The effort to document the work is a kind of quality check on the work.

Can't say how many times it's come back to bite me where it hurts. Looking at stuff I finished 6 months, or God forbid, 6 years ago, poorly documented programs invariably prompt a shameful recognition that I have no idea what the hell I did. At least when someone else wrote it I can justify feeling indignant at the "mess" I have to figure out. But when it's my own, that's just sad.

Of course the work we leave behind (at the end of a job, retirement, etc.) will usually be resumed by someone. Excellent documentation is our finest legacy. Consider how it supports moving a project forward when the code's author isn't there to "explain" how it works.

And if we're honest with ourselves, writing cogent documentation is hard, often much harder than writing code which is why it's such a brutal task. OTOH doing something hard is a good reason to tell oneself "A big accomplishment! Good for me!" Something to feel good about!

A rule I aim to live by: the workday isn't over until I record what I just did and the reasons for doing it the way it was done.

jrapdx3··on Exposure to 835MHz RF-EMF induces hyperactivity and demyelination in mice (2017)
In the study researchers were focusing on brain cells. The brain generally has a high rate of blood flow so by your reasoning brains cells would be less affected than low-flow regions like the eye. But measurements would have to be taken at a specific site to know for sure, in this case that would be in the intracranial space.

The RF was probably too low power to produce readily measurable effects on temperature in the brain. I imagine that it could be a difficult piece of data to collect. However, you're undoubtedly correct that whole body temperature wouldn't be informative in such a study.

Makes sense, keeping some distance from running microwave ovens is a good policy. After an oven has been in service for some time what are the odds seals become leaky, etc. Probably not a great risk but no harm in minimizing one's exposure.

jrapdx3··on Exposure to 835MHz RF-EMF induces hyperactivity and demyelination in mice (2017)
FWIW the researchers argued against the RF-induced damage being due to thermal effects. However, if not thermally-induced, how RF damages cells apparently is unknown and remains to be determined.

But I can't think what else could be involved other than thermal damage. Thinking about it, I also wonder how much thermal stress is required to produce damage. If only a small increment in thermal energy at a micro-level or at particular chemical bonds is what happens, it would be a challenge to detect and measure such tiny, localized changes. Then again if the effect (that is, RF agitating some chemical entity) is small enough maybe calling it "thermal" wouldn't be exactly right.

Will be very interesting to see how this line of research develops. In any case, a great question that requires a lot more work to decipher.

jrapdx3··on Exposure to 835MHz RF-EMF induces hyperactivity and demyelination in mice (2017)
According to the article thermal effects of the RF exposure were minimal to nil. There was evidence of damage to brain cells that was attributed to RF exposure. However mechanisms leading to damage within the cortical neurons aren't clear. The RF exposure induced intracellular responses to stress and damage to myelin sheaths, the latter was thought responsible for observed hyperactivity.
jrapdx3··on Arizona’s dry future begins as Colorado River shrinks
I live in Oregon and AFAIK the idea of shipping (diverting?) water from the Columbia to California has been a recurring theme that is, so to speak, "dead in the water" before the ink dries on the planning documents. (Yeah I know, paperless, etc., but the really big plans seem to never escape printouts.)

FWIW in Portland water isn't at all a cheap resource which speaks to the costs of even fairly local transport and delivery. (Portland's water source is ~60 miles east at Mt. Hood.) To me it suggests attempting to share water with very distant areas would be an extremely expensive/complex engineering feat that would dwarf construction of the new Panama canal. Even a project of such scale is by comparison merely a backyard ditch.

jrapdx3··on Tcl the Misunderstood (2006)
Ironically Tcl is very Lisp-like in certain respects, though also quite different. Rabbitholes notwithstanding Tcl can be enormously useful and productive. In particular I think the built-in Tcl object-oriented features are a real asset and not nearly the same sort of rabbithole as you encountered in the past.
jrapdx3··on Tcl the Misunderstood (2006)
I think it's worth pointing out that in the years since this article was written (2006) quite a few new features have been added to Tcl. A few of the more significant include coroutines, robust object-oriented system, tailcalls, apply (lambdas), namespace ensembles, et.al.

Of course some of these features were already present in other languages. However, steady improvements to Tcl have pushed the language well beyond how it was described in the article. Definitely not a "toy" but overall as capable as the other scripting tools out there.

jrapdx3··on The Birth of Tcl
True, lexical scoping is dominant in current programming languages and it is easier to reason about.

Alas Tcl is more complicated. It's sort of dynamic but not quite depending on how variables are accessed. For one thing a proc definition provides a separate scope from the global variable scope. If we define:

    set b 5 ;# global
    proc w {a} {
      # upvar 1 b b
      + $a $b ;# "can't read 'b': no such variable"
    }
    proc x {} {
        set b 2 ;# local
        w 0
    }
    x ;# error re: no such variable 'b'
If it was truly dynamic (or more correctly indefinite) scope, we'd see '2' printed because 'b' would be readable in procedure w, but instead we get an error. However if inside the procs '::b' was used instead of 'b', then 2 is printed consistent with dynamic scope. ('::b' is 'b' in the global namespace.)

Of course the call to w in x doesn't operate under lexical scope since procedures are global and can't access variables inside another procedure's scope.

It is possible under some conditions to mimic lexical scope using the upvar command. In the case of proc w, uncommenting the upvar call would reference var b in the calling proc (or stack frame).

Wow, written out that is kinda "mind-boggling"! But in practice it's not a problem keeping it straight, at least most of the time...

jrapdx3··on The Birth of Tcl
Thanks, didn't know about the Rebol3 version in the link. I'll have to look into it. AFAIK the Red developers goal is to extend the Rebol philosophy to a modern, open source tool that can serve a number of high and low level purposes. Red is coming along but slowly. Not surprising given the lofty ambitions of the project. I too hope they succeed.
jrapdx3··on The Birth of Tcl
Expect has had remarkable longevity, though I'd say the greatest impact of Tcl has been though *sqlite* which started as a Tcl extension and still uses Tcl in its development. Sqlite is used so very widely, hard to find any major software that doesn't incorporate it. I guess Tcl is nearly everywhere, under the hood anyway.
jrapdx3··on The Birth of Tcl
Having used Tcl extensively I think scoping rules aren't really too complicated, but there are some apparent inconsistencies. A main one is global variables aren't visible inside procedures unless declared as "global", whereas procedures are global no matter where created (in the global namespace). However referring to variables and procedures using fully qualified namespaces is always correct and unambiguous.

The thing with upvar (and uplevel) is that by default upvar refers to variables in the caller of the current proc. But when a proc is called indirectly (e.g., a callback proc) then the variable upvar is intended to reference may be 2 or more frames above. Using something like "upvar #2 refvar var" works as expected. It's analogous to deferencing pointers in C when there are >1 levels of indirection.

Is there any programming language that doesn't have some confusing rules? If a language is going to be useful the answer is bound to be "no". It's a curious how we get used to a particular (or even peculiar) syntax. When used long enough it begins to feel "natural" and obvious, and find it amazing how anyone would have difficulty understanding how it works.

jrapdx3··on The Birth of Tcl
You probably already are aware of it but there's an effort to create an open source successor to Rebol. See the Red Programming Language site [0].

I've played around with Red and it's pretty interesting. Though rather different from Tcl. Red compiles to native code out of the box which is an advantage. Currently Red is limited to 32-bit output. When they get 64-bit working along with self-hosting compiler I think the language could become a major success.

[0] https://www.red-lang.org/

jrapdx3··on The Birth of Tcl
I've used Tcl extensively over many years. It's a tremendously flexible tool that can be shaped to accomplish many tasks. Tcl was never the most widely used scripting language but it's alive and well, and its development continues with new versions on the horizon. There still is a lot to like about Tcl.
jrapdx3··on Results from first US trial of genetically modified mosquitoes
You are correct re: evidence for connections between inflammation and depression. There's a robust literature on the subject. Here are just 2 articles. [0][1] ([1] specifically addresses gut flora and inflammation.)

[0] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8968318/

[1] https://www.ncbi.nlm.nih.gov/pmc/articles/PMC8965553/

jrapdx3··on The chicken you are eating has increased 364% in size over the last 50 years
There is a lot wrong with diets in developed countries, but it's not chicken, or at least chicken is way down the list of offenders.

AIUI the biggest dietary culprit is the insidious infiltration of sugars into the foods that many people eat. Much of the prepared, convenience foods people rely on contain sugars that even dedicated label-readers may not be able to readily identify. A whole laundry list of cane sugar, sucrose, high-fructose syrup, rice syrup, honey, invert syrup, molasses, panela, muscovado, etc.

Unless they're sneaking sugars into chicken, sure doesn't seem that it would be the main problem.

jrapdx3··on A drug that cures alcoholism may be the next anti-anxiety medication
Don't know if disulfiram will pan out, the study is at a very early stage. But of course people who are motivated to take the drug and understand the need to avoid alcohol will be ideal candidates for this approach. Let's hope the studies go well. Good news is that since it's already on the market there should be fewer impediments to its availability.
jrapdx3··on A drug that cures alcoholism may be the next anti-anxiety medication
Yes, it's true that a significant fraction of certain populations have an intrinsic disulfiram-like reaction to alcohol. (Affected individuals don't produce the enzyme that disulfiram interferes with.) For sure these people have a good reason to avoid alcohol.

Whether this inherited intolerance of alcohol is the norm depends on which populations we're talking about. For example among people with European ancestry this genetic variation is uncommon. And indeed alcohol dependence is a huge issue in many parts of the world.

In my experience disulfiram is only useful with people who are motivated to quit drinking. Forcing alcoholics to take disulfiram is asking for catastrophe. (Courts used to impose this condition on people charged with driving while intoxicated.) I've known individuals who drank anyway and wound up in the Emergency Department. Fortunately none died but it can happen. Anyway it's an issue because having an anxiety disorder often leads to abusing alcohol.

But the article's real story is not only the potential antianxiety benefit of disulfiram, but the intriguing finding regarding novel mechanisms of action, and that is worthwhile exploring further whether the drug ever gets approved for this new use, or not.

Not at all contradicting your point. It just goes to show we have to take things in context, the context itself being subject to infinite variation.

jrapdx3··on A drug that cures alcoholism may be the next anti-anxiety medication
Disulfiram is a very familiar and very old line drug. It doesn't (directly) stop people from drinking alcohol, but just makes it very unpleasant. Disulfiram interferes with the breakdown of the normal metabolic products of alcohol, which cause nausea, headache, flushing, sweating and other autonomic symptoms. With large amounts of alcohol the interaction can be dangerous, rarely even fatal.

But the article is reporting a different effect altogether. Disulfiram indirectly inhibits glutamate signaling, which produces a putative "antianxiety" effect in an animal model of anxiety. It makes sense in that glutamate is the primary activating neurotransmitter in the brain.

After all existing antianxiety agents like benzodiazepine drugs work by binding to GABA receptors. GABA is the primary inhibitory neurotransmitter. The logic is increase inhibitory effect == reduce activating effect. BTW it's not coincidence that alcohol also binds to GABA receptors, the reason people reach for a drink when they're feeling nervous.

But the problem remains that taking disulfiram for anxiety means using NO alcohol at all. Maybe a few people are OK with this but I bet most will be unwilling to give up having a drink now and again. So it creates a problem since people will forget and with both on board it can be a big headache, in more ways than one.

jrapdx3··on Fennel: A Practical Lisp
I used Chicken for several years in the past and looking at it again recently. Worked great under FreeBSD, Linux, has a large set of well-maintained extensions and has (mostly) excellent documentation. And IME Chicken developers were always willing to answer questions, easily reached on ICQ/mailing lists. That's probably still the case.
jrapdx3··on Sunken Moskva Could Be the Biggest Naval Combat Loss in 40 Years
> ...they underestimate their opponents.

And at the same time overestimate their own capabilities. Both history and life experience teach us that more often than not failure is an outcome of inadequate self-observation. Imagined prowess based on mistaken assumptions is so often the source of defeat even more than losing to a genuinely superior adversary. It's the difference between arrogant blindness and courage under fire, the first is a dishonest prelude to failure, the second affirms reality and probability of success.

jrapdx3··on Sunken Moskva Could Be the Biggest Naval Combat Loss in 40 Years
Pretty sure Ukraine would love to make that happen. If they did that Ukraine probably wouldn't care if people thought sinking other Russian ships didn't constitute proof Ukrainians sank this one.
jrapdx3··on Sunken Moskva Could Be the Biggest Naval Combat Loss in 40 Years
Thank you, good points. Though IIRC the drone was reported to have been shot down but it could have transmitted footage before that happened. If Ukraine has audio recordings that would be very interesting, but as you say they might be reluctant to share it.
jrapdx3··on Sunken Moskva Could Be the Biggest Naval Combat Loss in 40 Years
According to the article it definitely will be a very significant event if it turns out to be the result of a Ukrainian missile attack which has not been confirmed.

I'm not sure how it could be confirmed that Ukrainian actions cause the ship to sink. Hardly likely that Russia will say so even if it is true.

Maybe someone with expertise in these matters could shed light on the question. Certainly there are more than a few people around the globe who are highly invested in knowing the answer to that one.

jrapdx3··on Psychedelic frees up depressed brain, study shows
Appreciate the thoughtful comment.

> I don't know how one can reasonably weigh between a medicine with known risks (and plausibly unknown risks!) and the unknown risks of something like psychedelics, which are not yet understood at all but anecdotatlly appear to potentially have a very high reward/risk ratio.

Yes, the key word in your statement is "anecdotally". Anecdotal evidence is not good enough. Need to have systematic, carefully vetted evidence documenting specific benefits and risks before it can be said the compound is understood well enough for general use.

There's a process to work out drug dose/risks. A prospective treatment goes through phase 1/2/3 trials. Basically it's about discovering the characteristics of a drug, good, bad and ugly. Well, at least as much as can be discovered in the course of it.

> That is not to say it can't cause other types of damage.

Exactly so. Hallucinogens can be bad for people with predisposition to psychosis, mania, panic attacks, dissociation. That's maybe ~3% of the total population. People may not know or care if they're at risk, so it can be a problem.

> And here you also say that unlike the advice you give your patients you might decide differently when it comes to yourself.

What I mean is that I have an obligation, taken an oath, that I won't knowingly expose patients to unnecessary risks of harm. It's always about having evidence that benefits exceed risk. It's a judgement call to be sure. In any case everything is done under full disclosure and consent.

I might be willing to take on a risk myself with less sure evidence of benefit than I could justify recommending to patients. There I have a higher burden of proof to meet. IOW I can experiment on myself but I won't experiment on others who might go along with it just because they trust me.

> The most trust worthy thing to do is admit that there are limits to our knowledge.

Fully agree and any trustworthy person would say "I don't know" when in fact one doesn't know something. When it comes to human knowledge it's always limited. For one thing we can't know what is unknowable, capabilities are constrained by our neurophysiological construction.

I'm OK with saying so when I don't know. It happens a lot.

One more point. It's true past practices in medicine are troubling to us now. I have qualms about certain things being done now. But cultures evolve, ideas of what's acceptable and not change. Applying today's ideas of standards to prior generations is likely to lead to a negative judgement, but is that a fair appraisal of our predecessors?

If we take a hard, critical look at our own time, and think about how some contemporary practices (not just in medicine) will be viewed by people 100 years from now, really what will they think of us? Plenty of current things would qualify, but it's hard for us to see them that way. Culture is invisible to the people embedded it it.

jrapdx3··on Psychedelic frees up depressed brain, study shows
Yup, you're an adult, you make up your own mind.

If you're in my office and I recommend a medication that you decide not to accept I'm not going to twist your arm to take it.

I might take calculated risks and do things myself, but when there are unknown risks due to utter lack of knowledge, you're right I wouldn't advise it for others. In my role trustworthiness is everything, it simply is wrong to do things that violate patients' trust. So true I won't take unnecessary chances with their health and well-being.

Not my job to defend conduct of others of decades ago. I could argue with your comment about "overprescribing", but really I see no point debating non-issues. Discussion only means something when based on facts, IOW it always comes down to specifics, not squishy generalities.

jrapdx3··on Psychedelic frees up depressed brain, study shows
As a physician with a practice in the realm of behavioral health it's been fascinating to witness the development of approaches to treatment-resistant depression using hallucinogenic agents.

First out of the gate was ketamine (now on the market as esketamine), and currently psilocybin is being studied. It's showing promising results, however, the details re: dosing and adverse effects are still being worked out.

It's an inescapable fact: ALL drugs produce side effects (at least in some recipients). Who will or won't tolerate a given drug is mostly hard to predict beyond the overall odds.

Everyone in my field has seen individuals who have experienced serious harm due to use of hallucinogens including psilocybin. IMO using this class of drugs shouldn't be considered trivial. Sure, a lot of people have taken such "illicit" drugs without lasting problems, but response is a stochastic function. Odds of harm are no doubt small but as use spreads to a larger pool odds are adverse reactions will emerge.

Of course people with serious depression already have major brain dysfunction and likely vulnerable to exacerbated adverse effects. Compared to normal functioning there's sharply decreased room for error.

In medicine the primary rule is "above all do no harm". Absent sufficient data backing particular practices, choosing to step into new territory requires moving forward with great caution and care.

jrapdx3··on Patina and Intimacy
Many different alloys are classified as "stainless steel", and some are magnetic. [0] The ss sink in my kitchen is not magnetic, but the our ss range IS magnetic. Just as you report, new ss refrigerators are likely to be made amenable to surface magnets.

[0] https://www.fastenal.com/content/feds/pdf/Article%20-%20Magn...

jrapdx3··on Patina and Intimacy
I get what you're saying. For a bunch of reasons my wife and I also spend a lot of time preparing meals. Real-estate folks describe ours as a "galley kitchen", not well-endowed with counter/work space. Having dinner guests is a real challenge. It resolves to KISS principles, but with some planning it's amazing what can be accomplished.

As to design, we've gravitated to a relatively spare approach. Though not at all imitating "industrial" space, after all, we actually live in our home. Linoleum flooring, quartz composite countertops, stainless sink/range, laminate cabinets, etc., are "homey" enough but also durable materials.

One thing is crystal clear: in small kitchens storage is a precious resource. Dedicated cooks prefer buying supplies in larger quantities, spices, flours, etc. That means a tightly managed pantry with little empty space. Sometimes having "too many" cabinets can be a good idea.

But understandably tastes and needs vary, so no doubt others would do something entirely different with the space our kitchen occupies. Then again, if I was designing our kitchen from scratch, well, it would be so MUCH better, but WTH, when wouldn't that be the case.

← PreviousPage 5 of 26Next →