HN user

codesections

2,587 karma

Free software developer working primarily in Raku and Rust. Former attorney at Davis Polk & Wardwell LLP; current member of the Raku Steering Council and The Perl & Raku Foundation board. My professional interests include web development, open source, and making things as simple as possible.

  website:     www.codesections.com
  public key:  codesections.com/pubkey.txt
  email:       daniel@codesections.com
  mastodon:    fosstodon.org/@codesections
  github:      github.com/codesections
  discord:     discord.com/users/555470786677440524
I am also the 'codesections' user on: gitlab, github, stack overflow, libera.chat, reddit, tildes, lobste.rs, and probably other sites
Posts71
Comments251
View on HN
www.ft.com 5d ago

Xi Jinping sets out China's goal to be global AI leader

codesections
4pts0
raku-advent.blog 1y ago

Following the Unix philosophy without getting Left Pad

codesections
3pts0
news.ycombinator.com 3y ago

Ask HN: How does Hacker News avoid (successful) DDoS attacks?

codesections
14pts23
www.loweringthebar.net 4y ago

Court Says Bees Are Fish

codesections
26pts3
www.theguardian.com 4y ago

Kickstarter for Brandon Sanderson’s new novels raises record £17m

codesections
2pts0
www.politico.com 4y ago

Atmospheric CO2 causes lower protein, higher sugar content in modern crops

codesections
4pts0
en.wikipedia.org 4y ago

The Stakhanovite Movement

codesections
3pts0
www.cnbc.com 4y ago

Coding error at Santander Bank put millions into random accounts on Christmas

codesections
155pts79
raku-advent.blog 4y ago

Following the Unix philosophy without getting left-pad

codesections
5pts0
en.wikipedia.org 4y ago

OpenIndiana

codesections
3pts1
dustycloud.org 4y ago

VCS friendly, patchable, document line wrapping (2016)

codesections
2pts0
gist.github.com 4y ago

Steve Yegge: Notes from the Mystery Machine Bus (2012)

codesections
2pts2
news.ycombinator.com 4y ago

According to the BLS, are you a “computer programmer” or a “software developer”?

codesections
6pts11
en.wikipedia.org 4y ago

Gang of Four

codesections
2pts0
www.codesections.com 4y ago

Raku's surprisingly good Lisp impression

codesections
8pts0
www.codesections.com 4y ago

If you want to label your code, consider Label-ing your code

codesections
2pts0
www.javierchavarri.com 4y ago

Data-first and data-last: a comparison of APIs (2019)

codesections
1pts0
docs.google.com 4y ago

Blink Principles of Web Compatibility

codesections
2pts1
apnews.com 4y ago

Can I get ‘long Covid’ if I’m infected after vaccination?

codesections
1pts0
www.cs.utexas.edu 4y ago

Numbering should start at zero (1982)

codesections
1pts0
page.mi.fu-berlin.de 4y ago

How large is interpersonal variation in programmer productivity really? (1999) [pdf]

codesections
2pts0
www.untrammeledmind.com 4y ago

Monty Hall Problem and Variations: Intuitive Solutions

codesections
3pts0
en.wikipedia.org 5y ago

Functional fixedness, lateral thinking, and the barometer question

codesections
2pts0
blog.fogus.me 5y ago

Technical Papers Every Programmer Should Read (At Least Twice) (2011)

codesections
1pts0
en.wikipedia.org 5y ago

Wikipedia – Criticisms of Programming Languages

codesections
2pts0
www.librador.com 5y ago

The frame rate of the universe (2009)

codesections
75pts68
www.lesswrong.com 5y ago

Vitamin D supplementation as a prophylactic for coronaviruses and influenza

codesections
40pts0
raku-advent.blog 5y ago

What’s the Point of Pointfree Programming?

codesections
3pts1
yash.osdn.jp 5y ago

Yash, yet another shell, a Posix-compliant command line shell written in C99

codesections
3pts0
docs.lib.purdue.edu 5y ago

A Fast Technique for Searching an English Spelling Dictionary (1979)

codesections
1pts0

I don't think I've ever spent a whole round on it. More typically

please do $x

> $x

thanks. Now do $y

If I have ever spent a whole turn on something that could be called a thank you is was something like "the way you answer that [in specific way] was very helpful – thanks. Can you please remember to raise that sort of point in the future?" So still not an extra round

I do. I justify the action via mechanical / prompting logic (my instructions are to treat me as an informed peer and my understanding is that keeping the whole conversation in "two peers talking" register makes it easier for the LLM to maintain that mode).

But, more honestly, it's just a social habit and saving keystrokes isn't worth training myself out of it.

At some point you stop being a passenger and start being cargo.

It’s much worse than that – FedEx would never treat cargo like that. If they took cargo further away from its destination than it started and then left it there for the customer to sort out, that would break so many SLAs …

How does OpenWRT fair on these metrics? Does it count as a "debloted router" is the sense used in TFA? Or is additional software above and beyond the core OpenWRT system needed to handle congestion properly?

Quoting for context:

“ In 1920, Charles Ponzi made use of the idea that profit could be made by taking advantage of the differing postal rates in different countries to buy IRCs cheaply in one country and exchange them for stamps of a higher value in another country. His attempts to raise money for this venture became instead the fraudulent Ponzi scheme.[24] In practice, the overhead on buying and selling large numbers of the very low-value IRCs precluded any profitability. The selling price and exchange value in stamps in each country have been adjusted to some extent to remove some of the potential for profit, but ongoing fluctuations in currency value and exchange rates make it impossible to achieve this completely, as long as stamps represent a specific currency value, instead of acting as vouchers granting specific postal services, devoid of currency nomination.[25]”

Yeah, I thought of that. But (especially given political polarization) I would expect that there'd be at least someone with an axe to grind and the necessary technical skills. I mean, there's certainly no shortage of criticism of Hacker News/some HN moderation actions even on HN (or "the orange site" as it's known in some circles).

Overlapping markup 4 years ago

If I'm understanding you correctly, in that model a Paragraph should have a parent Page (and there should be a clear answer to the question "what page is this paragraph on?"). Is that correct? If so, that doesn't match how most paginated texts are formatted, where paragraphs frequently start on one page but finish on another

Find small communities.

In my experience, everything you said is 100% true -- once groups get big enough. But each of those points is, equally, 100% false for small groups.

For example, the Raku community is fairly small, so the r/rakulang subreddit is friendly. For that matter, even the [raku] StackOverflow tag is friendly! Last I checked, the same was true of the corresponding Rust tags, though I know they've grown a lot since I was a regular there.

Elon’s Out 4 years ago

This is an appeal to authority that is not valid

I'm open to that criticism; I'm typically pretty skeptical of appeals to authority myself.

But to be clear: the appeal to authority I'm making isn't "legal opinion of a lawyer" (I agree that's very weak) but rather "opinion on corporate law by a Wachtell attorney who practiced corporate law" (Wachtell is probably the best corporate law firm in the world, and clearly in the top handful)

Elon’s Out 4 years ago

This is such an absurd thing [for Matt Levine, a former 3rd Circuit clerk, Yale Law grad, and Wachtell M&A attorney] to say it's hard to find a way to charitably respond.

If your interpretation of the post suggests that a highly qualified attorney is getting the basics of US law absurdly incorrect, you might want to reconsider whether you're understanding the intended meaning.

(Here, Levine is making a specific claim about the remedies that the Delaware chancellory court typically employs, not about the authority of US courts)

The other thing that comes to mind would be quantum systems that can only be measured once. Unfortunately I think that practically you would need a system that is "only twice" so that it can be compared, but I have this sense that anything that can be measured twice can be measured 3 times.

Just spitballing, but you could do it with a "once only" system if you could generate it reliabilly/deterministically enough that you don't need to measure it post-generation

From banking law about 10 years back now, I would expect that the bank would be on the hook for Deborah's transfers in the first story. … I would have taken that case if I were a plaintiff's lawyer.

I disagree, for two reasons. First, an outside-view argument: lawyers who currently practice in that field apparently disagree:

Deborah reached out to more than thirty attorneys. Only one called her back. Deborah’s eldest brother consulted another, who called her situation “a terminal case.” “There’s no life here,” he said. Her claim was dying, if not already dead.

Second, on the merits: most of the fraud protections have requirements that the defrauded customer notify the bank promptly (either after the fraudulent transfer or after the next bank statement). See, e.g. [0]. It looks like that didn't happen here.

[0] https://www.consumerfinance.gov/rules-policy/regulations/100...

Running `feh` in an ssh session (or other terminal session without a graphical display) will print

    "Can't open X display. It *is* running, yeah?"
That's not quite an insult, but seems to be the in the same spirit

Honestly I’m surprised they admitted this.

I think it's because they're lawyers.

I have decidedly mixed feelings about the legal profession, but most lawyers (especially the "establishment" types most likely to be involved in the CA bar) are *very* unlikely to make deliberately false statements (or to fail to correct a past statement, one they learn it was false).

In defiance of thousands of lawyer jokes, in my experience lawyers lie the *least* of any large group of humans I've encountered – at least if "lying" refers only to the specific denotation of the words, since lawyers also love to split hairs to say something that's technically true. But the distinction between a "hack" and a "database error" is _exactly_ the sort of hair that lawyers love to split!

Source: I'm a lawyer-turned-programmer

Previous "Superblocks" discussion on HN:

Superblocks: how Barcelona is taking city streets back from cars[0] (2016) - 236 comments

What New York Can Learn from Barcelona’s ‘Superblocks’[1] (2016) - 133 comments

Superblocks: Barcelona’s plan to take back streets from cars[2] (2019) - 31 comments

[0] https://news.ycombinator.com/item?id=12237966

[1] https://news.ycombinator.com/item?id=20200760

[2] https://news.ycombinator.com/item?id=12633414

See also Different Worlds[0]

Another change in topic: bubbles. I’ve written before about how 46% of Americans are young-earth creationists, and how strongly that fails to square with my personal experience. I’ve met young-earth creationists once or twice. But of my hundred closest friends/co-workers/acquaintances, I think zero percent of them fall in that category. I’m not intentionally selecting friends on the basis of politics, religion, or anything else. It just seems to have happened. Something about my personality, location, social class, et cetera has completely isolated me from one particular half of the US population; I’m living in a non-creationist bubble in the midst of a half-creationist country.

[0] https://slatestarcodex.com/2017/10/02/different-worlds/

Let's Settle This 5 years ago

Does this site accept suggestions for new questions? I'd like to see a question on which end to open a banana

When debugging code or studying a program, it is quite comfortable to depend on only one hand, and have the other free to scribble or relax.

I wonder if the OP is ambidextrous? If using the mouse gave me a hand free to scribble some notes, I'd be a much more enthusiastic mouse user. Alas, both writing and mousing require my right hand, and there aren't many good uses for my left.

Beeminder[0] is a similar app — one that I've been a happy user of for 5+ years[1].

(Beeminder was also mentioned in a subthread reply by darrenf[2])

[0] https://www.beeminder.com

[1] https://www.beeminder.com/codesections/gallery

[2]: That reply read:

Beeminder[0] is another. I particularly like that they keep a list of competitors in this space[1] - active, up and coming, dormant or dead. OP, perhaps you could think about asking Beeminder to add you to their list :)

[0] https://www.beeminder.com/overview

[1] https://blog.beeminder.com/competitors/