1,522 karma · joined February 28, 2014
Something like R5RS for Scheme (50 pages or so) is what I think of when I hear small and simple.
[1] https://blog.twitter.com/engineering/en_us/a/2013/new-tweets...
[1]https://twitter.com/elonmusk/status/1595505413113323520?s=20...
He is not running SpaceX, Gwynne Shotwell is. He’s just the part-time CEO, very adept at self-promoting.
In 2012, small cracks were discovered in the pressure vessels of a number of reactors, introduced by hydrogen during the casting of the steel. That was grist on the mill of the anti-nuclear lobby. According to the expert reports, the vessels should be ok (there are some links to English reports on the nuclear safety agency website [2]), but it is easy to fear-monger when nuclear energy is involved. That seemed to have sealed the fate of the nuclear reactors.
[1] https://en.wikipedia.org/wiki/Nuclear_power_phase-out#Belgiu... [2] https://fanc.fgov.be/nl/dossiers/kerncentrales-belgie/actual...
The global production of solar panels was 180 GW in 2020. Assuming around 200 W per square meter, you get 1 billion square meters of solar panels. So their initial number is off by a factor of 1000.
Not on everyone. I can't remember the last time I used a straw, I manage to drink from a glass or a cup just fine. Is it really a huge annoyance for you? I understand that for some people (e.g. people with Parkinson's or a broken jaw) straws are a necessity, but most people should be able to manage just fine without them.
It's true that there are bigger contributors to plastic pollution, but it's hard to argue that plastic straws in the oceans or nature are a good thing.
No, you don’t. Look at e.g. gears: almost no friction, perfect traction.
> Which is why you don't ship hay on trains
No. You don’t ship it on trains because that is uneconomic. You keep your cattle close to your hay producing fields, where they can also graze.
Also, by your reasoning, an empty train would not be able to move?
Why would that be? A typical 110 ton capacity freight train car weighs 33 tons unloaded. It has no problems staying on the tracks.
Besides both buses and planes typically weigh much more than their freight (and planes need to lift all that weight 10km vertically), so I fail to see how that is an argument against trains.
[1] page 30 of https://bisa.brussels/sites/default/files/publication/docume...
[1]https://www.motherearthnews.com/organic-gardening/root-devel...
If I rerun the calculation from the cherry-picked peak of about 360 in 1928, I get around 4.5% after inflation, without dividends.
[1] https://www.gnu.org/software/emacs/manual/html_node/elisp/Cr...
With mysql_fdw you can write the ETL code itself in PostgreSQL: you expose (a subset of) the MySQL tables through the FDW, and then you write SQL code to transform it and copy it to your analytics tables. That's exactly what I did in one project: at night the whole analytics database was recreated in 15 minutes or so (the biggest table had about a hundred million of rows).
Most of the caveats don't apply in that case:
> 1/ Strict upper bound on how much data it can pull in.
I don't know what you mean by that. As far as I know, there are no such bounds.
> 2/ MySQL migrations need to be run on both Postgres and MySQL
Since the analytics database is recreated every night, that is not the case.
> 3/ No way to gracefully migrate or version
Same as 2.
> 4/ MySQL’s “loose” typing doesn’t play well with Postgres’s “strict” typing. This means data can break the fdw.
I never ran into that, but it is possible.
> 5/ Pain in the ass to debug.
Much easier to debug than ETL scripts that talk to two different databases, in my opinion. You can interactively write the SQL code in psql. I used pgTap to unit test the SQL code.
> 6/ This is debatable, but I don’t believe that application code (SQL code in this case) should live in the database.
I don't see any problem with that.
> 7/ Postgres and MySQL have different performance characteristics. This can lead to hard-to-debug performance problems if you are explicitly or implicitly using a fdw in your query.
In my approach you just do a 'SELECT * FROM x' on the mysql side. All performance problems are easily debugged on the postgres side.
> 8/ If you want to keep a local copy of MySQL data in Postgres (to solve for #7) you then have to write code to keep it up to date. This defeats the convenience of the fdw.
If you recreate the analytics database periodically this is a non-issue.
> 9/ At least when I was using fdws, they didn’t have predicate pushdown. This causes you to do structure queries in a weird way to get filters to work as you expect.
PostgreSQL has had predicate pushdown for years now.
> 10/ You have to manage schema type mismatch between MySQL and Postgres. This isn’t fun or productive work.
You have to do that anyway, even if you're using ETL scripts.
If you use the FDW, you can implicitly create the tables on the postgres side: CREATE TABLE my_analytics_table AS SELECT foo, bar FROM mysql_fdw_table WHERE ...;
That way my_analytics_table will get the postgresql types corresponding to the mysql_table. If anything changes, it gets automatically propagated. Analytics queries against my_analytics_table might break, though. Usually, when it's a change from e.g. int8 to int16, things will continue working.
You are making a non-sensical slippery slope argument. Heroin has been prohibited for a long time in the US, yet it hasn't turned into Nazi Germany.
Manufacturing only accounts for 20% of fossil fuel CO2 emissions.
The studies I'm aware of (e.g. [1]) point in the opposite direction: runners have a lower risk of osteoarthritis, potentially because they have a lower BMI. As an avid long distance runner myself, if you have any evidence to the contrary, I'd be very interested to read it.