HNHacker News
TopNewBestAskShowJobs

egh

369 karma · joined August 14, 2012

submissionscomments
egh··on We shouldn't have needed lockfiles
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.

egh··on Xee: A Modern XPath and XSLT Engine in Rust
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!
egh··on Xjslt: An XSLT 2.0 compiler for JavaScript
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.

egh··on Reining in America's $3.3T tax-exempt economy
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.

egh··on Monowheels: Vehicles with Insufficient Wheels
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.
egh··on Monowheels: Vehicles with Insufficient Wheels
It's my firm opinion, and that of many people who've looked at it, that flipping over the bars is caused by the rider not bracing themselves as they use the very powerful front brakes.

https://www.renehersecycles.com/how-to-brake-on-a-bicycle/ https://www.sheldonbrown.com/brakturn.html

If most cyclists don't use the front brake, that is their loss. Most advanced cyclists, in my experience, rely heavily on the more powerful front brake.

egh··on Uber, Lyft to stop operations in Minneapolis over minimum wage law
this is the traditional belief, but all the empirical research on this shows that it is not true.

https://www.umass.edu/news/article/umass-amherst-economists-... https://www.economist.com/finance-and-economics/2021/01/30/w...

egh··on Why we can’t build family-sized apartments in North America
By your own count "most" apartments are 1 bedrooom or less.
egh··on Why we can’t build family-sized apartments in North America
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.

egh··on An Introduction to the WARC File (2021)
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.

egh··on Amazon instructs New York workers “don't sign” union cards
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.
egh··on Building an Intelligent Emacs
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.
egh··on What a progressive utopia does to outdoor dining
Have you seen a car? Have you seen a parklet? If you had, you would understand perfectly well.
egh··on New wave of strikes will test worker power
Let your conscience guide you, but in my opinion you should look to the union to see what they are asking you to do. A boycott of a struck company is not necessarily what the union wants you to do. One can imagine, for instance, that consumers continue to demand a company's product, demand that strengthens the union's bargaining power. When in doubt you can always check the union's web site or social media to see what you can do to support them.
egh··on The slow collapse of Amazon’s drone delivery dream
sure

> UK regulators also fast-tracked approvals for drone testing, which made the country an ideal testbed for drone flights and paved the way for Amazon to gain regulatory approval elsewhere.

egh··on The slow collapse of Amazon’s drone delivery dream
Automation can't deliver packages either, lol
egh··on Where are the robotic bricklayers?
The great contempt that computer people have for the skills that every human brings to the jobs that the do is always on display here. We haven't automated driving; we haven't automated picking tomatoes; we haven't automated bricklaying; we can't automate cooking a fucking hamburger. But they are completely convinced that it's just around the corner, because they are full of contempt for the skill and intelligence of ordinary people.

Frank Bardacke in his book, _Trampling out the Vintage_ describes the great skill that agriculture workers bring to the job that they do, from knowing whether something is ripe enough to pick to the dexterity required to pick it without destroying the fragile fruit or vegetable. Some jobs have been automated, but many more have not and most likely never will be.

Please, learn some humility and try to understand the skills that every human possesses and that they bring to their work.

egh··on The U.S. government’s failed 1890s attempt to forge unity through currency
This is a great comment because while it's completely wrong empirically, it also completely misses the point of the good question about free silver.

Like the question of what was the US civil war about (slavery) the question of what silver v gold was about has been completely obscured by interested parties seeking to complicate the issue in such a way that nobody understands it any more.

There are complications, which I don't really understand, but all you need to know is that silver vs gold was about inflation vs deflation. The free silver people were farmers (who are always debtors) and they supported inflation, because inflation is good for debtors. The supporters of gold were creditors, and the supported deflation, because creditors like deflation.

It's that simple. The author of the above comment apparently thinks the populist farmers were completely wrong and they should have been against inflation. This may be true (it's not, but let's stipulate) but the commenter prefers to obfuscate the issue rather than confront the clear fact that free silver populists supported it BECAUSE it was inflationary.

egh··on CEOs are hugely expensive – why not automate them?
Nice. We finally found the guy who believes this fairy tale!
egh··on Google admits Kubernetes container tech is too complex
You spent more than 3 person-years migrating twenty services from one container orchestration system to another and you think it was worth it? Not sure that seems worth it to me...
egh··on Emacs minor mode for d20 tabletop roleplaying games
This is what lsp-mode does https://github.com/emacs-lsp/lsp-mode/blob/master/examples/h...
egh··on Amazon reportedly has Pinkerton agents surveil workers who try to form unions
Congratulations, you've invented the Molly Maguires.
egh··on Is Stupidity Expanding? Some Hypotheses
no
egh··on When You Win a Nobel and They Can't Reach You at Home
when you win "Not a Nobel Prize" ...

https://www.nobelprize.org/nomination/economic-sciences/

egh··on The majority of 18- to 29-year-olds in the US are now living with their parents
Good point. The data I reported is for "shelter" only, excluding utilities, furniture, etc., so I'm not sure how that looks on the income curve. You're also reporting average income, not median. Median income is much stabler, having climbed about $6000 since 1990.

My main point is, people are spending more on housing. It's not a mirage. It is highly concentrated where there are jobs, but of course people move to where the jobs are. It's facile to say they should move somewhere else, or that they are getting "more" for their housing.

egh··on The majority of 18- to 29-year-olds in the US are now living with their parents
I'm not sure what you're arguing here. The simple fact is the amount people pay for housing is up since the 1990s. You can find this data on the BLS web site: https://www.bls.gov/cex/csxmulti.htm

Here is the data adjusted for constant 2020 dollars:

  1992 $9,799.06
  1993 $9,543.99
  1994 $9,760.55
  1995 $9,924.05
  1996 $9,825.29
  1997 $10,106.90
  1998 $10,473.38
  1999 $10,712.59
  2000 $10,506.40
  2001 $11,055.55
  2002 $11,121.33
  2003 $10,997.04
  2004 $10,800.20
  2005 $11,497.24
  2006 $12,317.69
  2007 $12,262.90
  2008 $12,447.28
  2009 $11,989.00
  2010 $11,503.97
  2011 $11,187.78
  2012 $11,070.20
  2013 $11,114.82
  2014 $11,481.16
  2015 $11,670.71
  2016 $11,844.36
  2017 $12,399.22
  2018 $12,015.43
  2019 $12,190.00
egh··on Stay home except for essential needs
yes
egh··on LA’s new trains have not lessened the time spent stuck in traffic
The density of the LA MSA is 2,744/sq mi, the New York MSA is 4,432/sq mi. The average commute in each area is only about 1 mile longer in LA (https://www.brookings.edu/wp-content/uploads/2016/07/Srvy_Jo...) And yet, there are vastly different commute patterns. (And still over half of people in the NY MSA commute by car). It's not at all clear that density plays nearly as much a role in this as you suggest.
egh··on The myth of the teacher pay gap?
google "work to rule"
egh··on Firefly III – Self-hosted financial manager
Glad you like ledger-autosync! I agree, its very annoying to have to download OFX files. I wish more banks supported the OFX protocol, or really any sort of automated download. I should probably look into plaid and see if it might work.
Page 1 of 3Next →