skysight-inc/HackerNews huggingface dataset:
It's not like every contributor (or even committer) understands all parts of the code base - I certainly don't. People usually start by writing external code (e.g. by writing extensions in C), learn the code style and basic constructs (memory context management, data types, etc.) and then gradually expand their knowledge by working on stuff closer to core and/or reviewing stuff that interests them. At least that's how it worked for me and a couple of people around me. I don't think it's particularly specific to Postgres.

Regarding the high quality, we don't do anything magical - we simply apply well-known tools in a careful and methodical way.

1) careful reviews - Not just the code, but appropriate tests, comments and docs, and most importantly overall design/direction. It's not uncommon to reject the patch on the basis that there's a better approach, and get it reworked from scratch. Evan patches from the most senior contributors generally go through it too (with the exception of bugfixes, ...).

2) not accepting technical debt - No quick hacks that would make our life harder down the road. No features that are arbitrarily incompatible with other features. No compiler warnings.

3) incremental development - Split large patches, even if it means it's not really useful initially.

4) testing - We have a range of tests, that are executed on a variety of machines/platforms/compilers ... (https://buildfarm.postgresql.org/)

5) adopt useful technologies - static analysis, test coverage, valgrind, fuzzing (sqlsmith found quite a few bugs), ...

6) attention to bug reports / fixing them promptly (instead of just stashing them somewhere forever)

I'm sure there are many additional things contributing to the quality. In any case, there's no secret sauce, except for applying those principles consistently.
What the Science of Success Offers Investors
Show HN: Cli to generate js templates, help me make it better
Exactly. How is this "lipreading"? Clickbait.
For ages there have not been billions of people. Now every year there are ~100m more people on the planet.
I'm kind of sad that Elixir is getting all the love and the cool resources since I much prefer Erlang's syntax. Thanks for this page!
But you don't have an alternative. You subclassed things and someone broke the base class. It happens. But there is no other magic bullet (whether it be all functional programming or something else) that solves that problem. Most just make extension impossible, which isn't really better.

> The "sealed" classes are meant to be semantic boundaries.

The author of the "sealed" class definitely imagined all possible use cases and their code has absolutely no bugs, right?
> Plus, the whole pay next month thing is just fundamentally a problem (what happens if eligibility is lost?)

Then the store owner can't cash in the food stamp and has extended credit to the customer, which is a problem for the store owner but not for the food stamp agency. Why should the food stamp agency get involved?
Well as soon as you install a 60-ton press in your garage, you can probably consider it...
What about the 45% efficiency of a natural gas power plant?

Yes induction is efficient if you only look at the part inside your house. But most of the losses are outside your house.

If you live in a place with advanced wind or solar power like South Korea then electric probably is more efficient.
> On the nuclear topic, I'm annoyed that natural gas accidents that cause deaths get way lighter media treatment than nuclear accidents like TMI that cause no deaths.

Why this annoyance? I'd prefer the media for the most part shut up about energy accidents in general, considering how damaging their outcries have been for nuclear power. A few sober reports are fine. It's probably a minor miracle the natural gas industry hasn't suffered like the nuclear one.
$160 a week?! ROFL. Try $450/wk for full time day care. This is in a non-coastal, non-major city for standard licensed day care, not Montessori or high end. Standard rate in the town I live in, could maybe save $50/month if I doubled my commute. Waitlist for daycare? 8months+. We enrolled shortly after we conceived.
A write-up or vid of the components and build would be interesting..
> To find a way to make 3-dimensional numbers into an algebra in a way that extends the algebra of complex numbers

What does that mean? My understanding was that Hamilton was searching for a way to make the manipulation of points in space easier, such as rotation, and noticed that the imaginary part of the complex numbers could be manipulated in the way he wanted. He then created a rather artificial tool in the form of the quaternions that allowed this.
Google pay is based on the market, not cost of living. So London is not nearly as good a place to be as the Bay, or even Pittsburgh (cheap housing, high programmer wages). I like how this works out with Boston pretty well!
I hear Chicago is in terrible financial trouble. Perhaps the people and companies are doing OK, but when the city starts going after people for money to repay its debts they may just start leaving. I know a guy who left and feels he got out just in time. He moved to the Detroit area...
The first article on the frontpage of stolenhistory.org is about how triumphal arches were, in fact, teleportation devices.

So no, whacky conspiracy theories don't scratch any itches.
I don't know much about the specifics of gas distribution, but I came across a comment on an entirely different discussion recently which I think is apropos:

> you should be very suspicious of any conclusion that requires you to assume that all the world’s experts have missed something extremely basic.

It seems to me most likely that the answer is simply that releasing natural gas into the air is an even more dangerous failure mode than overpressure - natgas is not air in a compressor. But regardless I'd bet you dollars to doughnuts that, for one reason or another, blow-off valves are a bad idea in the context.
The electric grid tilts cleaner every year. Your stove will burn natural gas forever. A combined cycle natural gas generator is upwards of 50% efficient, already more efficient than your gas stove.

It's wasteful to spend money on gas infrastructure when it's clear electrical distribution is the future of home energy use. Infrastructure dollars are already in short supply. Just my two cents.

EDIT: You can stockpile energy with batteries, which is the likely outcome based on how much battery manufacturing capacity is coming online to build hundreds of thousands of EVs a year (which are also a great buffer for renewables and electricity in general).
I've spent a few years in the CANDU world so it's interesting to hear opinions from elsewhere. I've grown to appreciate the lag time the design gives you.
All algorithms have engineering trade-offs to for practical application. e.g. available memory, cpu, time.

DNA is very slow but very dense.
Heh, I guess you're right: I'd prefer both nuclear and natural gas to get sober reports. I think natural gas has a better name (it's natural! As if uranium is not), no ties to superweapons, and no The Simpsons. Regular fire is just easier to understand to most folks than radioisotopes.
I also find erlang does not play well with modern ops work flow like docker and kubernetes.
But as for Erlang, a lot of people uses Erlang for building in-memory massive stateful services, and a very fault tolerant system on top of it.
I'm interested in both language, but haven't start playing with Rust yet.
I tried Akka and find it's pretty good but the virtual machine is not as good as BEAM, but Scala is a powerful language.
I'm curious about Rust. Could you please share some insights about if Rust is capable of such stateful services as Erlang does, or there could be other advantages in terms of stateful/fault tolerance?
As a PM I remember the halcyon days when my management would actually request a formal estimate and I would then work with delivery teams to calculate an answer and then add the traditional 50 to 100 pc buffer because I knew they were full of crap/I kept a personal record of their history of estimate vs reality. Nowadays management are in to top down planning so they don't ask for estimates, they don't add realistic buffers so they over promise with one hand and underestimate with the other. Seems to be a trend where everyone thinks they know how to do a PM's job.
As the other commenter pointed out, this seems pretty isomorphic to virtual methods.
This was really interesting. It’s also the first time I’ve ever read anything detailed about what kind of people go to Mines. As a CC student we were always slightly in awe of this other strange and very small and unknown but highly regarded school, full of people studying rocks or something, on the other side of the hills. Still underrated 25 years later it seems.

It’s also a great article that reminds me of what I actually like so much about the internet. A guy, who’s passions are almost incomprehensible to me in some ways, who has this incredibly specialized knowledge that he wants to share with the world. So he makes a website and shares it. And if I ever want to get deep into this topic there it is.

In the age of clickbait and awful social media it’s useful to remember why we were excited about the thing in the first place. I literally have no demonstrated interest in knife steel but I still want to sign up for this guy’s Patreon just because I’m glad people like him exist.
> see anyone neutral arguing it wasn't.

Well, FWIW, I've never heard _anyone_, neutral or not, claiming the DAO hack was a bug in the Ethereum protocol before now...

And that's because, well, it very clearly isn't. hackingdistributed has a good overview[0] of the coding bug in the DAO that enabled the hack which I recommended you to read.

Looking at this another way, this could've been avoided by the DAO developers if they developed the smart contract more carefully. And the exact kind of bug that lead to the hack was still possible on Ethereum following the bail-out hardfork. So how can one claim the hardfork fixed a protocol bug?

> If you argue The DAO hacker had the right for the Ether

I didn't say that. I only argued about the differences between fixing a protocol bug and bailing-out companies that build on top of the protocol.

[0] http://hackingdistributed.com/2016/06/18/analysis-of-the-dao...
21 Lessons from Jeff Bezos’ Annual Letters to Shareholders
A honeypot programmed in Micropython for the ESP8266
Yeah finding something you enjoy is key.

I hate running. I hate cycling. I hate cardio-class-type motions.

But damn do I love me some Dance Dance Revolution. And let me tell you, once you get good at it and start doing the hardest songs on the hardest setting, it will kick the living shit out of you. The first time I passed Max 300 on heavy I thought I was dying. But it was so worth it.
> pessimistic file locking is a fatal design flaw in Windows. ... What problems is it meant to solve?

How else do you prevent people from overwriting each other's changes to the same data? Whether the lock is at the file level, field level, etc., how else do you manage collisions? It seems so obvious that perhaps I misunderstand your question.
Some control systems for air and space craft are designed with quaternions - here the problem being solved isn't a programming problem but a math problem involving the dynamics of the craft and/or orbital dynamics.
"Consume" literally means "eat". So eating out is definitely consumerism.
There are pressure relief valves, but they (a) can't handle that much overpressure and (b) many of them are located inside the houses (at the gas meter, which on many houses around here is still indoors).
You guys don't happen to use F# do you? Is it all python/SQL?
If someone learned French to read about Lagrange multipliers from Lagrange's original papers, then they would be sorely disappointed: it was actually Euler who first used the Lagrange method! (And by some curious coincidence, the L/lambda could just as easily be a homage to Leonhard as to Lagrange...)
Ask HN: Should new grad go to startup or big company?
I will be graduating next semester. This would be the job hunting season. Just wondering if any of you have suggestions. Should I head into the startups or big company? Thanks!
I just wanted to add that while having a video call might be a sign that there is some interest, most of the time they do it to get more information and understand your business better. So don't worry too much if you didn't got one.
How Men Stole Civilization
> I would say that any persons functional literacy will be enhanced with access to a dictionary (digital or printed), unless they can the dictionary by heart.

I agree! (Further it is impossible to know a good dictionary by heart, since it should be updated regularly.) I didn't mean to suggest that normal people don't need dictionaries, only that it seems a bit extreme to suggest that a large part of functional literacy (not just fluency or eloquence) would be lost by a temporary loss of access to one.

> I personally confer a dictionary whenever I write more than a paragraph of text. Most people don't do that, but they should.

Just this one time, I hope that it is OK for me to nit-pick and point out that you almost certainly mean 'consult', not 'confer'.
Exactly -- many assertions fall very far from being prosecutable but can be enormously disruptive socially.

See the recent SCOTUS nominations for an example.

... and that's in a modern well-educated society.

In countries that are riven by sectarian and tribal rivalries, a convincing video can result in the deaths of millions.
Gloria Jeans actually started in America (in a Chicago suburb in 1979) and were common in Illinois and Wisconsin in the early 1980s. They've pretty much died out here -- interesting to learn that they had a second life in Australia.
Memory mapped I/O actually prevents the use of huge pages if the backing storage is an actual disk. See https://lwn.net/Articles/718102/

Do you know of a way around that, aside from building your own patched kernel?
Nor Sun's old 3D desktop environment https://en.wikipedia.org/wiki/Project_Looking_Glass
Germany urges global minimum tax for digital tech giants
If I can give you a recommendation, set up a waitlist before you publish your blog post.

We just went through this process with Solo (mentioned in another comment): blogging, waitlist, kickstarter. HN has been great, we hit the front page four times. KS however is penalized on HN, so building a waitlist will be increadibly useful.

Best of luck!

edit: grammar
>If you get old with no exercise and deteriorating health, it's gonna fall upon your family to take care and worry a lot about you.

No it isn't, just off yourself when you feel like the time is right. I don't get why everyone wants to stretch these years out until the bitter end and would rather end up in a home than just taking a nice walk one day and not coming back.
This is the best comment I have seen on HN all year.
Have you considered that the disdain comes from not being treated with respect?

I don't know what comes first.

But the places where engineers get on well with management are the ones where their opinions matter. Otherwise resentment comes in.
I personally think the research done on HIIT/HIIE-style[0] exercise has been pretty revolutionary.

Sure the status quo remains: exercise=good, non-exercise=bad, but reality is more nuanced than that and something like HIIT helps people who feel they lack the time for "full" exercise to justify a minimal time commitment with proven and significant health benefits.

[0] https://en.wikipedia.org/wiki/High-intensity_interval_traini...
Yes, you should! Take care of your body!
Your examples all fall flat. You've completely sidestepped the issue of discrimination against Asians, instead saying that Harvard "fixed" its racism by instituting more racism.
I’m older than you. When I was younger I thought you had more control over your health. Now I realize the amount of control you really have is minimal. It seems like a crapshoot. I see older people who did nothing to take care of themselves doing just fine, and plenty of fit people whose health is surprisingly bad.

I see some people over 65 who can do what they once did, but they are the exceptions.

I see how diet and excise impact heart disease. That’s obvious, particularly in the extremes. Other than that… it seems like the genetic lottery determines the majority of outcomes.
Two obvious differences off the top of my head:

1. Overriden methods have access to the internal state of the parent class, which is almost universally a bad idea.

2. Since functions are values, you can freely mix and match different view configurations without having to create a subclass for every permutation.
I think this one isn't per user, but likely Netflix's keys would be per user.
Dired – Using Emacs for browsing files
MSI GS65 Stealth – Just when you thought Gaming laptops could not have form
I feel for you! Good luck! We do have it easy compared with many folks. We do have the same kind of waitlist though, in fact it's more than a year in many places. I always wonder, now if it takes 9 months to make a baby, and the waitlist is a year, then someone out there has way better planning skills than I'll ever have.

Edit: just checked.. ha! We're paying 300 not 160.
People try in their own ways. So there are some organizations who do good. But they cannot revive justice after it has gone to sleep, in these circumstances. Would you play a game someone has rigged against you? Are those organizations capable of undoing what has been set in motion and of redesigning the game at this stage?

Secondly, what self-care time? lol
I wonder if this technique has made its way from MIT to the clandestine services yet... you sort of have to assume it has.
This looks really neat and I’m left wondering: surely this can be used for more than large scale services.
Heh...I was excited when he mentioned the school. I’m an amateur geologist and have considered it with reverence for some time now. Great mineral museum, if you’re into that kind of thing.
if anyone has tried it, how would you compare it to Aero 15X?
Take a wild guess.
Also: please email us! It would be great to talk further.
I disagree. I should be allowed to take on the burden of my own security. I don't want an outside force trying to pretend they know my needs better than me. You can produce a product, and I, the user, should have 100% decision on how and for what purpose I will use that product.
It's wasteful to spend money on gas infrastructure when it's clear electrical distribution is the future of home energy use.

Maybe for cooking with a wok. But around here most homes are heated with natural gas. And that takes a lot more energy then heating chicken and vegetables.

New natural gas furnaces are up to 97% efficient. They're no longer allowed to sell furnaces that are less than 78% efficient.

https://www.consumerreports.org/cro/gas-furnaces/buying-guid...
But nor Ubuntu LTS, nor a rolling-release takes as long to update as Windows does, so what's your claim? In either case it takes significantly longer to upgrade Windows than it does Linux.
This flows nicely, but I feel obligated to pick a few nits:

Unless you sourced the original Greek, that's technically not a translation -- it's an interpretation of a translation. Every time you rewrite something like this (especially between languages) it's a "lossy" process and diverges further from the content, sentiment and emotions of the original.

Secondly, the original clearly made efforts to preserve certain properties of the original, such as its metrical structure. While it's a legitimate topic for debate whether it's worth trying to preserve such things in a translation, that IS something present in the original, present (however poorly) in the translation, and absent from your reinterpretation.

Again, not that yours was bad, just pointing out that there are tradeoffs in translation and that "reads better to the modern ear" is often in tension with other advantages.
Some suggestions, YMMV.

Podcasts or films or boxsets on the phone/tablet to kill that boredom if you're doing steady state cardio. Maybe immersive games like that Zombie Run game, if jogging is your thing.

Switch it up, do HIIT instead of low impact steady state cardio once in a while. Lift weights.

Find a buddy to go with you. If you're obligated (or enjoy the company) then you'll be more likely to do it - as will they, you'll be helping them out too. Professional options include: join a sports club. Tennis, kickboxing, whatever works for you. Or get a personal trainer, if you can afford it. 99% of their value is that they simply make you turn up.

Cycle/walk/jog commute if possible. If you can fit exercise into your existing routine it's far easier to keep doing it.

Best of luck!
It's perfectly decentralized.

The Ethereum Foundation is just the centralized marketing and governance organization that also lobbied the SEC not to classify it as a security because of how decentralized it is.
> the point of a transpiled language isn’t for its output to necessarily be readable but first and foremost fast. You wouldnt expect c to produce understandable assembly in all cases, would you?

I would like to argue about this philosophy. When your target output is not readable, then you restrict the developer to work inside your upper-level language. This is fine if your upper layer is robust and transparent enough to reason about. In C's case, there is rarely a case one needs to work at the assembly level to reason/debug. Is this the case for Haxe? Now if you even imply that developer need work in your output layer even one percent of the time, then it is responsible to make sure the output is readable. Otherwise, it is a gun shooting the foot -- even only 1% of the time.

The background is that I love C. I find C very straightforward to reason about and very simplistic to allow more logic to be spelled out in a clean way (than C++ for example). Now the above passage -- putting assembly as an analogy to C -- sounds prickly.
They are more difficult to cook with than gas - I find it hard to get a sense of how much heat is going into the pan. But they are certainly not ineffective. If anything, the problem is that they are too effective!
There are modern controllers which will detect this situation:

"When Open Loop Detection is enabled L.dE, the controller will look for the power output to be at 100%. Once there, the control will then begin to monitor the Open Loop Detect Deviation L.dd as it relates to the value entered for the Open Loop Detect Time L.dt. If the specified time period expires and the deviation does not occur, an Open Loop Error will be triggered. Once the Open Loop Error condition exists the control mode will go off and an Open Loop message will be display. If the process value goes in the opposite direction, a Reversed Loop message is display. The sensor is likely wired in reverse polarity."

If this crew was replacing an old cast iron gas main, it probably predated such controllers. That's not necessarily a bad thing. A mechanical controller can work for many decades. It's hard to get that level of uptime from microprocessors.

The real problem here is "maintenance induced failure". Especially on a system which is not fully shut down.

[1] https://www.watlow.com/-/media/documents/user-manuals/pm-pid...
You're only going to need a gas furnace (vs an efficient electric heat pump) in climates where it dips below 10F and an air or ground source heat pump would need to call on auxiliary heat to keep a dwelling warm (unless you live in a newer home with a very tight envelope and little unassisted air exchange occurs).

To your point, you can purchase very efficient gas furnaces, but they're more expensive and require a retrofit of the flue pipe to PVC due to corrosive properties of high efficiency furnace exhaust (not a concern in new construction).

https://www.consumerreports.org/cro/heat-pumps/buying-guide/...

Air source only heat with a heat pump is a slam dunk anywhere south of the 36°30′ parallel, and all of California.

https://www.currentresults.com/Weather/US/average-state-temp...