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 6y ago · link · parent

Rick Cook's book Wizardry Quested (2002) depicted a fictionalized version of this raid/resulting lawsuit — I had no idea it was so closely based on a true story!

242.

REPL Driven Devlopment with ClosureScript(youtube.com ↗)

4 points · by codesections · 6y ago · discuss

comment 6y ago · link · parent

> it cracks open Emacs on the notes file, adds a timestamp, appends the optional text, and then I can just type or paste something in.

Do you do that with a shell script or an elisp function? Either way, I'd be interested in taking a look at your implementation if you don't mind sharing.

comment 6y ago · link · parent

According to DuckDuckGo,

> To do that, DuckDuckGo gets its results from over four hundred sources. These include hundreds of vertical sources delivering niche Instant Answers, DuckDuckBot (our crawler) and crowd-sourced sites (like Wikipedia, stored in our answer indexes). We also of course have more traditional links in the search results, which we also source from multiple partners, though most commonly from Bing (and none from Google).

Do you view that as misleading/incorrect?

comment 6y ago · link · parent

This appears to be a compile-to-js language with a compiler/related tools written in crystal.

An interesting use for a DSL.

comment 6y ago · link · parent

I love Gtypist, but wanted it to have a lesson focused on programming keys like !@#$%^&*()-=[]{}\|

So I wrote one: https://github.com/codesections/gtypist_programming_characte...

It builds up to typing out the full code of a (very small) compiler.

comment 6y ago · link · parent

> This program should have a special mode for programmers who need to learn the !@#$%^&*()-=[]{}\| keys.

I thought so too, so I wrote one: https://github.com/codesections/gtypist_programming_characte...

(I submitted it upstream, but the pace of development lately hasn't been all that fast)

comment 6y ago · link · parent

The former. One of the examples given in the linked explanation (https://jvns.ca/blog/2014/11/27/ld-preload-is-super-fun-and-...) used LD_PRELOAD to modify random number generation — and it's easy to imagine other exploits.

I suppose many/all would require the user's environment to be so throughly compromised that security might be a lost cause. But it still makes me wonder if there's a defense-in-depth argument in favor of static linking.

comment 6y ago · link · parent

Is the existence of LD_PRELOAD a strong argument in favor of static linking?

I hadn't heard of LD_PRELOAD before now, but my first reaction was "oh wow, better static link all the things!". Is that wrong?

250.

Why Your Static Website Needs HTTPS (2018)(troyhunt.com ↗)

153 points · by codesections · 6y ago · 137 comments

comment 6y ago · link · parent

I like the idea of tldr pages. Unfortunately, by default, they are a bit too slow to display—I know it's under a second, but it's just enough to break my flow.

Fortunately, there are other clients, some of which are much faster. My current favorite is tealdeer:https://github.com/dbrgn/tealdeer

comment 6y ago · link · parent

How? By writing new html pages when they take a picture of a new waterfall.

Why? Well, as the FAQ on the site says, because they like waterfalls.

More generally, I'm not sure why it strikes you as odd that this site is still being updated. The old(er) way of building sites hasn't gone anywhere, and this site seems perfectly functional. Why not contenue to update it?

comment 6y ago · link · parent

The problem with trying to become a 501(c)(3) nonprofit is that you have to show a "charitable purpose", which can sometimes be hard to do ("supporting open-source software" is not a valid charitable purpose under current US law, sadly enough) [not legal advice]

comment 6y ago · link · parent

> I'm curious how alacritty compares to it. The alacritty devs basically consider another terminal app rendering faster than them to be a bug on their part

Note: Alacritty prides itself on fast rendering speed, but not necessarily on low latency[0]. I'm a happy Alacritty/Linux user, but I'm not sure it would win on this benchmark.

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

comment 6y ago · link · parent

> I would think most of the startups have products as instrumental goals; the exit is the terminal goal.

Depressing, if true.

I would hope that most people have a product that they want to build, and more money is an instrumental goal that lets them build it better. For example, I'd expect someone who loves to code to have software they want to write, and want enough money to allow them to do so—as opposed the executive who loves money and views writing software as the best way to get it. I'm not convinced that any great work was ever crafted by someone who was primarily crafting for instrumental reasons.

But you're probably right, and that's probably a big part of what's so toxic about startup culture these days.

256.

Scurvy Was Cured, Then the Cure Was Lost (2010)(mentalfloss.com ↗)

2 points · by codesections · 7y ago · discuss

257.

Inmate Argues His Life Sentence Ended When He Died (Before Being Revived)(washingtonpost.com ↗)

1 points · by codesections · 7y ago · discuss

258.

1920s Saint Paul, MN Protected Known Criminals Against Extradition(mnthen.com ↗)

1 points · by codesections · 7y ago · discuss

comment 7y ago · link · parent

This was mentioned in the posted link

260.

Loopless Programming(code.jsoftware.com ↗)

199 points · by codesections · 7y ago · 122 comments

261.

Show HN: DIY Dynamic DNS–a simple Rust tool to remotely check an IP address(github.com ↗)

1 points · by codesections · 7y ago · discuss

comment 7y ago · link · parent

One thing that fascinates me about Raku/Perl6 is how hard it leans into object-oriented programming at a moment when so many other new languages seem to be trending in a distinctly functional direction.

comment 7y ago · link · parent

> On a good day this is nuanced yet clear and informative, on a bad day it is James Joyce.

If Raku's "bad day" is basically like "one of the most influential and important authors of the 20th century" (according to Wikipedia)… well, then, maybe I should check Raku out!

comment 7y ago · link · parent

This is missing a big part of the dynamic. Much enterprise software is what Joel Spolsky describes as "internal software"[0]:

> Internal software only has to work in one situation on one company’s computers.… Here usability is a lower priority, because a limited number of people need to use the software, and they don’t have any choice in the matter, and they will just have to deal with it. Speed of development is more important. Because the value of the development effort is spread over only one company, the amount of development resources that can be justified is significantly less.

So, a lot of enterprise software sucks because it simply doesn't make sense to make it decent. No matter how directly the end users communicate with the developers, this won't change.

The economics of internal software don't apply to products like Blackboard (which would go in Joel's "shrinkwrap" category), but the vast majority of enterprise software is internal and thus sucks for reasons entirely unrelated to this thread.

[0]: https://www.joelonsoftware.com/2002/05/06/five-worlds/

comment 7y ago · link · parent

> RMS is, in my view, a completely innocent man

Note that the Joint Statement does not take a position on the statements that the most recent controversy has been about. Instead, it speaks about "behavior over the years"[0]. Of course, the recent controversy doubtless played a role in bringing all this to a head, but it is possible for someone to believe both that RMS is "completely innocent" of wrongful conduct and that he has engaged in behavior that harms the cause of Free Software.

[0]: > Yet, we must also acknowledge that Stallman’s behavior over the years has undermined a core value of the GNU project: the empowerment of all computer users.

comment 7y ago · link · parent

> Here's [1] the list of contributors to GNU. Note that it also includes past contributors.

For the curious, this list contains roughly[0] 242 names.

The number of maintainers is surely much smaller than the number of contributors, however.

[0]: More specifically, the `#content` `div` on that page contains exactly 242 `h4` elements, all of which appear to be names of past/current contributors

comment 7y ago · link · parent

> Genuine question, what exactly do these maintainers want ? Stallman has already quit his leadership role/position, right ?

No. There was some confusion on this point because a note was posted to https://stallman.org/ announcing that RMS stepped down from leadership of GNU, but this turned out to not have been posted by RMS (or with his authorization).

(It was apparently posted by someone who added RMS as an entry to the "what's wrong with…" series, with a link to the Medium post that kicked all this off. Without commenting one way or the other on the underlying issue, that is a fairly funny bit of Internet vandalism)

comment 7y ago · link · parent

> We, the undersigned GNU maintainers and developers, … [18 signatures]

Does anyone happen to of know what fraction of GNU maintainers those 18 names represent? Does this represent a majority of GNU maintainers or a small fraction?

269.

Rust now has more than 100k commits(reddit.com ↗)

1 points · by codesections · 7y ago · discuss

comment 7y ago · link · parent

https://tryapl.org/ gets 70% of the way to what you're talking about (though it's obviously missing the closed-interface-focused-on-calculator-functionality part)
1
7891011