skysight-inc/HackerNews huggingface dataset:
Indeed, that is basically what you get from unions, except the exhaustiveness check.

Unless I'm mistaken, if one were to later implement a new class that extends AppState, all existing code would compile, but possibly fail or misbehave at runtime, unless you meticulously checked every place that tries to determine something based on those derived types.

In TypeScript, adding a new case for an union and not handling it everywhere is a compilation error on every incomplete usage site.

For example, try deleting one of the arms of the switch in this playground: https://www.typescriptlang.org/play?ts=4.2.2#code/C4TwDgpgBA...

I have to say, the default diagnostic isn't brilliant, but some tooling will give a better error and actually point out the missing arms, instead of complaining about the return type.
A blogging platform with no interface
[Flutter Eng. Dir here]

I would love to learn more about your experience. Would you be willing to file an issue and either post it here or CC me on it?

flutter.dev/support
I have friends who have both due to being developers, and; honestly - performance between the two is staggeringly similar.
Woolly Mammoth Revival would be a great band name.
Sorry if this is meant to be a joke and I'm taking you seriously, but yeah, kinda? Just based on a read of the relevant wiki page anyway since I'm not the biggest Eva fan. It seems to portray trading individuality for oneness, though, and that doesn't fit with my beliefs.

I view it more like: the thing that differentiates us from the other animals is our ability to create and exchange ideas quickly (latency) and thoroughly (bandwidth), and those ideas are a state of matter that seem totally dissimilar to our animal bodies. We talk about matter not being created or destroyed, so what is a new idea? What are ideas made of, and where do they exist? I don't know, but I believe my individual dense collection of ideas is my real "human" individual self if that makes any sense.

All of humanity's various -ists and -phobias, on the other hand, seem to be about protecting our animal bodies, the food they need to eat, and the spaces they want to occupy. How much racism has historically stemmed from fear of a group of people in worse financial condition than one's own, coming in willing to work for lower wages thus threatening one's own stability in jobs, housing, food, and so on? How much homophobia (especially towards men) stems from fear of a gay son threatening generational wealth that could historically only be passed to male heirs?

If humanity could collectively lose the need for all of that hate we can still have the "individual", and in fact many individuals at any level you could slice the One. The highest-bandwidth and lowest-latency links are (for now) obviously between the ideas in one's own brain, but similar densities form between people in committed relationships, between close-knit groups of friends, and so on. I just don't see any other path forward now that we humans have spread across the entire Earth and can communicate with any other person in realtime. So much land is "private" now. Where are people going to live? Depopulation should not be the answer, because that's like giving the One a lobotomy. We are all already neurons in a giant brain, like it or not, so I prefer trying to like it :)
Well, it's definitely suspect now that RSA is broken.
> ½ X ½: oof. You can sorta do it, like "add ½ a half time", but the concept is an impediment that isn't helping anymore.

On the contrary, continuing to conceptualize fractional multiplication exactly as your "1/2 X 1/2" as addition example served me well. My wife—with a higher measured IQ than mine, FWIW—evidently can't see it that way. She basically stopped learning math when multiplication of fractions was introduced (it's interesting that one can continue to earn decent math grades, regardless) as all the results felt arbitrary and magical to her, and still do in middle-age. This is actually a very common point for students to stop following WTF is going on in their math classes and never really get back on track (yes, all the way down in, what, 2nd or 3rd grade) from what I've seen; factoring is another, later on.

"1/2, added 1/2 times" is precisely how I think of it. If I can't just pattern-match or rule-follow my way to a solution (because I've forgotten the rules, say) that's still my line of reasoning to figure out what to do to get the solution.

I do exactly the same sort of thing to come back to my senses if I get lost or forget exactly what is happening in fractional division. "How many times does 1/2 fit in 1/4? 1/2. How many times does 1/4 fit in 1/2? 2." Even if I have to manipulate some things to figure out the result with uglier fractions, that's absolutely how I think about what I'm doing as I do it, and it keeps me focused on the ultimate purpose of the calculation. I imagine that's also wrong, according to the author.

In short I can vouch that yes, that exact thing was very helpful to this particular person, including for multiplication of fractions. I truly don't know how else I might have understood those problems, to avoid joining the ranks of the mathematically-lost as early as lower elementary school.
> In most cases they look back 4 years, 2 for younger people (till 23)

So if you're 22, the crime you committed when you were 19 won't count against you, but when you turn 23, it starts counting again?
How to Administer RNA – and How to Do It Again
VC Multiples Are “Pressuring” PE Funds
Conversely, a lot of management have zero interest in knowing this kind of detail. It may not be possible to get the info fed back. People may be punished for not following the process, even if it's impossible to get the job done by following it exactly ( this is a very common dysfunction!)
I can fully believe that there's some cleverness going on with node file I/O - but there should be no meaningful difference in performance between returning the result via a Promise, versus a callback.
> might get construed as

> is not intrinsically

Your post does not contradict the parent.

For better or worse, any type of interaction (professional or not) is occasionally used as a side channel for romantic interests, and so risks getting misinterpreted as one. Cyber-optimist hopes that online dating platforms will pull this ever-present shadow out of everyday socialization, or at least de-mine the workplace, have proven futile; enough people want the ambiguity. The only reasonable option is to grow a thicker skin and learn saying no and laughing it off.
I can really identify with finding Ian Malcolm as inspirational for the positive sides of science. In Jurassic Park the contrast between the do-er scientists (those engineering the dinosaurs) and the think-er scientists (the more abstract theoretical scientist) was pretty starkly and, now that I've been working for a while, correctly portrayed in exposing the motivations those two classes of folks will tend to be working.

If science is a career to acquire cash then it's quite easy to get compromised into focusing on the wrong motivations even if your intentions are quite pure - abstract fields tend to be rather "useless" and thus the same influencing power and money isn't available leading those folks to have a much clearer ability to ethically reason about problems. When you've got co-workers depending on a project going forward to keep a roof over their heads it's a lot easier to compromise morals.
If I saw a proposal to make tax codes simpler, have people file taxes with a good app provided by the IRS etc and then I saw a politician vote against it, while being funded by companies benefiting from the status quo...

I'd just not vote for that person again.
The page lists supposedly rational reasons for wanting to do this but I think it's really just a romantic idea with no rational justification.

Introducing new species into ecosystems is always risky, whether or not they're extinct. No one knows what would happen if we start "resurrecting megafauna". No one can say if reintroducing Mammoths will have a positive, negative, or no affect at all on climate change. The idea that scientists can answer questions like that is wrong.

I'm all for conservation but this isn't that. This is "because it's there".
ThredUp S-1 IPO
They have backups in Canada and Egypt.
> DOJ vacated the consent decree on studios owning theaters, but that doesn't mean that a studio exclusively screening its films at its own theaters will be allowed.

Who's going to stop them? "We're pro-business" says both R and D.
I agree with you. I don't get why people are denying the experience of others: DRM and anti-privacy measures improve sales, period. If it's free, people just take it and don't think twice about the creators. Best observed in open source software, where even maintainers of critical components can go without much of a payment, never mind a living wage.
I do have repro for MacOS swapping even though it's can just be dropping filesystem cache. Obviously 200GBW / hours is when Windows VM is running and there is 5GB of swap usage, but again there is still plenty of unused memory.
Not to mention the API and computing model of a supercomputer is vastly different to a phone.
I'm glad we can be nice, stalking and all :D. I think those are very valid points, and I think Flutter has a much more natural place as a framework for mobile apps, or desktop software. The gallery showcase feels like a half-assed attempt at creating web-site like pages, that as you pointed out, all feel wrong. So using flutter to develop something like that, I think I'd have agreed with you. However, from just the app side, I do feel flutter developers have made the UX very much in line with that of apps. I rarely know if an app is made using flutter, or pure android (as for iOS, I have no clue. The cupertino stuff looks like iOS to me, but I also have no clue).

I'm also not entirely convince that native apps with flutter is a good thing, especially considering that I'll be just another attempt at providing an opinionated UX stack that is completely different from that of the native experience.

So, maybe we agreed more than we thought. I also believe that a native experience, one that matches the otherwise existing UI interactions should be king. Throwing App UX paradigms into website or desktop app bound to feel terrible. Maybe it can be made more enjoyable to use with better configurations more in line with the respective platforms.
> If you just want to make a living from your software

This mindset is not compatible with creating multi-billion dollar software like Windows or GTA 5. The only way to do that involves financial structures that are more complicated than just making a living.

That's not to say I think such software is necessarily a good thing, just that it wouldn't exist without aggressive profit optimization.
I prefer Apple Music, but my wife likes Spotify for the social aspect. I have other family members on the plan as well that reimburse me so it ends up paying for itself.
Dropped because OKTA will issue an additional 21% of their outstanding stock to make the purchase, diluting existing shareholders
Could you back up "semi incoherent"? His story reads perfectly reasonable to me.
The CanvasKit renderer[1] is highly concerning to the general health of the web. It's nice that it's easy for developers, but it remove all the power of the web.

To an end user, their accessibiliy tools, & user extensions, the page might as well be VNC'ed in to some system. Everything is opaque. There's no HTML elements.

I can not state strongly enough how immoral & unethical this path is. Bending the web to the developers will & breaking all the contracts of what a web page is a grevious act, is enormously harmful. This is one of the worst possible things that could happen to the web. Please for god sake don't do this to us. Don't injure the web like this.

This will be raised again and again and again until the ends of time as an incredible black mark on the name of Flutter.

Edit: constructive feedback welcome. Whether it's me or others, folks pointing out this peril often find themselves hit by downvotes as I do now. This seems like an existential challenge for the web, to keep humans able to be in the loop when browsing the internet. We would all love if you would defend or explain or have something to offer in your critiques about this crisis.

[1] https://flutter.dev/docs/development/tools/web-renderers
They dont, however, they may end up becoming their own ethereum ecosystem.
John Cleese does management training videos! These are still damn funny, relevant and relatable more than 40 years later.

I remember another one from the same series called "Who Sold You That, Then?"
It is possible (even likely) that I've misunderstood people who were just being hyperbolic and didn't mean to be taken literally, but my impression was that some were saying that literally no charity organizations should be necessary?
I (somewhat..) understand the "but then the wealthy are determining what gets done" thing, as a reason to not rely too much on it, but it seems clear to me that there are also major inefficiencies in having to go through a consensus process of government democracy, rather than people simply acting in smaller groups, independent of a larger consensus, to further charitable causes.
It seems clear that there are cases where charities work better than govt programs alone, and it is a clear error to think that all charities would be better handled as a govt service, even if some would be better handled by one.

Hmm, if the government were to run a quadratic funding of charities thing, with only rather limited requirements for eligibility, perhaps that would somewhat alleviate the "undemocratic" complaint? (It would have to make it illegal to pay someone else to participate in your stead though.)
Thanks for the tip! Looks like she put the PDF of the book up here: https://math.jhu.edu/~eriehl/context.pdf
[Flutter ... here]

Currently I'm counting four or maybe five different HN users in this thread indicating this affiliation. I appreciate this open look into the organization. We're probably getting a more honest idea about what really goes into the sausage. Still, your PM might be less happy about this thread...
https://github.com/rxhanson/Rectangle works great for me!
I think everybody knew that it came as a low threat to children.

But TFA also says that teachers were 25 times more likely than the children to go to the ICU. That's not negligible. And teachers are understandably irate that they're being asked to take their lives into their hands while only the threats to the children make headlines.

That's no excuse for threats. That's not how polite discourse is done. But neither is a headline like this, which completely omits the threats to teachers.
Maybe publish a Flutter showcase app on both appstores? With Apple's store you'll probably have to jump through some hoops to provide some useful functionality, but it should be doable.
> Brilliant

As someone who struggled with Math in school I've considered using Brilliant to bone up. Have you found it useful in that regard?
> Frankly, it sounds like a PITA to have IRS calculate your taxes with poorly written software, and then have to challenge it.

That's not how the proposed systems work. The proposed system is: gov sends you a notice "here is your filled out tax return based on everything we know about you" and then you look over the return, make any modifications you believe are correct, and send it to them. You're not "challenging" something.
That's not how science works. Yes, if your algorithm is simple enough and you can create an implementation, then it is good that you produce a working version. But it may be more complicated to implement the algorithm than writing a paper. This doesn't mean that the implementation is impossible.
I think I read what would our poor great-great-grandparents think of the food we eat today?

What did they eat, meat rarely (they couldn't afford it all the time), mostly vegetables (mostly home grown), salad-stuff, beans, maybe fruit and the odd nut.

Maybe going back to this direction, is the way we should be leaning.
When Chrome has become synonymous with the Web :facepalm:
Imagine two experts advising a leader. They're not going to fully communicate all of their expertise to him, so his decisions on topic A will probably be worse than expert A, and likewise for topic/expert B. He's going to make better decisions on joint A+B tasks that require combined and balanced knowledge, but both experts will (not incorrectly) see him as "not knowing as much about A/B as I do."

You can substitute the individual leader for a group whose consensus must be obtained and get another parable illustrating the same principle.
It's surprisingly hard to find if a given memory address is free or used... After all, it might have been freed in the application memory allocator, but still part of an allocation pool... Or the allocation pool has been freed, but not returned to the kernel via MADV_DONTNEED. etc.

Besides, if one is making a copy of a big (ie. greater than a page) piece of data to make modifications, one probably should have used some kind of data structure that deduplicated the parts of the data which weren't modified - that saves the unmodified parts of the data needing to even be read/written by the CPU.
I've thought on this a lot in the past and the only thing I have hope of addressing it is making any sort of personal/professional relationship spill overs societally verbotten. When folks are at work they intend to work and making any assumption against that line is just going to lead to pain. I really like the team I work with, but I don't ever want them to mix with the group I socialize with solely due to the fact that while at work I want to work.
The last part is extremely true. I have known many engineers that worked on the B-2 and have since retired. There's very little chance many of them would come out of retirement and honestly I don't think the government would pay for that.
An SQL query walks into a bar, goes up to two tables and says; do you mind if I join you?
The US doesn't do "rehabilitation", they only do punishment, and it's ad infinitum.
That is irrelevant. A deal was made, it was broken. A new deal was made, it too was broken. The UK is untrustworthy and should not be included in deals until it proves it can live up to the older deals.

Fool me once, shame on you. Fool me twice, shame on me.
Just tested https://gallery.flutter.dev/#/crane in Chrome and Safari on Mac and if I go to another tab and then back to the fly tab it just shows a gray screen. Does not inspire confidence.
Yeah I don't really understand what the parent comment is trying to say. They wouldn't have this argument if it was a new processor from Intel or AMD, just seems like the point is moot - developers will _always_ utilize available resources, it doesn't mean that the pursuit of more efficient resources is not worthwhile.
I think the difference is that the scope of DynamoDB is limited. A breach in authentication could result in the complete compromise of a company.
Why take out the sub-ingredients? Unless you regularly use "DEHYDRATED POTATOES WITH SODIUM ACID PYROPHOSPHATE" when preparing hamburger at home.
Most of the companies are Initech ;)
They're not really doing the same thing but you're probably correct that most customers are just relying on AD. I can easily imagine MS beefing up their identity offering to be more on par with Okta.
I've been in that situation 3 times, I choose React Native and Flutter each once. I was forced to use Ionic. I would NEVER use Ionic again, terrible experience and very difficult to get decent quality/performance. I like Flutter's technology much more. I like that it is natively compiled. I dislike that it has it's own UI toolkit. React Native with TypeScript is a highly productive environment but I LOATHED the developer experience and any code that had performance goals was way harder to be successful with, not impossible but the threading model that RN imposes (it doesn't really thread at all) was hard to make the UI snappy and crisp as it should be. I've played with Xamarin also since I was a .net dev for 10+ years (I'm old in the industry 25 years now) and the developer experience was actually pretty good but the compile times and the UI performance were not. Though that was not a production level app and I might have been able to make it work.

tldr; If I HAD to do cross platform I'd use the following logic to choice one:
If I have a team of react JS/TS devs: React Native
else if I have a .net team: Xaramin
else: Flutter

Then I'd apply for a job writing native apps in Swift/Kotlin and run away ;)
Optimistic rollups in the short-term, but I'm very hopeful for EVM zkRollups in the next 6 months: https://zksync.io/faq/intro.html
ory.sh
Would have been be nice if they provided a way to use Kotlin Native as a language for Flutter instead. Not a JVM Kotlin of course, because it's too slow for the native mobile apps. Or, even better, Rust. That would be very impressive.
I'm a big fan of Spectacle App https://github.com/eczarny/spectacle.

* Edit* Apparently Spectacle has been discontinued.
I've used this a lot and it is stupidly expensive typically - hopefully this acquisition makes it more pervasive because they do a seriously great job at what they do!
Flutter Plasma: Showing the capabilities of Flutter on the web
I agree with you that attraction is a multi-dimensional process which is very poorly captured by online dating. What I am trying to explain is mine and others' observations that men who don't succeed at present-day online dating , that would have succeeded at real-life dating in the past, are not succeeding today in real life. I am blaming online dating and social media for this phenomena, and attempting to use that rationale as an explanation for why the percent share of sexless men has grown from 18% to 30%, as indicated by the linked study.

Have you seen these "conventionally unattractive" men that you describe succeed in a totally open and free dating market as young 20-somethings, or are there extenuating circumstances (early 30s, string of failed relationships, etc.). I will fully admit that you are observing something I am not observing and that my rationale must be flawed if you're witnessing 5'4" nerdy, goofy men lacking in charisma and stature experience consistent success in real life dating between 18-26. Of those I saw who did achieve some success, I've witnessed a lot of them get cheated on by their "girlfriends", but I haven't witnessed a lot of them experience free-market success and dating freedom of choice, at least not compared to the 6' high-power athletes I know.

I disagree with you on a few other counts here, but most strongly with the statement "dating will emerge naturally as you get better at making friends". That is patently false. Dating will emerge naturally as the peer-relative superior status of your reproductive and companionship potential becomes obvious. Dating is not a process by which to make friends, it is a process to determine who will have a chance at impregnating whom. "Getting better at making friends" will net you a fraction of the returns that "getting muscles that show through a t-shirt" will, all other things being considered equal.

Overall, I do agree with you that men who fail on dating apps need to try different approaches in real life, though.
They certainly aren’t equivalent by any means. But disproving GP’s point that targeted ads are used because people want them, therefore should be allowed.

Targeted ads and the data slurping involved is immoral to me. Not human trafficking bad, but probably as bad as working for coco cola.
While not a tiling WM, check if Divvy could suit your needs. You can set up hotkeys to resize windows to parts of the screen. The screen is divided into a grid.
Acquisitions don't happen exclusively because a company is buying out someone who is better than them.

Sometimes they happen so a company can buy out someone so they won't have the chance to become better than them and a serious competitor.