skysight-inc/HackerNews huggingface dataset:
Using switch as an expression makes sense, just like using if as an expression (often written as a?b:c) does. It makes it obvious that all you are doing is changing one variable, and it makes initialising constants a lot cleaner.

Once you start making switch expressions, the break keyword makes no sense. And with pattern matching the case keyword technically wouldn't be nessesary for normal switch statements already, might as well drop it for the new syntax.

I find this completely reasonable, and I think it's very readable, especially compared to the closest equivalents: putting a single switch in a function and calling that, or using nested tertiary operators:

const sqlOp = op switch {
"&&" => "AND",
"||" => "OR",
_ => throw new NotSupportedException()
}

vs

function getSqlOp(string op) {
switch op {
case "&&": return "AND";
case "||": return "OR";
default: throw new NotSupportedException();
}
}

// ... far away
const sqlOp = getSqlOp(op);

vs

const sqlOp = op=="&&" ? "AND" : op=="||" ? "OR" : throw new NotSupportedException();
> But why would you care about that?

The reason doesn't matter. We should be in control of our own networks. Google shouldn't be deciding for us.
For various reasons, probably due to linguistics, programmers will often make dumb compromises just to avoid writing an extra few lines of code. Many of these constructs (see especially Python's new walrus operator) are trying to let people express things in the way they want so they'll write better code.
String.Format("Is {0} to read {2} {1} of the {3} out of place", "harder", "half", "because", "string is").
Has there been an in-the-wild exploit found for many of these micro-arch side channel attacks?

I still have reservations that Specter can be actually exploited, and certainly not by JavaScript running in a browser it seems (even without the timing fixes -- just too much noise in the system to get a real world exploit). All the proof of concepts I saw effectively needed a running start (and a much lower bar to clear). I'm still not sure if we are just making too much out of many of these attacks.

Also, many of these exploits require running native code to really even be possible, and a JIT offers a large degress of protection. Most of the machines I use, if you are already able to run native code, the battle has already been lost.

I think the security community can sometimes have Chicken Little syndrome. I most definitely wouldn't want performance enhancing techniques that might have side-channel vulnerabilities to not be produced or used because they might be exploitable in a use case (eg, web serving and rendering) that doesn't fit most others (eg, internal servers).
But not for an average yacht.
It's is amazing that no matter how good humanity is doing, there is always at least one end of the world type of meme circulating around the world and making ordinary and also otherwise smart and educated people full of anxiety. This pattern repeats it self across religions and cultures over and over through the entire human history. And every time they say that this time their prediction really will happen.
There actually is, probably to avoid the regulation in the first place: https://datatransferproject.dev/
As always, don't let facts get in the way of a good rant.
Side-channel attacks are some of the most terrifying to me, because fundamentally your code works fine, it's just some detail in the timing that gives away information. At least with buffer overflows there are automated ways to try and find them, like fuzz testing. It's not perfect, but at least it's something to try and validate you are doing the right thing. Is there some sort of fuzz testing that could potentially find side-channel timing attacks? Maybe some sort of statistical analysis on the timing results? I found this https://arxiv.org/pdf/1811.07005.pdf but it seems to be fairly recent, and I don't know how mature this area is.
The IPCC certainly has never said that "pre-1990" carbon emissions were balanced.

https://www.esrl.noaa.gov/gmd/ccgg/trends/full.html
New York definitely has an affordable housing issue but a vast over supply of luxury housing (a lot still going up to) that I'd imagine a good portion of these hires would be taking up.
On the original RaspberryPi it took a minute to recompile the kernel from scratch and 4 minutes to recompile all the standard programs. In comparison it took 10 to 11 hours to recompile the Linux kernel. Cross-compiling the plan9 kernel on a 2009 era amd64 computer took 20 seconds computer. And rebooting took few seconds.
OK but if that "known good" DNS server goes down or isn't available, you still have others you can fall back to. The device shouldn't just become completely useless. But that's what Google is doing here. It's their DNS servers or none, it seems.
Years ago I went down the route of trying to get USB over browser and it was not happening. Best I came up with was that if we did some real tricky stuff with making the device a “printer” and using some usb/printer emulation stuff. Abandoned it.

I assume like webBLE, that webUSB is Chrome only?
No. At work I run both chrome and Firefox on Ubuntu simultaneously with multiple tabs open. At home with Firefox on Debian. Never had problems.

Although both computers have 16gb ram.
Considering NYC residents were in favor of the deal over those opposed by 23% [0], the commentariat here and the press can continue their whining about how horrible 25,000 jobs are but the voters will remember. The Amazon pullout will be conflated with all the other issues in NYC (high taxes, declining quality of the subway, festering unfunded pension issues[1]) that it will be used as a cudgel for many years to come. All the politicians will now point fingers, first at Amazon but inevitably at each other.

More jobs is better than less jobs, increasing tax base is better than stagnant or declining. This is a huge failure for NYC and its tech community, and those who participate in furious intellectual masturbation on twitter don't seem to understand the real world consequences. This isn't a game, and it's extremely sad to see progress stopped for a bunch of worthless internet points.

[0] https://www.wsj.com/articles/majority-of-new-yorkers-support...

[1] https://www.valuewalk.com/2018/01/new-report-on-new-york-cit...
Surely you'd know, right? As Pi-Hole logs all of this stuff.
Given that ISPs like to play with traffic and have been using censoring DNS servers again and again I can't blame Google for taking away one piece of potentially failing networking infrastructure and using their own.

It's not nice, but it's not Google who started this.
Can we trust psychologists to tell us anything empirical anymore?

Plus, any article about big science that doesn’t mention CERN is quite literally pissing in the wind.
Apple and Google both approach this in very different ways. Apple is generally default closed, while Google is generally default open. See the way iOS vs Android has developed, or the way Blink has developed since forking Webkit.

Amusingly, the commentor you're replying to also agrees (while disliking it) in another thread[0]:

> It's just too bad Apple has turned from an early adopter to a slow follower regarding Web API's

In the sense of maintaining my privacy (and security!), I'm personally glad. I'd rather fewer features today in exchange for fewer privacy (and security) breaches tomorrow. Not that Apple's software QA has been great these days anyway...

[0]https://news.ycombinator.com/item?id=19170251
philanthropy is just a symptom of policy failure. it's less wasteful than luxury possessions, but those efforts eat up a lot of capital costs just through staffing, etc
I find the theory compelling but I also think the way is expressed strange. Maybe I'm missing something.

More than a "violence and virtue" history, it seems to me that the main point is cooperation brings a positive feedback of more cooperation.

In my view, the killing of the "alpha males" is actually the killing of the people unable to cooperate. The moment organized collaboration is possible, the individuals that can cooperate will be stronger than the individual that is unable to cooperate.

Not sure why this is not the stressed point in the explanation. Maybe it doesn't make good titles.
This is horrible advice. You're positing that there is no room for innovation within the software development domain. This is a stupid assertion.
Five New Amazon EC2 Bare Metal Instances
Not really, as far as the core browser engine tech goes. In practice it's too difficult to maintain a Chromium fork that diverges in any significant way other than the front end. Opera and Edge (per announcement) use vanilla upstream Blink.
Quora Answer: What is the smartest piece of code you have ever written/seen
Saudi Aramco Makes Existential Bet on Oil
Humans: nurture. Cats: nature.
Sounds like he could have his pick of VP of social media jobs at ad agencies.
What I said doesn't contradict what you said.
I'm curious. Can you elaborate in which ways the Constitution permits its enforcement through "an autonomous militia of killer robots programmed to enforce an Originalist interpretation of the Constitution"? If people agree the Constitution should be enforced in this way, what are the necessary legislative, executive or judicial procedures to enable it?
What if this whole time the wall is really to keep US residents inside the country to make sure those hard working pharma execs get their rightful money? The slats are like those parking garage spikes that go one way -- US residents stay in, and everyone else can come in but never leave, keeping the easily exploited workforce from drying up.

Nah, that'd never happen.
The prices of housing in China are mind blowing. As someone that built a house in Europe with the exigent standards of regulations, the prices asked in China are more than 10 times the cost. Given the lower income in the region, it does not make any sens, the cost should be even lower because a big chunk is labor cost. If the price of the house is 20 times the cost, why would anyone buy? In what industry in the world is such return rate expected? Even drug lords don't have it.
If housing prices are artificially high, but many homes are empty, rents must be low, right?

So I would assume it follows that the danger to the Chinese real estate market is consumer tastes shifting to just renting as is rational, which would destroy a lot of these property companies.

That is, your value estimate changes from a high probability of selling for huge profit to a high probability of renting for dirt cheap.
I don't think with china's regulatory framework and government's ability to rapidly change housing supply that foreign investment would use it as a store of capital.
There's a paragraph here where they talk about reviewing private messenger conversations between interns after they didn't show up for work one day.

That feels pretty invasive. Facebook tried to couch it in "genuine concern" for their safety. I'm not sure that holds water with anyone who's familiar with the workplace culture inside Facebook.
Sure, but if they can only be developed by parties who don't care for international law, they will be weaker and less effective, then they might otherwise be, and we can focus legal development efforts on countermeasures.
> Sales volumes in 24 cities tracked by China Real Estate Index System fell by 44% in the first week of 2019 compared with a year earlier,

Ouch! That's definitely a housing crash happening. Looks like it will foment angers amongst Chinese citizens, most of whom are avid real estate investors. Maybe this is what overthrows the authoritarian Chinese government, who knows.

https://www.scmp.com/news/china/society/article/2168025/publ...

https://www.nytimes.com/2018/12/30/business/china-economy-pr...
I dont. Consensus and standards take some time to develop. It's about an attitude, where companies willingly allow 3rd party clients to access their data, or allowing services to interop.

The quickest to market car isnt always the best or safest product. Consumer safety laws even the playing field a bit. Im not advocating regulation, but it is one way to achieve more parity between products.
Yes, but going to Mars is like setting up a colony in the Sahara next to a pile of radioactive waste. Terraforming las vegas is way easier because they have water, Mars doesn't.
It looks like you left out the 505 million dollar capital grant part.

>"In short, I do not see it as "comical" by any measure that any company offering to create 25,000 new jobs and redevelop hundreds of millions of dollars worth of property in designated areas "

It sounds like you aren't familiar with NYC. Long Island City has long since been "developed." That building boom started 18 years ago. The volume and velocity of luxury high rises appearing across the East River has been incredible. LIC does not need to be "redeveloped" nor is it some basket case "designated" area that requires incentives and credits to build there.
Article tl;dr: Consensus stifles innovation. This is not new knowledge. But it’s the organization’s culture that decides which is more important: See CERN, Bell labs, Xerox-PARC, HP, etc
> but less intuitive particularly for people coming from another language

Maybe for people coming from C++, but string interpolation is a feature in Python, JavaScript, PHP, etc. It's not exactly an unusal concept (like it was back when PHP started doing it)
My original point was that you couldn't write sed code that would result in a Word window opening up. This would certainly be possible if you wrote a sophisticated series of drivers and adapters around sed, but sed alone isn't going to get you there. Just being Turing-complete doesn't get you to the ability to run something like Word.

I'd also note that because physical computers have finite storage, you could by the same logic implement Word in a finite-state machine. You could implement the transitions of a finite-state machine using symbolic links in the filesystem. With enough of a surrounding framework, ls -l could be used to do transitions between machine states and drive the program.

So you can write Word in ls in the same way you can write it in sed.
Perhaps you haven't thought enough about the question? There's more than one big threat.
You misunderstood me. I was asking the question I wished the parent to answer.

The point the GP made was seemingly that we shouldn't let potential enemies have better weapons (autonomous drones), denying them for ourselves.

Yes, I assumed they were considering the context of state sanctioned aggression.

I wondered if they only found that reasoning appropriate for states, or in general.

One could ask "should we always seek for the most terrible weapons to be legal in any context in order to ensure no enemy can outmatch us due to restraints of law?".
This makes sense together with algebraic data types, but I'm not sure if that's implemented.
Election Data Services explanation of effects in representation in the House and Electoral College: https://www.electiondataservices.com/wp-content/uploads/2018... [PDF]
"Attempt to ignore" Great question. So it uses hardcoded values of 8.8.8.8/8.8.4.4, unless it can't contact them by testing to resolve connectivity-test.google.com (or something like that), if it can't then it falls back to the DNS servers provided by your DHCP server/router. So to use smartdns with chromecast you have to both set your router to provide the SmartDNS servers and also blackhole 8.8.8.8/8.8.4.4 on your shitty ISP router (iirc static routes) - conspiracy? - i'll leave that to you? (the smartdns route is necessary since chromecast don't have their own VPN facility)
echo powershell start -verb runas %* > sudo.bat
Trump Set to Declare Emergency Over Border
That's not a Turing test. A Turing test is an ongoing dialog, not a one-shot filter.
it's a solveable problem though. SV has a whole mythos but it basically boils down to easy access to piles of money.
>For example you can't build a tv remote control or bluetooth keyboard/hid

Why not?

WebBLE supports GATT read and write. BLE does have an HID mode, but the primary way you are “supposed” to access BLE is via GATT transfers.

You could absolutely do a remote control right now. You would be at the mercy of packet interval timing (7.5ms-50ms depending on agreed interval) so gaming keyboard wouldn’t be great typical use could absolutely be done... but guess what, HID mode still has a minimum packet internval timing at 7.5ms. I’ve been using BLE for years but still haven’t found a great use for HID mode.
Brick: a purely-functional terminal UI toolkit
I've generally viewed large organizations at the best as being better at refining, expanding on, and scaling ideas more than creating brand new ideas on their own. After a certain size, companies tend to favor working on things that are 'proven' and tested as their priority shifts from exploring new ideas to maintaining and iterating on their primary products.
Is this just your "reasonable sounding opinion" or have you yourself had any success in doing what the OP is asking about? Or are you yourself sitting in a comfortable office job in "business and industry"?

> The business and industrial world largely still runs on excel spreadsheets, emails and word docs.

Why assume that changing this hasn't been "attempted 10 times"? Perhaps the reason for that is simply opaque to you and as a software developer you think in terms of software solutions. However, getting these solutions sold is the real problem.
This article starts with a confusing anecdote.

> Even in a so-called second-tier city like Jinan, a 100-sq.-meter apartment would cost him about 2 million yuan ($297,000). Yan, who makes roughly 6,000 yuan a month working for a local environmental nonprofit organization, is only able to afford half of that, despite years of saving and generous support from his parents.

The article then goes on to talk about massive oversupply in the housing market. At the end, it mentions a 20% drop in housing prices in some places, but the article also mentions that cities responded to slowing housing markets by removing a price cap on units.

How is housing so expensive in the first place? Is it because of speculative investment?
What happens when all DNS but the ISP's is blocked? I've been in many a corporate and cheapo Internet situation like this.
Trump Declares National Emergency to Build Border Wall
>I only believe it's possible to travel to the future

Don't want to sound pedantic, but we do this all the time. Also, time travel to the future (in a "when you come back 80 years have passed" sense) is something that happens at relativistic speeds; this is fact as far as physics is concerned.
Your comment might be relevant to e.g. Vancouver, but China has completely different problems. In China, nobody is buying the houses at all. Not real estate speculators, not people who intend to reside there. Nobody.

It absolutely is a supply and demand problem.
Given how short the ownership tends to last (~9 months according to an anecdote in this thread), I suspect moving or protecting money is probably part of it somewhere. I also imagine a lot of it really is just wealthy people spending for fun rather than profit.
Could housing investment be to the Chinese what stock investing was to Americans in before the great depression?
You are missing the point, it's not that they first try 8.8.8.8 then falling back to ISP/defaults, they are requiring 8.8.8.8 for DNS which is BS.
From 22 hours ago: https://news.ycombinator.com/item?id=19164037
Knowing who he is, my takeaway should be, "Wow! An Internet Hall of Famer weighing in against a Google product!"

But my actual takeaway is, "Legends of the CS world write informal, pithy rants to Google just like the rest of us mortals."
Memory management “more effective” on Windows than Linux?
Ahh! that make more sense. Thanks
it's not one or the other but a complex interaction of both
it is this in ALL cases, they are never isolated from each other
Not to mention, a house built in china will last maximum about 5 years before completely falling apart. They are built extremely poorly with poor materials.

There are entire “ghost cities” of empty housing only a few years after being built, completely dilapidated.
WEIGHT LOSS
wrong, its both for both
Feature author here.

I'd like to first clarify that this is still in the super-early stage of development; none of this is shipped or finalized yet. The feature hasn't even requested approval to ship at which point these kinds of issues would be brought up. We take web-compat very seriously. If this breaks even a small percentage of pages, it won't ship. Part of the shipping process is ensuring we have at least a draft spec (W3C,WHATWG) at least some support from other vendors.

Sorry, the explainer text came off more dismissive than I intended. I wanted to get something implemented so we could start experimenting and see how this would work in the wild. #targetText= is a a first attempt at syntax, any criticisms or data on how this might break would be appreciated.

From my (limited) understanding of how fragments are used like this today, the way this would break a page is if the page itself was using "targetText=..." and parsing the result. This is something we can and will measure and see if we have a naming collision. For pages that use a "#var=name" type fragment, we could append "&targetText=...".

I'm not tied to any particular syntax here so if I'm missing why this is a monumentally bad idea, please file a bug on the GitHub repo: https://github.com/bokand/ScrollToTextFragment/issues
in china, the major part of house is land price. you have to buy house if you want your kids to go to school, especially in big cities, etc. it is a kind of living tax.

another factor, a lot people believe the housing price will not go down. so, people buy house to make money.
While there is some truth that we are trained by the search paradigm we learned on, Google has a habit of ignoring key parts of my query just to show results. If I search for something like: spotmatic f schematic (which I did just recently), I don't want it to ignore "schematic" just because there are no matching results. It is far more useful to me to know that there are no matching hits that to make me click several links before I realize none will have what I want (in this case Google doesn't even do me the courtesy of telling me that it is dropping "schematic" from the search, or at least changing it into a word that doesn't return schematics.)
The article seems to dispute this claim. It says that nearly half of the outstanding real estate debt is held on properties that are unoccupied.
Towards a Theory of AI Completeness (2007) [pdf]
The readme mentions it but I think it's worth pointing out that this is a very particular (and quite dated) method for sort-of-3D rendering. It's the same type of engine used in the original Wolfenstein.

It's definitely a lot of fun to implement (and I recommend trying if you've never done it before) but it's very different and much more limited than what we expect from a 3D engine nowadays.
Could you solve this by just routing 8.8.8.8 to your own DNS inside your network?
This is neat, though these links are impossible to use except via copy and paste. And the emojiset isn't the same on every computer meaning some people would get boxes.
Almost always both.

Environment triggers changes in gene expression and reverse is also true. There are multiple ways of how nature and nurture interact.

Take for example stress during childhood. It seems that stressful environment leads epigenetic changes an behavioral changes like lower impulse control, aggressive or more promiscuous behavior.

Is the change in behavior damage caused by the environment, or is it evolutionary adaptation to uncertain and dangerous environment? It's possible that dangerous environment triggers different epigenetic survival strategies? Breed faster, be more aggressive and do quick decisions.

Differentially Methylated Genes in Saliva are linked to Childhood Stress
https://www.nature.com/articles/s41598-018-29107-0
I was going to post something similar. This is not an accident or a mistake. This was done on purpose.