HNHacker News
TopNewBestAskShowJobs

argiopetech

651 karma · joined September 4, 2020

Software professional and educator
submissionscomments
argiopetech··on Hazel: A live functional programming environment featuring typed holes
Haskell has also had typed holes for several major versions now. Any underscore or name beginning with an underscore (to include values and types, unsure about kinds) gets an informative error message describing the type of the name, e.g.:

  Found hole `_' with type f (Free f b)
and relevant bindings, if applicable:

  Relevant bindings include
    >>= :: Free f a -> (a -> Free f b) -> Free f b
      (bound at holes.hs:28:3)
    f :: f (Free f a) (bound at holes.hs:29:8)
    g :: a -> Free f b (bound at holes.hs:29:14)
  In the first argument of `Free', namely `_'
Very useful for working your way out of a situation where the specific incantation to get to the right type isn't obvious.

Examples from [0].

[0] https://wiki.haskell.org/GHC/Typed_holes

argiopetech··on California first state to ban 'sell by' 'best before' label to reduce food waste
Is the current system of "Use by" not also entirely driven by government regulation, from the requirement to the ∆T?

Agreed that a "Produced on" date is better.

argiopetech··on 炊紙(kashikishi) is a text editor that utilizes GPU to edit text in a 3D space
C-x C-c exits. C-x C-x moves point to the opposite end of the current region.
argiopetech··on Normans and Slavery: Breaking the Bonds
I am, perhaps, missing the parent's argument, but GP (to my previous comment) seems to cover this case. In that framing, either the wife or Mr. Giles Hicks was well off and could murder a slave with financial and legal (given lax enforcement of slave codes, if even applicable) impunity, or it was a significant financial loss for her to have done so.

I don't think GP ever argued that murder of slaves didn't happen, just that its occurrence was likely rare due in part to the financial incentives involved.

argiopetech··on New tech can make air-conditioning less harmful to the planet
At least from my perspective in the US South, this is non-existent. Hot water is heated with resistive heating elements and stored in an (under-) insulated cylinder until needed, accounting for as much as 30% of monthly household energy use.

On-demand systems (gas and electric) are available, but I've not personally been in a house where they were used for other than quality of life (i.e., providing hot water sooner than and until the water can get from the hot water heater).

argiopetech··on Speech Dictation Mode for Emacs
Depends on if you count shift. I C-M-% (query-regexp-replace) fairly regularly, and that's 4.
argiopetech··on OpenAI threatens to revoke o1 access for asking it about its chain of thought
On the other other hand, it had the perfect recall of the collective knowledge of mankind at its metaphorical fingertips.
argiopetech··on With pedestrian fatalities mounting, US proposes tougher vehicle design rules
You have a point here that I have also noticed in a more rural/suburban setting. The number of adults, who presumably have a driver's license (or, at minimum, received some level of driver's ed in their secondary schooling), who don't know which side of the road pedestrians walk on/bicycles ride in is astounding and, in my experience, increasing. Add to this pedestrians who hop on and off the curb without notice, cyclists who swerve all over both lanes or ride at night without lights and reflectors, and people in roads in dark clothing and no lights.

It's gotten to the point that it's been frustrating and frightening to drive anywhere (dependent on how light it is).

argiopetech··on Kids Should Be Taught to Think Logically
"The personal is political", apparently.
argiopetech··on Show HN: Amine – Prevents you from switching 100s of Browser Tabs
Even better: I only read one at a time.

But that doesn't mean my bookshelf shouldn't contain 100 books.

argiopetech··on Show HN: Homemade automated solar concentrator
1kw/m^2 is the "standard" rule of thumb for heat energy from solar irradiation. I'm unsure whether OP has done the calculation (in which case, credit to a well built system) or simply cited the standard rule.

There are some large Stirling engines out there that operate on hot oil. With a large diameter piston, quite a bit of torque can be generated with even small ∆T. Oil can be heated as with traditional solar water heaters (i.e., with no concentration), though concentration doesn't hurt.

argiopetech··on Ex-Kansas police chief who raided local newspaper criminally charged
Also not true. They have a duty to enforce the law as they understand it (noting that verification is just a phone call away), which may be better than average due to training and experience, or not.

Either way, your duty is to cooperate with law enforcement. If they are wrong, the only proper place to determine that is the courts. If they are right, you'll still have avoided a "resisting" charge

argiopetech··on Why does everyone hate Haskell, jazz, and pure math?
Can't edit, but:

s/computer/compiler/

argiopetech··on Why does everyone hate Haskell, jazz, and pure math?
Avoid String, use Text or ByteString. Avoid [] for data processing, prefer Vector. Avoid lazy IO, use Conduit (or similar). Prefer newtype to data, and make data fields strict where appropriate. Make sure you're building with -O2 (has to be explicit, none of the tooling enables it by default).

These rules cut out 99% of space leaks. The profiling tools are a big help for the last 1%.

argiopetech··on Why does everyone hate Haskell, jazz, and pure math?
Cabal has never treated me poorly, though broken packages do happen (usually due to unnecessarily restrictive upper version bounds on libraries - unpack and fix the .cabal, add directory as extra-dep, move on with your day).

For the last long while, though, Stackage (versioned repository of packages that build together under a fixed computer version) and stack fix this problem. It's one of the things I miss when I use other packages/build managers from other languages.

argiopetech··on Why does everyone hate Haskell, jazz, and pure math?
From what I've seen, most of them moved to Rust.
argiopetech··on Who Took the Cocaine Out of Coca-Cola?
I don't believe in camps (with regards to allying myself with one — obviously they exist). I believe in seeking truth (to the extent possible) through discourse. See the rest of this thread for how I conduct that process and what I do when confronted with reasonable evidence.

I have no problem discussing racial problems. I just didn't see this as one (I've changed that opinion), and didn't appreciate the framing of the article (still don't, but the linked 25 pager is more nuanced).

Finally, I didn't say it was harmful discourse. I said it was "harmful to discourse".

argiopetech··on Who Took the Cocaine Out of Coca-Cola?
Yes, as I stated, "Poverty does not cause drug abuse, but … people who abuse drugs are more likely to be in poverty due to their drug abuse."

So, you've abused drugs and landed yourself in poverty. If you don't stop abusing drugs, you'll stay there (or worse).

Good luck.

argiopetech··on Who Took the Cocaine Out of Coca-Cola?
Particularly those you can grow yourself (cocaine, cannabis, opium), until the law burns your field.
argiopetech··on Who Took the Cocaine Out of Coca-Cola?
Thank you for this reference. I had overlooked it.

While this article confirms my assertion that whites were the majority of drug users, the drug of choice is stated to have been racially segregated (with whites preferring opiates).

Based on this, I'll accept (pending further research) that the southern bans on cocaine were racially motivated. I'd still consider the 1914 federal ban on a wider swath of drugs to be less so.

argiopetech··on Who Took the Cocaine Out of Coca-Cola?
I didn't suggest that there is no supportive evidence between race and drug policy, but that fact does not imply that there is a causal relationship in this case. Citing Nixon era documents to describe pre-WWI circumstances is evidence at least as poor as that which I presented.
argiopetech··on Who Took the Cocaine Out of Coca-Cola?
I counter with this article [0], which I believe to be more historically relevant due to its closeness in time to the discussion in question. Race is not mentioned as a factor here, and cocaine is described as "the American habit".

Having noted my inability to thoroughly research this topic at this time in reply to a sibling post, I'll point to that post for my back of the envelope calculation regarding the number of working class whites versus blacks and suggest that, as poverty and drug abuse seem, to me, linked, that it is just as plausible that widespread abuse of the drug was the catalyst for change in this case.

[0] https://chroniclingamerica.loc.gov/lccn/sn83030272/1914-02-1...

argiopetech··on Who Took the Cocaine Out of Coca-Cola?
I don't have the time to do the research justice at this moment; however, let me lay out a rough argument.

Let us say, for the sake of argument, that poverty and drug abuse are strongly correlated. Poverty does not cause drug abuse, but people in poverty are more likely to abuse drugs, and people who abuse drugs are more likely to be in poverty due to their drug abuse. The article seems to agree with this point, as it points to working class people as the focal point of abuse of cocaine. In 1900, the white population was approximately 60 million and the black population was approximately 9 million. Casual research suggests that 50% of children were in poverty, which I will extend to suggest that 50% to families were in poverty. Let us; however, assume that only 30% of whites and 100% of blacks were in poverty. In this case, black working-class people were still a minority of working-class people, at a ratio of 2:1.

Under this assumption, is it reasonable to assume that cocaine abuse in non-white communities was the sole catalyst for this change?

argiopetech··on Who Took the Cocaine Out of Coca-Cola?
While framed as a "black and mixed-race working class vs white middle class" conflict, the remainder of the article suggests that burgeoning recreational use of the pure drug informed removal of that drug from a drink where it was included in sub-therapeutic doses (9mg/drink vs 50-75mg in a recreational "dose" [0]). It's unclear to me, as written, how race was causal and why it's included as in the article.

There are plenty of real problems, past and present, which we can point to as indicative of racial prejudice. The insistence on its insertion into other areas, lacking supporting evidence, is, imho, overtly harmful to discourse.

I have not read the book linked as the source of this article, so I'm happy to be shown to be wrong.

[0] https://en.m.wikipedia.org/wiki/Coca-Cola#Coca_leaf

argiopetech··on Children should be allowed to get bored (2013)
Yet, accidents are still the leading cause of death for children 0-14 years of age.

https://www.cdc.gov/nchs/fastats/child-health.htm

argiopetech··on Orcas sink $128K yacht in Mediterranean attack: 'Like watching wolves hunt'
It wasn't meant in that way, as the definition includes parent's 40ft example.

Having said that, I now can't find a source that 26ft is the cutoff. I'll retract the statement pending source.

argiopetech··on Maglev titanium heart inside the chest of a live patient
Perhaps, but there are a pilot and first officer to take over if the autopilot goes out. You better be in the OR if your titanium heart tries to kill you...
argiopetech··on Orcas sink $128K yacht in Mediterranean attack: 'Like watching wolves hunt'
Hydrovane! That's the bloody brand. Couldn't think of it before first cuppa. Agreed it won't sink the boat, but it might reduce the appeal of the boat as a toy (or not... Wish we knew why this was happening.)

Planning a long-term Bahamas-/ICW- capable trip for family, or I probably wouldn't know about those either.

Fair winds and following seas, friend.

argiopetech··on Orcas sink $128K yacht in Mediterranean attack: 'Like watching wolves hunt'
There are a number of 40+ foot boats with centerboards, e.g., the Wellington 44 (first that came to mind). Rudders removable underway are less common, but not unknown. Additional rudders like you might find on a non-integrated autonav/windvane system can frequently be moved out of the water. Same with emergency rudders. Still, non-standard language here.

You may be interested to know about the annual trans-atlantic rowing races, where crews compete on boats as small as 6m (Rannoch 10 solo) to cross from the Canaries to Antigua. 40+ crews of 1-5 are scheduled to compete this year.

Not quite 10 foot dinghies, but still impressive in a "mildly unhinged" way. Nothing but respect for these folks.

argiopetech··on Orcas sink $128K yacht in Mediterranean attack: 'Like watching wolves hunt'
Technically, anything over 26 feet can be a yacht.
← PreviousPage 2 of 12Next →