skysight-inc/HackerNews huggingface dataset:
> I've just seen it too many times when developers just throw exceptions and let them bubble up

but it's the whole point ! that's exactly why exceptions are good !

> to a place where there is so little context that the final error message presented to the user is near useless.

there are only two valid cases: there's an error that you know you are able to recover from, you did recover, and the users does not see a message and never knows that an error happened, OR the user sees the message "The program has encountered an error. A backup of your data has been saved in c:/foo/. The program will now exit.".

Anything else makes software terrible to use. If you have logging and recovery to do, use your logging architecture and core dumps, don't misuse exceptions for that.

> On the other hand return values (using something like a try/either monad) have the property of forcing the developer to think about the unhappy path in every layer. Maybe a bit more code, but the quality of diagnostics - priceless.

Except what happens in practice is that people just put panics everywhere because most of the time there is no meaningful action one can take at the layer where the implementation happens. Actual examples in servo: https://pastebin.com/0DAFU9vS

I also invite you to run the following command:

$ cd ~/.cargo
$ rg panic! | wc -l

I get 2987 as a result. Choosing to program like this instead of using exceptions which at least can be recovered by the person who will use your lib, is literally hateful towards users.

I've not seen Go code to be meaningfully different either.

> IMHO exceptions/panics should be reserved for bugs only (eg assertions), and return values for all the other error handling caused by user input or environment.

Sure, this is the community consensus in C++. It's the Python people who use exceptions to get out of for loops :)

But the most important rule is that - invalid state must not be representable in the program. There must be no way to get an "invalid" object (unless the object being invalid is part of its possible domain, but this is exceedingly rare when one isn't interfacing with a 1985 C API)
hmm, it might be that your calculation is the start of something wonderful, not the end of it :-)

The narrow holiday season is quite artificial: we live through the pandemic-induced work-from-home experience. rethinking why and when we travel in large numbers seems like a timely idea. Besides facilitating a sustainable migration this lowers the environmental burden at the destinations not to mention the enjoyment of less crowded facilities.

The train size / frequency etc could be worked-on although I suspect you can't achieve large multiple differences.

In any case its not about getting all the summer migration to happen via train. Its more appropriate to think of it as another justification to have a complete and streamlined rail network across Europe (this being another potentially significant and steady source of passengers).
Isn't that just a score/range system, then?
The End of Marae – my attempt to build the AR cloud
The New GitHub Issues
https://i.pinimg.com/originals/b9/63/89/b96389af9f59f19045ac...
Pun intended? If so, nicely done.
What if we just got rid of copyright? Alternative forms of art monetization already flourish.
Show HN: iPod.js – An online iPod that connects to Spotify and Apple Music
(1) You may want to work with other formats. (2) You may not trust TeXmacs to be around in the future or to be installed on the machines you use. The ability to convert using Pandoc would not prevent anyone from using the existing conversions.
Then I imagine it doesn't pay as much as prostitution.

So it's not really a rebuttal to my point.
Flywheels are a pretty good solution for ride-through of brownouts. Fairly compact and instantly available.
> import when in nation generation isn't meeting consumption

When people say "it's fiction" I think this is a lot of what they mean. If a location is net 100% renewable, say, someone who is 100% solar, so they generate lots of excess in the daytime, but, consume lots on cloudy days and at night and we assume that imported power is very dirty, they might be a net 100% renewable but ultimately they are consuming polluting power. I suspect, with tons of Hydro/Geothermal (which are very on-demand/stable sources) the gross amount of power that costa rica imports is actually quite low and they are actually doing very well (especially compared to others who are "net 100% renewable"), but, I would love to see that figure (gross import %) represented when people talk about being net 100% renewable. Net 100% renewable with 1% gross imports is far more impressive and sustainable than net 100% renewable with 25% gross imports.
> https://play.nim-lang.org/#ix=2lK1

which part of the link shows using tuples? i can't really see anything tuple-like really
They don't know some unknown and probably unknowable number of the variables at play and the variables they do know that don't know to the degree of precision that they pretend to.

This is like studies that pretend to measure intelligence with IQ tests. They don't know what they're measuring but they have a faulty system to measure it that produces a number that's more a joke then any reflection of reality.
A standing army creates a ton of problems, but what happens if nobody has a standing army? Seems like someone has to play cop and eat the cost (both social and economic) of doing so.
>so vague that they accidentally copied them? //

No, but you're on the right track.

Copyright covers copying, if you didn't copy and can prove it then that's an absolute defence (see eg WIPO PROOF).

Copyright being a tort, the usual measure of proof is 'balance of probabilities'. That means if you didn't copy, but you _cannot_ prove you didn't, and it looks like you probably did, then a court can find against you.

There is also the notion of distinctiveness, generic, non-creative things don't acquire copyright ("common elements"; trademark has similar aspects, it's hard to word things without confusing the two, they're differently concepts with the same names).

However, in 2012 there was a case in UK law over an image of a London bus, where a re-creation of the image was used commercially. The copyright in the original photo was considered to be infringed despite the image being highly generic (Temple Island V New English Teas, 2012). A lot of people, myself included, are not convinced of this decision (see also Kenrick V Lawrence).

USC and UK law differ, but as copyright is based on international treaties such as Berne Convention and TRIPS you find they're broadly analogous in a lot of ways; I can't comment on where the line lies in USA law.

This is my personal opinion, unrelated to my employment; this is not legal advice.
My state, Iowa, was 60% renewable over the last year. This is almost entirely from wind as Iowa is probably among the flattest US states.
He is accruing value faster than he is spending it. He was worth 50 billion in 2006, and giving away half would have meant giving away 25 billion. But last year he was apparently worth 100 billion, and he has already given away 45 billion worth of assets.

It's a bit hard to quantify exactly how much he should give away to make good on his promise, because the dollar amount is a moving target. I think maybe he means half of his holdings in Berkshire Hathaway. I haven't looked into what sort of assets he has, but judging from his public writings I wouldn't be surprised if the shares are the only thing of significant value he owns.
Every sortable table I have ever coded sourced it's data from a large database-backed data source. So sorting always requires a server call to fetch new data for the view.

In my opinion, a client-side only table sorting only solves a very small unlikely niche -- so small that's not worth doing.
Another benefit of Approval Voting ballots is you basically cannot spoil them. You can't rate/rank the same candidate more than once, and marking multiple candidates is valid.
I think that's pretty related. Unionization efforts would be unlikely to succeed if there were so many people lining up for work that Amazon could lay off entire warehouses. Tightening of the labour supply should create a much better bargaining position for workers.
They have probably found an exploit to non-persistently install a 3rd party keyboard (what a mistake that feature was!) that writes all content to unprotected disk. All apps have this ability (to write to disk that is “always available”)

That’s how I’d do it anyways.
Are you saying they "developed an ingeniuous weapon" and then had the brilliant idea to fire it ~at themselves~?

They began the pandemic by sealing in a city the size of London!

Your theory is one of the least thought-out theories I've seen floated.
The core of RISC-V is already out there. It includes all the most critical parts and they aren't likely to be patented.

Intel wouldn't own the ISA and be (effectively) the only game in town. If they refused to license at reasonably costs, other companies wouldn't add the feature and it simply wouldn't get much use by developers. This has already happened to some extent with the current duopoly.

Patents also cut both ways. Intel hardly has a monopoly on good ideas. For any idea they want to patent, they have to be very sure that one of the myriad other companies, students, and hobbyists haven't already had the same idea too otherwise their patent will simply be invalidated.

Finally, if Intel has come up with a good ISA extension and is willing to license it to others for a reasonable cost, I think that's a great boon for everyone.
The point of these laws is to sacrifice honest, voluntary, consensual prostitution in order to be able to prosecute and suppress involuntary, exploitative prostitution.

While I guess it would be preferable the prosecutors would use some more discretion to actually go after cases of clearer exploitation, I still think the situation in Sweden is preferable to that here in Germany, where forced prostitution is blooming in the shadow of a largely legalized sex trade.

It is near impossible for police to tell if prostitutes are being coerced. And a large part of all prostitutes probably are coerced or exploited, to some extent, even if the situation is more complicated (like drugs, homelessness, psychiatric issues etc).
> We expect men to pay for dates.

Where are you from? This is not true everywhere.

> We expect men to be the primary breadwinner in a marriage.

In a mysoginistic vision of marriage in your culture, maybe.

It's fine if you see marriage as a business arrangement (readily available sex for money AKA prostitution). But don't pretend everybody views marriage the exact same way.
> Human trafficking is it's own problem, it's a constant.

This isn't necessarily true though. Research has shown that increasing legalization for sex work leads to both more "reputable" sex work and more sex trafficking.
How hard is it to support a freemium model?

Lower fee plan from Apple that allows external payments, no enterprise support, no App Store promotion, limited iOS API access (nothing sensitive), etc.

Higher fee plan to give developers access to more sensitive APIs and Apple payments, etc.

Mark the latter apps as “supported by Apple” or something in the store. I know it doesn’t solve everything but it’s better than the current state of things.
While we don’t know the exact cause of OCD or ADHD, physically, we do have research that describes correlations. Particularly for ADHD, we know certain areas of the brain that control executive function are generally smaller in people with ADHD. We also know that they generally have lower levels of certain brain chemicals, and we have learned far more about it through radioactive isotope examination of the brain as well.

For OCD: Research suggests that OCD involves problems in communication between the front part of the brain and deeper structures of the brain. These brain structures use a neurotransmitter (basically, a chemical messenger) called serotonin. Pictures of the brain at work also show that, in some people, the brain circuits involved in OCD become more normal with either medications that affect serotonin levels (serotonin reuptake inhibitors, or SRIs) or cognitive behavior therapy (CBT).

Just because we don’t know the precise cause doesn’t mean we cannot, in the meantime, help alleviate the symptoms for someone suffering from the syndrome (since we don’t know the precise cause).

Please don’t get in the way of this by implying people are “making it up,” because, simply, they are not. Both of these are extremely well studied syndromes, but really only in the last few decades.
It is not my intention to sound aggressive, but just to get things straight. I understand from the original comment that the author likes to use TeXmacs, but that (s)he thinks that the proclaimed incompatibility with LaTeX is too big a drawback for more than occasional use.

Now one has to be fair when making this kind of statements.

First of all: how 'big' is this incompatibility? I think that it is not that big at all and roughly as big as when you use a new style package with LaTeX or when trying to recompile a 25 year old LaTeX file.

Secondly: who is to blame for this incompatibility? TeX/LaTeX was designed to have a Turing complete grammar, which makes it impossible to write 100% reliable converters. The way the comment is stated, it suggests that TeXmacs is not good enough. I think that this is a misrepresentation.

Now it is plausable that the author is not even aware of the implicit bias of the terms 'incompatible with LaTeX' and 'partial converter'. Therefore, my reply might sound aggressive. But if you carefully reread it, then you will understand that it isn't.
Doesn't it eliminate choice? Like, what are the odds that Facebook wouldn't just force people to sideload their apps instead of admitting to their privacy practices as required by Apple's latest updates?
Ideas for Good Side Projects?
I was trying to think of ideas for good side projects.
Seems like a stupid plan if you want: everyone to notice that having manufacturing in one country is a bad idea and start migrate away, increased hate of your people since people are stupid and will and have done that , become a sanction target by doing the worse job possible of hiding the conspiracy.
Big if, some may enjoy it. Sky Rojo on Netflix might change your mind.
As with everything, there is nuance. Good points. I think we're simply arguing over the amount of pessimism/optimism as the global energy transformation continues.
On the other hand, a ton of us got our start in web design or development due to the freedom of sites like Myspace and Geocities.
Why would any company give up their data and brand awareness? Twitter exists to sell advertising -- their brand UI is 100% necessary. More necessary than the data itself.
Why should some workers gets paid vastly more than others for the same job? That isn't sustainable at all. Most places that hires janitors can't afford to pay anyone at the company even close to what facebook pays its engineers, it doesn't make sense that a few privileged janitors gets facebook engineering salary when most of them gets a small fraction of that.

People who comes up with those arguments just haven't thought things through.
It also eliminates the user’s choice to have a device within a walled garden.

It’d be like government restricting the right of OpenBSD to remove sudo.
This is a great point for fully legalized prostitution, not just half-assed solutions like “FKK spas” and such.
Burnout Is Real
In what way is yelling at yourself to get excited going to work? How can you _really mean_ to get excited? Who on earth is in such masterful control of their emotional state that they can do this?

I personally think that we've taken something completely normal and turned it into a "disorder" simply because it goes against the societal norm of sitting quietly at a desk for 8 hours a day.
>>> Pay the menial jobs better. The person cleaning the toilets at Facebook should earn more than the developers there.

>> I don't think you've tried very hard to figure out ways to decide. The obvious one is lottery, but there are many more.

> A lottery doesn't feel very fair though, does it? Why should a few people get paid more for the same work? Doesn't make sense.

A lottery is about the fairest way to distribute a scarce resource imaginable. And it seems even less fair to declare that everyone whose job is to clean toilets should continue to get equally crappy wages, while there's massive inequality in income all over the place.
> Imo, even legalization isn't enough. We need normalisation.

Many of the FAANG companies are famous for their perks. One of those is having massage therapists at the office. By normalization, do you mean you would you be ok them also having sex workers (well paid with benefits) as well.

Just to be clear, I, and likely most people, would be against that, which shows that I don't think sex work is going to be completely normalized.
I totally get your point! The thing is, in my opinion loads of people use GA simply because they do not know of any other alternatives, and among them there might be folks who do not need GA in first place because they simply want to get some insights about the traffic happening on their website, because it would be interesting for them to know.

For those folks, I would recommend to use a GA alternative (for example one from the list).

But you are right, at the top enterprise level, for folks focusing on marketing measures and decisions, most of the GA alternatives might not be suitable simply because they are missing some features.
My theory is that music is something of a "matching puzzle."

- using only these tones

- and only the intervals between them

- I will construct an elaborate yet consistent path

- which will stray into a place that's hard to resolve from

- then impress you with how I "solve" it

--------

So when playing with just intoned, I've applied this theory and it works. I've shown it to friends and they like it... they can't even tell it's just intuned.

My favorite so far is using 7/6 and 9/7 as my major and minor thirds. If you multiply them together you get 3/2. Just like you do with 6/5 and 5/4. Pretty cool eh?

As long as the first note and the last are familiar, people seem to be okay with it.
I haven't seen any data yet, what's the percentage of human trafficking prostitutes? how many prostitutes are forced to work and haven't chosen that? what's the violence rate toward prostitutes (even the linked reddit channel shows not insignificant number)?

I am aware that some women are fully aware of what they are doing, and won't regret it but how many don't?
CNN, MSNBC, Fox, Facebook, Twitter, NPR, Revolver all have an agenda as well.
I recently switched to PipeWire on NixOS 21.05 release. It was mostly seamless (except for some issues of not running it at realtime with rtkit, something that PulseAudio does automatically) and having access to new codecs like mSBC and SBC-XQ for Bluetooth is great.

It is very early though and lacks documentation like the article posted above says. Wouldn't recommend for everyone yet, but sure it is nice to see almost no issues in a project that is still on its early stages.
I've found the Emacs Lisp crowd to also be nice.
Unesco: Great Barrier Reef should be listed as 'in danger'
Facebook does not have its own store on android and amazon's is pretty small and comes preinstalled with very few devices only.

Why would that be different with apple?
Union and Confederate veterans shaking hands at reunion to commemorate the 50th anniversary of the battle of Gettysburg: https://www.loc.gov/item/2018652225/

I get the impression Americans today are more divided than people that literally used to shoot at each-other.
The general idea has been used for decades in Europe by people doing closed captioning for live television and other types of speed-demanding work. So the idea is tried and true, and I have no worries about ambiguity from that perspective.

The bits I'm uncertain about are the specific details around substitutions and such.
Why did this get downvoted? It looks like a simple statement of fact. Is it inaccurate? Voting is not a substitute for debate.
> recursion is such a dangerous tool.

The most effective tools for the job are usually the more dangerous ones. Certainly, you can do anything without recursion, but forcing this makes a lot of problems much harder than they need to be.
Typo sorry. They were definitely NOT.
> I haven't been involved in all this tired Sim City discourse, I guess I missed it the first few times around. I found the article interesting.

>The article is about a computer game (that was originally marketed as "realistic" but isn't realistic at all) somehow ended up being used for actual education about cities, and that might not be a good idea. That's some real radical stuff, man!

The author identifies as an activist. Indeed, the author cares more about constructing a game that meets their activist ideals rather than playing a game for fun. This is why I am giving strong push back... the author is fundamentally discarding the purpose of a game, which is to have fun, for ideological purposes. It's in the zeigtgeist to do this for _everything_ and it is so darn tired. Nothing is just a game or just a movie or just a whatever--it is something that is perpetuating a blah blah blah wrong view of the world and This Is A Problem (tm).

> The article didn't say anything like this. It says that Sim City isn't very realistic as a "simulation", because we can't represent all the nuances of the real world as a tidy automaton.

> It also says that spreading it around as if it were realistic can therefore lead to and/or perpetuate misguided ideas about how cities and societies work, or about how they ought to work.

You restate what I just said. The author claims SimCity is wrong in a way that is ruining (i.e., misguiding, misinforming) society. Instead of emphasizing that we should always be prepared to understand the map is not the territory, and hence not make too much of any map, the author extrapolates the case of SimCity as something particular pernicious for society while ignoring its fundamental purpose (to have fun playing a game). In other words, it's not just a minor issue that the map is not the territory, it is a major issue. And this is the tiring activist junk that is being applied to everything these days. Of course you can't capture all the nuances, but no, that does not mean the map/model is ruining/misguiding society.

> Sounds more like hypocrisy to me, but suit yourself.

It is the principle of self defense, that is all. Otherwise if you allow deconstructionism to run roughshod it will destroy everything.
Because it seems almost impossible to design a system where women aren't being abused as prostitutes.
Prostitutes are routinely assaulted raped robbed and murdered even in places where prostitution is legal.

Also I think as a society we treat sex as different from other activities in a way that isn't really compatible with legal sex work.

For example, if some manager asks the intern to pick up their Dry cleaning as part of their job, some people might frown upon that but I don't think many people think the intern is being wronged or if they are that it isn't really a big deal.

On the other hand, if a manager asks his intern to have sex with him, I think most people agree that this should be illegal and that the manager in question is abusing his power, even if having sex with the manager was listed as a job requirement.

But if your job is only to have sex...suddenly it's ok again.

You can argue that we should treat sex as a normal activity like driving someone around or picking up groceries for them, but currently in society we treat sexual consent differently to prevent these power imbalances and pressured sex in the workplace, and I don't think that treatment is consistent with the sentiment of "sex work is just work"