Better HN
topnewbestaskshowjobs
Log inSign up

codesections

2,587 karma · joined Jul 5, 2018 (8y ago) · 324 submissions

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
Submissions

comment 5y ago · link · parent

I am extremely disappointed that the only example of a "weird language" is Lisp. These days — with Clojure, Common Lisp, Racket, Guile, Emacs Lisp, Chez Scheme, Fennel, etc. etc. — Lisp is hardly weird.

I'd love to see an expanded version of this article written by someone less focused on Lisp advocacy than Paul Graham seems to be.

comment 5y ago · link · parent

Good to see this bit:

> Note however that there is a substantial portion of the web which is unmaintained and will effectively never be updated (including historical archives like archive.org). It may be useful to look at how long chromium has had the behavior in question to get some idea of the risk that a lot of unmaintained code will depend on it. A breaking change being trivial to accommodate does not necessarily mean it is low risk. In general we believe in the principle that the vast majority of websites should continue to function forever.

93.

Blink Principles of Web Compatibility(docs.google.com ↗)

2 points · by codesections · 5y ago · 1 comment

comment 5y ago · link · parent

If you find yourself missing emacs keybindings in the browser, you might be interested in the Nyxt browser, which incorporates emacs keybindings (and much of emacs overall philosophy) https://nyxt.atlas.engineer

comment 5y ago · link · parent

Maybe these days that should be updated to "(only) Eight Megs and Consistently Snappy"

comment 5y ago · link · parent

Though note that the Fennel repo is now at https://sr.ht/~technomancy/fennel/

comment 5y ago · link · parent

> How many people are not working because they suddenly no longer have a reliable place for child care?

This was the first potential explanation TFA examined. It said that this effect was "negligible":

> It is commonly believed that school closures have made it impossible for parents, particularly mothers, to take a job. The evidence for this is mixed, though. Analysis by Jason Furman, Melissa Kearney and Wilson Powell III concludes that extra joblessness among mothers of young children accounts for a “negligible” share of America’s employment deficit. Despite talk of a “shecession” early in the pandemic, in most rich countries the worker deficit for men remains larger.

comment 5y ago · link · parent

> In USA it's pretty difficult to get a NFP (501c3) created around just code.

Yeah, I know, and that does suck. It's varied a bit over time with various IRS administrations, though, so maybe it'll get better.

(I am a lawyer, but I don't have an active practice since I became a programmer, so I'm not someone who can help. But good luck!)

comment 5y ago · link · parent

Setting aside performance comparisons, how does Imba's approach compare to Svelte's from a design perspective? From your Meet the Memoized DOM article, I take it that Imba is basically converting declarative code into imperative code that mutates the DOM – on first glance, that sounds very similar to Svelte's compiler-driven approach.

Are the two strategies as similar as they sound, or am I misunderstanding something?

comment 5y ago · link · parent

This is a very misleading way to report those results (likely unintentionally). The JS Framework site includes benchmarks for imba-v1.5.2 and svelte-v3.29.4 and reports that they are equally fast (1.04 and 1.05). It shows both as similarly faster than React.

As described in your second link, that benchmark is timing something a bit different – and we don't know how well Svelte would perform on it (I'm guessing fairly similarly, since the overall approach seems similar. But there's no way to know without measuring.)

comment 5y ago · link · parent

Buddhist and other thoughtful practitioners of mindfulness meditation are well aware of this phenomenon — which is why mindfulness meditation is usually paired with mettā ("loving-kindness") meditation as students progress.

(The article mentions mettā practice towards the end, but doesn't explicitly acknowledge that the need for this balance has been widely recognized).

As TFA says, this is much more of a problem of McMindfulness than of more traditional contemplative practices

comment 5y ago · link · parent

> So when German non-profits want to hand out merch in exchange for a specific donation amount, non-profit has to pay for-profit taxes on that?

No, I think what he's saying is that it's not a tax-deductible donation for the patrons. (Which is actually more-or-less law in the US too, unless the reward is worth vastly less than the donation[0])

[0] https://www.nolo.com/legal-update/irs-changes-thank-you-gift...

comment 5y ago · link · parent

> I want Mastodon to have more resources for things like hiring extra developers, UX designers, developing official apps and so on, and I want there to be a clear boundary between fundraising for that cause and my personal income.

This is an important step, and one that I'd love to see more FOSS projects take

comment 5y ago · link · parent

> and the emphasis is more on academics, rather than partying.

[citation needed] My impression has always been that the Greek scene at Cornell is pretty… well, I'll go with "active"

comment 5y ago · link · parent

A correction: Liz has been entirely supportive the Raku Steering Council's efforts to establish our Code of Conduct[0] and to enforce that Code.

(I know that part of this comment is referring to events that took place years ago; I don't have any firsthand knowledge about those events but want to correct the record about the present)

[0]: https://github.com/Raku/Raku-Steering-Council/blob/main/pape...

comment 5y ago · link · parent

> I'm wondering if marketing/trying to appeal to new people has ever been effective for an established programming language.

I'm not sure if this counts as "trying to appeal to new people" (or "an established language", for that matter) but the Rust community has made a big push towards creating more teaching materials that make the language more broadly accessible for the past ~5 years, and I think that's been effective.

comment 5y ago · link · parent

> I’m disturbed that he needed a for loop to compute 100*(1-0.9^10)

I assumed that he just wanted a reason to include at least a _little_ elisp. (Though, even so, he could at least have run the calculation recursively; in Raku, I'd probably have written

  (-> $_, $i { $i ?? &?BLOCK($_ × .9, $i-1) !! $_ })(100, 10)
if I wanted an alternative to `100 × (1 - .9¹⁰)`

comment 5y ago · link · parent

This 2019 article is a bit out of date; what it calls racket2 is now Rhombus, and (as predicted in the article) does not seem to have really taken off.

See https://beautifulracket.com/appendix/thoughts-on-rhombus.htm...

https://github.com/racket/rhombus-brainstorming

comment 5y ago · link · parent

> you might have figured out that changing your Resume from using phrases like “I worked on a Java codebase of around 100k LoC, using Spring and React” to ones more like “I built a widget-shipping feature that shipped 300k widgets and ultimately created $1 million in business value” is a good way of ‘creating value’ in concrete sense of a higher paying job.

Is that actually true, in other people's experience? I would have thought that most people involved in tech hiring would prefer the first version — at least it tells me what technologies you're familiar with. The second one just tells me what somebody else did with your code. Sure, they sold a lot of widgets, but I'd guess that has a lot more to with the quality of the widget than with the quality of your software

comment 5y ago · link · parent

> a reasonable programmer can (separately) expect both (1) and (2) to be the same or (2) and (3) to be the same, but these are in fact mutually exclusive.

It's possible (likely? ) that I'm missing something, but why are they exclusive? In principle, I would have thought that an optimizing compiler could rewrite (1) into (3) and thus give all three the same semantics.

(I'm not speaking about what would be possible for Python in particular, just in general terms)

comment 5y ago · link · parent

I know the pace of development has been pretty slow for the past few years — but Mosh is a good enough idea that I really hope it picks up steam again (better true color support, for one thing, would be a big feature)

comment 5y ago · link · parent

Why does the promotional site for a car-free neighborhood feature food trucks three times on its home page?

comment 5y ago · link · parent

> Some of the best software I've used are mostly developed by solo developers or small teams (Sublime, YNAB4) because they actually care about their product instead of the underlying tech.

But YNAB is also a great example of apps-getting-worse — you're explicitly praising the 2012 version over the 2015/evergreen version.

(In YNAB's case, they had business reasons to make the app worse (or thought they did), but I bet that's true of many of the examples in TFA)

comment 5y ago · link · parent

> PostgreSQL has taken a complex problem and solved it to such an effective degree that all of its competitors are essentially obsolete, perhaps with the exception of SQLite.

I realize that this isn't the main point, but that aside strikes me as high praise for SQLite — which has also always struck me as exceptionally well built software.

comment 5y ago · link · parent

Off topic, but I used to have "learn every regex operator" in that category but, after I actually did, I've been amazed at how often regex operators come in handy.

comment 5y ago · link · parent

> But none of this matters in the big picture. What matters is all this code is wrapper in a function that goes like "getFirst42Bits(int)"

I disagree. Imo, `getFirst42Bits(snowflake)` is worse than `snowflake >> 22` — not only is it longer, but it also hides away the implementation in a way that could obscure bugs/require `jumpToDefinition` debugging.

Abstraction is often useful, but this seems like a textbook case of over-abstraction.

117.

Can I get ‘long Covid’ if I’m infected after vaccination?(apnews.com ↗)

1 points · by codesections · 5y ago · discuss

comment 5y ago · link · parent

Out of curiosity, what makes the Erlang syntax so good?

comment 5y ago · link · parent

"some programming knowledge" ≠ "knowledge of bit operators"

Imo, Rust makes a very good second language for someone who first learned Javascript or Ruby — and someone who used those languages primarily for web dev may never have needed to learn about bit shifts

comment 5y ago · link · parent

> And sure, `snowflake >> 22` would be shorter, clearer, and far more efficient, but it wouldn't let you show off all the cool language features you have at your disposal, and isn't that what's really important?

I don't think the over-complicated code was motivated by a desire to show off — it was written by someone who doesn't understand how bit shifts work, which is still potentially troubling but very different

12345
11