skysight-inc/HackerNews huggingface dataset:
I ported some null-heavy Java code to C++. The source frequently returns an object, or null in case of error; e.g.,

BigInteger bi = rational.asBigInteger();
if (bi != null) {
...
}

One of the classes is essentially a node in a graph, so in my first pass its objects were wrapped in a shared_ptr, which can be null. However, objects of the other two types are typically passed by value in C++, so I had to think about that. Exactly what std::optional was designed for, but do I want to require C++17, both in the implementation and the public interface? The syntax looks nice enough:

if (auto bi = rational.asBigInteger()) {
... // bi is like a non-null pointer
}

Java has java.util.Optional, but the source predates Java 8.

TypeScript's type guard approach is really clever. Once you've checked the value, you can use it like normal. No need for a wrapper class, or different syntax.
This is amazing! Wish you a lot of success. Will there be a way to submit feature requests, upvoting and you working on the most requested?

Would be great if you would add user management, including profile photos and custom fields in the future. And SMS login.
Stockfish 12 on Lichess
Better Dairy picks up £1.6M seed funding to produce animal-free dairy
Ross Ulbricht
+1 for nitter.net. In recent years, Twitter started to block public proxies and Tor aggressively, if an IP address is rate-limited, all accesses are denied. Worse, because of JavaScript, it only denies access after the script has given up after spending 60 seconds. And even when I'm not blocked, the script is still slow, and if you accidentally refreshed the page while in the middle of an endless scrolling, you'll have to try again. Nitter.net solves all the problems at once. I don't use Twitter but I do maintain a list of people in tech, which I check from time to time.
Under-the-radar remote marketing jobs for YOU
Researchers create entangled photons 100 times more efficiently
Shipping is part of the purchase process.

If the product is good, but the shipping is not, buyers deserve to be informed.

If there are separate reviews for the product and the shipping of a product (still tied to that product, but also the shipping carrier that was used for that order) then a split review (one for each) is legitimate. Otherwise if there's only one review spot, EVERYTHING is on the table.
So it sounds like a null hypothesis at best?
And yet the hiring process, business and society doesn't treat this people well.
> The biggest takeaway from this feud is that Google has surprisingly stayed silent all along.

> It’s a no brainer that the search engine giant will be compelled to bring a similar anti-ad tracking feature on Android to keep the mobile ecosystem in sync.

Google is an ad company, just like Facebook.
Yea that makes no sense. The mobile ecosystem is already out of sync in this regard since iOS allows users to disable the ad tracking ID while Android does not, you're only allowed to reset it.
At the heart of the Epstein matter is the corruption of the legal process to subjugate a class of persons who is viewed as "less worthy" by denying them basic human rights.

In the case of the Third Reich, it was jews, gypsies, etc.

In the case of "Epstein and his Jewish Enablers" (see the article linked in OP) it was underage white female "trailer park trash," as Ghislaine Maxwell herself liked to call them.
Absolutely. I remember how it was to make your website work in IE6 and later in IE7's Frankenstein compatibility mode.

All those dirty hacks you needed to do to make stuff work make me so thankful for today's wonderful CSS, even when it frustrates me.
Well, there's diminishing returns in format shifting. The encoded barcode contains various types of quasi-redundant visual information (e.g. error correction codes) to allow decoding to happen, so for audio-based transfer it'd be better to skip the image encode and blast out the file directly.

That said... given the somewhat remarkable way fountain codes work, there's nothing stopping us from having a protocol that uses the audio and the video channels simultaneously for better throughput...
Show HN: 1-click startup idea to landing page with GPT-3
You're confusing FOSS software with consumer-ready software.

Also, FOSS software is pull-oriented (demand from developers), not push-oriented (marketed to consumers.)

Until you understand what I wrote above, you don't understand anything about FOSS, GNU, etc.

> Free software is largely irrelevant in the greater number of domains where copyright and patent law prevent the user from doing anything of value with it.

Also, copyright is not an issue, unless you know, you copy something. So your sentence above doesn't apply from a standpoint of copyright. Patents are sometimes an issue.
Liubo
This is the only "solution" to GDPR that isn't bullshit.
This is absolutely monumental and very welcome.

This game should not have passed certification and how it happened clearly shows to the public what has long bugged me: how much you get away with and how many, or how serious, issues you get a waiver for in cert is directly proportional to how high profile your game is. This reinforces the issues with big titles being released in a bad state.
Infinite Nature: Perpetual View Generation of Natural Scenes from a Single Image
I'm not moving the goalposts. Aren't you aware that some businesses get regular inspections, which do not require any complaints?
Does this mitigate tracking across apps?
What do you like that’s not available elsewhere? I only know about Excel being irreplaceable for some.
It's The Schwartz, with a T. I don't know if it has a meaning or if it means the same thing as Schwarz.

https://spaceballs.fandom.com/wiki/The_Schwartz
Order Eu Driving Licence
It’s easy to figure out. I am sure the next one will be https://swscan.apple.com/content/catalogs/others/index-12-11....
Second?
Whom do you refer to as most famous one? I guess the one that was born in 1889?
Nah, that's just the javascript nuts. We're much saner in CSS land.
I use years old device Android device which work fine. When you do not get updates does not mean your mobile stops working. If you are a developer then Linux should be you choice unless you are iOS developer. Then you have no option but to use a Mac.
> Okay, so how does raising taxes to pay for something not count as 'affording' it?

This is a bit of a digression because this began about eminent domain but I'll bite. Because taxes are coercive. The idea is that deciding that you need more money because you want something and don't have enough money for it, then telling people more is required of them because you want something you didn't want last year is prone to abuse and fails in the limit. Why don't we just raise taxes enough so that we could all retire?

Money is a proxy for valuable goods and services. Raising taxes to pay for something is increasing the proportion of physical goods and services consumed by government. We can debate about what the proper proportion is but everyone should agree that there is a point where the government is consuming the maximum amount for the good of society and a further increase would be bad for society. At that point, we could agree that the government can not afford additional expenditures.

A logical response is that certain expenditures increase the wealth of society and so the tax rate might increase, but there would be more goods and services available so society could afford to pay more taxes. This is potentially true but doesn't apply to every public work, so we could still agree that there is a point where government can't afford any more. Whether a given public work would in fact increase the wealth of society is a matter of discussion for members of that society.
> Coinbase is more about the ecosystem

And making it worse for people who simply don't know any better and catering to high-net worth people? Amazing business model.

> Ideally (from the perspective of Coinbase) they end up offering an absurdly broad range of services to consumers in the entire sphere of cryptocurrency, similar to how some banks don't just let you hold money with them, but may offer 10 different services as well, from exchange to lending to credit to trading and so on.

So, they're a bank? The very incarnation of Bitcoin's persona non grata ever there ever was one.

The apologists around here trying to suck off YC and VC money teet may be more complaint, but I hope this new wave of customers goes to Square/CASH (an easier transition since so many already have it on their phones) in order to steer them to companies that do actual meaningful work in this ecosystem, instead of act as a parasite as Armstrong and Coinbase do.
> switching browsers won't net you different adblocking capability due to the restriction to use apples webkit core.

That depends on what you mean by “different adblocking capability”. It’s absolutely possible for alternative browsers to block different things to Safari. I can think of three ways to do it off the top of my head: add a content rule list; inject JavaScript to remove elements from the DOM; inject CSS to hide elements.
> This breaks one important invariant: unless the user clicks "Save", the original file must not be modified in any way.

SQLite's default rollback journaling mode doesn't satisfy this property, but WAL mode does: updates will be first written to the WAL file, and automatically copied to the main database file only after at least one transaction has committed.

> Also, how would this work with "Save As"?

SQLite also has a "backup" API that I think could be used for this purpose: https://sqlite.org/backup.html
BTW messenger over mbasic.facebook.com stopped working for me last week and throws errors. Am I the only one? The only web way to use FB messages for me now is the bloated desktop web experience (which takes 10s+ to load)
Thanks for the update. It appears the data will continue to be sent to Google Analytics from the backend.
That's quite possible! I hadn't really thought of that.
I'm not yet done with all comments, but so far I've not seen anyone defending Russia, just asking for evidence or at least indicators. Proper attribution of hacks isn't exactly a trivial and foolproof thing.

There is a big asymmetry here: On the one hand this whole "cyberattack" boils down to a) the password for the build server being <companyname>123 and b) publishing said password on github. The customers, federal agencies including intelligence, failed to find this for a year, which simply is gross incompetence. I mean really: Did the agencies integrate this software into their critical systems without any checks?

Yet these agencies are at the same time so competent that they can reliably attribute usage of the password (this wasn't even a hack) to the Russian government within days?

Edit: It is of course quite possible to be Russia, but hacking is comparatively cheap, so the list of possible culprits is larger than just Russia and China. It could also be way more than just one country, as the password was public for everyone to use for almost a year.
Ooh, this is cool. I’ll have to see if I can use it to replace reading the plist by hand!
If there's an identifier that can be tied to you (like an IP address), then yes?
Yes he did, go suck dick.
Privacy vs walled garden is a hard bet. If I really wanted to, I'd just install a different OS on my android over going to Apple TBH.
Umm, because it's a proprietary format, with questionable licensing?
> The web is a document-based system, with text flowing from top to bottom.

This was always the central mistake in the design of CSS. It was solving a problem people just didn't really have. I mean, yes, it did both simplify and improve the situation for this sort of document flow kind of thing but we were all using tables for a reason:

Because what people needed was a mechanism to describe structured layout. Inside that, document flow is important, but we spent 20+ years just getting back to the structural power of tables and it's fucking ridiculous.

And it did it all in a way that required the exact constraint solving complexity you're lamenting. But it didn't really have to be that way.

CSS was a disaster and has almost certainly wasted incredible amounts of time and money that could have been better spent if a better solution had come along in time.
Just like you’re drawing a distinction between a helpful conversation and emotional abuse, I’m drawing a distinction between quick physical punishment and physical abuse. It just feels like the outright excommunication of physical confrontation hurts parts of society and leaves people seething for years over something that could have been resolved over a few bruises.
Definitely. I had to draw a line somewhere for an initial "does anyone care about this?" release, so there's some rough edges here.

There are a number of loose ends that I'd like to look into down the road, and more flexibility for different use cases is on the list.

edit: I should mention: the main reason the decoder is a native Android app and not a WebAssembly app is that decoding performance is a throughput bottleneck. I wasn't too eager to pay the wasm tax, when I wasn't sure if even native performance would be good enough. As it happens, I now think decode performance is going to be ok -- but it's still a bit of a weak spot in the scheme.
Parallels 16 Preview for M1 Macs Runs ARM Windows
Auctioning Vaccines
Users mostly rate apps when they don't work for them, so app creators are highly motivated to encourage happy users to vote. I know of one app where this was drove a 1-star difference in rating.

From there it can become quite tempting to further affect review scores.
> To the people who want to pretend like pornhub is just another tech company

Quick search for argument seen before:
https://mobile.twitter.com/DesireeLsk/status/133788772930513...

Seems that more of that stuff ends up on FB & twitter than on pornhub. So yeah: sadly this is very much just another tech company :(

All of these companies should work much harder to address this.
nitter is really the way I want to consume tweets (I'm not even on twitter but have my bookmarks to existing topics e.g. twitter lists and users that I tune into still - users that I used to follow when there - I used to follow hundreds but those that keep me coming back aren't more than 5). twitter without an account is twitter without the noise or risk of getting sucked into "contributing" (e.g. riling myself up lol)

Sadly, when you submit links from nitter to HN they get automatically demoted (they won't even have a discuss link and will never see the frontpage).

I don't know the reasoning but I guess the argument could be that

- it violates original content rule (that official sources must be used).

- some engineering just went into HN to show the user-name part of twitter posts in submitted links. (I took that as a reasoning why HN prefers twitter links rather than nitter - suppose that could easily be expanded though).

- potential legal reasons (? I can't think of any but maybe HN respects the claim of twitter that the data belongs to them etc ...)

just speculation but fact is there is no nitter support on HN.
Probably a good idea. Noted.
Third-party anonymous reviews. It would have to be anonymous because Airbnb bans users for reviewing outside their platform.

https://thenextweb.com/syndication/2019/02/18/how-i-got-bann...
The people actually gaming the reviews? Fantastic!
I don't mind this. 7/10 times I'm doing the password reset thing already when I visit a site I don't use much but know I have an account with, so this just cuts to the chase

I'm already logged into Chrome browser, thus gmail, so it would be great if I didn't have to manually go over to gmail and click your link
I'm not sure that the GDPR really cares what is being done with that information? It cares more about who that information is being shared with, and about your consent.
> No one cares about the viability, future growth prospects, YoY growth prospects etc in this market. People seem to just want to throw money at everything. It would be foolish not to rake it in. Coinbase is doing the right thing. Every startup should go public now if they can, even more so if its a money losing one. Lot of irrationality in the market right now.

When you realized that Silicon valley had became more about further allowing this kind of reckless financial bacchanal instead of creating actual problem solving businesses, were you equally as disappointed in the entire 'start up world' as I was?

As a Californian with roots in the Valley I think you've just encapsulated what I think went entirely wrong with the SV mentality in my lifetime, and why I think its probably best the mass exodus happens as it may have a chance to re-create itself as a hub of actual innovation instead of making it a hotbed of buzz word laden, horrible named companies with no real business model to speak of in order to get a seat at the trough of cheap hot money in the Market created by the State?
The web is meant for anything you can build with its tools.

That its tools lagged behind what people were building with them is just a reminder that a platform's caretakers have little to do with the creators on the platform.

This goes for everything. I built a forum from scratch that miraculously exploded into a community and culture and drama. 15 years later I look at it and realize it happened in spite of me, not because of me. It doesn't even feel like any of it's mine. I'm a groundskeeper.

I might have built the scaffolding, but who am I to say what it's for once thousands of people have made that decision for themselves?

"No, no, no. The web is for boring documents of <p> and <img>! What are you people building?! The most complicated application I envisioned when I invented HTTP was Encyclopedia Britannica online, and the limits of my imagination must be yours!"
In that case, change in system that makes people study hard for years and then guarantees a number of them wont be able to proceed despite being able to would be necessary.

It is not just failed dream, it is also massive sunk cost.
There are some nice examples in that post. One other example would be to respect the DoNotTrack setting of your browser. You don't need to load any tracking scripts if DNT is enabled. That saves bandwidth and has a small effect on your page's loading times.

We recently blogged about that on the example of Matomo (Google Analytics alternative). The main part is the following code:

if (navigator.doNotTrack !== '1') { /* load script */ }

Here is the link if you are interested in the details: https://frontaid.io/blog/matomo-dnt-do-not-track/
“We found site visitation increased 1% after removing the preview, ship it”
It was the 81 BYTE article that got me really interested in Smalltalk (I miss BYTE of that era, but times change ...).

First time I got to use it was to put together a live demo for a bid we were working on for a new project. Must have been around 87/88, got a shiny new Dell 286 to run Smalltalk/V, took Dell several goes to find me a VGA card that would work properly on the system.

Last time I used it in anger was at JP Morgan in 2009.

Things like IntelliJ IDEA get you part way these days, but the whole live, interactive environment really was revelatory, only thing close I used was Interlisp on a XEROX 1108.

It's amazing how progress in software engineering has been held back by fashion and entrenched opinions, what people think is trendy and would look good on their CV.
Hi! Please also look into the collector.githubapp.com analytics endpoint, the request does not seem to be compatible with GDPR in its current form. Either unique IDs tied to the user will have to be removed, or express consent will have to be requested.

https://news.ycombinator.com/item?id=25461825
An Introduction to Session Types
What in the flying fuck is a 'ch' unit?

Took me a couple minutes to track it down. In the CSS Values and Units Module Level 3 Editor's Draft [1], it's defined as, "Equal to the used advance measure of the “0” (ZERO, U+0030) glyph in the font used to render it." Are you kidding me??

Please stop. You're not clever or cool using some random unit like this in an article about something completely unrelated (or ever, really), you're just being an asshole. I thought at first it was relevant to the techniques being shown. Idiot.

1. https://drafts.csswg.org/css-values-3/#ch
mbasic.facebook.com still works perfectly fine for me.
Even China has no chance at this. Western movies, music, cars, imported designer brands, etc. The upper class can't live without these things. You'll have problems with your own people once they are so connected with the outside world.
> Privacy vs walled garden is a hard bet

I don't believe this is true or even a consideration for the majority of users.
I am surprised that no one talked about Apple's hypocrisy here. They will not be showing any of these warning to any of their application.

If they are really interested in privacy then they should be doing for all the applications including their own.
This article does not appear to do what the title claims. It mostly rounds up news from other sources.

Has anyone done the actual analysis of what the dedicated logic cores on the M1 are? I'm always curious what kinds of work Apple dedicates hardware to.
Retaliation for a cyber attack, with cyber attacks, sanctions, or military operations could set a dangerous precedent. Don't forget that the US and allies have been behind many cyber attacks, including against Russia and China ( and probably were involved with Stuxnet against Iran). Do you want Russia, China, Iran, etc. to retaliate against US cyber attacks? Because that's how you get an escalation.

https://en.m.wikipedia.org/wiki/Cyberwarfare_in_the_United_S...
The controversial Palantir and the secret agreement with the Greek government
Fellow HNers, greetings from Greece.
Posting this from a temporary account for obvious reasons.

The posted story is in Greek but, translating will work reasonably well.

Long-story short, Palantir has entered into an agreement with the Greek government.

The exact nature of the agreement has not been disclosed. Unofficial responses to relevant inquiries by journalists and myself (not journalist myself, just a concerned citizen) has been along the lines of "No big deal. Palantir has given us a piece of free software to play around with and we're trying out".
As a data scientist myself with knowledge about how the US big-tech works, I'm fairly knowledgable about their practices and end-goals, especially the freemium model.

I am certain that they've followed the same playbook in other countries.

So, I'm reaching out to the HN community for relevant stories and pointers from other countries.
> It's sad that consumers rely on one corporation to defend their privacy from other corporations.

Alternative take: consumers care about privacy and so the market is providing alternatives.
It's probably a personal thing but the main point is this:
- Pharo and Squeak are both one full screen application with their own window manager inside. And that window manager is terrible and slow. I can't even alt-tab between windows. The old "Visual SmallTalk Enterprise 3.1" from 95 leverages all window handling to the OS and is quick and snappy. It also has a native look if that is your thing. This contributes a lot to the developer experience: shortcuts and code completion are quick and snappy, you can easily deal with the separate windows, etc. In Pharo everything is so slow compared to this and not very developer friendly. Maybe someone can show me what I have been doing wrong but this is my main gist.