skysight-inc/HackerNews huggingface dataset:
Hmm... I think you might be missing the concept a bit. What I mean is that there is a lot of documentation that is like this:

/*
The phone number
*/
private static String phoneNumber;

That is considered 'the what', the documentation doesn't explain 'why' the phone number is a field on the class. This might be obvious because the class is called 'Address'... so people will argue that it is self documenting, and it is.

The WTF code is 'the why'...
How is this a scam? If I buy something from a big box retailer and fail to return it before the return policy ends, is that the retailer scamming me when they refuse to refund my money?
Your existence is more miserable because you wear a sweater in winter and a t-shirt in summer?

Have you considered that maybe your sweater could be comfortable?
Our original build path was:

1. Fancy combo of build and compile time generics generated all of our libraries
2. Tooling ran over return values from the generic definitions and created the schema

I rewrote it and now everything is defined in JSON files and those JSON files are ran through a code generator that creates our exported libraries, and we still generate the schema based on the TS exports.

Having everything defined in JSON then allowed us to write tooling on top of the JSON to make changes to our libraries.

Protobuf v3 is horrible, had to start using it recently. The type system is so anemic, it is a joke how hard it is to model things in it.

JSON schema is more powerful than TS, and TS is orders of magnitude more powerful than what can be expressed in PB.

The original generics code was super cool, and obscenely succinct, but it wasn't amenable to being auto generated.
The existence of this tool might actually do more damage if people are using with any level of confidence to check text content as important as exams. I understand why they felt the need to release something, but I think it would be better if this didn't exist.

My guess is that it's very easily gamed. Something ChatGPT is very good at is producing text content in different styles so if you're a student and you run your text through a AI detector you can always ask ChatGPT to write it in a style which is more likely to pass detection.

Finally, I wouldn't be surprised if this detector is mostly just detecting grammatical and spelling mistakes. It's obvious I'm a human given how awful I am at writing, but I wouldn't be surprised if a good write who uses very good grammar, has good sentence structure and who's writing looks a little bit too "perfect" might end up triggering the detector more often.
Anyone using Google products should absolutely backup their data regularly.
Because you're not creating and updating nodes like in jQuery. You lay out a view, declaratively, fill out the holes where you want state, ie counter values, and then you have controllers to fill that out. When state changes, you recompute the entire view rather than imperatively changing out DOM nodes.
>> An interesting suggestion, if rather fanciful.

It has been shown that government agencies were ahead of public research in areas of (specifically) cryptography in the past, so it makes sense that they would still be ahead today (that is one of their goals too I think). There have also been instructions in processors that didn't make a lot of sense at the time, though I don't recall a specific example or what it was speculated to be for.

The only thing I think is fanciful is this being the primary reason to have microcoded instructions in the first place. I wouldn't be surprised at all if certain customers had access to special instructions via microcode updates.
Let's make it a bit more concrete with an actual example of submitted code.

Here's a recent patch I wrote "Improve E0308: suggest user meant to use byte literal, w/ tests and fix" which adds a suggestion for Rust's diagnostic when you write for example '*' the literal char, Unicode U+002A but it needed a single byte and that's not what a char is. My code suggests adding the prefix b, so writing b'*' here, meaning the ASCII code for that symbol 0x2A which is a single byte ::

https://github.com/tialaramex/rust/commit/130d02b62e65c5f2a4...

I wrote that code but I don't understand the internals of how self.tcx.sess().source_map().span_to_snippet(span) works. Not my problem, we're in the diagnostics code so even if this is perhaps slightly slower than optimal it doesn't matter because a human will need to read this output and act on it - E0308 is a type mismatch, the program does not compile as written.

Does my reviewer know? Maybe, I didn't ask them, but they don't really need to, it's clearly fine here to call this stuff, there won't be a nasty surprise "Oh, make sure you restore the FQ5 when setting Z due to calling sess() in this code" because that's not how Rust works whereas in a language like C++ of course such traps may exist.

Now there is some risk I made a logic mistake, but, I wrote tests for this of course, unlike with subtle memory safety bugs, logic bugs are often caught by proper testing. My tests here are somewhat superficial, I check 'X' and '#' which should both cause the suggestion, and I check '€' which should not, but I think they cover the cases the compiler will really see here.
Way to prove me wrong about reply guys. Rust binaries are large for small utilities. What kind of C are you comparing it to, Windows?
Not a problem with diacritics. But I wish languages used them consistently, so that e.g. o/ö or e/ę relate in the same or at least in a similar way in all languages that use them.

For phonemic spelling systems, it wouldn't even be hard. Start with the baseline of aeiou for the basic vowel triangle. Then let's say that umlaut changes the vowel's "default" backness without changing roundness, ogonek lowers the vowel, tilde makes it nasal, and breve makes it a glide. This gives us aąäãăeęëẽĕiįïĩĭoǫöõŏuųüũŭ, plus all combinations of these diacritics when needed (which should be very rare). Add doubling to indicate vowel length, and I can't think of any European language that cannot be consistently expressed this way; American English should only need aąäeëiįouų.
Except for the fact virtually all have serious usability issues, bugs, and general problems.

The community spreads its efforts thin into a thousand projects rather than making one amazing one.
> But your average Western academic talking about work-life-balance

Yes, the adjunct professor, famous for their work-life-balance.
Being salaried electrician things are much worse than being self employed. But being self employed monetarily is close to software development freelancer. In Germany it’s easy with client acquisition - after receiving license you are being added to official electrician registry for your region. People just call through registry and ask who can come earlier than 6 months. Demand is huge. Solar panels can be installed after 18 months.
See also https://www.fourmilab.ch/documents/specrend/ and implementation in several gradient formats at http://soliton.vm.bytemark.co.uk/pub/cpt-city/jjg/physics/tn...
In America, you get to choose.
Came here just to see the contrarian nerd opinions and by God and sonny Jesus I was not disappointed. ¦-D
It needs more than just polishing. It would great to see the community come to agreement on a modern permissions model so that you can do things like grant access to your camera/microphone/calendar/location/photos/etc... for ever, just this time, or never. I know it's being worked on and there are some competing systems, but it would be great for there to be a single API.
'Why' should be documented in your test suite. Leave a comment too, but don't think you can skip out on the former because you've done the latter.
I feel like I've seen it referenced a lot more in the past year. Did it get referenced on a podcast or something?
Because of this thread, I switched back to Debian on my laptop after 8 years on Ubuntu, and everything works nicely. Thanks HN!
Does GNOME host Flathub as well, or it’s just them?
Doing a quick search on my machine, my assumption is that it has to do with the RegulatoryDomain.framework which is part of both XCode and CommandLineTools. This framework does not appear to exist in macOS 12 SDK.

$ sudo find / -type d -name "RegulatoryDomain.framework" -prune 2>/dev/null
/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/PrivateFrameworks/RegulatoryDomain.framework
/System/Library/PrivateFrameworks/RegulatoryDomain.framework
/System/Volumes/Update/mnt1/System/Library/PrivateFrameworks/RegulatoryDomain.framework
/System/Volumes/Data/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/System/Library/PrivateFrameworks/RegulatoryDomain.framework
/System/Volumes/Data/System/Library/PrivateFrameworks/RegulatoryDomain.framework
/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/RegulatoryDomain.framework
/System/Volumes/Data/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks/RegulatoryDomain.framework
/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Library/Developer/CoreSimulator/Profiles/Runtimes/iOS.simruntime/Contents/Resources/RuntimeRoot/System/Library/PrivateFrameworks/RegulatoryDomain.framework
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/System/Library/PrivateFrameworks/RegulatoryDomain.framework
> should read like natural language

The history of programming is full of that notion and it never really works out. See: COBOL, SQL, and so on.

I think we can all agree that code that is easy to read is better, but sometimes the 'why' needs spelling out.
Many people think their code is clear. The problem is it is clear often only for the author and sometimes for a limited time even for the author. If anyone else start to working with the code questions usually arise. And you can prepare comments for at least some of such questions.

In my practice I often see code where useful comments are missing and hours of research required to learn something author for sure knew. Code which has too much comments to me is an imaginary problem - I've seen it at most a couple times in my career and one of them was the code written by a junior developer in a style one can expect in a tutorial or a book. But usually people quickly learn to not add unnecessary comments (and eventually start adding too little of them).
Correlation doesn't necessarily imply causation.

Retail Marijuana sales have only just started in NYC around the same time as remote work, plus outdoor smoking was legalized barely a year ago, so that might be a factor to the increased prevalence of of smelling Dank in the City. Beats hotboxing your apartment or car.
What's the objective of tests in education? to test human biological abilities of memorizing and analyzing? But in real life, these abilities are always augmented by tech. It is like testing your prospective employees for their running skills, though they don't really need running to commute.
Yes, absolutely a “normal” driver would avoid some of the collisions. But read the stats on road/traffic accidents and particularly fatalities. The stats are grim. The “Tesla saved me” owner reports are “anecdata”. But again, having experienced this personally where someone in an Audi Q8 undertook us just before a highway exit, I didn’t see him but our car swerved to avoid the collision. It would have been a nasty accident. Avoided. Totally worth paying for IMO. Then it’s a just a question of “how much?” The software could be free. But it’s a “free market” and people are willing to pay. So they do.
That attitude is so delusional it's hilarious.

Sorry but your ancestors were regularly getting eaten alive by wild animals a few generations back (heck it's still an existential threat to some people). People had to resort to canibalism to survive famines. Plague, TB, polio. Just a hundred years ago there was ~1 in 100 chance a woman would die during childbirth. >40% of kids would not live to age of 5 in 1800s

The only reason you were brought into this world is because your ancestors went through shit you can't even imagine, had children, some of which survived to eventually have you.
Look at what happened to my post. A reply guy arguing that the binary size isn't large. I mean, everyone talks about this. Just like I said.
It's not even a big deal, I don't care. I have 3mb or whatever, but denying it is just bonkers.
Times like this are great opportunities for growth. This can help you build consistent habits in the future to have more durable storage practices.
A simple solution to this would be to require manufacturers to file it as part of patent application or FCC certification, and to require that any specialist tools be either available for sale or license.
Yeah, didn't want to sound like a shill, but Dx0 is so good I run it in a virtual machine on my Linux box. It's "Deep Prime" noise reduction thing is what I was talking about. There are others, even some stand alone, but it's nice having it all in one place, and Deep Prime does seem to be the best.
Serious guitar player and coder. There is some overlap, but the areas prone to RSI are slightly different. I code 6-12 hours a day and play guitar 2-6 hours a day, most days in the middle of both ranges. Posture and form are really important in both but I've never had a problem where I couldn't do one or the other. However, I do notice some discomfort if I get sloppy or lazy doing either.

In guitar, posture, a good drum throne (roc-soc high stool with the back) and a more ergonomic guitar (Strandberg Boden) has allowed me to play as long as I'd want to daily as opposed to slouched over in a chair or on a couch with a Les Paul (that shape further exaggerated my slouch).

Similarly, good posture, an aeron chair, a good bright monitor with a monitor arm and a splitboard (UHK) has saved me from the aches and pains. My prior setup had me seriously wondering if I needed to start seeing a specialist for occasional numbness in one of my hands.
I have a ~6-year-old Clevo laptop (from Mythlogic, which tells you something). After about five years, the keyboard kinda crapped out. Got a new keyboard, took about ten minutes to swap it in. The hard part was getting the part, had to order it from China.
No opinion on your overall point (my gut feeling is that some type of steady work is net good for society as a whole)

Your evidence is ridiculous. I'm frequently out and about in NYC and I can smell pot every once in a while but not "constantly". I would also imagine that the # of folks smoking pot during work hours is minimal and I don't see an issue with it if you aren't on the clock.

I have never seen porn through someones window either lol. Also most people install window coverings.
Maybe if they actually planned growth. In practice they just prevent growth. I'd rather err on the side of property rights--if you buy some land you can build stuff on it (within reason).
On shortwave you get the "Supreme Master"- who owns the Loving Hut chain of vegan restaurants. They are nice, but possibly a cult..

https://en.wikipedia.org/wiki/Ching_Hai

But late night AM, you get "Ministry in the Marketplace with Dr. Richard Hamlet" on WEZE 590. This is the craziest right wingnut radio I've ever heard, even including shortwave. Last week they were ranting on about the "death vaccine".

"By the 1950s, America had forgotten the Biblical principles that it was founded on. In the mid-60s, government-controlled education was implemented. At that time, The Foundation for American Christian Education was formed to help limit that control by educating families and even schools on the . . ."
Switched to typescript-json-schema, ts-json-schema-generator worked but its schemas were much larger.
Cynically, people don't want to be liberated, people want to be better than the neighbor they don't like, to have what they have, and to have what they don't have, and that gets them through day to day
Totally agree. I even said so at the end. You would have noticed if the comments didn't get in the way. :)
There is actually science on this topic: https://record.umich.edu/articles/lockdowns-saved-lives-but-...

TLDR: we were right about lockdowns and so forth, and the scientists did a good job at preventing excess death and reduction in quality of life, even when you take the significant economic costs into account. But it's open to debate, and it's not clear that this is always the right move.
It’s not less lucrative, it’s non-lucrative. Labor, materials and land in California all cost a small fortune.
Not mature, but if you fancy contributing I've started DMS.rs a couple of years ago:
https://github.com/DMSrs/dmsrs

It's written in Rust but I never managed to continue the project sadly :(
That argument is a bit of a canard. Wages haven't kept up with inflation for many years yet the rich are getting richer. And we're supposed to maintain our motivation to "benefit society" or whatever.
Yeah I understand how this is unfortunate but for 99% of cases this is what you want to happen when you remove someone's access to a private codebase.

It seems like this is an unusual use case that OP had an MIT-licensed open source project whose source only exists in a private repo.
Nextcloud is mature and I think pretty decent.
I flagged this, because it is a dupe of this flagged post: https://news.ycombinator.com/item?id=34580360

tl;dr: Canonical isn't keeping security updates hostage. Ubuntu Pro covers Universe packages, which weren't previously covered by official security updates. All the packages in main still get the same security updates as before without requiring Ubuntu Pro.
That assumes they would even in theory work together, or would have a design choice they can all agree on.
>This seems like a strange statement to me. How is Apple protecting you if you have to look out for everything yourself and make sure you don't forget to cancel one of your possibly many trials or subscriptions on a very specific date?

You don't have to cancel it on a very specific date, you just go in and cancel it whenever you want. Whatever you've paid for (or whatever time you have left on your trial) will remain and then it simply stops renewing. You don't have to remember anything other than to actually cancel in the first place.

> I'm not sure whether this implementation has changed recently or not, but it used to be — and may still be the case — that if you started a trial with an app, and then you deleted the app from your devices because you weren't interested in the app, the trial was still active and not cancelled.

Possibly a useful setting, but I think it would be a worse experience if your subscriptions were canceled every time you deleted the app from your device(s). Certainly one can't conclude that just because an app was deleted from a device that the user isn't actually using the app in general. There are any number of reasons to remove an app from a device that aren't "I don't intend to ever use this app or its services again"
Free markets are about enabling people to produce value and reap the benefits of that value. That works, as history very amply shows.
I somewhat agree with you, but if anything, the pandemic has highlighted that people need purpose, else they while away their time and do unproductive stuff. They don't pursue their passions and become a maker or artist or artisan, no, they get on TikTok or some MMORPG or whatever strikes their LARPing fancy. Very few take the opportunity to "cultivate' themselves.
> Salesforce on bought them as a cash generator

As an early Heroku employee, this gave me quite the chuckle.
You do know that Firefox supports using Widevine too?
Glad to be able to help in my own tiny way.
This is what we in Germany call "whining on a high level".

The universe doesn't owe you a life of leasure and following your passions and lofty ideals. It doesn't even owe you a life free of starvation and debiliating sickness, yet that is what you and far, far more people today have, compared to pretty much any time in the past.

A 5 day work week of 40 hours desk work is very light compared to what people 100 or 200 years ago had. Labor unions fought very hard for it. There's memes about medieval peasants working only 150 days a year, but those are bullshit (that is the work they had to do for someone else before they could start to make their own food and necessities). Allegedly, hunter-gatherer societies really did a lot less of what could be called work, but often had to compete violently for hunting grounds or face starvation, and didn't have all that much opportunity to test their creative capabilities either.

If you want to show that you're capable of so much more, go ahead and find a way to do it. I can pretty much promise you that it will involve working more, not less.

Or if you want to fix inequality so that everyone has to work less to make a living, fine, very commendable, I totally agree that is a desirable outcome. But I can also guarantee that people will still have work, and not that much less than now.

so please stop whining like a spoiled child.
HN is turning into Reddit. "I don't like your factual answer" is downvoted.
I believe industrialized farming/fertilizers/GMO's are required to support the current population levels; preindustrial hunting/agriculture practices required much greater land use than current techniques.
Does it go into GitHub Desktop and remove it from your computer as well?
Yeah, the classic let's copy Apple (power nap), but only half-ass it. Bonus points for completely throwing out S3 sleep (though I hear some laptops still support that).

Speaking of Linux, on my particular HP laptops (Elitebook 840 (intel 11th gen) and 845 (zen 3)) it wipes the floor with Windows. Even though "HP Recommends Windows 11".

Main reason being that it actually stays asleep. Windows, half the time, will wake back up moments in. When it stays asleep, there's a high probability that it will somehow crash and reboot [0] or just randomly wake up while being closed in a bag.

There's no power management while the actual OS hasn't started booting [1], so you get the screen going at full blast, etc. Good times, especially in a bag or at night [2]. It also sometimes starts spinning the fan while pretending to sleep. It does indeed get rather warm, so I'm not really sure what it does.

What Windows sometimes does and Linux never does: wake from sleep to a black screen, wake from sleep to a garbled screen, sometimes with the fan blowing like a jet engine.

---

[0] No, it doesn't reboot for updates. The event log talks about unexpected shutdown. It also doesn't run out of battery, since it also happens while being plugged in.

[1] I use bitlocker with TPM + PIN, so it doesn't boot on its own

[2] I don't usually close it because the screen touches the keyboard, so it gets dirty.
Their founder/CEO is still a billionaire despite they’ve never made profits.
> Because once riding the conspiracy train there's usually lots of extra luggage...

See also: the human consciousness (circa 2023, Western culture style) train.

Gaze in amazement at all the confident claims of "fact" in this thread, that are derived from the imagination of the claimant.

Oh, but of course, everyone is "just expressing their opinion", of course. And the question of whether each person was conscious of it at the time shall not be discussed, because that would be "pedantic", "sea-lioning", "not the purpose of this forum", etc.

This planet is surreal.
Fascinating to read, but couldn't the author get in trouble for posting like this about one of their employer's customers?

Where I work, which is a much lower-stakes environment, talking about our customers' issues or choices in public like this is a huge no-no. I'd get fired if someone found me out. Especially since if the customer is large, and the decisions have anything to do with my company's revenue, it could be considered MNPI.