skysight-inc/HackerNews huggingface dataset:
> I figure there must be something wrong in my approach or in my ts config (no explicit any).

This is a heretic/unpopular opinion, but I think especially for existing JS/React projects, the laxest possible TS setting is the way to go.

You should be able to get to no type errors in your existing JS project with not too many changes. In these contexts (existing projects) I like to think of TS as more editor experience support than seperate language. Modern React is very friendly to TS automatic type inference, so IMHO you should be getting decent benefits from typescript without annotating anything at all. And instead of fixing complicated type errors for no real gain, just // @ts-ignore and move on.

I don't know what your specific issue is with styled-components. Should work pretty much out of the box? My suggestion would be to use CSS objects over string literals because that way you get typechecking for your CSS.
A first look at Unreal Engine 5
Really! The ULA person said it was the simulator used to train astronauts (it was inside a full scale model of the capsule) and it was just buttons.
> Any pro typescripter have any tips for how best use it in existing Node/React codebase?

https://react-typescript-cheatsheet.netlify.app is a super detailed guide to exactly this, complete with worked examples for lots of common cases.

Styled Components has a specific section in the docs on using SC with TypeScript, which might be useful too: https://styled-components.com/docs/api#typescript
It’s because housing supply is limited and interest rates are low. People will bid against one another until the reach the limit of their ability to pay, and low interest rates mean the payments are low for large mortgages. To reduce prices you will either need to increase interest rates or increase the housing supply.
Likely for bashing CL (however lightly). People get tetchy.
As a prelude to what i'll type below I hate these things. They are not useful and I believe they are detrimental to employee productivity through the "panopticon" idea of management.

There's no need in my eyes for regulating this or getting in quarrel over workers rights. You, the employee, sign a contract with the employer to perform some work for some compensation. If the employer wishes to run this type of strategy on their own hardware I do not see a problem with this. You can, and should, find a job that respects you as a worker. What we are seeing here is the MBA-style spreadsheet management turned into software.

This "panopticon" management increases turnover rate and decreases productivity. I have personally seen it. I worked IT in a company that had this software (I was a low level sysadmin and had no control). People would spend an inordinate amount of time finding ways to hide their activity instead of just quickly doing what they had to do and moving on. The solution isn't to complain, or call for regulation, but rather just leave your job. If the software isn't being installed on your computer then the company is completely okay to do this, no matter how damaging it is to their bottom line through subsequent lost activity.
You can do that in most (all?) Scheme implementations. Macros are powerful, yo.

This goes back to another discussion here: just because you've implemented a language doesn't mean you've implemented it well. Sure, I can implement all the syntax of what I want. But is it fast? Does it report errors well? Am I enforcing my type system, or can I accidentally drop back into normal Scheme?

I think a lot of times new Lispers learn macros and, drunk with their newfound power, start writing 20% implementations that get them 80% to mature languages. And if you don't need or want the other 20% of a mature language, then that's fine. But if you do need or want the other 20% of a mature language, then you'll quickly discover that the Pareto Principle[1] applies. Lisp metaprogramming can be super powerful, but it's not a magic bullet: not only does it not kill werewolves but you can shoot yourself in the foot with it.

[1] https://en.wikipedia.org/wiki/Pareto_principle#In_computing
Role of Vitamin D in the prevention of Coronavirus 2019 infection and mortality
Lots and lots of people are better off renting than buying and those people need to have a supply of housing.

If no one can make money renting properties, where will this supply of rental properties come from?
Let the hop wars begin then..., I know it's easier for wallet makers to add more hops to anonymizing tech than for chainalysis to deanonymize the transactions....when 90+% of the wallets do this by default, that company will probably have to shut down.
There are many more examples of law abiding citizens leaving
Reactive Input/Output Objects for Java
Landlords are bidding against each other because of limited supply. People with excess capital need it to go somewhere. Stocks, bonds, real estate.

It's like complaining people who buy stocks are bidding up the prices. While true, there is no vitriol against stockholders vs real estate owners.

One could even argue that buying real estate does more for the economy than buying stocks - you are liquidating a developer to build more properties, and banks to give loans. Buying stocks... I guess drives up the stock price, allowing the company to borrow more money?
I call these companies RHBs: rich, huge and boring.
> generally happy about living in NYC

NYC has insane housing costs too. And high taxes. The public schools are hit and miss. Some are really good, but most not.
Is a nice catchy phrase, but not a good model
Dominik from Memgraph here. Good questions!

All editions of Memgraph persist data to the disk via write-ahead logging (WAL) and periodic snapshots for log compaction so even though Memgraph is designed to be in-memory first, data is always backed up to disk. If you enable asynchronous (periodic fsync) WAL, you can trade off a small window of durability for better performance.

Before 1.0, Memgraph leveraged the RAFT consensus algorithm for HA which worked great but had some performance implications. Based on feedback from our users and customers, we have decided to switch our HA implementation to the streaming replication model (similar to PostgreSQL) with automatic failover.
That's a great resource.

Why is this rule (Dead Sea Effect) chosen for promotion more than all the other ones that list?

It must be because as a representative it can do the least damage (Dilberts Principle) or because... ;)
How do you increase supply in densely populated cities with extremely strict planning laws & regulations?

The solution is to ban short term leasing in cities, increase taxes on sales of property within a certain timeframe and increase taxes on owners who have a property with nobody registered to live in it.

Basically you don't want people buying property to flip it quickly, to hoard it or to have a holiday home. You only want buyers who'll live in the property and/or rent it long term.
Stenography at German Bundestag (Parliament)
Know your target audience too. I'm not sure if I'm it, but reCAPTCHA gives me enough friction that I often abandon pages with it. Simply using Firefox's antifingerprinting feature plus some ad/tracker blocking is enough for it to be miserable every time.
The pain needs to propagate up the debt ladder now that it has overflowed the first layer of rent payers. When landlords aren't getting their incoming payments, there should be growing political will to do this - freezing mortgage payments, interest, and a large part of real estate taxes.

It's either now, or a future crisis when the black hole of debt has grown even larger.
Can God Get DDoS'ed?
Housing only ever becomes unaffordable when building stops. In the UK property rights and markets have kept the vast majority of tracts unavailable for housing development and in the US zoning and environmental impact hearings achieve the same result of making most land impossible to develop.

All around London there are bucolic villages and one of the most extreme property value bubbles is in the San Francisco bay area which is largely reserved for extremely inefficient and wasteful single family homes.
It is pretty cool that the actual interface is similar to this simulation (at least trivially so). Guess I'm qualified to be an astronaut now?
> Additionally, the present projection is not all- encompassing concerning potential effects of confinement: such as (prolonged) grief, elder abuse, this version posted May 2, 2020. The copyright holder for this preprint (which was not certified by peer review) is the author/funder, who has granted medRxiv a license to display the preprint in perpetuity. It is made available under a CC-BY-NC-ND 4.0 International license .
increase of sedentary lifestyle or change of diet. The pandemic is also likely to have multiple additional consequences including distress due to job losses and financial hardship. The projection also does not model potentially positive changes in behaviour, for example reductions in car accidents and air pollution. Due to frequent co-occurrence of certain phenomena it is possible that a single individual may be affected by more than one of the factors presented. When possible, data were adjusted for age, sex and socioeconomics. However, for several factors, possibilities to do so were impeded by virtue of limitations of the current literature

So basically "look at these nice numbers, they might or might not have a meaning".

There are so many covariables, I have a hard time believing we have the tools to even gather the data we'd need to produce useable results on that topic.
I always use IntelliJ for code reviews, works great.
My apologies, it was too late to correct my post when the complaints started coming in.

...but then again, who reads on a mobile device anyway (j/k) ;-)
Have you tried Bits'n'Picas?
That was the most succinct explanation of those three things which i always feel vague and unsure about. e.g./f.e./i.e.

Thx. We will see if it 'sticks' :)

But...i often see f.e. written, could it be a regional difference like US vs. british spelling?
What does game theory say about academic cheating?

The hardest grade I ever earned was from my peers. Teacher let us choose our own project teams. We competed against other teams, which comprised most of the grade. Then team members graded each other to apportion the grade. (Teacher retained discretion to account for the human condition and fairness. For example, "most improved" students would get high marks.)

The remarkable thing was kids are brutal towards cheaters and freeloaders. Almost like it's hard wired.

--

The Logic of Collective Action has prescriptive game theoretic strategy for freeloaders and defectors: require collective bargaining.

Governance remains among the hardest of problems. Cheaters, freeloaders, thieves, bad faith, fraud, and so forth.

Peer review in the sciences is currently innovating. Share your data, show your work.

Good government (progressive) style movements begat transparency, accountability.

Who, if any one, is innovating in scholastics?
That depends on his audience probably. I hate it when I have to give permission to things in my Gmail account.

https://www.bart.com.hk/why-you-need-to-be-very-careful-abou...
China’s ambiguous missile strategy is risky
Parallax needs to end up in the same bin with the <Blink> tag.
Speaking of lessons, the site is down for me right now, but here's an archive: https://web.archive.org/web/20200513153013/https://bbirnbaum...
To answer your first question, the main difference between Memgraph and Dgraph seem to be:

1. The graph model: Property graph for Memgraph vs RDF for DGraph (Depending on the use-case you have one model might be better than the other. E.g ontologies are better served with RDF, whereas graphs with a lot of properties and labels are better served by the property graph model)

2. Memgraph is an in-memory first system where is Dgraph is a disk-based system. Again depending on your use-case and the performance you are looking for, an in-memory system might be better suited.

3. Query language & Ecosystem: we support Cypher and the Bolt Protocol (Same as Neo4j) so we work with a lot of the existing graph tools.

In terms of performance, we don't have official benchmarks yet but we have a few clients that test Memgraph and Dgraph and reported a 3-5x in read performance and about an 8x in write performance for their specific workloads.

I hope this answers your question.
Best Practices in JavaScript Array Iteration
I think it is expected that we will see the full spectrum of reactions to this new work environment. Everything from :
- whether you are living single or with a significant other
- happily married or have your relationship just scraping by (As an aside, I read that China has seen a spike in divorces after their lockdown)
- have kids or no kids, have teenagers or toddlers
- have a comfortable home office or are working from your kitchen table and sitting on a dining chair
- are introverted or extroverted
- have great co-workers in a great workplace environment or if you dislike your office and/or co-workers
- if you have a long commute or live a relaxing 10 minute walk from the office

... the list goes on and on.

It is not surprising that you will have every variation of the above. But my guess is that for the majority of the people, once they setup a proper home office, the would likely find working from home to be somewhere in the "mildly positive" to "really positive" side of things. Even if some disagree with that, at the very least, I imagine that most would agree that they would like to have the _option_ to work from home whenever they choose.
> Results: The study projects that the average person would suffer 0.205 YLL due to psychosocial consequence of COVID-19 mitigation measures. However, this loss would be entirely borne by 2.1% of the population, who will suffer an average 9.79 YLL.

Doing the math for the US, based on a population estimate of 330 million:

0.205 * 330million = 68,265,000 years of life lost based on the data lost based on the data from this study.

68,265,000 / 78.6 years (Average life expectancy of the US [0]) = 866,511 lifetimes lost. IE, the same impact as this many 1 day old babies dying.

68,265,000 / 38.2 year (Median age of US resident [1]) = 1,787,041. IE, the same impact as this many median age residents dying.

[0] https://www.cdc.gov/nchs/fastats/life-expectancy.htm

[1] https://www.statista.com/statistics/241494/median-age-of-the...
A shocking amount of very sad enterprise developers I'm afraid. I interviewed a SWE candidate recently who told me they learned java and used eclipse in college. I suggested he ask for a refund of his tuition as a joke.
Or you could reduce housing demand by putting limits on immigration.
Frankly, that's bullshit. Now you have to trust your country or some other private entity, without all the protection mechanisms modern Web PKI has.
I reckon whether something is necessary or not is a matter of opinion, not a matter of fact.

Personally, this is one of the most useful and thought provoking demonstrations of leveraging pre-existing information that I have ever encountered.
Sorry, I didn't even realize that it was a code block when I wrote the post.
I guess I was wrong about the dot. But I also remember the taper on the exclamation mark being finer and less blocky. Obviously I remember through rose coloured glasses. Wolfenstien3D didn't look as bad as modern screenshots show either! =)

I don't doubt the C64 designers did the best with what they could; but I was absolutely impressed with how good the "!" looked on that VGA screen.
What I appreciate about this update is how little code it breaks and how little future code is likely to be backwards incompatible. Or to put it another way, what I appreciate is the sameness of the programming environment. To a first approximation nothing needs to be rewritten and newly written code will look just like existing code. What I appreciate is OTP is better and there's nothing programmers have to do (to a first approximation) to get that betterness. Instead, rolling out the betterness is a system administration task.

Basically, what is exciting is how well engineered it is.
Facebook launches its Bitmoji-like avatars in the US
You can simply click a button in the Google Cloud Console to get a Dev environment, and then click another button to run at scale. There's an awesome demo out there, I'll see if I can dig it up
Sure thing! Totally respect your opinion Pete. I really believe in radical candor.

To give a bit of context, most people signup for our content specifically for the case study format (including, surprisingly, Fortune 500 execs). Tech scale-up product leaders tend to use it as a resource for internal education. (They tend to use the keyboard navigation though, not their mouse, the clicking is indeed tedious!)

With that said, we also know that many people prefer long form text—which is totally fine. The good news is that there's no shortage of Medium posts for that!

Thanks for your feedback again Pete. Cheers.
That was golang.org/x/crypto's fault for using internals not covered by the compatibility promise [0], sorry about that.

However, we try to hold x/crypto itself to the same compatibility standard as the standard library, so I think simply updating x/crypto at the same time should have made it a smooth update.

[0]: https://news.ycombinator.com/item?id=23164795
Using Edge Computing to Build a Faster Web
Ouch, yeah, it's basically and exact ripoff
> Instead, "god did it this way" refers to god being everything, the universe, including the human societies: god is not something above human world as a guy in the sky (in fact bible never presents that image, it's more something from monty python), god is the personfification of the world and everything that happens in it.

I disagree that this is how the Bible presents God, but I wholeheartedly agree that interpreting some stories in the Bible while treating God as you have describes has value in the lessons that they teach.
Thank you! We are here to do our fair share and provide the community with the right tools to solve different kinds of graph problems. Exciting space nevertheless and growing fast!
> It was difficult to use libraries with higher order components or just abstractions in general

It's probably a good idea to learn how to use generics (type parameters) effectively. For me, it helped immensely to think of them as basically declarative functions in the type system, with the generic/type parameter being just like a function parameter. The cool thing is that while you have to declare them on a function, a lot of times they can be inferred at the call site. With higher level abstractions, most of the time the types just flow through these generics and you get what you want at the other side just based on inference.
Video...

I wonder if they talk about SPIFFE?
in Racket you can do it either way, and perhaps these sorts of issues should just be solved with an auto code formatter?
I don’t know, the code itself is shorter and easier to read than the readme initially was. And maybe this will dissuade folks from installing and using this if they’re not committed to maintaining it as part of their dependencies. Dependencies do require your maintenance and oversight of new code revisions, but few people schedule such time. It’s essential though, any dependency could arbitrarily change its behaviour at any time, technically breaking your code until you can produce a fix. So dependencies are technically yours to maintain — you just choose to limit your maintenance from a “fork” to a version string and API usage, but the maintenance burden still exists...
> The answer to this is to increase the housing supply

I'm not sure what you mean by "increase housing supply": there are many ways to do this, some simple, some complex and challenging.

If you simply mean "build more houses" (this is the most common answer I see), that comes from an oversimplified view of the the market.

Too much for a HN comment but some variables to consider:

- financialisation of residential property affects vacancy rates (and by extension market supply). When selling and renting aren't the only two options for extracting value from residential property, the equation becomes a lot more complex.

- tourism is another obvious one: while tourism is economically nice, it's not a stable source (see current crisis) and overtourism negatively impacts many aspects of society, housing supply being just one of them. Building more housing without accompanying measures means slightly more AirBnB, further overtourism and accompanying negatives.

- urban planning. A lot of supply problems are regional, and caaused largely by poorly planned distribution of services, and places of work. Building more in one area will lead to an oversupply in another area where infrastructural change could simply relocate demand.
What Elon Musk has proven above all else... is how little powers local counties / local municipalities truly have in these situations.

In most cases, the counties compete against each other, trying to host bigger and more expensive companies within them. Amazon proved the model when they were competing in 20+ cities for HQ2... and all the cities tried to offer lower and lower taxes to Amazon.

Same thing here. Tesla just makes a few threats about leaving the county, and then the county capitulates. Ultimately, these companies have the power to change the counties that host them. Even in open defiance of the law.
You transcend parody: http://wondermark.com/c/2014-09-19-1062sea.png

I seriously doubt that you are unfamiliar with how people respond to sea lions, but you should get used to it. You are not entitled to my or anyone's response.
Everything you listed count as legitimate expenses.
And HN users only worry about “cloud lock-in”. I’ve said dozens of times that the typical largish company is locked in to dozens of SAAS offerings that would be a major pain and expense to migrate away from.

Once you choose your infrastructure, you might as well go all in. Just look at their dependence on SalesForce.
NYCHA, of course.

(This is a joke. Unfortunately, the joke is on NYCHA residents, and on those priced out of apartments.)
Banks can also bid. So when a property goes into foreclosure, the bank will often buy it at auction if there's nothing but lowball bids and resell it through the normal market.
Doesn't solve the "Copy of Presentation Final Final [2] (Matt's version) (Copy).pdf" problem though.

And trying to get people to use office 365's scs is going to be hard and if all your technical docs are in git makes sense to use on scs
Docker has a concept of layered images where only the top-layer is writable. The layer above the "scratch"[1] image usually contain all the files of the base images OS and that's what you set your root directory to. The writable layer disappears when the container is stopped. If you mount your DIY container into /tmp for example, the process running inside your container won't be able to access any OS functionality. You couldn't run a web server in such a container for instance. On the other hand, whatever your containerized process writes into the mounted part of your hard disk won't disappear when the container stops. Because of that, I wouldn't run untrusted code in it.

[1] https://hub.docker.com/_/scratch
That's a decent counterexample.

Though maybe people didn't revolt before, since ultimately the Soviets would roll in the tanks if they ever toppled Ceaușescu.
Har Bingo Talks Music, Inspiration and Career
I hear you, but do you have another solution to fix spammers invading a system? reCAPTCHA is annoying but I understand what it solves, I do type away.. And it’s true, sometimes I give up too.