HNHacker News
TopNewBestAskShowJobs

nathan_long

4,485 karma · joined June 1, 2012

submissionscomments
nathan_long··on Browsers are pretty good at loading pages
> Unfortunately for us front end engineers we can't rely on the user having any internet connection let alone a good one.

Surely some web apps need to work offline. But most web pages do not, and I don't want most sites I visit to store a bunch of data on my machine on the off chance that I'll use them offline.

"Offline first" seems really misguided to me as a rallying cry for all things on the web.

nathan_long··on Browsers are pretty good at loading pages
> I agree that JSON could lead to less data being transferred over the wire

I haven't benchmarked the difference, but I bet HTTP compression removes most of the difference

> but that assumes your client already has cached the megabytes of JavaScript needed for you SPA

A cache that will need to be busted every time you deploy new code. You do deploy often, right?

nathan_long··on Browsers are pretty good at loading pages
> It seems to be a fast and responsive site when it works, though.

LOL.

Y'all, I love speed as much as anyone, but your development priorities should be 1) it works and 2) it's fast.

Using HTML links where 1) is never in doubt and all focus can be placed on 2) seems like good engineering to me.

Reinventing browser navigation is like building a rocket. You should be really, really sure that you need to do it before you try.

nathan_long··on Anyone made the jump from MySQL to PostreSQL? It is worth it?
I probably wouldn't migrate a project, but I switched my default db to PostgreSQL after seeing the many ways MySQL can silently screw up data. Truncating strings, truncating numbers, allowing NULLs in a NOT NULL, etc. Much (all?) of this can be fixed with settings these days: https://dev.mysql.com/doc/refman/5.7/en/constraint-invalid-d...

PostgreSQL has a hard bias toward correctness. If you give it invalid data, it will blow up loudly every time.

PostgreSQL also has a boatload of useful features. Need full-text search? It has it, and it's good enough for lots of stuff: http://rachbelaid.com/postgres-full-text-search-is-good-enou...

Need to search for locations with coordinates < N kilometers from a coastline? PostGIS does it.

Need to store and query JSON? Partition tables by a date range? Index only the rows matching a WHERE condition? Use a CHECK constraint? Prevent race conditions from creating reservation rows with overlapping datetime ranges (exclusion constraints)? Run a query periodically and cache the results as a queryable table (materialized views)? The list goes on and on.

More correct data + fewer reasons to add another tool to the stack - especially when that would mean having to keep data in sync - is pretty compelling to me.

nathan_long··on Avoid Artificial Stupidity
> My search for a bookcase starts on ikea.com, where I navigate to the bookcase section, in the hope to get an overview of the different series. I find instead a listing of all 257 bookcase products, including accesories, such as hinges and extra shelves.

This is a very common frustration I have. Eg, go search Amazon for "bike" and sort by price "low to high". None of the top hits are bicycles; they are all accessories.

ML seems to be about guessing what the user wants based on lots of data analysis. But I think there are lots of cases where letting the user tell you want they want, by providing a hierarchical menu or explicit filters, would get much better results.

One "low tech" thing I wish someone would build: an online grocery store with every product categorized by food restrictions (gluten-free, peanut-free, sugar-free, low-sodium, etc, as well as kosher, halal, vegan, etc). Check the boxes you care about in your profile and you'll only see things that match. This would be AMAZING for folks with food allergies. The implementation would be 99.9% up-front research and data entry; the actual filtering would be as simple as WHERE clauses. But I don't know of a site that does this.

nathan_long··on Developers don't understand CORS
How many people can you have in a single meeting?
nathan_long··on The BS-Industrial Complex of Phony A.I.
> A great example is when Henry Moore saw Michelangelo and started to cry and confessed the only reason he makes such statues is because he knows "he will never be able to create anything as beautiful as that"

Interesting. Citation?

I personally love this epic ownage: Normal Rockwell painted a Jackson Pollack inside of his own realistic painting. https://triviahappy.com/articles/norman-rockwell-made-fun-of...

nathan_long··on Glass discs that can store 360TB and remain intact for billions of years (2016)
CDs that you burned chemically with a laser at home were much less durable than those physically pressed in a factory from a glass master.
nathan_long··on Glass discs that can store 360TB and remain intact for billions of years (2016)
This assumes an unbroken chain of people devoting time and resources to migrating the data. Any gap would mean that data is lost or requires much more expense to recover.

Find a 3.5" floppy disk from 1995 with WordPerfect files on it and see how much effort it takes you to get the documents back. Now imagine 100 years have passed.

nathan_long··on Elixir 1.9
Fred Hebert was on the ElixirTalk podcast and mentioned speed of deploys as one advantage - no need to rebuild a bunch of VMs.

> From experience, we could deploy to a 70-node cluster in something like under 5 seconds by doing it in parallel. If you want to rotate your infrastructure... your deploy could be taking from 5 minutes to an hour depending on how fast the connection draining can be done.

https://soundcloud.com/elixirtalk/episode-145-feat-fred-hebe...

nathan_long··on YouTube to Remove Thousands of Videos Pushing Extreme Views
I share your concern about how Youtube influences society, and it's likely that content I consider good will be taken down by Youtube in the future. I don't like that.

But it still sounds to me like you're demanding that, after removing illegal videos, a site should either be 100% curated or 0% curated.

https://www.tubefilter.com/2019/05/07/number-hours-video-upl... says:

> The platform’s users upload more than 500 hours of fresh video per minute, YouTube revealed at recent press events.

100% curation is unrealistic in that case. They could crowd source the work, but it's hard to see how they can be legally accountable for what users mark as OK.

But 0% curation would mean that they're forced to host videos they consider repugnant. Imagine starting a video sharing platform, having your business grow, and one day being told "well now you're big enough that you no longer get any say in what your site hosts."

nathan_long··on YouTube to Remove Thousands of Videos Pushing Extreme Views
> If a private developer were to take over most residential areas in a section of town

There is a finite amount of land in a town, so a monopoly can exclude people. This is not true of video hosting - there can be as many video hosts as people care to build, and they are all equally usable from anywhere on the internet.

> Since YouTube has a monopoly on video content on the internet

They don't.

Now, if ISPs started censoring particular political viewpoints, that would be different IMO. It's much harder to get a different ISP (at least where I live) than it is to browse to a different web site.

nathan_long··on YouTube to Remove Thousands of Videos Pushing Extreme Views
> If they don't want the government forcing them to host content and uphold free speech then they have to take responsibility for the content in the eyes of the law. Currently they're having it both ways, free to ban ideas they don't like and control the content they deliver without being responsible for libel/slander.

It sounds like you're saying that they either have to host absolutely any video anyone uploads, or else stand behind every video as if they made it themselves.

I don't see how a video platform could exist on those terms.

nathan_long··on YouTube to Remove Thousands of Videos Pushing Extreme Views
Somewhat tangential, but unless you have a goal of using a product as much as possible, any algo that optimizes engagement is not your friend. It's like a waiter who always wants you to order more food.
nathan_long··on Bees can link symbols to numbers, study finds
> If bees can do this, how smart are we really?

Well, bees don't invent controlled experiments to test our symbolic reasoning, think through the results, form philosophical questions using arbitrarily complex language structures, and post them on the own worldwide information-sharing networks they invented. So I'd say there's a pretty big gap.

> Compared to generally intelligent AI or extraterrestrials, the difference between our intelligence and a bees might not be much.

Assuming that intelligence can be quantified, and that extremely higher values are physically possible, yes, the orders-of-magnitude difference between bees and humans might theoretically be dwarfed by some other comparison. Just like the size difference between a grain of sand and a mountain is not significant compared with the difference between the mountain and the Milky Way. But it's still a massive (get it?) difference.

nathan_long··on Bees can link symbols to numbers, study finds
I think the "abstract" part here was the concept of "three-ness" or "two-ness" - that the bees could see something that represents 3 and correctly choose the path with three shapes, regardless of what the shapes were.
nathan_long··on GM and Fiat Chrysler Unmasked as Tesla’s Source of Cash
Established car makers have established themselves so well by not paying for the health and environmental damage their products cause. We have all subsidized them by paying to deal with their mess (in cash and in consequences).

To frame this as if GM has paid own its way and made its fortune without help, and now is benevolently helping Tesla, is misleading.

nathan_long··on China Has Whole Towns Focused on Making Electric Cars
A dictatorship is just more extreme than a democracy because the whole society moves in sync by necessity - they do or die. Whether it's a smart industrial move or a dumb one, a benevolent program or a genocidal one, if the leaders call for it, it gets done.

No single decision should be taken as proof that dictatorship is good.

nathan_long··on The World Blows over $5T a Year on Oil and Gas Subsidies: Report
Competing restaurants and whoever is in charge of the park cleanup budget would disagree with you quite strongly
nathan_long··on 102KB ought to be enough for any email
Yes. If an email is bigger than 102KB (excluding attachments), there's a 99% that I don't want it.
nathan_long··on The World Blows over $5T a Year on Oil and Gas Subsidies: Report
LOL
nathan_long··on The preachers getting rich from poor Americans
Exactly. Evangelical Christians have also denounced this kind of con many times.

Eg via a documentary: https://www.thegospelcoalition.org/article/american-gospel-b...

A sermon clip with more than a million views: https://www.youtube.com/watch?v=PTc_FoELt8s

A rap which drew a lot of attention when published: https://www.youtube.com/watch?v=pl4WevY-GPU

An explainer article: https://www.thegospelcoalition.org/article/what-you-should-k...

A church journal issue dedicated to the subject: https://www.9marks.org/journal/prosperity-gospel/

An article by the nephew of one of these con artists, explaining why he left the racket: https://www.christianitytoday.com/ct/2017/october/benny-hinn...

And the list goes on and on. There are many ongoing efforts to combat this kind of false teaching.

Jesus' own teaching and that of his first followers were quite clear on the point that greed is sinful and dangerous, and that love and generosity to the needy, not wealth and success, should characterize Christians.

[Luk 12:15, 33-34 ESV] 15 And he said to them, "Take care, and be on your guard against all covetousness, for one's life does not consist in the abundance of his possessions." ... 33 Sell your possessions, and give to the needy. Provide yourselves with moneybags that do not grow old, with a treasure in the heavens that does not fail, where no thief approaches and no moth destroys. 34 For where your treasure is, there will your heart be also.

[1Ti 6:9-10 ESV] But those who desire to be rich fall into temptation, into a snare, into many senseless and harmful desires that plunge people into ruin and destruction. For the love of money is a root of all kinds of evils. It is through this craving that some have wandered away from the faith and pierced themselves with many pangs.

[Eph 4:28 ESV] 28 Let the thief no longer steal, but rather let him labor, doing honest work with his own hands, so that he may have something to share with anyone in need.

[Phl 2:3-4 ESV] 3 Do nothing from selfish ambition or conceit, but in humility count others more significant than yourselves. 4 Let each of you look not only to his own interests, but also to the interests of others.

[Jas 1:27 ESV] 27 Religion that is pure and undefiled before God, the Father, is this: to visit orphans and widows in their affliction, and to keep oneself unstained from the world.

[1Jo 3:16-18 ESV] 16 By this we know love, that he laid down his life for us, and we ought to lay down our lives for the brothers. 17 But if anyone has the world's goods and sees his brother in need, yet closes his heart against him, how does God's love abide in him? 18 Little children, let us not love in word or talk but in deed and in truth.

Prosperity teaching sells a parody of Christianity. It preys on those whose faith and knowledge of scripture is too shallow to tell the difference.

nathan_long··on The World Blows over $5T a Year on Oil and Gas Subsidies: Report
If a town allowed a restaurant to dump their trash in a public park for free, would you consider that a subsidy?
nathan_long··on PostgreSQL 12 Beta 1 Released
depesz has a nice series of posts about new features: https://www.depesz.com/tag/pg12/

"Generated columns" and "foreign keys to partitioned tables" are two that caught my eye.

nathan_long··on Self-driving trucks begin mail delivery test for U.S. Postal Service
The company making these self-driving trucks - enormously complex products which could kill people if they go wrong - is called "TuSimple"?

Really?

nathan_long··on People see it as more acceptable to make passionate employees do extra: study
Your comment sounds more like a soap box than interacting with the actual article.

> In one study, participants who read that an artist was strongly passionate about his job said it was more legitimate for the boss to exploit the artist than those who read the artist wasn’t as passionate. This finding extended to asking for work far beyond the job description, including leaving a day at the park with family and cleaning the office bathroom.

This is not normal and professional behavior.

nathan_long··on People see it as more acceptable to make passionate employees do extra: study
"Always violate your conscience" does not sound like good advice. Maybe you're working on the assumption that you "feel guilty" about deals that are actually fair?

Besides which, economics is all based on the fact that two parties in a trade can both win because they want different things. Eg, you have a surplus of oranges, I have a surplus of apples. I value my first apple highly (I like apples!) but my ten thousandth apple is nearly worthless to me. I'd happily trade that last apple for a tenth of an orange. And you'd gladly trade your last orange for a tenth of an apple. We trade some of our fruit 1:1 and we both got a deal 10x better than what we'd accept.

nathan_long··on Why play a music CD? No ads, no privacy terrors, no algorithms
> The jury has decided, it's successful

Hypothetically, what if it never begins earning more money than it spends each year? At some point wouldn't it be unable to borrow any more (from banks or investors) and be forced to shut down? And if so, we still don't know if it can be profitable, right?

nathan_long··on ZombieLoad: Cross Privilege-Boundary Data Leakage on Intel CPUs
These style of exploits remind me of "The Free Lunch Is Over: A Fundamental Turn Toward Concurrency in Software" (2005) - http://www.gotw.ca/publications/concurrency-ddj.htm

> Chip designers are under so much pressure to deliver ever-faster CPUs that they’ll risk changing the meaning of your program, and possibly break it, in order to make it run faster.

> ...

> applications will increasingly need to be concurrent if they want to fully exploit CPU throughput gains that have now started becoming available and will continue to materialize over the next several years. For example, Intel is talking about someday producing 100-core chips; a single-threaded application can exploit at most 1/100 of such a chip’s potential throughput.

It seems the trend in programming languages is towards better concurrency support. But why don't we yet see 100-core chips? If chip makers had to forego all speculative execution and similar tricks, would that push us toward the many-core future?

nathan_long··on A critical step to reduce climate change
> Once solar and wind, without any subsidies, are cheaper than coal, then societies will switch purely out of self interest.

If coal prices included the negative externalities costs - in other words, if we charged coal companies for dumping their trash into our collective air instead of subsidizing them by letting them do it for free - it would greatly change the price comparison. Then the market would likely do the rest.

← PreviousPage 2 of 34Next →