skysight-inc/HackerNews huggingface dataset:
> type Source sum { io.Reader, io.ReaderAt }

This is not a sum type, it's something similar but different, sometimes called a union type, because the point is to store a closed set of different types under a single umbrella.

A sum type has variants with associated data, but the type of that associated data is orthogonal to the variance, you can have multiple variants with no associated data, or the same associated data type (both are very common use cases), which would simply be impossible to express here.

With a proper sum type, this is not an issue because the Reader and ReaderAt associated data would be stored in explicitly and specifically different variants. In Rust parlance:

enum Source {
Reader(Box<io::Reader>),
At(Box<io::ReaderAt>)
}

match source {
Reader(r) => …
At(r) => …
}

there is no ambiguity or confusion possible.

> The first challenge is zero values: For a sum type like (int, float), there's no natural zero value. I think that sum types would have to follow the same design as Go's interfaces; a sum type value has to be nillable. This is unfortunate, but the Go team burned some bridges when it decided to support nils, and they now have to deal with that problem.

The proper way to fix this would of course be the same one C# took: every C# type used to be default-able (although to their credit it was not generally implicit). With the introduction of non-nullable reference types, they had to change the language to handle cases where types would not be default-able.

Of course for Go that has wider-ranging implications e.g. currently I don't think there's any validity tracking because `var i <type>` tacks on an implicit zeroing of the value, it has no concept of "uninitialised values" whereas C# had that even before non-defaultable types. It also breaks their assumption and assertion that you should be able to add new fields to a structure and that'd get automatically filled with garbage without the caller being aware (also a terrible idea).

Go basically front-loaded their technical debt.
Moderation and a moat. Metafilter has survived for a very long time with (a) a $5 charge to create an account and (b) a 24-hour cooling off period, so you couldn't make an account to do a driveby comment on a thread.
I think 'lack of time' generally has more to do with family, then T.V.

I know I have a LOT more time for 'fun stuff' now my son is grown.
> You don't shake in trepidation whenever you do an upgrade. You also don't just install random stuff from enormous Git repos

Correct, you don't. LTS releases are good for at least 5 years, so you install it, tick the box for automatic updates and don't worry about anything for years. Then when the next LTS is out, you wait a few months, then click upgrade and drink a coffee. Time invested: 1 hr/5 years.
That’s completely different, because it’s based on your personal opinion/attitude towards certain people. On the other hand, calling scammers who they are is not subjective (unless you’re falsely accusing someone).
Go's type switches could be good enough if there was a way to restrict an interface-like type to be either one of A, B, C types.

type foo either {
int
string
*bar
baz
}

...

var f foo = ....
switch v := f.(type) {
case int:
// v has type int
case string:

.....
To save you from YouTube ui, here's the article mentioned in the video:

"You can build Linus Torvalds' PC: Here's all the hardware and where to buy it": https://www.zdnet.com/article/you-can-build-linus-torvalds-p...
OpenSUSE Leap “15.2” Release
Are the results actually good? Table 2 reports 3.40 bits/dim on CIFAR-10, but PixelRNN in 2016 got 3.06 bits/dim (Table 3 in https://arxiv.org/abs/1601.06759). I would like to compare the MNIST results also but I'm having trouble converting between bits/dim and nats in a way that gives a sensible result. It's a bit annoying that the paper does not compare to previously-reported numbers on these benchmarks.
Many other apps are doing this as well.
At this point, I think anyone that uses this technique should be very transparent about this and explain it to users or just remove this feature.
Otherwise, it's too late when a tweetstorm is out.
People usually delay updating because it requires a /really/ long time. My Mac Pro (2013, trashcan) takes upwards of an hour for a point release.

I don't really have an hour to dick around during working hours and I don't want to leave my machine on overnight (or if I do it's because I want it to be doing something). So I almost never update.

IME it doesn't break as often as Windows; but Linux is "best" here, updates are in the single-digit minutes.
It's not just the drag and drop, it's the drag and drop and edit (single) callback. Like drag a button in the middle, resize it, change the text and then right-click and start coding what pushing it does. Now a days it's not push button but mouse over, mouse down, mouse up, press, long press, triggered, etc. etc. and I have to manually find or create the right source code file linking itself to the GUI form file.
Please, no more propaganda from GNU. It’s biased and misleading. I get the feeling that they had the budget to buy fake news on Facebook, they would jump at the chance. They’re the Breitbart of fundamentalist software proselytism.
> what happened to websites?!

Did you ever think that many businesses never had a website.

Even fewer had one that was up-to-date and useful.

What happened is that the masses found their way in to the web, and they did it the easiest way possible.

There is still many independent businesses that have a small website. You haven't proven that the number of such independent business websites has declined.

Most likely, the fraction of small businesses that has an online presence has increased. And this may have skewed the ratio of websites to Facebook pages.

But in absolute numbers, I doubt there's fewer small independent websites today.
> b) For super high throughput low latency systems, they are not up to snuff. When I worked in real time bidding in ad-tech this was actually a serious concern. I'd reach for Rust (or C/C++) in this scenario now.

What did you do? You wrote servers in C? you wrote a Redis for instance?
Although I understand your point on the shared buffer, I don't see how else I can share information between two arbitrary apps not explicitly designed for it. Perhaps I should be able to use settings to require an os confirmation dialog, at least for info not copied into the clipboard by the same app, much as users can use noscript. As for Linux, if they don't want to deal with the clipboard, then users need to understand (and should have already) that a buffet style open source ecosystem does come with some risks and rewards that make it a different security paradigm from a centralized os with a lot of basic tools/apps made by the os provider.

Do you have some idea of a better, more secure way to share information between two apps the user alone has decided should be in communication?
> Tkinter always looks a little dated

"A little"... it's straight outta the '90s. I am as nostalgic as anyone but even I don't particularly long for that æsthetic.
Not sure why you’re getting downvoted cause this is my understanding of the legality too ...

In my mind the key is that it’s the French that did it ...
This could be a comment about net neutrality, civil rights law, privacy regulations, or really any kind of regulation. But of course in those contexts, no one speaks of "entitlement". Only to demand freedom of speech is "entitlement".
Linkedin has been doing lots of bad things before, like asking for users' email passwords. Occam's razor applies, and it's to Linkedin's disadvantage. By the way, maybe you mean Hanlon's razor (never attribute to malice that which is adequately explained by stupidity).
Just out of curiosity. How has Kahn done in your opinion. I don't follow the news too much but I am curious. It just seems like with Pakistan it is impossible to get an objective unbiased opinion anywhere of how things are really going.
>Then she gets an angry text message from the kid's mother who believed her son was being punished specifically for making the "ok" symbol.

Based on what you said, isn't that exactly what happened? This paragraph makes it seem like your wife was punishing him for making that sign:

>Early last year she made a kid run laps after he low key photo-bombed the team picture by making the "Ok" symbol on one of his thighs.
> It's the ones who take that activity and those causes so seriously and extremely that they become personal embodiments of them

Is that really an issue? Looking at our democracies, is the real issue that people take their causes seriously and extremely? Or is the issue the cynical apathy that opposes that?

History is full of pompous self-important people who took their causes very seriously indeed, and advanced humanity through that dedication.
My job is closely related to driver licencing. There are some really unusual agreements between countries. For instance, Spain has special agreements with some South American countries,so people from there can convert their license without taking driving exam. However,even though you end up having an EU licence, if you'd then move to the UK,they wouldn't convert it to British, because initial licence wasn't from the EU. We've had some really interesting cases because of this.
This could be a transformative way to share research papers - it seems you can run all their models inside the paper!
> They shut down a sizeable portion of downtown for a weekend every year. Literally shut it down. For a fuckin Grand Prix.

They do this in Singapore too. They used to close all the roads in the city for 2 weeks just for the F1, but slowly got more efficient (or less over abundantly cautious) over the years. It’s all for the $$$ here though.
> In MacOS and iOS, the procedure for converting images from the Photos format[1] to a free format is so tedious and time-consuming that users just give up if they have a lot of them.

[1] https://support.apple.com/guide/photos/export-photos-videos-...

This (and a bunch of others) seems poorly sourced. It looks like Photos.app behaves the same as Aperture.app and many others. Your Library is a special folder. Your original photos are kept in whatever format they were originally taken in and all organizationational and library metadata are in a series of sqlite databases that are logically organized. I would be happy to see an open source photo library app structured the same way.

If you want original files, copy them out. If you want changes or metadata, dig through the databases. If you want "baked out" images, bulk export from Photos.app.

Modern iPhones will capture HEIF and HEVC photo and video, but it's not like they're secret or proprietary file formats. Apple switched away from JPEG and MOV because those formats are less efficient and cannot support modern features--much better than CR2/NEF raw formats other camera makers use.
THIS ! I feel many times business put the "business-complexities" onto the client, in this case the search-unit and although the CTO explained why (I gloss over it) as a customer , I don't need to understand what makes it difficult in your business nor do I want to know all your internal jargon and limitations. I the customer understand searches and searches per month. Don't make me think !

Like going to a restaurant: I don't want to know the whole nine yards story as to why you don't have lasagne today since one of the guys didn't show up for work and he was supposed to make the sauce and another guy was over his government allowed working hours. All this might be true and adequately explained why there is no lasagne, but now I need to also understand about employees, government working hours and and and. Just give me lasagne or not :) It's almost always a red-herring if you need to "explain" your pricing or use internal-company-jargon in your pricing-pages.
That smells of poor QT programming rather than anything to do with macOS.
My understanding is that the police intervened because multiple violent crimes were in the offing. Otherwise yeah I guess they would have gone on using it to spy on criminals
Why would they do this check all the time, rather than just at the moment the text box contents changes?
"go to slow or too fast and it won’t work."

How does one "go to slow?"
Startup Will Pay You to Remote Control Your Fridge
Can you make an example of how it would be confused with interfaces in weird ways?
Let's be very clear, this is from gnu.org, so this is not "open source crusaders", this is "free software zealots". There are no compromises when it comes to Free Software, no pragmatism and no leeway for choices to be made that serve a purpose if they reduce the freedom of the software.

I am not explicitly criticising GNU/FSF, but I think it's important to remember that they are always going to take the most extreme view on these matters, because that's why those projects exist.

(personally I see FSF/RMS as a lighthouse. I find their presence useful for navigation, but I don't necessarily want to get too close to them ;)
How could it not? https://www.uffizi.it/en/artworks/holy-family-known-as-the-d...
1 of every 3 pilots have a fake license in Pakistan. It's mind blowing.

https://www.forbes.com/sites/niallmccarthy/2020/06/26/30-of-...
You can use res in FF mobile.
Since January 1st 2020 the requirement is for ADS-B out. So they will be reporting their GPS position also, now.
Can we please have playlist functionality?

I have to download then manage via iTunes and upload to my phone, which seems crazy as I have 100s of tracks available on BC itself...
https://news.ycombinator.com/item?id=16229863
This was very overblown in the media. The issue was with re-certifications after changes to regulations in 2012, with most pilots (many with decades of experience) apparently preferring a bribe rather than cramming for months for the re-certification exam.

Still bad but it's not just random people off the street flying 777s.
Construction Industry Digital Technology Trends 2020
This looks interesting, I do enjoy the way you've structured it to be 1v1, allowing for minority opinions to be presented without the typical distributed-gish-gallop that online discussions can be.
How can someone be "defending" themselves when they initiated hostilities? [1]

Unilateral succession is illegal. Those flying the confederate flag were not defending themselves, they were committing treason. Our Union is an indestructible one. It was safeguarded then by the U.S. Army who will continue to safeguard it as long as America endures.

It feels me with great sadness to think of the blood that was spilled, but at the end of the day Americans who take up arms against the U.S. Army are criminals and traitors. No American should fly the flag of those who have killed our soldiers.

[1] https://en.wikipedia.org/wiki/Battle_of_Fort_Sumter
Right, thank you for this correction! I've just spent some more time with Go, looks like I was wrong and it has something closer to Type Classes (or Traits), but not subtyping.

// Too bad editing is not available anymore
Isn't it exactly what a managed Elasticsearch does ?
>On the contrary, it is contextually highly/entirely likely that they were _actively_ choosing to use it in a political manner.

Based on what? If you go looking for things with a specific interpretation in mind you're going to find a lot of it even in places that it wasn't meant that way. The adage about malice and incompetence comes to mind.
Your How it works and Pricing links are broken. Looks like a typo in domain name.
In my opinion, ATC is also culpable (though much less so). They could have and should have ordered a go around, but instead, they re-cleared the airplane to land.
Turns out I was wrong (and corrected thankfully), Go does not have subtyping, which is good news (at least it makes the language way more tolerable for me).
> Whatever happened to Occam’s razor?

The reaction from people in this thread is the result of occam's razor.

If site is caught doing shady things repeatedly over the years and then another shady thing is revealed.
Most likely/simple explanation is that they are doing jet another shady thing.

Same goes for TikTok and Zoom for me.

Not sure what DDG saga you mean, i must have missed that.
> Almost no one thinks about actively retraining the way they think.

A very western perspective. Vipassana meditation practices are essentially doing that, and I am sure lots of meditation types as well.
Are you soaking them for 24 hours first? See instructions here, for example.

https://dontwastethecrumbs.com/how-to-soak-and-cook-beans-fr...
And WinForms/Visual Basic

There was just something so natural about the way you could quickly throw together a UI and then hook everything up to it.
Support for arm?
What about the benefit of a limited time two month shutdown a la New Zealand ?

With a national coherent strategy for testing, contact tracing, travel restrictions with enforced quarantines, establishment of green zones

We neither got a lockdown or a herd immunity strategy, everyone fending off for themselves
TikTok's Boogaloo Extremism Problem
Does anyone know of any resources / discussion of how to contextualize or help young people process the extremism and violence that social media and gaming platforms and are slipping into their lives under their parents noses? tubgirl and goatse of the past were one thing, but when my family members proudly show me videos of people getting the hands chopped off, I want to know what to do when I can't stop them seeing this all.
I used honeypot.io before, which was a nice experience for someone seeking jobs.
AFAIK a library that uses LGPL3 modules without any modification is allowed to be licensed differently, provided that the final product allows the LGPL3 modules to be recompiled and/or swapped for others and that the source for the LGPL3 modules is provided.
Sure, there's a lot of things wrong with Apple's operating systems. I would love for them to be more open, and the ability to install non-signed apps on my iPhone (although they've added all the features I used to jailbreak for.)

But what's with the weird tone? iMonsters? 10 year old news articles?

And why's it so bad that other applications can do malicious stuff on your computer? Shouldn't the author be happy that there's still enough openness on the Mac for this to occur? Isn't that what they want?
Technically, 30% more than zero is still zero though.

But yeah 30% of the way more than zero is something :-)
_ is typically used to i18n strings with gettext, it seems like poor naming for a layout-related function like a spacer.

Apart from that, this seems to be a wrapper on top of PySide/QT to speed up development of basic forms. I don't find it particularly attractive, I have a feeling one will have to drop into QT as soon as requirements get slightly complex. Then again, if it gets more people to approach QT and desktop GUIs in general, it's welcome.
> Golang is less expressive than other languages, like Rust or Haskell. You can't create fancy custom types and things like that. Of course there are drawbacks.

You can absolutely do whatever you want at runtime with reflection. The problem is that compile time type checking possibilities are poor in contrast. It's exactly like C in this regard. You can't type check a linked list in C at compile time. Go has typed arrays but you get my point, replace arrays with generic stacks, generic circular buffers or what not. this isn't "fancy types", it's basic CS.
i wonder if they play videos of bill at the ms board meetings. i imagine a goat sacrifice to help them create their evil schemes.
What do you think businesses' number one cost is?
Just to make it very, very clear what you believe to be a great situation: you want to create a big group of underground neo-nazis, ideologically isolated from the rest of society, with an amazingly strong victimhood complex, their own independent communications infrastructure... and who collectively have nothing to lose and little hope for a better future.

Yeah, I can't see how that could possibly go wrong.

Like I said, I'm seeing smoke.

If you actually want to fight racism, you don't do that with violence. You do it like Daryl Davis[1]: through kindness, listening, and making them think.

[1] https://www.ted.com/talks/daryl_davis_what_do_you_do_when_so...
In practice, the employer holds most of the power in the relationship. Yes, even if you are a Rock Star™. They'll just fire you and find someone else. The only way for employees to actually negotiate their contracts is through collective bargaining.
https://news.ycombinator.com/item?id=23720548
Do you have an example of a site that blocks this? I don’t use gmail anymore but used this trick for many years and wasn’t blocked once.
The NYC cops had to resign. Hong Kong cops who gangraped the girl are still at work and may keep harassing others. Their names were also not revealed, so when they switch jobs in the future they will be clean.

Anna Chambers wasn’t threatened with the being arrested for “making false statements” and can still live in New York. The Hong Kong victim (who got pregnant and had to undergo an abortion) had to flee to Taiwan for her own safety.

US cops commit a crime and get away with minimal punishment. HK cops commit a crime and the victims get arrested.

Another example: the boy shot by live rounds by the cop in this video [1] was charged for attempted robbery and obstructing the police [2], even though the event was triggered by poor policing according to an experienced Australian officer [3].

See the difference?

[1] https://www.youtube.com/watch?v=wm_s0fm4hH0

[2] https://www.thestandnews.com/society/%E8%A5%BF%E7%81%A3%E6%B... (in Chinese)

[3] https://twitter.com/JeromeTaylor/status/1194074222768771072
Yes! That it is were it starts and continues in aeternum. :-)
https://news.ycombinator.com/item?id=23708166
But this wasn't "allowed" or endorsed by Apple. It was a third-party company doing something underhanded. Is there some reason Dropbox would be more trustworthy on Linux?

I think the "lame overreach" hurts the credibility of the argument--even if it has merit.
There's no "if", notarization has already happened. As of a few months ago, macOS Catalina warns users if an app hasn't been notarized.

It's the latest step in a multi-year effort to make macOS a little less of a wild-west of software, but as with all the previous steps, it's pretty trivial for knowledgeable users to override - you just right click on an app and choose "Open" and you can bypass the signature/notarization checks.
Omg that sounds amazing.
DuckDuckGo's privacy abuses – current, historic, and by proxy
Instead of being humble, they’re seeing the world as their way or the highway. It’s incredibly naive, arrogant and inconsiderate.
in 2017, French Gendarmerie ( a part of the french public order system, that work outside the big city - Police is working in the big city. It's a join branch of army and interior ministry. It has a good reputation with computer, like using linux) detected phones in criminal affairs.
In 2019, a project called Cerberus was create with 60 gendarmes full time working on the case. They investigated servers located in france and tapped communications of theses servers.
In 2020, EncroChat issue a warning that their servers where compromised by the police.
avril 2020, joint operation with the nederland police
mai 2020 : all your base are belong to us
Every investigation was legal and within the control of judges from the french legal system.

post scripton