skysight-inc/HackerNews huggingface dataset:
There isn’t really a conclusion - each solution pattern allows you to trade off progressively less control for more rigidity and determinism. Pick a system that matches your use case the best.

Think of all your state as a state machine. Is there a finite number of possible states you can be in, with clearly defined ways to go to each from each one? You have a finite state machine. Lots of libraries will be available in your language.

Are your state combinations unbounded and unknowable, but still subject to validation and sequencing? This is pretty much any UI - a Redux style system helps you organise changes and make them linear. Any number of states are possible, but they’re all deterministic and can be reproduced.

Can’t linearise the states but still have validation rules for correctness? Sounds like an RDMBS type system - set up you constraints, foreign keys and go to town with any number of threads.

There’s really no right answer. I just try to understand the problem as well as I can and see if the solution presents itself.
Jealous because they get benefits private companies don't offer anyone below a certain level. This is accepted because top level pay is so mucher higher.

Unionized employees realized it is better we get more now and take less if/when we make it to the top(which won't happen anyways).
Well sure, because it's cheap and available! The point here is that when price points change replacement good emerge causing us to never actually run out of the good in question.

This process of substitution is a cornerstone of cornucopian theory, as described by the famous Simon-Ehrlich wager.

It's not clear demand would evaporate, by the way. Right now we produce oil at a variety of price points - from cheap light crude at a few dollars per bbl to shale oil at ranges from $30-90/bbl. Most folks expect electric cars to undercut oil at higher price points. It's certainly possible we might some day develop technology to obsolete even oil at light crude extraction prices. But it's also possible that we would opt to produce petrol products in a net-negative energy process because petrol is just so damned convenient for energy transportation.

In a sense we already have, as Fischer-Tropsch can produce at around $40/bbl. We see it used today in special cases such as on aircraft carriers to work around logistical complexity. Producing jet fuel from seawater is very handy, if costly in terms of energy consumption.

Oil and oil products are very much renewable. The price points relative to substitution tech will change over time and some day we likely will decide that oil just isn't attractive anymore. Above, I suggested this might happen before we run out of light sweet crude (mostly from Saudi).

I think this is a very reasonable thing to wonder.
Smart move. Who is buying cameras now?
Marginal risk of contracting Covid-19
I really dislike seeing comments like this on HN, just utter lack of foresight into just the basics of economics or even just commenting. What "companies" are you talking about? What does CEO pay have to do with the subject at hand?
Just for posterity, here are the rest I came up with:

'foobar' (e. ] A.~ +/@(!@i.@- *&|: >:@i.@- $&> i.)@#) 'barfoo' NB. 5 - Musical Chars
(/: #&>) 'books';'apple';'peanut';'aardvark';'melon';'pie' NB. 6 - Size Matters
(~. #~ [: (= >./) +/@|:@=) 'abdbbac' NB. 7 - Popularity Contest
|.&.>&.;: 'a few words in a sentence' NB. 8 - esreveR A ecnetneS
'foobar' #~ 1 0 0 1 0 1 NB. 9 - Compression Session
'fbr' [`(I.@])`($&'_'@#@])} 1 0 0 1 0 1 NB. 10 - Expansion Mansion
'_'&(I.@e.&'AIUEOaiueo'@]}) 'FLAPJACKS' NB. 11 - C_ns_n_nts
-.&'AIUEOaiueo' 'FLAPJACKS' NB. 12 - Cnsnnts Rdx
'one fish two fish' [`($&'X'@#&.>@[)@.e."0 _&.;: 'fish' NB. 13 - TITLE REDACTED
(A.~ i.@!@#) 'xyz' NB. 14 - It's More Fun to Permute

Note that 14 is trivially non-recursive. I am fairly happy with these solutions, especially 5 and 13 which took the most thought.
I know multiple people personally who called in experiencing COVID symptoms and were told to not even come to the hospital. If you aren't above a certain age or don't have preexisting conditions, they're likely not going to test you.
Excerpt:

"SASM (SimpleASM) - simple Open Source crossplatform IDE for NASM, MASM, GAS, FASM assembly languages.
SASM has syntax highlighting and debugger. The program works out of the box and is great for beginners to learn assembly language."

Main Description Page:

http://dman95.github.io/SASM/english.html

Wikipedia Page:

https://en.wikipedia.org/wiki/SASM
I think at least Nikon has caught up in the mirrorless area. Nikon's new Z-mount has some advantages over Sony's E-mount, too.

Nikon and Canon have long used Sony sensors.
Cool - I've requested a beta invite. Nice work.
I've worked at places where "cowboy coding" was the norm and people would just look up how to do something on StackOverflow and copy/paste it. But to pull in a major 3rd party dependency like this and just "YOLO" ship it in your company's product? That's almost unbelievable. Didn't anyone have a look to see what the thing does? Assuming the SDK comes with source code, and if they integrated a 3rd party library that doesn't come with the source, even more shame. All it would have taken was a single engineer to notice unexplainable network traffic to a third party at runtime--at any time during development. So much WTF here.
Why do folks forget the precursor to WW1 - the franco-prussian war?

That was a huge war! Lead to German unification, over one million casualties (if you count civilians) and slightly less than that if you don't.
Quoting might look temping on first glance but i think it encourages harsher argumentation and pointless counter-replies explaining every way someone thought of something when they wrote their first post. They are more personal and lead to things taken out of their context and "thats not what i really meant if you read the rest of my post".

Looking at HN discussions today it has very few of these, in fact you hardly every see the parent counter-replying to someone opposing his argument. Instead often others reply with a different perspective or the discussion dies because why argue with a troll. Maybe even the lack of quoting is a big contributor to the healthy discussions here.
There’s also one step after RDBMSs, which is the Redis style key value or data structure stores that allow some level of client based or cooperative structuring, using conditional sets and gets or CAS operations.

Then finally there’s the Wild West of everyone do whatever they want.
SpaceX Competitor OneWeb Is Reportedly Bankrupt
I see you’re being downvoted, just wanted to add that our family of 3 also regularly spends over $100 weekly on groceries. We live in a fairly high cost-of-living area as well (Los Angeles, SF before that). A mix of prepared foods and raw ingredients, trying to source responsibly, for ~20 feedings adds up quickly.
I was not referring to what you said about JavaScript, but rather your inclusion of a unrelated, unnecessary and highly polarizing political tangent.
> At 2-3% the profits on that bill drop down to nowhere near enough to cover gas, mileage, health insurance, unemployment tax, and everything else tacked on for the true cost of delivery.

I don't understand how most of those things are "true costs" at all.

This type of work is ideal for college students, who are typically still on their parents health insurance, or as supplementary work for someone who already has a full time job and wants to work a few extra hours.

Unemployment doesn't even make sense in this context because you work whatever hours you want and they don't really do layoffs. Even if the company went out of business, there are several others offering the same type of work immediately to anyone.

Gas costs money, but how much is highly dependent on vehicle type and people doing this type of work have the obvious incentive to use higher efficiency vehicles where the gas for this kind of trip would cost less than $1, and for the same reason to choose more reliable vehicles with below average maintenance costs.

The way you get really gnarly cost estimates is by using the same depreciation models that corporations do when they buy new vehicles for the sole purpose of making deliveries -- because you then lose $10,000 or more in value over the first few years of ownership regardless of mileage or anything else you do. But for someone using a personal vehicle they would need regardless, that huge reduction in value due to age is already a sunk cost.

And it is a bad deal for anyone who is trying to make a long-term career out of it, but the people expecting to do that should look elsewhere for employment. Not every job is a career, and why should it have to be?

It is better for jobs with high flexibility and low compensation to exist for the people who want them. The people who need less flexibility and more compensation should choose different jobs.
Blanket lockdowns are designed to dissuade city people fleeing to the countryside.
Rural areas need to be perceived as unappealing or at least having similar situations as urban/suburban areas.
It's literally branded PuTTY in all of the website, UI, etc.
Yeah, Canon is the major exception. Because of that their sensors are always at least one step behind everyone else’s.
That's why I sold all if my AF Nikon F lenses and bought just two Panasonic lenses, the 40/2 and 14/2.8. The 14 will be replaced with a Leica 15/1.7 if I ever get serious about photography again. Until then I'm using an old Ricoh GRD 3, which is still amazing - no distorsion, great photo quality, great lens, stellar ergonomics.
Really I was just thinking of VS Code and a vague memory of some other Electron apps I've used in the past, excepting one in particular which I will not name. But VS Code is just great.
The content seems shallow, the topic is extremely broad. Overall I do not feel this topic can be described really well.
Until I started blocking JS using uBlock Origin, my blocking must have been incomplete. Because I also saw that screen and it never worked. Now, it does.
Thanks, that's the page I thought I linked to, but didn't get right. :)

Was asking mostly from curiosity, as I've been helping out a local Community Biolab recently with "tech stuff" ;).

Will remember to point it out to the people there when I'm next in, likely after this COVID thing dies down. Hopefully. :)
How would hiring happen these days with COVID-19 out in the wild?

It’s too risky to meet in person. You cannot shake hands anymore. The virus is airborne, and it lingers in the air for 3 hours, so you can easily get it or transmit it, by being in the same room as the interviewer.

Maybe we now switch to remote FaceTime interviews?
Chapel was one of the three language chosen by DARPA in early 2010s (late 2000s?) to be the potential future of HPC (the other two being Fortress and X10).

I think the idea was to fund these languages, allow the developers to throw them at the supercomputers, have a multi-year shoot out, and pick the one that wins out.

I'm not sure what happened to the findings/results (feel free to chime in).

What I do know is that I've been in the HPC application side for almost 15 years and not one of the big projects I'm involved with use any of these, or any other "new" HPC languages.

The go-to languages/frameworks are the same: C/C++/Fortran, combined with OpenMP/MPI (MPI includes networking, but use of separate networking frameworks is also an option), and Cuda for GPUs (maybe very occasional OpenCL), with python being the massive success as the glue between all the system-level languages/frameworks. And now with the advent of tensor computing, the paradigm appears to be shifting once more (maybe not a shift, but one more item in the laundray list of heterogenous hardware).

Go read the overview, new features, whatever on the linked Chapel website: not a single mention of GPU. That's cz Chapel/Fortress/X10 were conceived/developed around the time GPGPU was just taking off. Nobody saw GPGPU coming and it has taken the HPC world by storm. And yet, after more than a decade, the "new HPC language" website has zero mention of GPUs. What a shame.

I'm not saying the new HPC languages are overrated. But I do believe the promise of an HPC language hasn't panned out, and yet at the same time new computer-architecture/hardware paradigms keep emerging which the "new" HPC languages {were never designed for, never foresaw}.
So if you can't stop ALL of them, you stop NONE of them.
More likely the 7 years straight of full time development I've done on this laptop, constantly running compilers and image editors and browsers. I could complain about those too but in the end, laptop batteries have to support the software that exists, not the software in a hypothetical ideal world.
It's unfortunate that labor organizing has been anemic for so long I am guessing a lot of adults are not aware of what crossing a picket line even is. I can't blame people who need to work but those of us who could just use some other app should do so.

Certainly the instacart workers helped me the last two weeks shut in, it's the least we can do.
And it's known that what Facebook does is ugly. So Hanlon's Razor and all that, but given recent events it strains credulity that the developers weren't at least suspicious.
You're right that social distancing until everyone gets infected is a bloody long time (I think you've underestimated it - other estimates are several years, though we'd probably have a vaccine by then).

The consensus on the best solution is to crush the virus with extreme social distancing, so that it doesn't infect most of the population, and so that we don't have to keep the economy shut for ages. This would only take on order weeks. Then we can open the economy up mostly, and keep hygeine standards high and do extensive testing and contact tracing to keep case numbers very low (low enough that we can still do effective tracing) until a vaccine arrives.

Here's a summary:

https://www.victoryovercovid19.org/
Software Sales Leads for Free Campaign (Success Story Below)
No worries, thanks. :)
They also supply camera sensors to Nikon, one of the other big camera companies. Pretty sure they make Pentax's sensors as well.

It's strongly suspected, but not outright confirmed last I checked, that they supply some canon compact cameras too.
The Amazon Warehouse Worker Who Can’t Stay Home
Ask HN: Is now a bad time to buy a home?
My wife and I have been saving for a house for the past few years, and were thinking about purchasing one this year. And with COVID-19, I’m curious what people think will happen to the housing market?
> I haven't heard any complaints from their delivery staff, though this may be on account of their size.

This is probably the key part. Does Caviar pay their drivers more than other sites? The cynic in me suggests that no, they don’t. Maybe, maybe, they get better tips as a result of delivering premium food.
First of all Apple does not follow its HIG in many ways. But even aside from that, the HIG itself changes every few years, sometimes drastically such as the iOS 7 departure. And it takes many apps time to catch up. One example is Apple's own new Mac App Store which doesn't even allow selecting or copying text in app descriptions last I checked.
I think the phrase natural predator just means the predator in the environment that keeps some other species in check.

80,000 years may be a blink in an eye in evolutionary terms but it does not take that long for a predator to come into an environment and become entrenched as the natural check on some other species.

I would say https://science.sciencemag.org/content/314/5802/1111 for example of introduction of species

something like this https://www.journals.uchicago.edu/doi/abs/10.1086/285705 for how dominance of predator works.

However not sure how well the Native Americans were actually keeping animals in check given the many species they have been shown to have helped bring to extinction.

That said not sure how long it would take from being a natural predator to being a keystone species.
the absence of a digital map/route planner also has advantages in that it removes the "sterile tourist bubble" and forces one to interact with the local people.
Aren’t there a bunch of hotel brands that provide this?
It depends on your market. But if you are in an under appreciated housing market in a decent size city with good growth potential, and you have secure income, now is a great time to buy a home. With the recent fed rate cut mortgages will be at an all time low (if you have good credit and can get a loan).
TcpKiller: A small GUI application to kill a process listening on a port
Hello everybody! I often had the problem that I could not find which process was listening on a port that I was trying to bind to. Of course there are already many ways of doing that, but I found myself googling for the same terminal command, and even forgetting the alias I had set for it in my .bashrc over and over again. I wanted to learn some JavaFX, and as a hobby project implemented a small 'task manager' for processes listening to TCP ports. It's released as open source, and maybe it's useful to somebody else as well? Stars are very appreciated :)
I think the author is underselling WWI.

1. Undid the Ottoman Empire. If the Ottomans had limped around for 20 more years, they would have found themselves in a century drunk on oil, while in charge of the majority of the world's oil reserves. The Ottomans would have been the global superpower of the latter half of the 20th century.

2. Rise of Communism. Lenin was an outcast living in Switzerland when the Tsar was overthrown. He arrived in Russia -- delivered there by Germany and with significant German funding -- two months after the interim government had taken over. It was a liberal democracy, not unlike the government of the US or France, that had the most power when Lenin arrived. Even if the Russian Empire had still fallen, the century probably wouldn't have fallen under the shadow of communism.

3. The center of world banking moved from London to New York City. After the end of 1916 or so, Britain was pretty much broke, and the war effort was to a significant extent funded by NYC bankers. London indebted themselves greatly to the US, and wherever you were in the world, if you wanted something to do with money, you went to New York City to get it, because England didn't have any. Of course, for these loans to mean anything, Britain would have to win the war (and reparations) which leads us to...

4. USA as world police. The US wanted nothing to do with European, Asian, or African politics. Even Teddy Roosevelt's "imperialist" attitudes were limited to North and South America. If Wilson wanted all the NYC banks to not go bankrupt, he'd have to enter the war- which he did. And thus began America's role as world police rather than a regional power.

5. The Belfast declaration and the catastrophic carving of the Arab world on arbitrary lines. Israel's foundation was laid down in 1917 by England declarating their intention to create a Jewish state in Palestine. And the borders drawn up on meaningless lines in the desert rather than along ethnic boundaries plunged the Arab world into a century of sectarian violence and chaos.

6. The Ottoman Empire would have gladly sold oil to Japan during their wars with China. (which likely still would have happened) Japan never would have had the quarrel with the United States that lead to the attack on Pearl Harbor.

While I'm not trying to minimize the human life cost of WWI, I actually don't think the death toll of the war was really all that significant. China's had a dozen or so civil wars with higher death tolls. More people died of the flu in 1918 and 1919 than all combat deaths from 1914 to 1918 combined. But WWI had an outsized effect on world history. I think it's probably the most transformational event in human history since... I dunno, Columbus introducing the Americas to Europe.

I don't know what the world would look like if WWI didn't play out the way it did. But it wouldn't look like this.
Wildlife encounters by Lewis And Clark

https://academic.oup.com/bioscience/article/53/10/994/254987
The Innovators by Walter Isaacson looks at the different eras in the history of computing, from Ada Lovelace, looms to transistors and microchips to the development of the web. It's a fun read with emphasis on both the technology and the people behind it.
Ask HN: Declaration of variables in C++ best practices
Hi, I recently decided to read over the C++ tutorials @ learcpp.com and found in their examples that they are declaring and assigning values to variables as they are used. Years ago when I began coding it was common practice to declare all variables(and constants) with comments at the beginning of the script rather than in the middle of the script as they are needed.
Is there a good reason why this practice is not encouraged now? Or is it still best practice to declare up top?
Maybe they are just doing this for the purpose of the tutorial to make grasping basic concepts easier?
The other day I saw a video of a spotted Malabar civet walking through urban streets of Kerala, India. It is an endangered species https://twitter.com/DGrieshnak/status/1243077554224787457?s=...
> that's not relevant.

It's the true motive for the "walled garden" -- it explains why it continues to exist even though the stated reasons why it exists don't pan out in practice.

> Your proposed solution would not work, obviously, because how do you define what services an app is allowed to connect to?

Why is it allowed to connect to any services for no reason? If the app makes a network connection the developer should have to justify it by something other than enabling collection of user data.

> How do you know it's connecting to Facebook's servers? Just hope they always use facebook.com?

I feel confident that Apple has the resources to determine whether the servers every application using the Facebook SDK is contacting belong to Facebook.
I’m in Minneapolis. And the prices just keep going up and up.
If you put a 20 mile perimeter around every point of North America that had continued human activity, what percentage of North America would be covered? Is it more than we'd expect? At a first glance, it seems like there are still vast reached of North America that remain completely untouched by humans.

Nevertheless, is so sad that humans have effectively pushed animals outside of their habitats. Animals are smart enough to avoid humans, just as a deer is smart enough to avoid a wolf, but at some point the world is only so big.
I would have thought that being built in the 70s, data transmission from the voyagers would still be analog, but apparently not. According to the press kit for the voyager[1] missions, all data was sent digital and there's details on what was sent at what data rate.

So it seems like they must have previously just sampled the data differently. Maybe specifically because they weren't looking for this particular kind of phenomena, so a higher sample rate wasn't seen as necessary?

[1] https://ntrs.nasa.gov/archive/nasa/casi.ntrs.nasa.gov/197700...
Why wouldn't they?

Handful of blocked ranges yes...

It's obvious that this isn't a goal of Tor.
Thanks for the link. That article seems to have a completely different focus (API rather than internals), but it's very nicely done.