skysight-inc/HackerNews huggingface dataset:
The best case outcome of a Chinese first strike against American carriers would still be pretty awful for them.

If the Chinese are going to take the risks and roll the dice on a first strike, then they're going to be playing for some pretty enticing stakes, like Taiwan. That's the point of such a move. It would come at the end of a series of escalations. For such a move to pay off, they'd have to be confident that they could control the seas around Taiwan long enough to mount a successful invasion. Prior to that, there would need to be a buildup of China's submarine forces. Perhaps they would have built a SOSUS style listening array, along with a surface fleet buildup which would only hit a level that the US Navy brass would still scoff at. If I were China, I would consider building a great many attack subs with ultra quiet but cheap surface independent propulsion and anti-ship capability. Many of these might come in the form of even quieter, smaller, and somewhat expendable autonomous drone subs. To make such a plan work, they will also have to solve the logistical problem of landing an enormous number of troops and their supplies. That last factor will likely be detected by US intelligence long beforehand, but might be camouflaged to throw off the time estimate.

If I were the Chinese top brass, I would be conducting a highly secretive program of drone sub building. As an alternative or an adjunct, perhaps do a huge air force buildup with very potent anti-submarine capability. The idea would be to neutralize the US Surface advantage with saturation missile strike, then make it very dangerous and miserable for the US submarines, but achieve those advantages while still having the US Navy brass scoff at your capabilities.

If you're discussing the claim that cruise missiles are cheaper than carriers, a fair response is that megawatts are cheaper than cruise missiles. Maybe it won't work out, but it's worth a try and that's the stage we're at.

The question is not if cruise missiles are cheaper than megawatts. The question is not even if cruise missiles are cheaper than the high-tech ship that deploys those megawatts. (Which is a less favorable question for the US.) The question is if the price of those cruise missiles and Chinese lives is worth getting Taiwan. Given that Taiwan is a stepping stone for China's ascendance to the level of global superpower, I suspect the price they're willing to pay is rather high.
have you looked at "Matrix Analysis and Applied Linear Algebra" by Carl Meyer? it seems very in line with what you're saying and the exercises are absolutely excellent. I've slowly made my way half way through the book and am very happy over all
I think it is using bad IP geolocation. It often gets my location wrong. Like close but not actually where I am.
Regarding obesity, there's a belief that's indicated by some studies that show obesity is related to causing cancer in younger people by clogging up the works and preventing your immune system from killing off the cancer cells.
The things I do when starting on a new codebase:

1) Ask if there is onboarding documentation, or someone who can give you a high-level overview of the codebase. Typically finding a person with a lot of context on the code is the fastest and most thorough way to understand the responsibilities and layouts of a codebase. Ask if they can draw an ER diagram, it's extremely valuable documentation for any additional developers.

2) Read all the documentation possible, especially design documentation. This should hopefully give you some clues as to both function (what) and purpose (why). The discussion around this will also introduce you to the major players in the architecture of the codebase.

Note this does not necessarily mean formalized design docs, it could just be searching for any README's or relevant wiki pages. You're just gathering threads at this point, and documentation tends to be a lot more compact and easily digestible than foreign code.

3) Look at the models - there will be compact representations of data at some point. This gives good insight into the shared language of the code and can give a lot of clues about how things are done. They also tend to be a lot more human-readable than other pieces of code, so this is a plus.

4) Find and skim the largest files. Typically these perform the majority of the work, have the most responsibility, and introduce the most bugs. Knowing roughly where the major players are and what they do makes it a lot easier to read any individual file.

5) Run the application, find some small behavior (a single, simple endpoint) and debug it, stepping through the application code so you can see how a particular request flows through the system. This can show you how a lot of different concerns within the code are tied together and also ensures that you're set up for both running and debugging the codebase.

At this point you should have a fairly solid understanding of at least the most critical points of the codebase, and also be set up to run and debug it. You should also have at least one or two points of contact to ask questions. This gives you a good framework for figuring out how to modify the codebase moving forward.
I believe what you are advocating for already exists in the form of class action suits. I don’t think your framework works, becuase damge to the lake is not the same thing as damage to people who interact with the lake, so the interest of those people are not really aligned with the lake.
Ask for and actually read the company stock agreement line by line before agreeing to join. The article does not mention clawback which is another thing to look for:

https://en.wikipedia.org/wiki/Clawback
Does anyone know if the targets of this database have a right of reply, and given it is from public sources, does that mean media reports are the primary sources that inform it?

The consequences of those questions could be quite serious.
Data Helps Deliver Your Dinner on Time–and Warm
In terms of the proposal itself it appears to be like an SDL type of thing. It has a basic way to create an output surface and then draw on it. Implementations on Windows may opt to do that with Direct2D.

But... it gets a lot of stuff really wrong. Like why does outputsurface have an "fps" argument on the constructor? What on earth is io2d::refresh_style::as_fast_as_possible supposed to mean? That doesn't really map to anything sane. UIs certainly don't behave like that at all, they only redraw on-demand. Even for a game which does refresh "as fast as possible" it still does that with its own game loop which will involve more than drawing, and often pipelined anyway.

Why does rgba_color, even though it's 4 floats, only have a valid range from 0.0 to 1.0 with no mention of color space? It seems like it's supposed to be linear, but in that case it should be linear extended sRGB, which has a valid range of -0.5 to 7.5.

Or like you can query for display_dimensions, but which display?

Adding this to a standard would definitely be a huge mistake. It may make a useful beginners library for just quickly getting up to doodling on the screen, but that's sort of it. You'd never build an actual shipping product off of this proposal.
Ion Based Quantum Computing
He referenced someone wanting to put a 2d graphics library into the standard library. That seems completely insane.

IMHO, something should be in the standard library if a large class of programs would want to use it, and if a "lowest common denominator" approach would be good enough for the majority of those

Example: JSON parsing and generation should be IN.
A tremendous number of programs want to produce and consume JSON, and the bulk of these are not performance critical and don't have too many edge cases. Just boring normal JSON.

Example: Sockets should be IN.
As above, vast numbers of programs want to use sockets and a standard approach would suit almost all of them perfectly well.

Example: Graphics should be OUT.
A lot of programs could potentially use a graphics library, but many of these would not be satisfied by a "standard" approach. Cross platform is the main thing - having to interface with GDI, SDL, Quartz, and whatever else, and doing a bad job of all of that.
Youtube Removes Popular China Blogger's Comments and Removes Sponsor Revenue
I agree. You could do what I've described to produce such documentation if it hasn't been constructed already. Which is (as a professional maintenance programmer) the situation I'm normally in (poorly documented code design, even if we have a "complete" system specification).

And even if such documentation exists, it's often useful to recreate it yourself in developing an understanding of a complex code base (or at least sections of it).
The timestamp is generated per server. The system time could differ across nodes in the cluster (even with NTP) by nano seconds. So, isn't the accuracy of the first tweet is approximation if there are multiple tweets containing same word "earthquake" at the same time at ns level? But I get the point.
You are correct, that the manual doesn't specifically say it can operate without coolant (now that I re-read it). What it does is active fail safe mode, then will shut the engine off once the temperature goes above another (higher) threshold. So I guess if coolant is completely gone (instead of just low), you may be able to drive for a few minutes then be shut down for a while before driving again (the main purpose is to give you enough time to find a safe spot to stop).
What about China? Do you see China buying German trains?
Someone motivated could build an implementation that uses Direct2D underneath. I think MS has one already. There are provisions in the proposal to expose handles to the underlying graphics systems, for example if you want to render text with DirectWrite (or Pango/Harfbuzz if you're using a Cairo-based implementation). Of course without the appropriate ifdefs this would make your code non-portable at that point.

But yeah, as much as I would love to have an out of the box cross platform (2d) graphics library, I worry that by standardizing it, it'll be susceptible to being left behind very soon. Not even mentioning that there is so much stuff 'missing' in the current proposal - like what other color spaces? Image formats? I'd much rather have a graphics library in Boost that can evolve over time, and for people to stop complaining about / shitting on Boost; and maybe a way to have Boost packages work with a package manager, in a way so that you can pick and choose the components you need.
Agreed on i, j, k. These really are everywhere.

I feel like your other examples are less obvious though. And I don't see much disadvantage to using full-length names in those circumstances (e.g. left, right, arr, compare, and swap)
Protectionism is usually an inferior policy option that makes everyone poorer. It amounts to a state subsidy of uncompetitive industries, redirecting resources away from other, more productive parts of the domestic economy.

Investing in local industry is perfectly wise. A country that has a skilled workforce, good infrastructure and efficient capital flows is likely to be highly competitive on an international level. Propping up industries just because it's politically easy is the first step down a very slippery slope.

Alstom is comfortably profitable and doesn't need propping up. What's more, it is substantially reliant on export contracts that could be severely jeopardised in a culture of protectionism. The multi-billion dollar contracts it has to provide trains to India, South Africa and the US are all under threat if those countries decide "why should we give all this money to a French company when we could build these trains ourselves?".

Protectionism destroyed the British national morale in the 1970s. The country was weighed down with an unsustainable burden of uncompetitive industries, propped up by the public purse because it was too politically painful to allow them to decline. The resulting swing to Thatcherism resulted in a swift and brutal end to those industries - rather than a managed decline, they were simply culled off, with utterly traumatic effects on a generation of workers who weren't prepared for it.

National morale based on an economic sleight-of-hand is a poor substitute for national morale based on industries that are genuinely capable of taking on the world and winning.
Are you referring to "dog willing"?

That's intentional humor. But I've forgotten the source :(

And actually, I don't like dogs at all. They're too hierarchical.
It is a nice resource, but the number of spelling and grammatical errors is ridiculous and becomes very distracting. Please use Microsoft Word or some other spell checker on each page.
Has anybody tried software intelligence tools? Seeing the architectural components and control flow of the code seems like a quick way to document the codebase and figure out which “clusters” to study.
https://en.m.wikipedia.org/wiki/Software_intelligence
When improving existing code, only do gradual changes. Don't do rewrites, don't replace existing code with better solutions in one swoop.

This way, you won't be in a situation when the new solution doesn't work in some cases and you already thrown all the code it replaces under the bus. You'll always have a mostly working app.

OTOH, if you introduce an alternative solution, finish migrating to it before beginning improvements in other places in the codebase.
I think HN stores text encoded as UTF-8, so all you need to do is input an emoji via your keyboard/copy-paste.
It take about 1.5 seconds to move the gear shift. You can wait that long before changing the radio station.
> How is this possible, in fact common, that the lowest paid people in society often have advanced degrees?

I assure you, this is not the case in the US. The lowest paid people in society don't often have advanced degrees. They often have no degree or even high school education. Do some people with advanced degrees have low paying jobs? Yes. But I wouldn't say it's 'often' compared to low paid people as a whole.
At what point would we say that a machine/system actually understands natural language? Or is the Chinese Room Argument always going to apply?
The data didn't leak from Dow Jones, and the article doesn't cover how Dow Jones stores the data internally. Some customer who had the data leaked it from their own open system.
In Toronto you want to be either in Markham or downtown Toronto. Everywhere else it's going to be hard finding quality employees. Renting in downtown is pretty expensive almost 3-4x the rent of outside of downtown, that's if you can find office space, and many US companies are opening their doors here/buying the startups here while keeping operations here. What specifically do you want to know? Salaries are much less than SV, also a lot of the top talent leaves to work in the US because it's almost 2-3x the salary compared to Toronto.
Wonder how it fits with developer terms.

eg. 5d

Do not use, access or analyze the Twitter API to monitor or measure the availability, performance, functionality, usage statistics or results of Twitter Services or for any other benchmarking or competitive purposes, including without limitation, monitoring or measuring:

the responsiveness of Twitter Services; or
aggregate Twitter user metrics such as total number of active users, accounts, total number of Periscope Broadcast views, user engagements or account engagements.

[1] https://developer.twitter.com/en/developer-terms/agreement-a...
On artistic merit? I don't think so. As brainless entertainment, as long as you don't mind plot holes you could drive a whole T-1000 factory through, it was pretty good (because Ah-nuld), but as something else... I don't think so, just a typical Cameron
It's like you have some problems in graph theory that are NP-Complete/Hard, so in theory you are out of luck. But if you restrict yourself to a certain type of graphs, or you change your problem from e.g. computing a chromatic number on a certain type of graphs to instead decide if for a given K such K-coloring exists, suddenly there is a polynomial algorithm. And practically-wise, you might be fine with just K={2,3,4,5} and couldn't care less about other values of K for your practical case; so while in general you can't solve it, in practice you have a fast algorithm you run 4x in a row and are done.
> It doesn't need to open up the network to competition.

I think this is mandated by the EU. And it could be a good thing. I'm personally fed up to be treated like a thief when I forgot composting my ticket (which happen because there is not gate to access the rails) or when I could not buy it in the first place (some station doesn't have have vending machines).

Also the price lottery for TGV tickets is infuriating (price goes from 14€ to 140€ for the ride I take the most) and the commercial strategy of the SNCF is to offer cheap TGV which lacks any confort to kind of punish you not buying the more expensive option.

But actually I would even be happier if we import all the working staff from Japan and make them the whole thing working smoothly under a join JR-France company.
I think there are ways this could be overcome, and the screen could be way, wayyyy better.

1. Default presets. When you enter the car, you press a menu option to immediately set the car to all your settings (radio to the right station, GPS app opens,seat moves, etc.) (could be done with a button too honestly

2. Increased primary element size - Use 90% of the screen to display the setting you are changing so you don't have to look directly at it. Reduce the size of options you are not currently interested in changing.

3. Gestures - Use gestures to change settings using your muscle memory, not eyes.

4. Use the iPad to display video that helps you drive (blind spot, backup camera)

5. Use of color - When you crank the heat the screen is cast to in a red shade. Make it more intuitive at the subconscious level.

6. Full use of screen to make a change - When you want to adjust with a button or knob, you have to get your hand exactly on that button or knob. But on a screen, you could swipe left anywhere and get the same effect. This would use significantly less attention.

7. Contextual UI - The car notices the windows are fogging up and prompts if you want to turn on screen defrosters.

8.Multiple UIs and UI customizability. Don't like this UI? Try this one! Or just change the one little setting that annoys you. It's your damn car.

9. Stopped? Here's something interesting put on the screen so you stay engaged.

10. Safety tips (stats on your driving, or suggestions on ways to drive safer)

11. Haptic feedback - When you make a change, the screen could vibrate to indicate the change was received

12. Shortcuts - Have your favorite driving settings most conveniently available

13. There's probably more, but if I wrote a 13th one, it would be unlucky! :P
You could go all-out with an angled thermal collector panel (double-glazed or possibly vacuum insulated like some fancy solar hot water systems) which heats water to be piped back inside into a storage tank, then pump the heat from the storage tank into the air when required.

(For some scenarios this might even be a good solution without the heat pump, just run the water through a radiator. Is this something that people have tried?)
Firefox mobile on android is shit

Cant even render wikipedia properly

I hope mozilla staff reading this
The dirty secret is that it's basically Cairo, a 1990's graphics API, with modern C++ syntax. So all of the work that's happened since then, including HDR color spaces, precise control of swapchain present, dynamic multimonitor support, doesn't exist. I also got a chuckle out of chapter 10, text (basically TBD, like that's not one of the biggest of all possible cans of worms).

In fairness, piet is currently missing the fancy stuff too. But I'm hopeful we'll get there, in part because we can afford to break compatibility.

(Going deep into the weeds, presentation doesn't belong at the piet level, but, in my stack, at the druid-shell level. I'm working on this, using quantitative measurements of latency and power dissipation. But it's all evidence that this stuff is quite hard, and Titus is absolutely right that putting it in to a language standard is folly)
> linux aside

Linux has its own subjugation bullshit. I'll grant it isn't as bad as shoving ads at you or forced updates, but Windows brings other advantages too (like having top of the line GPUs actually work).
There's enough stuff in it already.
OpenGrok supports JS and helps to navigate the codebase easily, in turn helping you to reason about it. Good luck!
The counterpoint to Chesterton's Fence is the psychology experiment with the monkeys, the stairs and the banana.

This is long but very pertinent to the "that's just how we do things around here" attitude:

> This human behavior of not challenging assumptions reminds me of an experiment psychologists performed years ago. They started with a cage containing five monkeys. Inside the cage, they hung a banana on a string with a set of stairs placed under it. Before long, a monkey went to the stairs and started to climb towards the banana. As soon as he started up the stairs, the psychologists sprayed all of the other monkeys with ice cold water.

> After a while, another monkey made an attempt to obtain the banana. As soon as his foot touched the stairs, all of the other monkeys were sprayed with ice cold water. It's wasn't long before all of the other monkeys would physically prevent any monkey from climbing the stairs.

> Now, the psychologists shut off the cold water, removed one monkey from the cage and replaced it with a new one. The new monkey saw the banana and started to climb the stairs. To his surprise and horror, all of the other monkeys attacked him. After another attempt and attack, he discovered that if he tried to climb the stairs, he would be assaulted.

> Next they removed another of the original five monkeys and replaced it with a new one. The newcomer went to the stairs and was attacked. The previous newcomer took part in the punishment with enthusiasm! Likewise, they replaced a third original monkey with a new one, then a fourth, then the fifth. Every time the newest monkey tried to climb the stairs, he was attacked. The monkeys had no idea why they were not permitted to climb the stairs or why they were beating any monkey that tried.

> After replacing all the original monkeys, none of the remaining monkeys had ever been sprayed with cold water. Nevertheless, no monkey ever again approached the stairs to try for the banana. Why not? Because as far as they know that's the way it's always been around here.