Hacker Newsnew | past | comments | ask | show | jobs | submit | mac3n's commentslogin

ocular migraine or vitreous detachment?

I had ocular migraines all my life, but yeah, PVD now :(

oh, that is nice!

Reminds me of the code font used in J&W "Pascal User Manual and Report", which I always liked.


how about Adderall? i hear Trump likes it.

Adderall’s amphetamine components were not tested by the authors and possible outcomes for it cannot be inferred from their study, due to significant differences in method of action: https://pmc.ncbi.nlm.nih.gov/articles/PMC8063758/

because it has no future?

nah, not even close!

Trump's theft of classified documents is bigger.


Horse nomads would differ.

Scythians were not organized as a state.

<https://news.ycombinator.com/item?id=50634381> makes a better case for wheat.


lower uptake seems like a bad sign, the "dead sea" effect

<http://brucefwebster.com/2008/04/11/the-wetware-crisis-the-d...>


This argues for dynamically scoped variables - bindings that are scoped and inherited by all called functions without having to be passed explicitly. After all, why should everyone in the call chain need to know if some deep call allocates temporary storage.

It's always bothered me that the only such feature in many languages is exception handlers (I'm also bothereed by functions that throw things).

I want "late" bindings, implemented as "shallow" bindings. "Late" as in binding is established at runtime in the call chain. "Shallow" as in you don't need to crawl the call chain to find it. Something like

    extern Allocater *theAllocater = &DefaultAllocater;
    ...
    // allocater scope
    { Allocater *prev = theAllocater;
      theAllocater = NewAllocater();
      ...
      theAllocater->free();
      theAllocater = prev;
    }
with a deep call using the current allocater

    // deep call
    { tmp = theAllocater->alloc(size);
      ...
    }


yeah once you get used to reaching for dynamic scoping for thorny crosscutting concerns it's really rough when you don't have it. clojure/raku ruined me in that regard; some things simply don't need to get plumbed through every intervening layer explicitly.

i have some generic command dispatch stuff that handles sudo/doas or other similar cli prefix wrapper utilities by just passing that info all the way down to the eventual external proc invocation as a dynamic variable (and actually it wouldn't even let me get away with sticking it all into the signatures because of potential argument conflicts in the general case). that way everything external this tool dispatches to can be defined as if run unprivileged for concision/flexibility but you still never need to invoke the tool itself with root privileges to sneak a sudo in for the eventual command because there's a mechanism for indicating desired privilege escalation that can quietly ripple out to everywhere it's needed without cluttering already complex signatures even more.

personally i find dynamic scoping immensely useful specifically in conjunction with exception handling: it can help you turn resumable exceptions into exceptions that return values to the thrown context in just a couple lines for e.g. an incredibly lightweight effect handling implementation or whatever you wanna do with that.

that said, without something readily visually distinguishing like raku's explicit twigils indicating a dynamic variable or something like clojure's conventional earmuffs on names to indicate the same, i do get why it's often seen as more trouble than it's worth by those less used to it.


  why should everyone in the call chain need to know if some deep call allocates temporary storage.
So that you know how heavy it is!

Ah yes, the Chicago School of economics. The folks who brought us Reaganomics, who told us that monopoly was ok as long as it didn't raise prices.

By the way, there is a sand shortage. https://www.bbc.com/future/article/20191108-why-the-world-is...


"Among economic scholars, Friedman has no peer. His seminal contributions to economics are legion, including his development of the permanent-income theory of consumer spending, his paradigm-shifting research in monetary economics, and his stimulating and original essays on economic history and methodology.

...

Let me end my talk by abusing slightly my status as an official representative of the Federal Reserve. I would like to say to Milton and Anna: Regarding the Great Depression. You're right, we did it. We're very sorry. But thanks to you, we won't do it again." -Ben Bernanke

https://www.federalreserve.gov/boarddocs/speeches/2002/20021...


"Oh, I thought you were trying to build a canal. If it's jobs you want, then you should give these workers spoons, not shovels." - Milton Friedman

can we get a third, even pithier quote, please?

I've got you!

"“Hell hath no fury like a bureaucrat scorned." - Milton Friedman


You never got past Milton Friedman quote slinging in your libertarian debate club, huh.

not "Tim Apple"?


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: