Recent submissions

Comment · 1 year ago
we've all learned about things, not understood them, and thought "wow, these people must be idiots. why would they have made this complicated thing? makes no sense whatsoever. I can't believe these people, idiots, never thought this through like I have."

Most of us, fortunately, don't post these thoughts to the internet for anybody to read.

Comment · 1 year ago
Very cool! I recently wrote an XSLT 2 transpiler for js (https://github.com/egh/xjslt) - it's nice to see some options out there! Writing the xpath engine is probably the hard part (I relied on fontoxpath). I'm going to be looking into what you have done for inspiration!
Comment · 2 years ago
I developed xjslt, an XSLT 2.0 (https://www.w3.org/TR/xslt20/) compiler for JavaScript. XSLT is still the best way to transform XML content into other XML or HTML content, and there is only one generally available 2.0 or later version, Saxon. Saxon is an excellent piece of software, but SaxonJS is not open source and I thought it might be good to have another option.

There is a simple command line interface as well as the ability to compile to a standalone JavaScript file for loading in a browser and to a JavaScript file that can be used in NodeJS and other JavaScript runtimes. This means you can run your XSLT transforms on the server or in a cloud function.

The majority of functionality is in place and it has worked with many XSLT files I have tried. There are a number of incomplete and/or broken features. The speed is very reasonable.

Comment · 2 years ago
Incoherent argument. Non-profits pay sales taxes, income taxes for employee salaries, and, in many cases, property taxes. The only thing they aren't ever paying taxes on is profits, because... they are non-profits. They don't pay out profits to owners.

Some non-profits are exempt from property taxes and other taxes (e.g. universities) and abuse this by becoming huge landowners. This should probably be reined in.

Comment · 2 years ago
Bicycles are not a physics 101 problem. In practice this just doesn't happen. See the links I provided. You can also read more about this in the "Bicycling Science" book.
Comment · 2 years ago
Comment · 2 years ago
Comment · 2 years ago
By your own count "most" apartments are 1 bedrooom or less.
Comment · 2 years ago
How do you know that? Have you looked at statistics for housing stock in the US in general? You can find it here: https://www.nmhc.org/research-insight/quick-facts-figures/qu...

And if you're curious about new construction, you can find it here https://www.census.gov/construction/chars/highlights.html

You'll find that in 2022 over half of new apartment units had 1 bedroom or less. I guess you live in a very different state that is not reflective of overall trends across the US.

Comment · 2 years ago
It's a pretty simple design, and it's based on the ARC format (https://archive.org/web/researcher/ArcFileFormat.php) which is even simpler. In response to your questions, here's my take (as somebody who used to work on web archiving).

1. Two reasons: First, many files are harder to manage. WARC files might contain hundreds or thousands of files. It's easier to manage big groups of files that are roughly the same size. Both for humans, and, at least in the past, for the file systems themselves. Second, once you break them up into files, what do you name the files? If you give them a name unrelated to the URL that was fetched, what is the advantage? If you name them based on the URL, suddenly you have a problem of mapping a URL to a legal file name, which can vary based on the file system. This would be a huge headache.

2. Yes, it predates SQLite, but also, why would you use sqlite? That's adding a huge amount of complexity. Is SQLite even good at storing big binary blobs?

Additionally, because of the clever way that WARC files are gzipped, each piece of the WARC file is gzipped individually, which allows random access into the file for reading enclosed content in a compressed file without needing to read the entire WARC file.

Comment · 4 years ago
That is simply not true. That could be the case in the near future (https://news.bloomberglaw.com/daily-labor-report/how-the-nlr...) but it is simply not true now. Amazon can always force a vote if 50% of members of the unit sign a card.
Comment · 4 years ago
lol. I've been developing code with emacs for 25 years and I'm fine with this and would be annoyed if I needed to figure out how to install every language server for every language I use.
Comment · 4 years ago
Have you seen a car? Have you seen a parklet? If you had, you would understand perfectly well.

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton