skysight-inc/HackerNews huggingface dataset:
This can be improved, it'd be worth Googling for a better solution than what you have.

https://github.com/skyscreamer/JSONassert seems decent.

but it can be done from scratch in a few hours (I'd recommend this if you have 'standardized' fields which you may want to ignore):

Move to a matcher library for assertions (Hamcrest is decent), and abstract `toJSON` into the a matcher, rather on the input.

This would change the assertion from:

`assertEquals(toJson(someObject), giantJsonBlobFromADifferentFile)`

to:

`assertThat(someObject, jsonEqual(giantJsonBlobFromADifferentFile))`

The difference here is subtle: it allows `jsonEqual` to control the formatting of the test failure output, so on a failure you can:

* convert both of the strings back to JSON

* perform a diff, and provide the diff in the test output.

Decent blog post on the topic: https://veskoiliev.com/use-custom-hamcrest-matchers-to-level...
> It reads like Elon believes his employees work for him personally, hence reports of people who work for Tesla suddenly being told to work on something related to Twitter.

Honestly, shouldn't Musk have a lawsuit coming from Telsa shareholders, since he's doing stuff like that?

Tesla's employees must be used to make Tesla successful, not to help the CEO on on some personal investment/project of his.
China’s Police Stations in Europe
> at some point you have to think seriously about which bad things you want to mention and why.

I’m confused by how you think those statements ended up there. Do you think they’re from a single random poster? Or do they just show up without thought?

Clearly someone has taken a measured stance in posting about those. If that is the case, then why don’t you also believe they put serious thought into what they posted? Why is the assumption that there isn’t a process within the team?

Your argument is based on a flawed assumption.
No metric can or should be used in isolation to evaluate productivity.

LOC is obviously very flawed, but to be completely honest it has been useful as part of a heuristic for figuring out where something has gone wrong in a department (after applying basic heuristics like removing packaged code, vendored stuff, etc.)

For example, if engineers are constantly committing and then deleting huge amounts of code (somewhat like this example) then it’s good to dive in and make sure you don’t have some issues creating that situation. This can range from product managers who aren’t validating their requests before engineers start working on them, to interpersonal issues such as unqualified juniors writing large amounts of buggy code and leaving it for senior engineers to fix.

These metrics can also be warning signs that something has gone wrong. If an engineer’s number of commits have plummeted and LOC committed has gone way down, it’s a sign that you should ask more deeply how their work is going. I’ve had situations where programmers were being pulled into 20+ hours of meetings each week and being given weird research assignments from random C-level executives that took away all of their coding time. I’ve also had situations where people weren’t getting along with each other in private and DMs, and the first warning sign was that their contributions stalled.

So while LOC and commit metrics can absolutely be misinterpreted in the wrong hands (e.g. as a proxy for laying off Twitter employees without trying to understand the context of their work) I’ve actually found them to be helpful as one of several early warning systems that something is going wrong with a team or project. Work with people for a while and it’s not hard to recognize their normal output and when it has stalled for unexpected reasons. Use that as a signal to start a conversation about how they’re doing.
> I'm inclined to wonder why the US military, pulling out, didn't arm every woman and intellectual in the country. I won't forget his name.

Because the US wants to back something it can control, not a popular movement. The US government backed Iran's prior cruel and sadistic minority.
> Microsoft will pay a fine and that will be it. This is not good enough. The highest level person who authorized this project needs to go to jail. If it is the CEO, believe it or not, jail. - S_Stout

Seems a bit harsh.

For context: I like Copilot and don't want to see tools like it banished from the internet.
>who are educated and know their duties.

I think every ideology would work if everyone was simply obedient to the duties imposed on them by those ideologues.
I found it really hard to get through the article because I simply can't imagine fawning over someone like that. It's creepy to start with, but when the fawning is over such a ridiculous manbaby it's even weirder.
Good point. Maybe there's competition from alternative patternings. Like camouflage type patterns for hunters / preppers / military cosplayers. Or high-viz colors for people who worry about safety wrt. various kinds of accidents. Or just whatever the current per se meaningless trend colors are?
> A better head strap, ideally one with an adjustment knob at the back to easily loosen and tighten the headset. Also one with an extra battery that both gives you longer unplugged time but more importantly balances the headset front to back.

You're pretty much describing the Quest Pro. This part also matches the Quest 2 with Elite Battery Strap for what it's worth, but the Quest Pro also matches your next criteria, whereas the Quest 2 didn't.

> And a better headset/face interface. You can get one that is much softer and thicker, which puts less pressure on the face and moves the screens a few extra mm away. They also have vented interfaces, which help cut down on the problem of getting hot face.

The Quest Pro only attaches at the top on the forehead, is open air by default and further away from the face, and for example I can comfortably fit it over my glasses, which I couldn't do on the Quest 2.

It's a huge step up in comfort for long sessions, although you'd still want to attach a USB-C power cable for anything beyond a couple of hours.

Disclaimer: I work at Meta but not on anything VR related, this is based on my own experience as a personal user of VR headsets.
For one of the most frustrating projects I ever worked on, my net contribution was in the vicinity of -1k to -2k LOC in a service that weighed in at around ~5k LOC in the end.

The guy who started the project came from an enterprise Java background, and his code was the stereotypical design pattern pileup. I only jumped in because he was having trouble actually wrapping it up, and, with every commit, I deleted a bunch of code and replaced it with just a small fraction of what was there before, and he reviewed the changes and agreed they were an improvement.

Yet, even though he genuinely agreed his code was overly complicated, he never internalized the learnings, and kept repeating the same mistakes over and over again. He was fixated on the idea that his coded needed to be extensible (without a clear notion of how or why) and kept adding abstraction after abstraction for every new feature he added.

So, yes. It is uncontestably true that you often need to write 4k LOC before you understand how to write the same thing in 2k LOC. But it's also very much the case that there's a baseline of skill you need to write those 4k LOC instead of a 10k monstrosity.
It's kind of weird to me to say that a platform with millions of users on it is a ghost town. I have both twitter and Mastodon accounts, and I find the opposite to be true. I have roughly the same number of followers on both platforms, and I find that I see far more interaction on Mastodon than I do on Twitter.
“Payment verification” is a big part of the rationale behind the $8/mo plan.

According to Musk bot accounts on Twitter cost less than a cent to create. This plan increases their cost more than 800X per month.

He explained this at an investment conference yesterday. Relevant section here:

https://www.youtube.com/watch?v=WgQBTo0EUxA&t=2065s
It's not that there's anything inherently wrong with multiple assertions in a unit test, it's that it's often a smell you're testing multiple behaviours in a single test - which is the thing you should avoid.
Ask HN: Most Succinct Programming Language
Hi HN,

I have some free time and wanted to learn a new language.

I was interested in off beat, not as popular as well as mainstream languages which focus on lines of code reduction as one of their key features.

What would be your recommendations?
And make sure the newline/whitespace convention changes often.
I'll echo sibling's comment about just doing it. Theory only takes you so far, it's important to actually build and experiment, even if it's just in a simulator.

I can recommend Practical Electronics for Inventors as a solid base of projects to experiment with and learn from. If you want to learn how to improve circuits and optimize for specific behaviors, there is a wealth of information in manufacturer application notes. A lot of the protection circuitry used in my article follows advice found in application notes.
FYI (if you didn't know), when you create a new repo on Github, you can choose from their long list of .gitignore templates. It's a dropdown at the bottom of https://github.com/new
Surely it's to make it simpler to implement?
I suspect, as with a lot of customer services and patio11's guide to salaryman, simply complaining in a way that sounds like you know what you're talking about and can sue them will cause them to be a lot more generous - because otherwise you'll take up far more than that cost in legal costs and the time of dealing with you.
> The exact circumstances of Z-Library’s shutdown are still unclear. Some of its many domain names simply won’t load. Others lead to a message reading: “This domain has been seized by the United States Postal Inspection Service in accordance with a court order.” However, in response to a request for comment, the Postal Inspection Service wrote that “this case was inadvertently credited to Postal Inspectors,” and directed media requests be sent to the Department of Justice. (The DOJ declined Fast Company’s request for a comment.)

How do the people putting up the seizure notice not know who they work for? Does the US government contract this out?
Restricting the space of possible values is only one of the possible advantages of declaring a dedicated type for something. Even if it is not possible to restrict the space of possible values (e.g. with names, which can't realistically be restricted to any smaller subset than all possible strings), there are other advantages to having a dedicated type, such as preventing the user of the type from putting a value of that type into somewhere it doesn't belong, which is a very realistic scenario in stringly typed codebases, especially where there are similar but different sets of values, all stringly typed.
Bitcoin is money the government doesn’t control. I like it but statists don’t.
Because there was a spring?
But he didn't write -2000 lines of code, did he? He wrote a new algorithm that was 2000 lines shorter than the old one. So, in principle, there was a positive number of lines that could have been reported.

Of course, loc is a bad goal for productivity, but it can still be an interesting measure (similar to test coverage): If I count lines of code added, commits, or tickets closed, I cannot compare any two developers. But if I count that metric for the same developer, or the same team, I can certainly spot changes in productivity. (As every metric has its outliers it would probably be. best to combine all of them.)

So if I was managing a team and wanted to know if it would be beneficial to optimize test execution times, I could just rent some bigger machines and see what happens. I could also do a similar experiment with organizational aspects like the size and schedule of meetings or the introduction of a dedicated on-call contact for support requests, etc.
To clarify, I’m saying governments and regulatory bodies should improve mandates for fixing critical issues with the highest risk first (ie. Remediation).

It’s the same reason state govs in the US mandate car insurance or bonds for drivers.

Companies like people have limited resources, time and money so they should focus on where the risk lies.

Risk being impact multiplied by likelihood.

If you have to choose, which do you do first?

- Bump your library versions for all your apps

- Implement MFA for your customers
Although I think that most fact checking is biased, I am less concerned of bias, as long as people have a means and an ability to determine the truth of the thing. My concern then isn't with where bias exists, or in what direction, but instead with what the effect of fact checking results in. I think it would probably be a healthier outcome for truth learning if a "fact checker", whether it be a person or a machine, would instead point the user to instructions of how to research "For the field of (whatever) you will want to consult (this) area of research.", rather than "According to XYZ, (some person) said it's (that)."

Like, if I wanted to learn about something regarding the financial affairs of Europe in the 1300s, someone could just link me a quote that Professor so-and-so said something. But what if that professor is generally seen as a quack in that field? What if, after making that statement, he corrected himself a week later? What if that quote is simply decades old, and new information has come to light since then? What if my interest was specifically in one area of Europe, but his statement encompassed multiple countries, and parts of the Middle East? What if the statement being made had an assumption of "excluding other factors regarding wars A, B, C and plagues, 1, 2, 3" but was not in the quote that I was given?

These are all things that one might accidentally pick up and learn about during exploration of the truth, but be completely unaware of needing to know that when they first started.

To give a real world example of what I mean, consider this: A prominent New Testament scholar is Dr. Bart D Ehrman. In most debates I have seen posted on YouTube regarding whether The Bible is a trustworthy source will reference Dr. Ehrman at some time or another, by those in favor of Christianity and scriptural accuracy. The thing is, Dr. Ehrman is an strong opponent of Christianity and outspoken Atheist. Dr. Ehrman is a very big name in the field, and has a lot of criticisms against The Bible itself, but he also strongly affirms historical proof of Jesus' existence, life, and death - he's written at least one book on the matter[1]. If someone were to simply see the quote he has made, "but he did exist, whether we like it or not." the immediate assumption about his stance and belief is that he's a Christian, and therefore biased.

It's the loss of this context, this underlying breadth that I'm concerned with. That fact checking, in a very real sense, removes both the onus and need to read and determine for ones own self. That fact checking does too much, and gives too little; the worst of both. A fact without the background, a cause without explanation.

[1] https://www.bartehrman.com/did-jesus-exist/
Yup, just like email never took off because people have a selection of mail server providers to choose from.
(Replying to my own post)

Wow, lots of great, thoughtful replies, thanks!

But I'm not convinced...

Maybe it's just a bad example (this is what the main article is about, though)... Generally speaking, you need to be able to send emails to both verified and unverified emails. The difference is in what the email you are sending is about. That's why VerifiedEmail as a type doesn't make a lot of sense to me.

You'll need sendToUnverifiedEmail(email: UnverifiedEmail) and sendToVerifiedEmail(email: VerifiedEmail), and have code to get the right type to pass to the right function the in the right circumstance...

You've got the same potential for getting this stuff wrong, whether you express it in a type or in imperative code or however you express it.

Replies are generally assuming the type part of the code is bug-free and the imperative part of the code is not, which just isn't reasonable.

Also, the static vs. runtime stuff is irrelevant to this example: the verified status of an email address is a runtime property that cannot be known at compile time (OK, I'm assuming you don't hard-code verified email addresses). I.e., due to a bug, a value of type VerifiedEmail could be created for an email address that is not really verified. Then, your static checks for VerifiedEmail don't help you at all.

Further, "verified" vs. "unverified" is really a business concern around when it's OK to send certain kinds of emails to the address. It has a fairly standard definition, but there are qualifiers for email addresses that are at least as important to a business that aren't. E.g, did the owner of the email address opt in to marketing emails? Or opt out? Or did not express a preference (yet)? Are you going to have types for those? You'd have to have 3 X 2 types to encode that... that's (verified, unverified) X (opted-in, opted-out, didn't specify) types. Then your business adds a new kind of email, securityAlerts, so now you've got (verified, unverified) X (opted-in, opted-out, didn't specify) X (gets-security-alerts, doesnt-get-security-alerts). Oh wait, some emails shouldn't go to banned people. So now you've got: (verified, unverified) X (opted-in, opted-out, didn't specify) X (gets-security-alerts, doesnt-get-security-alerts) X (banned, not-banned). And you need a "send" for each type, called at the right spot.

So...

Are the types really helping here?
It’s harder to turn a company around that doesn’t actually make anything. And it’s communication mechanism isn’t controlled. Thus, keeping the mojo for twitters existence might be difficult
The Quest Pro has a better design than the Quest 2 (as well as many other benefits), but in terms of pixel density it only offers 10% higher PPD than the Quest 2 (which was already pretty low).[1]

(Disclaimer: I'm affiliated with Simula).

[1] https://news.ycombinator.com/item?id=28691358
My point was that they're exactly the same as Java stacktraces, so if you think Java's are bad, JS are just as bad.
You can turn it off for specific sites (via Grammarly settings) OR you can turn it on only for specific sites (via browser settings). The process is different depending on whether you are using a browser extension or desktop integration. Here is an example for the browser extension: https://support.grammarly.com/hc/en-us/articles/115000091612...
Why is HN so obsessed with Elon buying Twitter? The non-stop obsessing is a bad look.
The article reads like a self serving western narrative loosely based on cherry picked facts.

India has clearly stated it will buy cheap oil where ever it's available on the market, there is nothing special about russia, look up the actual quantities of oil and LNG imports from russia to india vs india's other suppliers.

What made india load up on russian oil is the incredibly short-sighted and ineffective sanctions on russian oil from the west that only made russian oil available at a discount.

EU didn't stop buying russian gas, russia and the nord stream pipeline saboteurs didn't give them a choice. And if you want to talk about war profiteering look to the profits of american oil and LNG companies that are replacing EU's supplies and rift it's causing between EU and USA.

Energy is the lifeblood of any human society/economy, A country of 1.4 billion with a per capita GDP that india has cannot afford to take a hypocritical moral Highground when doing so in an environment with rising energy prices means people starve.

Not trying to defend India here, I don't think there is anything to defend. I don't think people truly comprehend how deeply rooted agenda driven narratives are in western media. I mean it's not unique to western media but the diversity of narratives in the west unlike the sanctioned narrative in china gives people in the west this false illusion that the lens their media is seeing the world through must be accurate(it isn't).

Another agenda driven narrative recently being put forward is Saudi Arabia siding with russia over the US. Why? because OPEC didn't follow US's lead on market manipulation (price caps, crude supply) and dared to think and act independently.
I agree. I viewed those as "a solid justification of why". Also, I'd expect there to be some grouping or consideration of job titles and organizations.

No body knows unless real leaks come out. Did they do it strategically? Or by numbers across the board like people are implying?
A follow up question (as I was too concerned about defending your original complaint):

> what should they have done differently

What do you think they should have done differently?

And to follow that up, in cases of incontrovertible misinformation, how do you think that should that be handled?
That's an amazing looking website. Best I've seen in years and easy to see and reach a lot of information. I wish the internet would be more like this.
The author is a known C programmer (he wrote redis). You're imagining things.
Be careful. Microsoft is a very rich company and can afford the best lawyers. If the court ends up ruling in favor of Microsoft and CoPilot and sets a precedent, the plaintiffs may end up worse off.
Yeah, the same culture worships using their powerful computers in 2022, the same way I was using Xenix in 1993.

Talk about progress.
Matrix multiplication is often used for solving systems of linear equations, and you often have systems of linear equations involving different physical quantities (such as position, speed, time and mass if solving some classical mechanics equations, or pressure, volume, temperature, and time for thermodynamics etc).

And while it may be relatively common to start out and end up with matrices that have a single unit for each row (but different units on different rows), intermediate results will often end up with different combinations of units in each element.
Maybe if you have safe spaces (echo chambers) and overlapping meeting places, but also a strong standard of not policitizing the meeting places, you can get the best of both worlds?
It should cost more than that. Make it clear that this is intended for corporations / brands and that this subsidizes regular people.
Also C vs pascal and ada.
This is expressing the same value in two different ways. That's worse, not better.
If you remember Impulse Tracker (DOS), schismtracker is a modern day clone:

https://github.com/schismtracker/schismtracker
From the other thread: https://news.ycombinator.com/item?id=33483751

It would seem desperately so.
Rather simply, unfortunate coincidences. The people with money to invest happend to be computing-related people. "Quantum Computation" contains the word computation, which they understand, and Quantum, which stands for "mysterious, cool, ingenious". So they invested in. Something like "developmental neuroscience" is nowhere nearly as cool-sounding.
Thanks for your support.

RE resolution being low on the Valve Index: we absolutely agree :] The Simula One offers ~3x higher pixel density than the Valve Index, and 50% higher density than the Quest Pro. This dramatically impacts the extent to which you have to turn your head to look at things.
Wait until you learn about these 2002 technologies called "extract method", "inline method", "encapsulate fields", "extract interface", "extract local", "inline local", "rename", plus about 200 code inspections...
I was hoping for files on a disk I can search, not an application specific browser database.
Fantastic write up - thank you! I also love hearing about why each part was chosen. As an electronics hobbyist I often mimic portions of others' designs but I'm not always entirely sure why a certain part was chosen among the various options.

Do you prototype all this on a breadboard before making the PCB and picking specific parts? I'd be curious to hear more about your process. I feel like I always need to test everything I build on a breadboard first since I inevitably miss some small detail if I go straight to schematic + PCB design.
emacs ... (drops mic)