skysight-inc/HackerNews huggingface dataset:
[Design Doc Template]

* Background

Background on the problem we’re solving.

* Design Goals

Requirements and goals of the project. This should also include numbers like traffic assumptions, usage, uptime requirements, etc.

* Other Proposals

Options that were looked at, but we evaluated that weren’t going to work

1. Option 1

2. Option 2

* Solution Summary

Summary of the solution in a paragraph or two.

* Solution Details

Details of the solution...feel free to add/remove sections that make sense, some starter ones are below.

* System diagram

Diagram of all the binaries, databases and 3rd party services that this system touches

* Wire frames

Any wireframes for the UI if this has a frontend component?

* Code

Where is the code going to go? Does this touch any common repos? Any new repos being created?

* Testing

What kind of testing is going to be done. Unit tests, regression tests, etc.

* Scaling

What aspects of traffic do we need to think about for scaling. If the traffic goes 10x, we ok? could the database grow 10x and cause issues?

* Operation details

Details that the operations team might want to know like location of binaries, monitoring to be setup, oncall, etc

* Internationalization

Do we need to think about spanish?

* Tradeoffs made

Write out the big tradeoffs made
Interesting, I'd never learned about that. If I understand correctly, this actually used to be implemented as a fork()+exec() on many systems, though. It's actually vfork() that addressed the problem and allowed an actually useful implementation of posix_spawn in Linux at least.
Pre-19th century empires may have been more culturally diverse than those that came after, but they were still less diverse than the situation which came before. Centralization by nature will remove previous local elite culture, for instance, only allowing for any cultures that are subservient.
On Designing Processes
Well, hopefully. A lot of cats are getting put back already here. And what will happen when the big next financial crisis hits? It is a sellers market now, but that will turn around; wondering what companies are going to do then.
I watched git take over in several companies before anyone had ever heard of GitHub. One reason for Git’s success in my mind is that the actual competition in practice was Perforce, not Mercurial, and Perforce’s workflow and scripting UX and design are stuck in 1997… still! ;)
>it takes time to get adoption and all browsers have to implement it.

You can make it a library , name it STL-extras.
So instead of having 10 packages with 10 copy of left pad, 12 packages with some copies of isOdd and other ridiculosness you have this 1 STL-extra library that is reviewed by Google and Mozilla.
You can probably mitigate this with malloc_s or similar that writes 0 bytes to the entire allocated space before returning.
The thing that bothers me about the whole energy discussion is that there seems to be little room for a middle ground, it's just a political discussion at this point. In reality we won't have 100% renewables and we won't have 100% nuclear either. Neither of those 2 options, at their extremes, is best from a cost perspective.
If you in fact did kill multiple people then sure, but that is a tiny % of people who are locked up. But then, maybe. I think most would prefer life even in that situation.
It's evidence of a minimum viable standard for rule of law.

Take, for example, Barbados, which is dependent on foreign tourism and foreign investment. If you are going to invest in Barbados, you'd like to know that your property rights will be respected, that contracts will be honored, and that there will be due process in case there is a dispute.

Being a commonwealth nation is one of the things that helps sway that in your favor, particularly for small island nations, primarily due to the British history of respect for property, English common law (which is less amenable to be changed by fiat), and an impartial judiciary.

Obviously that's not the only thing you'd look at, but it's one of the things you'd take into account.

On the other hand if you are a major nation like Australia it doesn't matter. But if you are an island like Barbados, you need all the help you can get to demonstrate to investors that their investment will not be confiscated the next time some populist comes to power.
Saying it's a Google analytics alternative is quite far stretched.

It doesn't have any user journey but only entry and exit, no A/B testing, no heatmap for click and scrolls.

If it doesn't provide any actionable intels, you don't call that analytics but just a counter.

Check Countly's intro video on what analytics is. Though the base is open source, most of its analytics features are behind enterprise edition.

https://youtu.be/sQCUNSzfEW8

For an open source solution, you might want to look at PostHog instead. (But paid plans exist for some features.)
PHP 8.1 in 8 code blocks
Wouldn’t be enforceable due to section 3, clauses a and b:

> SECTION III. COMPENSATION FOR TRANSFER

> A. Buyer agrees to compensate Seller with an amount of no less than ten (10) United States Dollars for the transfer of the Soul within 48 commonly recognized Earth-hours of the receipt of the signed agreement via any medium, physical or electronic, as described in Section II-C, according to the conditions outlined in this Section (III).

> B. The sending of these funds (hereafter “the payment”) shall occur via PayPal.com and shall be sent to an electronic mail address provided by the Seller.

I believe that contract law would dictate that unless the Buyer is able to make a significant fraction of the payments, the contract is effectively null due to material breach.
Thank you, this is amazing and totally went under my radar
I live in Bangalore but I disagree. Bangalore is not such a good place to live in.

Reasons being:

1) Dirty. Yeah, Most places in Bengaluru are very dirty. No effective dirt management system. Also, people throw trash on roads, on empty sites, on footpaths, and everywhere making it very dirty.

2) Roads and Traffic.

First of all, let me tell that Road Infrastructure is not at all good. Also, People don't seem to value life of others. People many times don't follow traffic rules. Thanks to Lack of infrastructure, Crossing the road is also so difficult here and there are chances People will run over you(people seem to be hurry).

3) Water

Water Quality is Bad. It's also causing baldness in many people.

4) Corruption

Many people with power seems to be corrupt. You get to deal with them if you live here.

Contd...
There's no restrictions in that sense. However the computer might not do what you intended if you were to do something like fputc('x',stdout);fork();fflush(0);
And the Squid Game screenwriters perk up and start taking notes...
P4 has better UI than git, but I’d argue the UX of command line p4, and of workflow issues like workspace mappings and connections and of course branching, are all dramatically inferior. (Caveat, I haven’t used p4 streams yet.) The one thing p4 has that I sorely miss and nothing in git-land comes close is the time-lapse view!
All that stuff about access to quality health care is totally true, but I don’t see how it’s relevant. Ivermectin is being described as a preventative drug comparable to the actual COVID vaccines, not merely a treatment once you’re already sick.
> This actually terrified me, as Britain being willing to give up the commonwealth when the Queen dies may mean serious contests for who gets to write new constitutions

No one is talking about terminating the Commonwealth. Nor does Britain qua Britain have any role in any of this. These are separate constitutional monarchies vested in the same individual but with entirely separate governments. Britain already gave up authority over them when they became independent.

> It's not so much a matter of removing the Queen as head of state as unsealing the document

In many cases, the documents have been revised multiple times in recent decades. They aren't Holy Writ. And while a less popular monarch may accelerate Republicanism, its unlikely to trigger a simultaneous rush for the exits.

> someone says while you are there, we need this, and we will fight you if we don't get it. You see how this escalates immediately, and all together within months of the Queen's death.

I see what you arr imagining, but I don't see it as particularly likely.

> What are the odds of over 50 countries ever trying to rewrite their constitutions in a lifetime,

Pretty high. In fact, pretty much every country on Earth, of which therr are significantly more than 50, has revised their Constituion in living memory, most have done so in the last 20 years. [0]

> and then again what are they to do that simultaneously ?

Again, there are probably more than 50 working on revisions at any given time. Not unusual at all.

> I can only hope it will be mostly peaceful?

Why wouldn't it be? The (much fewer than 50) countries sharing a monarch with the UK are largely ones that have revised their Constitutions peacefully multiple times recently.

[0] https://comparativeconstitutionsproject.org/chronology/
When I finally got over that, I got to mourn netstat and learn ss.
I have a unique name and it’s served me well in life, for what it’s worth. People tend to remember you, although that’s perhaps going to change with more children having unique names.
Wow, thank you for this info, I didn’t know that. It’s fascinating what they did back then.
Thank you for YouTube link. I would of never found this and it looks like gold.
Note that modern POSIX recommends just calling fork() because "[vfork] was previously under-specified". The glibc man pages shouldn't say undefined since that's too strong a word. There is so much you can actually do in practice during vfork(). Pretty much all system calls are just as safe. It's mostly a question of whether or not your userspace libraries might clobber some global, due to how vfork puts the process in a state where implementation details that are normally private become part of the public surface area of these apis, and not many library authors are disposed to offer those kinds of assurances.
> Seems like it would be trivial to add a piece of metadata about which branch someone was on when a commit was made.

I often make commits without being on a branch at all (detached head). I like this about Git.
EA calls NFT and blockchain games 'the future of our industry'
I knew there was something dumb about that, and meant to get it in the edit but walked away. Barring the extra dumb part, constitutional conflicts can be contagious, was my point.
But MMP means that if people are really unhappy with the current system then a new party will appear. Trump wouldn't have been a republican, instead he would have been the leader of the new right, similar to how many such parties popped up like mushrooms all over Europe. They weren't old parties that got reformed, they were new parties created as a response to people demanding such parties.

You are right that such changes are rare, they certainly don't happen once every 25 years, but the fact that they can happen is really important. Otherwise you are left with situations like current USA where many wants to vote for lower taxes but don't want to support Trumps other political views, in Europe you just vote for another right wing party but what do you do in USA?

Similarly you have many people who wants to vote for higher taxes and more government programs, but don't want to vote for all the identity politics. What should they vote for? Now the entire left is associated with identity politics and the entire right is associated with opposition to identity politics, making it hard to distinguish between different views and probably making the whole political conversation way more toxic than it needs to be. It has gotten to the point that people often assume you are racist if you argue for lower taxes etc.
People who still prefer GNOME2 GUIs are using MATE, what is the OSX 10.3 lover to do?
You could just measure the isolated inner loop with accurate timers and figure out down to the clock how many cycles it was taking.

You also basically knew how many cycles each instruction took (add, multiply, bit shift, memory reference, etc.) so you just added up the clock counts. (Though things got a bit harder to predict starting with Pentium as it had separate pipelines called U and V that could sometimes overlap instructions.)
Decentalization != "anyone can build/do anything at the application-level"
I have used SCCS, CVS, VSS, SVN, Clearcase, darcs, git, and hg.

I found darcs to be the most ergonomic, except for the fact that it was orders of magnitude too slow.

SVN was good in that it fixed most of the pain-points that CVS had.

git and hg are both great. I tried them both out at about the same time and found hg to be more intuitive, but it didn't take me long using git to be comfortable with it.

The UI of git is honestly quite terrible. Commands are often confusingly named and have seemingly disparate uses. However the underlying model of git is straightforward enough for me to reason about what operations should be possible.

Pretty much all VCSs require some such knowledge and reasoning; e.g.:

- The lack of atomic commits in CVS stems from the underlying RCS stack it is based on.

- SVNs brain-dead branching stems from the fact that there are no branches in SVN, just O(1) copies from one path to another.
It’s because the web is a moving target and embedded systems are static. What’s your reaction when you see a web browser or web page that is 10 years old? 20? The timeframes of industrial machines is incompatible with web anything.
Frankly having been that manager, the demo shows what you’ve done. It didn’t lay out how to get the whole project there.

The documents are hard specifically because not you have to consider alternatives, or the feasibility of executing. What security concerns did I cover? How much time do I need to spend convincing team y to add this feature?

The demo is always the easy 50%, and never the hard parts that cause you to spend two years building alignment and executing.
As someone who spent most of his life at or below 32° latitude, but has visited cities in the north a few times, I find NYC too gray and depressing.

The light is very different there, the water is gray instead of blue-green, the bricks are brown instead of red, and in general it's a bit grim and colorless. Even the sky is desaturated.

Stuff like light maybe subtle, but over time it wears on you and affects your mood.
Only time I’ve watched TV/movie credits attentively is when we were trying to come up with a name for our kids.
that's sourceforge :)
A few hundred pages? Here in The Netherlands, the contract is maybe five pages, then a list of things that will stay in the house and finally a list of Q&A with the current owner about things like the wiring, any easements, etc. It's usually a model contract too, so you can compare your copy to the published model contract.

What's in these "few hundred pages"?
It helped that your program was the only task and that it was running on bare metal.

There weren't a zillion layers of OS underneath.
Dupe. https://news.ycombinator.com/item?id=29109976
He's not being sarcastic I think.

The point is people talk about rebasing and squashing a commit with a typo, and then people argue against this because it's "rewriting the history". But, as you say, why would anyone ever want to capture that typo?
Nitpick: MB = Megabyte. Mb = Megabit. mb = millibit?
I am glad you found that interesting.

If you want to look the story up: The "assembly optimization guru" was Satoru Iwata, who would later become CEO of Nintendo of America, and who unfortunately died of cancer a couple of years ago.
Why not a virtual machine? I've been doing that for nearly a decade now. Back when it was actually sort of painful. Now we have 32+ gigs of RAM and 8 core CPUs.

You get snapshots and if your drive image is small enough you can toss it on a USB SSD drive and take it wherever you need to.

Docker was never good enough. Especially if you're on a Mac. It's a Linux VM with more overhead added and greater access to the host making it less secure than just using a VM in the first place.
As the article suggests, Skinner was a very rational person and often made the mistake of expecting the rest of the world to be just the same. He once said that if you come across something interesting, stop everything and study it. It's good advice.

Earning a Ph.D. in this area, I was always frustrated that - as utterly brilliant as Skinner was (e.g. he wrote a dozen books, including best-sellers, in the middle of the night after a short rest) - he always overlooked an obvious fact: people saw themselves as special from other animals, and would not accept any theory or technology that treated them as something less.

While 'operant principles' could explain everything from the emotional lives of people to the conditioning of neural networks, Skinner's approach was, once again, too rational to survive in the public sphere.
As a full stack dev who leans heavily towards the frontend... yes, honestly, some weeks 80% is a realistic number and WOW is it exhausting to fix Webpack or Babel or some random npm package for the nth time. I do feel like I run into issues less often today than I did about five years ago, there are really only a few packages where upgrades are a massive pain. TypeScript makes these upgrades a lot easier.

That being said, I still have way more fun writing TypeScript and React code _when it works_ than I do writing yet another Java API. Might just be personal preference but the amount of fun that I have doing it makes dealing with the tooling hell all the more worth it.
CVS arguably has an internal model that is as much of a hot mess as git's. It's a hack on top of RCS and that fact leaks out in user-visible ways all the time.
Have you followed any of the links in the article and read about all the documents unsealed in the case against Google?

Or have you even read the article?
I tried both recently on a scanned, color document recently. pdfsandwich gave me really unpleasant, monochrome, and blown out results; ocrmypdf did what I expected, giving me a searchable pdf.
I got partway through this, but in C: https://bernsteinbear.com/blog/compiling-a-lisp-0/
Yes, I think this is what I wanted to say.
BS. Satan would never write a contract without a forced arbitration clause.

I dunno, you are talking about someone who lost a golden fiddle to some hick kid from Georgia[1].

[1]: https://www.youtube.com/watch?v=sh7BZf7D5Bw
Ask HN: How do a charge my EV directly from solar panels?
He all,

So I may have have a rather strange question, but I’m not able to find the answer myself, hopefully there is some solar panel knowledge here!

My girlfriend and myself are currently planning a trip where we will drive from Europe to South Africa and back with an existing electric car which would take approximately one year. We want to show the world what is possible driving an electric car; even big adventures can be green.

We want to install solar panels on the car, but this would not generate enough electricity for continues driving, therefor we will bring roughly 25m2 (~5kW) of solar panels with us to charge the car 4 to 5 hours a day.

My question is, what would technically the best way to setup the charge of 25m2 of solar panels?

If we use the solar panels to charge a battery which will be converted to 230v to charge the car, we will ruin the battery if we need to do this for a year. Is it possible to charge the car directly with solar panels without a battery in between? If so, which systems would be capable of supporting this?

Find us at Instagram: 4x4electric
People can take loans all over the world, USA is the only country I'm aware of where you need to do stuff like use a credit card to take a loan. Don't you think it is suspicious that the finance market decided that the only way to get a loan is to first buy a lot of expensive finance products? It is kind of like how politicians are mostly lawyers, and they decided that the only way to ensure your rights is to pay a ton of money to a lawyer, is that just a coincidence? I don't think so, to me both of those seems very corrupt.
Which areas in Bangalore are good from this perspective? (Cleanliness, environment, less populated, good infra)?
> AMP ads on AMP pages get to render instantly because they are prerendered and only trigger impressions when they are viewed. Non-AMP pages aren't prerendered because they would count as an impression even if they aren't viewed.

This is not even wrong. I'm sorry; I never post just to criticize someone's comment. But yours was the top comment on the page and was, in addition to being wrong, condescending to an author who is clearly very knowledgeable (I say that as a web publisher who has monetized with ads for more than a decade).

From the article:

> [The recent DOJ lawsuit against Google] claims that Google falsely told publishers that adopting AMP would enhance load times, even though the company’s employees knew that it only improved the “median of performance” and actually loaded slower than some speed optimization techniques publishers had been using. It alleges that AMP pages brought 40% less revenue to publishers. The complaint states that AMP’s speed benefits “were also at least partly a result of Google’s throttling. Google throttles the load time of non-AMP ads by giving them artificial one-second delays in order to give Google AMP a ‘nice comparative boost.‘”

This is a very big deal and a huge trust buster, and a giant dick move by Google against publishers. It's literally an evil act by a company that said Don't be Evil. The article is spot on that AMP has irreparably damaged publishers' trust.
I don't like git. Fossil is good, but it isn't customizable enough. For example, I would prefer to implement a web interface without CSS and JavaScripts (and perhaps also to be able to expose with gopher and gemini too, and possibly also other protocols), and I would prefer to ensure all functions are available by command-line interface, and I would prefer to deal with and write raw artifacts directly (rather than only use the built-in commands) (maybe it is possible to do this with the sync protocol, but I haven't tried this).
Twang Ching-Shih might have cursed slime molds as nothing more than “demon droppings,” but this research on slime mold highlights how previous understandings of cognition may have been too in-the-box, constrained to familiar forms. “Cognition is all around you. It really is everywhere,” says Levin. “And really, it’s not just for furry, brainy things.”
why is being self-created relevant? The thesis of the bill is that m&a helped big tech accumulate market power, which was later misused anticompetitively, so the government should limit tech companies of a certain market cap from inorganically growing market power to mitigate further abuse.

IMO that logic is very flawed, but it’s still pretty trivial to find examples of how m&a has fueled market power expansion e.g. fb and instagram or google and doubleclick. Anticompetitive behavior is perhaps harder to pin down legally, but we’ve clearly not yet achieved some tech utopia.
It's more understandable considering that it started as a Java applet which could be run in the browser.
Oxford philosophy of this type led to the endless parsing of language satirised by Beyond the Fringe: “Are you in fact using ‘yes’ in its affirmative sense?” Or, as Anscombe once complained of Austin: “That man would find a difference between ‘enough’ and ‘sufficient.’” It might make for a clever discussion, but it stands mute in the face of the Holocaust.
I’m going to solidly blame Mercurial for having hg as a command - I couldn’t figure out why mer tab didn’t find anything and moved on.