skysight-inc/HackerNews huggingface dataset:
The one thing I don't love about Swift's Codable is the lack of customizability in the "magic" part: the part where the compiler generates the Encodable/Decodable implementations. Most notably, the compiler can't generate implementations for enums. The only thing that Swift supports customizing without fully implementing the methods for Encodable and Decodable is the name of the keys, using a custom CodingKeys type.

Serde, an equivalent third-party crate in Rust, supports a lot of customization which I find invaluable. It can (de)serialize values like this with ease:

{"type": "location", "value": {"latitude": 0, "longitude": 0}}

in a very small amount of code:

#[derive(Serialize, Deserialize)]
#[serde(tag = "type", content = "value")]
#[serde(rename_all = "lowercase")]
enum Value {
Location { latitude: f64, longitude: f64 },
String(String),
...
}

Serde also supports customizing serialization on a per-field basis without having to implement the entire protocol, which is nice:

#[derive(Deserialize, Serialize)]
struct Record {
#[serde(with = "chrono::serde::ts_seconds")]
updated: DateTime<Utc>
}

I really hope that Swift has better ways (like the above) to customize Codable in the future. I find myself implementing the protocol myself in 90% of cases, whereas I very rarely have to do that for Serde.
So are all Russians suspect in your book?
They never said that all 1.0 use cases were covered now. They promised that eventually they will have use case parity and then they’ll deprecate 1.0.
"... and as a bonus, it will help bring more of the hardware repair business in-house."
If you like that check out https://github.com/Kickball/awesome-selfhosted
> Name me a non-obscure movie, show, or song and I’ll bet I find it on YouTube.

Heavily distorted to the point that you wouldn't really want to watch it in that format if you had any alternative.
Order of sociability from most to least or least to most?
I don't understand the complaint in that article? It seems to basically be that:

- Nestle made a baby formula

- They marketed it heavily to poor people in the third world.

- Poor people in the third world proceed to dilute the formula with more than the recommended amount of water to save money (and the article does not say that this was at Nestle's prompting), and as a result didn't feed their babies enough.

Maybe less than ideal and somewhat scummy? Sure, most advertising is like that really. Worse than literally selling poisonous baby formula? I don't see it.

But perhaps I misunderstand the accusation.
I'm an Israeli and have similar mixed motives for liking Mobileye more than Tesla Autopilot.
> censoring people for espousing views expressed by the elected president of the United States

To the extent that's true, that says a lot more about how far the office of President has fallen than anything else.

In a sane world, there would be bipartisan consensus that many of the views Trump expresses should rightfully be condemned:

https://www.weeklystandard.com/stephen-f-hayes/donald-trump-...

> The degree of this normalization is stunning. The Republican nominee for president made comments Friday that one might expect from a patient in a mental institution, the kind of stuff you might read on blog with really small print and pictures of UFOs. And yet his remarks barely register as news. There are no condemnations from fellow Republicans. His supporters shrug them off as Trump being Trump.
When Gmail first came out I was amazed at how fast it was, so much faster than the native outlook client I used at the time, wow! How is that even possible in javascript!

Now gmail is slower than most any other website I use regularly. Can't even refresh the inbox in less than three seconds.

I've noticed the same slower by a bit every year pattern with google maps too. I'm afraid to click anything when I have a map open because I know it might trigger a repaint which will cause me to sigh and switch to another tab while it chugs for a few seconds to accomplish this.
like any drug deal, you should test the product. not exactly a cultural difference here.

this whole thing even sounds like dallas buyers club.
Link fixed: https://en.wikipedia.org/wiki/JavaScript
If it was $20, I'd give it a shot. At $88, I can't justify it unless I already know it's better or someone in my network has already used it and loves it.
> So marketing to law enforcement is unethical?

Yes. The police state is unethical and doing anything to further it is unethical.
I think using IIIF is why this site is so broken.

Trying to load an image sends 50 separate requests, when the entire image is less than 400kb. This is the exact opposite of what web optimizers try to do, which is combine lots of small images into 1 large one and use clever CSS to show small parts of the image in the right places on the webpage..
> Many fundamental tricks that are routinely pulled in C require jumping through plenty of hoops to keep a modern C++ compiler happy.

Not in my experience. Currently my man open source project consists of some 70,000 of C which compiles as C++. Maintaining C++ compatibility takes very little effort. I tend to switch to C++ before a release, to catch regressions. Often there is nothing. The most I spend is maybe five to ten minutes fixing some minor things. Some of those minor things have nothing to do with C versus C++ like signed/unsigned warnings.

Note that these signed/unsigned warnings from GNU C++ actually found a real problem: I had code which assumed WEOF was negative. (It was originally char based code that was switched to wchar_t; of course EOF constant in the narrow character world is negative.) The GNU C++ compiler also identified the situation in the same code that a variable that should have been wint_t was mistakenly int.
Thanks for that! The usual Google cache wasn't working for me in this case.
And it's terrible for performance, so much so that it can't be used everywhere errors may need to be returned.
http://marshallbrain.com/manna1.htm

This is a short story I think may be relevant.

Some commenters below seem okay with the growing inequity in society so long as people have a better quality of life compared to the past. Is that how we measure progress in our unprecedented information age society? to a past that can't relate to the present?

IMO don't let what was be a guide for what could be. If people always did that we wouldn't have the internet to comment on.
> - I don't want to host complicated platforms, all I need is a statically generated blog. ActivityPub could be the way to let people comment on my posts without forfeiting the staticness.

https://fed.brid.gy/ and https://webmention.io/ can be duct taped together to provide roughly this. I use webmention.io and brid.gy on my blog with Twitter and (until Cambridge Analytica) Facebook comments, but haven't got around to using the federated aspects of bridgy yet.
Not only nationalism. Current conflicts are rooted in the same prejudices as a hundred years ago. The root cause (this idea that somehow my nation/religion/race/etc is superior) hasn't been resolved, only more or less patched, and thus these conflicts are bound to reappear and escalate sooner or later until we recognize that that despite the valuable diversity humanity is essentially one and align the political and economic structures of this world with this reality.
I don't think we'd have 99% of these novel clinical compounds if it weren't for patents.

As for approvals, I don't know why we have each country doing its own approvals, instead of international groups that individuals can choose whether they want to trust or not. Are Europeans sufficiently different than Chinese, Indians, Australians, Canadians, Germans or Americans to warrant independent safety approvals?

If they're using different metrics to process approvals, why? Shouldn't the same inputs result in the same outputs?
I think in the first example it's easier to calculate based on the time spent vs the salary + overheads of the employee(s) dealing with the issue.

If something took up one hour of my day and I could spend a week one-off to reduce that to 0 hours a day, that's a no brainer.
I don't know about cats, but the ability of newborns to identify human faces is well documented. The details don't really matter. Whether it's cats or something else, we humans come with some very sophisticated feature-detectors hard-wired in.
You are correct - this is exactly the thought process I went through.

In fact you can see here my original idea https://news.ycombinator.com/item?id=18063747

I called it "EatUp Sponsors" - a terrible name, but fine for the MVP.

When thinking about a better name I gave alot of thought to a more generalised brand, but then it came to me that every single meetup I ever went to only ever had pizza, and that there would be value in being, as you say, laser focused.
This is a very good point, as unemployment is a possible trigger for depression and suicide.

However after some googling I could not find comparable statistics (sucide rates in large Chinese manufacturing companies). Do you know any sources?
Thank you! I didn't notice it
Companies don't usually go hunting for random events to deliver pizza to. Event organizers will run around to find sponsors (cash or otherwise), this site serves as a quick middleman for one specific kind of sponsorship.
Isnt this how this website works?

It connects event organizators and sponsors, with an easy way for organizators to ask for sponsorship, and a nice list of places to sponsor if you're feeling generous
A Mac Pro is a desktop computer, not to be confused with a MacBook Pro. :-)

https://www.apple.com/mac-pro/
The first problem is that the error-return-pointer-argument approach must go through memory, because the caller can request that the return value go anywhere at all.

The second problem is that existing calling conventions for `struct { bool tag; union { .. }; }` put everything in memory anyway, using a hidden pointer argument. Further, there's no way to put this type in the standard library because C doesn't have generics.

The new implementation can put that single-bit tag in the CPU's carry flag where it has dedicated branch instructions and doesn't interfere with other values. It can leave the actual return value in a register without any kind of union aggregate lowering.

So far this is all just calling convention tweaks, and could be done by pattern-matching user-defined tagged unions, but building it into the language a) makes it possible to standardize its semantics and connect it to platforms' C ABIs so other languages can also participate and b) makes it far simpler to implement and use so it's actually likely to be adopted.
Just tried it. Yup, it does get triggered.
In winter conditions? That's probably true. Most people don't have the gear or know how to use it. I'm less convinced that at least a lot of people couldn't do a multi-day hike in decent weather if they wanted to.
> I think it takes too many clicks to create a new login

As a very happy BW user, this is probably its weakest point at the moment. It improves a bit if you click the "do you want Bitwarden to save these credentials" banner, but still suboptimal (the captured URL is unnecessarily precise).

I don't think they can solve this problem though, unless they get a sidebar - which may not be possible with WebExtensions (I honestly can't recall).
What if we stop using null in JavaScript?
Fair enough. I think that implementation is a dreadful straight NFA implementation - and, IIRC, is not used in RE2 for pure NFA code.

It's not a dreadful way of implementing regex as it can do things a straightforward bitset NFA implementation can't.

To be fair, I think your original post does stand, but I guess I am a bit pedantic about the terminology after spending a little bit of time on regex implementation.

In fact, a number of strategies in regex implementation turned out to generalize to broader areas. The bitwise automata are helpful elsewhere, as are many of the strategies one might use to make them fast. The 4 Russians technique ( https://en.wikipedia.org/wiki/Method_of_Four_Russians ) has also cropped up all over the place.
I don't fully get your statement. Why are AdWords harder to compete with due to GDPR? Care to expand please? Thanks.
All those use cases and more can be accomplished if the Write API is limited to a sandboxed local storage with a configurable size limit per domain. I would hate to see all the gains made by sandboxing the browser fly away by allowing it to access any file on the user's system.
I agree.

Even in Denmark where Apple doesn't have any officials stores, there are still plenty of small tech repair shops that replace phone screens, and from what I've noticed at least 50% of those are Apple Authorized Service Providers who are able to repair any Apple product and also provide the service free of charge if you are under warranty.
If I have the choice between making Youtube more like a newspaper or making my newspaper more like Youtube, I at least know which option I would prefer.

Many people here seem to take the notion of a content loss in Europe as bad for granted. I see it as quite positive. If we can replace generic, low quality content with more space for people who do not just ride on copyright but provide genuinely new content, I would consider this to be very positive. Maybe this opens up a space to have more European content on Youtube instead of just having the same generic content dominate the website that is subject to these copyright battles.

The incentive for Youtube is clear, they want to make as much money and generate as much content as possible, with little attention paid to the fact whether the content is educational, regionally relevant, authentic, or original. It seems obvious to me that a Youtube that might be smaller, less profit or attention oriented, and less commercialized is not in their interest.

The one exception I would make here is scientific or academic content, which should be granted strong protections.
Or... you know... you could just get a Chromebook that has Android apps and Linux apps (via Crostini) in a supported fashion.
> To build an apartment will entail buying up houses, knocking them down then building them next to houses which are already tightly packed and blocking views.

Yup, you got it, that's how it works. This concept is called "a city".

Any rights San Francisco might have once had to get upset about that dynamic evaporated when they happily let companies house several million jobs in the area.

> if you have a home, why should you watch your home value drop because of new apartments? If you just bought a home for $1mil just to be comfortable with no speculation and hope that it will grow faster than inflation. An influx of housing dropping your house to $800k will wipe out 100% of your down payment.

I'm not buying this argument at all. The more dense a city gets the more valuable single family homes get.

Take a look and see how much a two story single family home goes for in the West Village or brownstone Brooklyn. The logic you're trying to advance is dubious.
correct, and that's why surveys need to be as scientific as possible in order to avoid various biases that skew the results. hence qualtrics and not surveymonkey for serious survey research.
Same here. It's the only thing that looked close enough like an open and secure platform, very much unlike LastPass and 1Password, which I can't believe so many tech-savvy people keep trusting.

KeePass would be perfect if I had an easy platform to share the file on. A VPS isn't reliable enough for me, and Dropbox 's proprietary Linux client did suspicious stuff.
No, I meant literally junior developers who join organizations fresh and are immediately steered towards VS Code, Atom, Sublime by their organization and not even provided Eclipse/IntelliJ as an option.
The lack of a paywall is important to enable people to read real news, the fact that most serious news organisations are hiding behind a paywall enables less scrupulous sources to poisen the collective concience.
It’s encouraging bad diets. Free pizza is a way to tempt people, and the consumer of said pizza incurs an opportunity cost since they could have used the time to eat something nutritionally appropriate.
another social justice warrior idiot
Flashcards for developers (interview with founders)
The Google Translate translation is mostly gibberish, but in short this book isn't really a history book. It's a book in the "gesaku" genre (Edo era light literature) that the author created by reading other books about Columbus and America and adapting the story to fit the conventions of the genre (thus youkai, etc.).
It seems like the Dow dropping 500-ish points in a day is the new normal, it seems to happen fairly regularly. It generally makes those losses up with massive gains on other days, which do make headlines, but they don't receive the same kind of attention. Regardless of whether it's up or down on a particular day, the underlying theme is that the market has become very volatile.
It seems so obvious to everyone who isn’t a Silly Valley bro. Total monoculture.
Ah yes. Still, Soyuz uses different fuel to drive the pumps from the main propellants. Hydrogen peroxide monopropellant for pumps, liquid oxygen and kerosene for main propellants.

This is V-2 heritage. Back then the turbine materials were not developed yet that could take the high heat.
When a mosquito will bite you into nose, you will crush it with power enough to crush all mosquitoes in the house and more. How many resources you can extract from mosquitoes?

Stop repeat the Russian propaganda. USA now is the largest oil producer in the world, so give me reason.
This is an interesting effort and reminds me a bit of https://github.com/sovereign/sovereign, though HomelabOS has significantly more apps and sovereign hasn't been touched in a while.
FWIW, it takes a lot more engineering to squeeze high-end components into a tiny case. I would there to be a much lower form-factor tax to pay on a Pro.

That said, I'll probably always build my own just for the upgradeability and performance angle.
But they are delicious and a great alternative to pizza. So worth considering depending on how much you consider their political affiliation a detriment. When living in Atlanta I personally loved it when local meetups skipped pizza and got Chick-fil-A or something else instead. As to the GP’s goal of healthier, I’m not sure if Chick-fil-A really hits that goal, haha.

In the context of this site, I assume pizza is a placeholder, an MVP. If this turns out to actually be a useful service, non-pizza food is an obvious avenue to grow into.
Our world looks similar to 1914 in a lot of ways, but it looks different in a lot of ways too.

1) Mutually assured destruction.

2) No major empires dissolving.

3) Global news keeps everyone on the same page as crises unfold.

4) World powers separated by vast seas, neutral countries, and demilitarized zones.

5) The UN exists (not always effective, but at least it's there).

6) Less chauvinism. Kaiser Wilhelm II makes Trump look diplomatic and cordial in comparison.
Are E-Books Finally Over?
> What if websites start requiring specific files to exist before allowing access?

This isn't just unrestricted filesystem access. The site would need to request file system permission first, _and_ get the user to select the file in a file picker.

In short, that's not a serious concern.
> Is there a fault i don't see?

What if Alice thinks that the piece Bob gave to Charlie was the 2nd best piece, and after Bob's trimming, the remaining pieces are both worse than what Charlie has?
Can you ? How? I don't see any option.
I think the GP didn't mean to imply that humans have an innate cat representation from birth.

It makes more sense to interpret the comment as saying that humans don't learn an internal image representation. Humans do learn representations of bridges, aircraft, cats, etc. But those are built on top of an image processing/representation system that we are born with, analogous to raster graphics?

Edit: Maybe I'm misreading the comment. What's definitely built in at birth is things like edge and orientation detectors. A zebra detector would be a surprise.
To be fair, the issue of ergonomics is an artifact of C only. In a language with proper sum types (or as I like to think of them, "better enums"), the pattern would look more like this:

match library_function(arg) {
Ok(num) => // success
Err(errno) => // failure
}

But since C doesn't have proper sum types, we have to approximate this pattern with things like errno or returned structs.
Through evolution we have become very good liars. Don't count on your natural ability to lie though, it's better to just shut up. While lies are next to impossible to detect, they are easily checked with facts.
I just finished banging out a new Electron app (https://getpolarized.io/)

It's an offline-first app for managing and annotating PDF and web documents.

The idea was that with Electron I can have direct access to the filesystem and be fully integrated into the browser as well.

For the most part it works. The users can easily browse the local filesystem and also access some operating specific features.

But let me tell you -it's rather schizophrenic to use something like Electron. It just doesn't know whether it's a browser or a web server and then there's the issue of dealing with process communication within Electron. Chrome is its own process and node the main process and you have to communicate via message passing - not super fun.

Now we have PWAs and they're far from idea but it might be that an API like this, along with PWAs, and maybe a bit more functionality could replace Electron for building these types of hybrid apps.
One of the more insane Rube Goldberg machines:

https://www.youtube.com/watch?v=qybUFnY7Y8w&t=62s
Ah, yeah, I didn't mean to suggest that O(N) snapshots translates to O(N) data usage in practice. It could if you wrote a really stupid RDBMS, but the existing ones use low-overhead data structures for their undo/in-heap MVCC snapshot systems, such that they probably add less than O(log log N) overhead where N is the size of the changes themselves.

I did mean to suggest that it's far harder to limit memory allocation, and thus paging/cache thrashing, when you have an unbounded number of transactions each tracking bounded-size changes†, than when you "only" have a bounded number of transactions each tracking bounded-size† changes. (Seems obvious when phrased that way, right?)

† "bounded-size changes" because most RDBMSes have per-connection memory limits, and can-and-will just crash out a connection [with the semantics of a rollback] if it uses too much working memory.

With limited concurrency, you can do individual queries that stall your own connection; and you can do "maintenance" statements like index rebuilds that lock various resources. But it's very hard to put the DBMS in a state where a DBA can't connect to it in order to issue administrative statements to e.g. kill user connections.

Unlimited concurrency (or bounded concurrency if the bound x the per-connection workmem limit > the DB's RAM size) would allow a badly-configured client to "DDoS the RDBMS with established connections", such that the DBMS could become entirely unresponsive to the network and would need to be non-gracefully terminated.

> The definition of committed in most of such systems include that the necessary data has been written to disk before signalling success for the commit.

True, by definition, yeah. And probably always going to be true in single-instance clusters. In distributed clusters, testing by Jepsen and others has shown that, in most SQL DBMSes with configurable SQL "transaction isolation" levels, using anything other than the highest level configurable can allow for write-loss of locally [but not distributed-ly] "committed" writes, under certain conditions.
From the people who brought us the cookie warning, the most useless piece of regulation ever. No wonder they want brexit in the UK. If the EU was in charge of the internet we would probably have to still use union protected doves to transfer bits and bytes encoded with an authorised pencil on paper.