skysight-inc/HackerNews huggingface dataset:
I got interested in Reason last year after reading lorefnon's article [1] comparing Reason with TypeScript.

Recently, after evaluating both for a large project we decided to prefer TypeScript primarily because TypeScript's support for intersection types, mapped types and conditional types is really awesome and make integration with javascript libraries a lot easier. As far as I could find, similar things can't be done in ReasonML at all (although I could be wrong on it).

The tooling integration of TypeScript is also really awesome. Besides the usual refactoring, jump to definition support etc. a lot of effort has gone into small things that makes life easier. For example, if you have ctrl+click on a mapped type's property it will jump to the original type being mapped. In libraries like io-ts if you add doc comments on methods which are used to derive the types, the documentation will be propagated to the derived types [2].

I recently found that the author of the above post has been experimenting [3] with babel-macros [4] to facilitate nice type-safe fluent APIs/abstractions which are compiled away to simple readable javascript with zero/negligible runtime overhead and found it a really neat idea. Looking at some of that code, it appears to be a lot simpler than writing ppx macros [5] for ocaml which I very briefly experimented with.

[1] https://lorefnon.tech/2018/05/13/reasonml-vs-typescript-firs...

[2] https://github.com/gcanti/io-ts/issues/201#issuecomment-4347...

[3] https://github.com/ts-delight

[4] https://github.com/kentcdodds/babel-plugin-macros

[5] http://ocamllabs.io/doc/ppx.html
The rest of us go to jail for breaking the law. Why shouldn't execs?
Trade war dents Chinese company profits, portfolio inflows
Controlling Mosquito Populations by Releasing Mosquitoes
Americans say this all the time, too. Remember McCain, and his promise of one hundred years of war in Iraq?
LibreOffice developers team up to improve PPT/PPTX (PowerPoint) file support
Yeah, it is interesting to ponder how much the game changes by a seemingly simple detail like how the pieces are generated. If they are generated uniformly then it is certain that the player will lose sooner or later (getting too many S or Z pieces in a row). It also has been shown that such a setup makes the game NP complete. https://arxiv.org/abs/cs/0210020 It's way above my head but intuitively it feels like any randomization based on the bag model would give rise to optimal strategies, even making it possible to play indefinitely. PVP play as you say of course makes it much more interesting. It wouldn't surprise me if the strategies for playing well are just as deep as for playing Go or Chess.
Nice catch, should be fixed now. Thanks!
[2018] . Apparently the article says that the rate of growth of divorces has been overtaken by the growth of the average marriage age?
Over the course of a few weeks, I've been going through your "History of Computation, Logic and Algebra". I just wanted to say, brilliant work, thank you! The way you present the history is really insightful in understanding the current of philosophy and ideas that led up to our modern conception and use of computation.
Do you think any ad purchaser will actually buy such an ad? What would be the engagement rates of such ads be?

I am not sure how viable such a company will be in the real world.
The article states:

>"The primary targets of this campaign are Google and the IAB, which control the RTB system."

Can someone say who makes up the IAB exactly? Is this just an industry trade group?
I confess that I've also never really understood why people are so outraged by the hypothetical it likely presence of actual shills: it's not like the population of non-shill commenters doesn't already produce every stupid and inane take possible. Shills can shift the composition of votes and comments away from a given board's biases (towards their preferred biases), but what does that change from the perspective of you, the reader? Why would you engage differently with a terrible take from a paid shill and a terrible take from someone dumb enough to sincerely believe it? This seems especially the case on anonymous or pseudonymous fora, where you've already given up hope of leaning on known character as a prior (and IMO that's an excuse for skipping critical thought much of the time anyway).
Compilers like MS and Turbo C used a clever technique - a program could be compiled with a software floating point library and shipped, and the existence of the FP coprocessor would be detected at runtime and the program would self-modify appropriately.
If there was a coprocessor, the first time any particular FP routine was called, it would overwrite the instruction calling the library with the appropriate FP coprocessor instruction.
Just to be clear, what are we specifically talking about here? Does this mean that `privacy.firstparty.isolate` is now set to true by default?
Clickbait title. The reason is because fewer people are getting married in the first place.

The author posits that it's a "bad thing" because:

* ... the decline of well-paying jobs for those without college degrees makes it harder to form more stable relationships. And thus, marriage is “an increasingly central component of the structure of social inequality.”*

And yet, those "well-paying jobs" that led to "more stable relationships"... were more likely to end in divorce before. So if the decline is due to a socioeconomic class less likely to get married, that class historically saw higher rates of divorce.

I get what the author is going for, but anchoring to divorce rate (which is dependent on socioeconomic mix and the underlying marriage rate) seems backward versus just talking about marriage rates in the first place.
Hi HN!

I made this to make my design and development workflows much quicker and easier. I use it for lots of things, such as -

- Importing a page of mine as a starting point for mocking up a new feature or design change for it

- Importing a web design I like as a starting point for a design I want to make

- Importing live code components to save as symbols for a design library

If you have any feedback at all, please share!
AES-GMAC-CTR (SIV)
"To offset effects of the trade war, Chinese policymakers rolled out measures including tax cuts and lower reserve requirements for banks, which were pushed to lend to smaller companies."

That lower reserve requirement is going to be their Achilles heel.
I suppose if you're working on a small pet project that nobody else is going to see. If you're working on something with a bunch of other people you're likely to care more about what the mythical average dev thinks.
IMO a lot of problems with our work culture come down to too many hours. If we cut down full-time to mean 20 hours a week, I think a lot of the suffering would disappear. Health conditions would be reduced, ennui from the meaninglessness of tasks wouldn't seem as stark, balancing work and life would be a breeze. It just seems so weird to me that employers are willing to pay me $X for 40-50 hours a week but not $X/2 for 20-25.
And the money went to Shriners' Hospital, not the burn victim (I saw the photos, they are beyond horrific). What's more, McDonalds had been advised their coffee temperature was dangerous, but decided to ignore this for marketing reasons, because people like the look of steaming coffee.
I personally think you're reaching. You might as well point out that a Supercar doesn't take pictures.

I mean, really, are we going to get into discussing the people who buy a supercar and hold it as an investment/collectible and rarely drive it?

Or what about the people who track their McLaren and absolutely use it to its full potential? Those people 100% absolutely drive them for performance and use every bit of it.

And yes, there are camera owners who collect cameras. And camera owners who buy "Prosumer" models just because they want a nice camera, even if they don't use it to its full potential. Maybe not you, but we both know there are such people.

That doesn't really invalidate my analogy or validate it. If you feel around to the edges of any metaphor, it breaks. But the question is whether the basic idea is right. I think it's right enough, you don't.

Ok.
Last I checked, inter-bank transfers in NZ were hourly now. They're instant with Osko payments in Australia though, which is nice, and they include identity validation too. Paywave/paypass is also almost universal in Australia too, when I went back to NZ a couple of weeks ago it was noticeable how many shops didn't accept contactless payment.
So I fly with it regularly (live in CA, visit family in WA and ATL, etc.), and I always put it in my carry-on. I've done this for maybe 30 or so flights, and have only had my bag searched twice. The first time, TSA pulled some edibles out, looked the bag over, then kept digging for the water bottle I'd forgot I left in my bag. The second time (vape pen and a couple of joints), same thing, but they were searching for a jar of jam that my wife put in the bag. Each time, they returned the cannabis products to my bag without hesitation. That's so stereotypically TSA for you - water and marionberry jam are hazards, but you can have that Schedule 1 controlled substance.

My thought process with it being in my carry-on is that I don't have to worry about the "what ifs" in my bag getting pulled for inspection when I'm not around, and I do my research to see what local PD has said about it at each airport before I fly out of them. If they're largely "cool" with it, I'd rather be there when someone finds it so that I can say, "Look, my bad, let's toss it out, yeah?". I also make sure that if I'm traveling to where it's not legal (ie Atlanta), I only bring enough for me to use up during the duration of my trip. I'm sure it'd be "fine" for me to travel with it through TSA in ATL since they're not actively looking for it, but the risk of local PD getting involved is just not worth the reward when it's just a five hour flight until I can toke up in the comfort of my own home.
Nice!

When done, go to http://alf.nu/RegexGolf to sharpen up your skill!
Yeah, feudalism is definitely a better path. lol.

You are aware that our founding fathers had the benefit of all that thousands of years of experience to inform how they created our form of government, right?
What's the source on that quote? Best I've found is a Harper's Weekly article from 2016.
It also works in reverse if one of married people is a high earner - the lower earner could usually have qualified for many government programs otherwise.
> I've been wondering lately what are the ramifications for telling dipshit websites I'm European so they must delete my data if I'm not?

"This offering is not available in your country, because we're doing our absolute best to turn the Internet into Countrynet. Soz."
There was a workshop at the last ReasonLDN meetup. Here are the slides that were used, they include quickstart instructions: https://docs.google.com/presentation/d/1wuAveSHslRfKShD6SiVd...

If I recall correctly, everyone managed to set things up swiftly, with an exception of one Windows user who had some editor issues.
Brave is certainly the most shameless tech company I've ever seen in my entire life. Shame on HN to repeatedly allow such a scummy company exploits its ranking algorithm again and again. This kind of systematic exploitation used to happen before with DuckDuckGo, but it seems that Brave took shamelessness to a whole new level.
NSF Commits $36M to Uncovering Rules of Life, Will Drive Nextgen Research
If ten thousand people agree to protect your privacy, is it really protected?
Yes, so true. Wish Facebook stated this explicitly on their projects readmes.
I like your analogy too, and it is fun to think about how modern printers have become a "razors and blades" business, as have phones (ask anyone whose phone is subsidized by their their service provider).
Personally, it really sucks to get ads targeted at my mental health diagnoses.
It likely comes from the fact engineers would rather build than sell, except selling is part of the iterative process! (The most crucial part as it obliterates wishful thinking on what the market needs)
>he truth is that there is no gray zone. Marijuana, until otherwise classified by the FDA, is illegal.

The Federal Government was the first to pass laws allowing individuals to get marijuana for medical reasons, and they even supplied (still do to this day) it to those patients.

Very few people are even aware of this legal history at the federal level, look up the patient Irvin Rosenfeld, the Federal Government has been shipping him 300 pre-rolled joints per month since 1984.

It is very gray area indeed when the FDA says there is no valid medical use for marijuana, whereas the Federal legislature has licensed and supplied certain patients with cannabis for their medical issues for 35+ years.
If I understand correctly, there was a young teen girl who did an ASMR video in a form-fitting “sexy cop” outfit. The whole thing was YT-monetized, and aided and abetted by her parents.
China or Russia don't need to pay shills in all case, there are always nationalists to do it for free. In other cases, it's Stockholm Syndrome.

As for paid shills, there is an entire sub-industry of PR called "Reputation management" devoted to this.
تحميل لعبة النباتات ضد الزومبي للكمبيوتر جميع الاصدارات مجانا Plants vs. Zombies
Software Training Labs in the Modern Enterprise
> States can't nullify federal law,

In practice they can and do until they get smacked down by a court, which typically takes many years.
I recently looked for a "decent" pocketable camera in the $500 range. Nothing in that price range compares to a phone camera.
Just for the record, google is not in compliance. The law is not a switch statement where you just need to find that magic missing “break” and then the system is pwned. Justice is not a mathematical equation.
Your ISP is the only one able to reliably identify you by your IP. And even then they would not be allowed to use that info in other contexts (e.g. advertising) according to GDPR IIRC.
Right. I'm not interested in either of those fields. I want to use Go instead of Java/Scala, but there is little appetite.
Show HN: Sample Text to Speech Voice Generated by Cloning Steve Job's Voice
Never seen that in any of the contracts or employee handbooks I've ever signed. So I guess it varies.
Critical thinking is one thing, but that's not always or even usually the point of such campaigns. It can be as simple as 'bandwagon effect', which regardless of how silly it is to believe people behave that way, they absolutely do. Few people want to be on the unpopular side of an opinion.
Careful with that stuff, it seems the kernel of truth in the current vaping-related illness hype is pointing toward the oil-based products commonly used for THC delivery.
no, just brainwashing and social stigmas. like the "reefer madness" ads.
One of the clues on Beginner puzzle 4 is /+

Pasting that into regex101, with flavour Ecmascript, yields "Pattern Error" (rightly, since forward slashes enclose patterns, and thus need to be escaped).
Not if I'm just showing them a random website. The problem with targeted ads is, they show up at random websites.
I'm beginning to wonder if maybe Fuchsia has a dual purpose: it's both a candidate to replace ChromeOS and Android while at the same time being a practical research project from which learnings could be implemented in Android. Does anyone else remember Microsoft's Midori project (early/mid 2000s) which sought to make a kernel and minimalist operating system in C#? While nothing was made from that product-wise the researchers did crack how to do fast, efficient inter-process communication in a microkernel operating system and those lessons -- along with many others -- have been applied to what is now Windows 10, and I would say to great success. When's the last time you've seen a Windows 10 machine blue-screen? I'm pretty sure device drivers are no longer loaded in kernel space which is why it's so rare to see Windows 10 crash they way its predecessors did.

Look at what Google has done with Android in Q: a lot of core services from AOSP have been migrated to GMS-like packages which can be updated over time making it possible to effectively update Android without the core OS needing to be upgraded (it's like compatibility libraries but on steroids).

And with Flutter the bet for the future is hedged as Flutter was long ago cited to be THE framework for developing Fuchsia applications... whenever Fuchsia ships. In the mean time, write your apps and use them on Android, iOS, web (and possibly desktop soon as well?).

And like the other commenter said: the opening of this article was massively unprofessional. People can disagree but pejorative comments don't make your point.
Sure but the comparison isn't about that.

It's about that everything that 99% of people need the Corolla does. So, there's no motivator to spend money on the better car for most people.
"Nonsense!" he thunders, then he remembers that he has 325 horsepower and a factory tune under the hood of his... Station Wagon.

And while we're on THAT subject, active safety in the form of a lighter vehicle that steers more competently and accelerates at will is criminally underrated by the "Big SUV makes me safe" crowd.
Is there any way to improve the matching of ads to the viewer without violating their privacy?
> The process was ritualized and copied, long before there was understanding of the underlying chemistry

Even chemistry itself is derived from alchemy and observations made during decades/centuries of experimentation and reporting. There are still some reactions that we do not fully understand while we know they actually work.
This isn't wrong and that is one of the largest issues people have with C++: if something is syntactically correct in a language, chances are you'll find it in any relatively big codebase - and with C++ there are a LOT of things that are syntactically correct.

It may feels nice preaching that C++ is only whatever subset you may like (and there are a LOT of C++ programmers, or "programmers who write code that happen to be accepted by C++ compilers" if you prefer, that do that - personally i like pre-C++98 subset that was implemented in Borland C++ Builder 1) but in practice when you have to deal with a real world big C++ codebase (especially something you didn't write yourself and didn't start last month) you'll see all the faces of C++ at the same time, either you like it or not.
> There's no need for people to understand what is going on. People have a tendency to try random stuff without any reason.

You're not giving people very much credit. The things they try may seem random to an outside observer, but they made sense to the person trying them. They had some mental model of how it works, and applied that model. Sometimes even a very inaccurate model is good enough.
My problem with this is that I have a russian event every night that only shows up on my phone calendar. I did the fix to remove it from Google calendar through the web, but it's only gone on the web. It still shows up on my phone with no option to delete all.

I've been deleting the next 4 days every 4 days for the last two weeks.
I disagree: https://en.wikipedia.org/wiki/Carnation_Revolution
Most modern food does not pass.
"Defeatist and unfair" are bizarre ways to describe it, but I'm not sure how the earmarking process would work: what would prevent Firefox from ostensibly allocating your dollars as donated to Firefox and shifted unconstrained dollars from Firefox to another initiative, with your donation ending up funding non-FF activities relative to the counterfactual? Barring the narrow case where they have more FF-only donations than unconstrained ones, this just seems like an accounting fiction.
> And peaceful protestors can also be massacred and completely fail to bring about any change

Can you give an example? Every example I can think of right now that had a massacre of innocent protestors and no armed struggle either led to some change later down the road (eg. galvanizing the movement, reforms, or total collapse of the opressor), or became a major problem for the oppressor later down the track. A massacre is not that easily forgotten.

Just some random examples: The Polish protests of 1970, resulted in 42 people killed and protestors were overpowered by tanks and military, but the killings arguably accelerated the popularity of the movement. Look up the story of "Janek Wiśniewski" https://en.wikipedia.org/wiki/Janek_Wi%C5%9Bniewski
Apart from what the other reply said, Casinos make their money selling drinks.
Lanny Breuer and his then-boss, Eric Holder, both returned to Covington & Burling following their stint at the DOJ. JPMorgan Chase, Bank of America, Morgan Stanley, and UBS are clients of the firm.

Breuer was estimated to take home $4m in compensation in his first year back.

https://dealbook.nytimes.com/2013/03/28/once-more-through-th...

https://www.nytimes.com/2015/07/07/business/dealbook/eric-ho...
There are no goals to target WebAssembly right now. STS is currently targeted towards MCUs, which makes it more comparable to uPython or AVR than AssemblyScript.
What's "Not-So-Great" about that?
Ask HN: How does HN remember client sessions without using cookies?
It did receive almost 2k upvotes on HN.

Further She has emails from Google ATAP(one of their supposed R&D departments) in which they note they invalidated her patent after getting caught...

https://news.ycombinator.com/item?id=18566929
> I'll finish this by saying that ReasonML will make you a better JavaScript developer. As will probably learning any other language that challenges the way you think.

I wholeheartedly agree! But a lot of people don't want to be challenged by the language when there are already plenty of other challenges in their personal and professional lives.

With TypeScript you don't need to think half as much, and the thing your boss generally cares about (whether the feature shipped) gets done.
I was wondering about exactly that when I read the article. The description of how it works is really gruesome. Many policemen themselves have probably no clue how it works.
One counterexample is the American Revolution.
It would have been a more funny story if it were ads for Viagra ;)
Diesel generators at Hospitals and diesel motors running pumps for fire suppression systems are normally set up to keep running closer to the line of risking damage to the generator and engine.
Now image buying a $70 cable each time you need a new one
Not exactly a company, but if https://en.wikipedia.org/wiki/50_Cent_Party is a thing, I can't imagine that it's not also happening in a corporate context.
Think the major difference is that there's much less vendor lockin with 8base. 8base is just a GraphQL endpoint, letting you use any library you want to interact with it, while Amplify requires you to use their specific APIs with their infrastructure. 8base also has a built-in roles and access management system, and lets you do authentication with any OpenID connect service.
> The reason is because fewer people are getting married in the first place.

It's the divorce RATE that is declining, not the number of divorces.

The reason,as stated, is that the people who are getting married tend to be more mature and economically stable than they typically were years ago.
Being a Vim/Merlin user I normally just type `<Leader>t` to see the type of the value under the cursor (this maps to `:MerlinTypeOf` if I recall correctly).

What I do use type annotations for is debugging. If the compiler finds a type error, in some situations it helps adding type annotations to find where the actual error is.
The matching is in itself a violation of privacy, at least if you interpret the right of privacy as "The right to be left alone", as former Supreme Court Justice Louis Brandeis put it.