skysight-inc/HackerNews huggingface dataset:
RE: "The success of OOP is dubious: mostly judged by it's popularity, which is mostly driven by it being a default methodology taught to people in school."

It's worked fairly well for "isolated" groups of services, such as API's to file systems, network services, etc. Where it fails is domain modelling and any system or sub-system having more than a few entities. OOP doesn't scale when there is a large number of domain nouns and/or attributes involved.

For example, OOP worked quite well for early and fairly simple GUI's. But when GUI systems and applications grew larger and more complicated, OOP GUI's turned into spaghetti. I believe something more like an RDBMS is necessary to manage large quantities of nouns and attributes so that one can slice and dice their particular view and grouping as needed for different tasks: query the parts instead of navigate a parts graph. You can navigate graphs like a cave explorer, but you can't easily say "show me all nodes (caves) with such and such...". Perhaps this is the "data orientation" you speak of.

(I'm puzzled why in Java Swing the event handling code for a button click has to be fed into a "listener" instead of attached to the button object itself. The second is more logical in terms of thinking in the domain of UI's. Listener is an implementation detail that should be hidden away most of the time.)

On a really small scale, trees and nesting work fine. On a medium scale graphs work fine. But on the larger scale, relational or something similar is a better tool. The hard part has been getting RDBMS to manage "blocks of behavior" well (events, snippets, functions, etc.).
Sounds like they blacklisted things likely to clutter up the comment threads and left things unlikely to be used.

Country flags seem like they could be used for political trolling.

Die faces could lead to weird rolling threads or other things.

Musical notes, you got me, can't really think of anything too bad for those.

The markup's not great, but too much formatting is distracting. I personally prefer the limited options. You focus more on the content of your comment than making it look pretty.

The only thing i really despise about hn's formatting is the code blocks or whatever they are, the one on mobile that vanishes off the side and you have to scroll horizontally to read everything. I really can't stand when people use those for quotes.

Other than that though, hn's formatting makes everything uniform and fairly easy to read through. There's no fancy nonsense getting in the way of things.

Actually, that's part of why those code block things piss me off, they're probably the fanciest piece of formatting you can do and all it does is obstruct information and make me waste time while reading.
COVID is a cult.

https://www.youtube.com/watch?v=mcm8Sc8f66o
It's not a blockchain, it's like Git but in the browser
Maybe they tried and the yield isn't there. There could be more memory and cores in the design right now and they are just having to disable some of it, for example.
The apes have run out of shapes.
I almost never use `git pull`. I have a helper script (written by an ex-coworker's father ...) that fetches + updates my master branch head to the proper place, without changing away from my current branch.

If I want to have things-from-master in my current branch, I either rebase my branch onto master or merge master into my branch. (I'm lucky that my branches are short-lived enough that rebasing on top of master is almost always easy and the right choice.) If I have unfinished things, I'll make a "WIP" commit, that I will unroll later after doing the rebase.

I nearly never use `git blame` on the command line, but have a very frequently used hotkey bound to it in my editor to show the blame annotations.
Could Servo use v8 as the JS engine?
Airbnb has more places because Airbnb has more people because Airbnb has more places (and so on). It's basically the same moat as Facebook. It works better than Uber, I think, because Airbnb is much more travel-oriented so it's hard to have a local competitor (who wants to install an app for every city you visit?)

VRBO can theoretically compete by being cheaper but comparison shopping between apps is a pain (there's no kayak or google maps aggregator).
When you look at the numbers in terms of what % of lives the COVID response have saved in the entire population, it raises some serious questions. In the USA, economists claim the pandemic will cost approximately $16T. If you assume the unmitigated death toll would have been 2.2M absent any restrictions, subtracting the 200k that have died (So 16T/2M), theoretically we paid approximately $8 million dollars per life saved.

Obviously even one life lost is too much, but one has to wonder if that stimulus and productivity loss could have saved more lives if invested somewhere else, such as healthcare, cancer research or motor vehicle safety.
Of course, but they won't be working on it.
The Past and Future of QR Codes
> The underlying cause is zero-terminated strings (instead of using start/end pairs or start/length pairs).

What type (and how big) should length be?
You've managed to miss the point again.

> Racism doesn't only have to be described from black people's perspective.

This was not the complaint. This was never the complaint. I was explicitly stating that when you claimed this was the complaint, you were misunderstanding.

A story told about racism from a white persons POV is fine! What is less okay, and at a minimum needs to be taught in a larger context is a story about racism that treats race and racism as a sort of thing-to-be-observed, both in that Scout is primarily "learning about racism" instead of experiencing it, and black characters who are flat. The white-saviorness of Atticus can't really be denied (especially when you draw in the larger context that Atticus was based on Harper Lee's father, and the novel was quasi-biographical). And it's not even conclusion that Scout draws on her own. She feels justice and fairness for all is good not because she learns through some experience, but because her father tells her so, and she greatly reveres him and respects his authority. Scouts willingness to fight for justice isn't born out of a dislike of racism, but of a need to defend her dad.

Like I said, in part of a curriculum that focuses on race in America, I think TKAM is a vital book to teach, but if it's the only exposure to literature-that-focuses-on-race-in-america, which for a lot of people it will be, it's not a good tool, because you aren't going to get exposed to the criticism I just provided in a high school context.
Indeed. It was about the closest you'd get to a standard X toolkit.
what's your take on https://www.nytimes.com/2020/04/20/health/airflow-coronaviru...?
That's a bit of an overstatement. Booting from SSD instead of SD card has an enormous uptake in performance. I have yet to hear of a Pi 4 that couldn't overclock to 2GHz which is a pure uplift of 25%. Moving to 64-bit PiOS gives another double-digit jump in performance too. Not record-breaking, but not unusable either.
This is probably the single biggest failure of the outgoing administration. They forced industry to produce tens of thousands of ventilators that proved unnecessary. They should have ensured every American had access to free (or cheap) N95 masks.
I guess my point is that any such gains are temporary and will soon disappear with the next release of software, or with the next website redesign.

MS Office apps, for example, are horrifically unresponsive on Macs. Switching the ribbon to a new view has 700-1000ms of lag on my 2.4 GHz i5. Maybe an M1 brings it to 350ms. Once MS developers start developing on an M1 laptop, the developers will change code, and it will slow down, and until it gets slower than it currently is, the code will not be optimized.

This is what I mean about software being like a gas rather than a liquid. Any new CPU performance will be consumed by developers because their threshold for performance optimization changes with each new performance improvement.
Pointing needn't be at all quick, as long as you're not trying to catch a gamma-ray burst in the act or the like. Agreed about the badness of LEO.

Another problem: a very large mirror is a significant target for micrometeoroids. It'd need to be made able to keep going after losing little patches.
Compare over 33 chatbot builders – Chatbot platform comparison
I'm going to give you a longer answer, taking your concerns in good faith, since most of the responses you have so far are fairly combative.

We need to start by recognizing that, although the Constitution is an important original source in understanding how our government functions, we have over 200 years of Constitutional interpretation that lies on top of it. You are welcome to make a Constitutional argument that goes against the existing jurisprudence, and Constitutional interpretation does change over time, but it does so only slowly. One of the most important principles in Constitutional interpretation is that of stari decisis, or issues which have already been decided. In almost all circumstances, courts adhere to precedence. This isn't always the case, but when you are fighting against the current understanding of the Constitution, you need to realize that you're fighting an uphill battle, and frame your arguments as such.

So where are we in our understanding of these issues? First, the Supreme Court has literally ruled that the Tenth Amendment is useless. Specifically, in US v Sprague (1931, SCOTUS ruled that the Tenth Amendment is a "truism" that "added nothing to the [Constitution] as originally ratified."[1] It was later used to create an anti-commandeering understanding, which in this circumstance just means that the federal government can't pass a law that requires states to enforce a federal mask mandate. There might be a public health exception to that though, but that's where the tenth amendment would be relevant.

You also need to understand that SCOTUS has repeatedly expanded the commerce clause to cover basically everything. The federal government can pass pretty much any law they want, say it affects interstate commerce, and win. You don't have to like that interpretation, but everyone follows it. It was only during the Rehnquist Court that a few exceptions were carved out, but they're very, very narrow. The most famous example was that the court ruled that the federal government couldn't ban handguns in schools under the commerce clause. But for anything even vaguely interstate, and a contagious virus certainly counts, the federal government is allowed to pass pretty much any law it wants.

The courts also tend to be pretty generous towards allowing emergency powers to deal with a genuine crisis. I expect that the federal government could do pretty much anything it wants to deal with COVID. I'm sure they'd allow a national lockdown by executive order right now. A legislative mask mandate would be completely non-controversial from a Constitutional perspective.

[1] https://en.wikipedia.org/wiki/Tenth_Amendment_to_the_United_... - Yes, this is Wikipedia, but I don't feel like reading a SCOTUS case to write a HN comment
Why would it be useless? I'm sure dark is preferable but there isn't an atmosphere on the moon and most of light should reflect away from the sensor.

Of course it should probably never point at the sun unless they want to melt their sensors.
It’s funny, I’m not a claimant change denier, but I don’t view emissions as a problem. An insanely large portion of the CO2 is simply us and our livestock breathing. There’s also volcanos, etc.

I’m a lot more worried about chemicals outside of CO2. Such as lead or pesticides. CO2 fluctuates massively throughout the year. Presumably the world can much more quickly (due to vegetation) remove CO2 compared to those other chemicals. CO2 is also far less damaging to the body.

Not saying it’s not important, just I think we’d be better off focusing on issues such as pesticide contamination
I'm hesitant as well, for the same reason. Having said that my personal PC (desktop) is still running well 3+ years after initially installing Windows on it. My inlaws' very old laptop is still running fine (it's at least 8 years old and was upgraded (on accident!) from whatever version of Windows it was running prior to 10.) Aside from user errors (accidentally installing adware toolbars in Chrome, etc) there really hasn't been any real issues as it pertains to Windows itself.
The existing M1 devices only come with 8 or 16GB of RAM, so it can only reasonably be compared to similarly-configured Windows laptops.
Kinda hard when they don't even tell you how.
UCS-2 uses a fixed number of (16-bit) code units to represent a Unicode scalar value (code point). Of course, to represent a grapheme cluster, more than one code point may be needed, but that's true of Unicode in general.
I'm a skeptic and don't know why someone would pay for borderline quackery such as this when there's plenty of playlists and YouTube channels that claim to do the same thing.
>>So in 2060 it will still be a huge company with $20B in revenue?

That's great for shareholders.

Meanwhile, keep in mind that IBM exited the consumer computing device market. If that's also in store for Intel then it's a bit pointless in the PoV of those in the market for consumer computing devices.
The quarantines are only one tool in China’s response. They were also quick to adopt masks and contact tracing.

Characterizing quarantines as “locking people up” seems to me the root cause of the mass deaths in the West. The iconography of individualism has trumped the idea that walking around expelling a cloud of deadly material makes you a threat against the life and liberty of others.
> Do you really not see any of these as advantages, at all?

I can see how they would be an advantage to some, but a detriment to others. I don't find any of these things to be enough of an advantage to outweigh the advantages of having it in browser.

> You don't use a task bar on your computer?

Nope.

> You would never want to be able to alt-tab to a programming IDE or music player?

Having these in browser means 1 less window to keep on the desktop taking up space so I don't need to alt-tab as much. I can see both my IDE and my browser at the same time.

> [ .. Atom, more interactive app section ...]

I don't use Atom or VSCode (electron-based editors) so this isn't an issue for me. But I can totally see wanting these to be as native as possible, so using them that way makes sense. So I'll 100% concede the point for code editors.

For data I use Firefox containers to keep that things compartmentalized sufficiently so there to no need to worry about polluting local data stores.
Just install Karabiner-Elements and make your digit keys turn into function keys with a press of a fn button. Easy to touch type and space-efficient
The internet of crap will also use DoH and bypass my network settings.

Also, it is only a matter of time before ads (and websites) start using it to bypass browser DNS:

https://github.com/byu-imaal/dohjs
And for like a decade this was only available under Gmail Labs, and without it enabled gmail would send immediately and couldn't "undo" the send.
>Yeap, there are bad actors in the police just like in all other walks of life.

Irrelevant. It's evidence that refutes your earlier claim that police can not legally "kick the shit out of you". They can. Dismissing them as "bad actors" doesn't change that fact.
In a great civil war we now engage.
I can't say I'm surprised. Cities aren't nearly as fun when other people have to be considered biohazards. The question that remains to be seen is what percentage are gone forever?
Fwiw, the Gettysburg address would have been pretty bad as prose. It was written to be delivered as a speech.

A speaker can control inflection and intonation, which add their own meaning and interact with the actual word choices. Written word has no such luxury.

Also, the Gettysburg Address was written 150 years ago. Language norms change over time.
That'd be quite a decline, last year Intel reported $72B in revenue...
> Also, somewhat ironic, but my willingness to "go to battle" for my family is far greater than my willingness to "go to battle" for anything before having a family

I'd bet the "for my family" part is critical to this statement though, and in the modern "Western" world, at least, such circumstances are exceedingly rare.

I'm less inclined to go mountaineering or ice climbing, to give a more realistic example, partly because of the risk, and quality time at home (both with family and alone) is a pretty limited resource.
what's a better alternative for home security cameras? Eufy? I'm looking for something I can view from a phone
Why would you prefer to learn Rust at this point, especially during OS course when all relevant OS code you will encounter is in C and understanding C is crucial to understand low level programming concepts. You can always learn Rust later when/if it becomes more relevant. Without C a lot of programming areas will be a closed door forever.
Honest question. Does the ISA, as a language, really matter? Or is it more a by product of who owns the ISA, eg intel sucks, arm is more liberally licensed.

I used to work at intel, and
no one I knew there thought ISA mattered at all. That’s just a few people though, so I’m curious if people think there’s something better or worse about the different ISAs as a technology in their own right, or if it’s more about the business interests behind them that matters.
The funny thing about rolling over an integer not being easy to catch is hard to ignore. The PDP-11 'add' instruction sets the 'C' bit if there is a carry from the MSB; the Z bit is set if the result == 0; the N bit is set if the result < 0; and the V bit is set if there is arithmetic overflow (both operands were of the same sign, but the result is of opposite sign). By simply making these bit available as, say, special names that could be tested (e.g. C N Z V) after an operation, you could determine what happened (if appropriate) and take action. HP's SPL had such a feature (used on the HP3000 series). C is not a well-designed language, but an improved 'lifeform' along the way. Today, I would like to see a c-like language developed specifically for RISC-V; especially one that had many many fewer edge cases.
Who’s going to invest anything in solving this problem, knowing we will indignantly refuse to compensate them? There would be stockpiles and reserve factory capacity if only we allowed them to be worth keeping.
I have a Mid-2014 15 inch Retina i7 16GB and it installed fine and works without any noticeable issues.
Show HN: Manage Your Git Identities
A few days ago, this utility was published: https://github.com/geongeorge/Git-User-Switch
After reading the comments and seeing multiple alternatives, I tried to Rewrite it in Rust. In comparison with the original, this one does not depend on Yarn/JS and can be used by downloading a single binary:

https://github.com/cquintana92/git-switch-user
There's a quote along these lines: "the son parents the father."

It's always stuck with me for reasons that I'm sure you can relate to.
It's really not clear what you are trying to argue here. The number of single-threaded benchmarks are irrelevant to this point: when the M1 was compared to the 5950X in a multithreaded comparison:

* The 5950X was 2x faster
* The 5950X was using 4x the power (28W system vs 105W+ for the processor).
* The M1 only has 4 performance cores, the 5950X has 16.

Even counting the high-efficiency cores as full cores in the comparison has the M1 with 8-cores providing 1/2 the performance of the 5950X with 16-cores, i.e. it implies that the lower performance cores are providing as much as the 5950X cores.

That is certainly not the 5950X obliterating the M1, as the article stated (and was the quote that started this thread) the M1 is giving the 5950X a good run for its money. If you think otherwise could you provide some kind of argument for why you think so?
The rich ones can benefit from it, and then it gets added to the claims that the US has the world's best healthcare system that helps convince the rest that the system should be kept.
I completely agree, but screenshots of Tweets are always floating around places like Reddit and even Twitter itself. Not enough people have been knowingly caught out for them to be immediately considered potentially fake yet I guess.
Show HN: Free Open Source No-Download HTML5 Media Player for Video, Music, Audio
Something that is never clear to me - what defines what is an axiom and what is derived from the axiom?

In Russel's PM, `(when (or p p) p)` is considered an axiom, but `=` isn't, and is derived from the other axioms.

But...why not the reverse? The axiom "when either apples or apples, then apples" just seems like another way to state "apples = apples". Why is that not the axiom that other things follow from, then?
Well, we're not interested in a thermodynamic comparison. We're interested in a useful-energy-obtained for useful-energy-spent comparison. For instance, if I leave a block in the sun and then bring it inside, I have only expended the energy to move the block out and then move the block in. It doesn't make sense for me to include the sun's contribution to the system because that's not a cost I incur.

The actual apples to apples comparison in efficiency _is_ the heat emitted by the block in my house divided by the cost of moving the block.
What you are missing is the difference between gits object model (with loose objects) and packfiles. The delta compression happens when you run `git gc` (git does this automatically as well on occasion), and packfiles is how git fetches and pushes history.

But when you create a new commit, that commit object is stored as a loose object, with any new file blobs and tree objects. This represents a complete snapshot of your working tree.

But git does not need to make a complete copy of the working tree on each commit. Because objects are referred to by the hash of their contents (with a git specific header), git only needs to store each version of a file once.
Revenue comparison of Apple, Google, Alphabet, and Microsoft from 2002 to 2019
Moderna and Pfizer Are Reinventing Vaccines, Starting with Covid
Reading through this article reminding me of this one: "DNA seen through the eyes of a coder"

https://berthub.eu/amazing-dna/
Single dose is not the way other findings are using vD3. vD3 is used thought the body for many things and you need daily supplament to get and keep the concentration up over time
> Majority of consumer facing products collect usage analytics, otherwise they don’t know how to improve the product.

Producers managed to improve products for thousands of years without violating the privacy of their customer. Equating slightly inconvenient with impossible doesn't make for a great argument.
1 in 12 being open minded is pretty good odds. Good for you being the one.
They could make a mask mandate a requirement for receiving any amount of federal spending in their state. Something similar happened with the drinking age being raised to 21. Although I wouldn’t put it past some state governments to cut off their nose to spite their face at this point...
I don't think using a gas station as your benchmark is fair. I live in what is literally the bluest state if the per county election maps are to be believed. Nobody wears masks at the gas stations unless you're going inside. Mask compliance is practically 100% inside.
We already know that Rosetta2 doesn't support everything.
That is an impressive GitHub account!
Probably something like how msgpack (or even variable length unicode encoding) works, where the low 127 bytes is a single uint8 char in place, and then the next 121 signals that a string of length 1-121 bytes follows, and then after that are a handful of sentinel values for "length follows and it's 1/2/4/8 bytes" plus maybe some special cases like zero-length string.

I can understand that this might have been too much implementation complexity/risk to contemplate 40 years ago, but this kind of pattern is very well established at this point, especially in scripting languages with loose typing.