HNHacker News
TopNewBestAskShowJobs

codesections

2,587 karma · joined July 5, 2018

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
submissionscomments
codesections··on Ask HN: Do you say please and thank you to your LLMs?
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

codesections··on Ask HN: Do you say please and thank you to your LLMs?
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.

codesections··on Kidnapped by Deutsche Bahn
> 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 …

codesections··on Can LLMs write better code if you keep asking them to “write better code”?
> “Planning” is a long-used trick to help align LLM output for a first pass — the modern implementation of “let’s think step by step.”

I hadn't seen this before. Why is asking for planning better than asking it to think step by step?

codesections··on You Don’t Know Jack about Bandwidth
And the "they" in question is Warren Buffet, https://nymag.com/intelligencer/2009/06/you_cant_make_a_baby...
codesections··on You Don’t Know Jack about Bandwidth
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?
codesections··on International Reply Coupon
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]”

codesections··on Lenovo's Project Crystal is first laptop with a transparent MicroLED display
But what would you stick the wallpaper to? If it's on the screen, then you'd just be looking at the blank part of the wallpaper, right?
codesections··on Scientists discover underlying cause of "brain fog" linked with Long Covid
This is a press release issued by the Trinity College, the employer of the study authors. Thus, it represents more of a claim than an independent assessment.

I suggest editing the headline to reflect this - maybe "Scientists claim to have discovered underlying cause of Long Covid linked 'brain fog'"

codesections··on Ask HN: How does Hacker News avoid (successful) DDoS attacks?
> It does have a rate limit, it's just very very high. I've hit it sometime when trying to download every single item since day 0.

Interesting. The API README states:

> There is currently no rate limit.

I guess that's wrong/out of date. I wonder when that changed?

codesections··on Ask HN: How does Hacker News avoid (successful) DDoS attacks?
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).
codesections··on Overlapping markup
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
codesections··on Ask HN: Technical forums that are not dominated by pedantry?
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.

codesections··on Elon’s Out
> 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)

codesections··on Elon’s Out
> 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)

codesections··on Detecting unauthorized physical access with beans, lentils and colored rice (2021)
> 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

codesections··on The Victim Cloud: Gullibility in the golden age of scams
> 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...

codesections··on Don't just shorten your URL, make it suspicious and frightening (2010)
The fact that shadyurl.com is only available over HTTP is perfect icing on the cake. Attention to detail like that really sells the joke
codesections··on Git.io deprecation: Active links to be maintained in a read-only state
That's a good point. For .cc in particular, it's the TLD for an Australian territory and is managed by Verisign so I'd expect the risks to be lower than with some TLDs. Still, though, a lot can happen in "forever" and you're right that it adds an (unnecessary?) risk
codesections··on Git.io deprecation: Active links to be maintained in a read-only state
In case you're looking for an alternative: consider using Perma.cc links, which both serve as a URL shortener and an archive of the current page.

(Plus they're expressly intended to last "forever" and are maintained by one of the few organizations with the multi-century history to credibly make that claim (Havard Law School))

https://perma.cc/about

codesections··on Show HN: Favicons for HN
For the curious, this is powered by DuckDuckGo's favicon service, which takes significant steps to preserve request privacy. Details at https://help.duckduckgo.com/duckduckgo-help-pages/privacy/fa...
codesections··on Ask HN: Software That Insults You?
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
codesections··on CA bar says attorney records leaked through database flaw, not hack
> 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

codesections··on Transforming cities with superblocks
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

codesections··on How we end up with different intuitions about problems
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/

codesections··on Advanced Programming Languages (2009)
And originally from 2009 (as noted in the previous HN links)
codesections··on Let's Settle This
Does this site accept suggestions for new questions? I'd like to see a question on which end to open a banana
codesections··on On Emacs 28’ context menu and Unix mouse-usage in general
> 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.

codesections··on Show HN: Kommit – Web app to help you follow through with NY's resolutions
Thanks for the update, and you're absolutely right that Beeminder doesn't offer any way to validate the data you enter. They discuss why (in their view, of course) trusting user-entered data works in this blog post: https://blog.beeminder.com/cheating/
codesections··on Show HN: Kommit – Web app to help you follow through with NY's resolutions
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/

Page 1 of 9Next →