skysight-inc/HackerNews huggingface dataset:
Interestingly, the question whether this particular choice of code formatting in black adheres to pep8 is still an ongoing discussion[1][2][3][4]. Guido, for example, thinks that black's choice is not compatible with pep8 and I think he described the situation quite well on Python's Discourse[5]:

> So the root of this argument is that Black produces code that isn’t always in compliance with PEP 8. I say this is fine – if you use Black you don’t need PEP 8 to tell you how to format your code. (PEP 8 is still useful for other things like naming things.)

> Black optimizes for a different goal than PEP 8; PEP 8 optimizes for readability while Black sometimes compromises readability in order to satisfy other goals such as minimizing lines changed as code evolves.

> I don’t want to compromise PEP 8 though.

[1]: https://github.com/psf/black/issues/48

[2]: https://github.com/psf/black/issues/1178

[3]: https://github.com/psf/black/issues/1336

[4]: https://github.com/PyCQA/pylint/issues/289

[5]: https://discuss.python.org/t/pep-8-clarify-if-multiline-argu...
"The Synology forum poster said he called WD support to ask if the drive was an SMR or conventionally recorded drive..... the higher team contacted me back and informed me that the information I requested about whether or not the WD60EFAX was a SMR or PMR would not be provided to me. They said that information is not disclosed to consumers"
Direction of airflow from air conditioning key factor in droplet transmission
In theory? No reason.

In practice it's a special case of a more widely applicable optimization where you actually do want to remove redundant checks. So someone has to go out of their way to figure out a rule that makes the compiler warn but only in cases where a human reader finds the optimization surprising and undesirable. It's a fuzzy thing and can easily lead to lots of false positives and noise (and more whining because it didn't warn in a situation that someone considered surprising).

I think that kind of logic can easily become a support & maintenance nightmare, so I'm not surprised that compiler developers take their time and are conservative when it comes to adding such things. I would probably just ask you to either stop dereferencing NULL pointers, or turn off the optimization if you want to dereference NULL pointers and eat your cake too.
Coronavirus: Are the bodies of victims undermining Iran's official figures?
A helo would have to be much more careful if it thought it might be shot at by a missile, so some deterrence effect. OTOH if you shot at it and missed it would active dip right on top of you and then launch some LWTs, and you'd be blasted.

If they could leave an autonomous missile pod floating just below the surface, with a submarine-like ESM mast, that would be more interesting. You couldn't get in dip range to verify subsurface contacts without being in MANPAD (BOTPAD?) range. Really the same idea as autonomous mines, which have a magnificent power of area denial.
Covid-19 Safety Ranking
modify tcc maybe
Most real world problems have constraints that render global optimums moot. Usually opportunity cost, but also risk, experiential components, satisficing ...

In fact, any interview problem with a global optimum is worthless for evaluating candidate's ability to handle ambiguity or demonstrate capacity for creativity, second order thinking, communication ...

Expecting candidates to lead with absolutism like in your post os a good recipe for finding Brilliant Jerks.
How to Share Wired Internet via Wi-Fi and Vice Versa on Linux
Show HN: Feeds Pub – a social RSS feed reader
Many embedded systems have a block of SRAM directly addressable.
Hi, HN, I am the author of Feeds Pub

The major difference between Feeds Pub and other RSS reader is

- You can see what feeds are people following. e.g. Here you can find the feeds I followed: https://feeds.pub/timqian

- You are able to see who is following and reading your blog. e.g. https://feeds.pub/feed/https%3A%2F%2Fblog.feeds.pub%2Frss.xm...

- A HN like ranking system helps user find trending contents: https://feeds.pub/explore

Feeds Pub is in its early stage, any feedback is very welcomed, thanks
Perhaps this is just an “old man yells at cloud” moment...

Fellow "old man" reporting for duty.

I see a similar set of problems with both Python and JavaScript today (and with various other languages as well, but IME Python and JS are the worst offenders). Both have proven to be useful for various applications. Each started with quite a distinctive style. There were plenty of warts in each case, but overall the "feel" of each language was well understood, and there was a certain simplicity about them that made them accessible to new programmers or to programmers who primarily used other languages. However, over time, people have applied the kitchen sink approach to both language and tooling.

Functional programming is all the rage, and these languages have lambdas (albeit very clumsy ones), so let's all write lots of FP-style code in them! Except you can't, because they are horrible for writing FP-style code, because they lack FP features, they lack efficient and clear syntax for FP idioms, and they do not provide some of the guarantees that benefit FP.

Similarly, a lot of programmers are realising that static typing has its merits when you're trying to build serious software at scale, so let's all add type annotations and start marking up our code! Except that both the existing type systems and idiomatic use of these languages are built around dynamic behaviour, so they lack powerful tools for constructing new types, and they lack efficient and clear syntax for specifying static types, and they lack comprehensive type inference, and the continued presence of dynamic typing means you can't prove a lot of otherwise useful properties of your code anyway.

The amount of tooling expected to do even basic development with these languages today is absurd. Professional-quality programming ought to need no more than a compiler/interpreter, a decent editor and a decent source control system to be productive. On the next level, we might find a tool to automate running tests and reporting the results, a debugger and a profiler; I count these as secondary because it should really be possible to work reasonably well without them but they can make common tasks significantly more efficient and/or accurate. The lack of a package manager tool in both of these lists is not an accident.

I think just as much of today's programming industry has forgotten about the benefits of stability, backward and forward compatibility, and standardisation in the software we make, we have also forgotten about them in our own tools. Do we really need 27 new frameworks for building web apps this year? Is having 41 libraries to do basic unit testing that each use slightly different syntax and vary in <5% of the features they provide really worth the added complexity in the ecosystem? How on earth does JS not have a decent standard library yet?

Maybe it's time to slow down, and make carefully considered choices about the tools and libraries we use in our work, instead of instinctively reaching for that package manager and installing... well, let's be honest, most of the time we don't really know exactly what we're installing, do we?
Mozilla VR Hubs
I need it working fast now. I won't upgrade to WSL2 until its speed is improved.
Free Webinar-April 17th-1pmPST-Lead Generation Master System-Generate More Leads
Leftovers of Privacy in the Era of Covid-19
Exactly, when the only compiler available for an ISA is gcc 2.9... manually writing the assembly doesn't sound that bad anymore. C++11? There isn't even a C++03 compiler for those..
I think it would be more interesting to have a list of things that are like in the movies, as I assume it would be a lot shorter than the list of things unlike, and rarity is in many things considered more important than the common.
Yeah, I was at that talk. A little out there, but pretty awesome.
Yes, but it sure would be nice to get native speeds on both.
Could someone please ELI-5 what Keycloak is, and how it fits in a SaaS app?
This is a common approach for most bootloaders, in fact for several microprocessors (the IBM 440 comes to mind), it is the only way to boot.
> On the contrary the mix of different kind of characters is really convenient to easily parse sentences

There is also an advantage that most foreigners do not realise. The mix of Kanji, Katakana, Hiragana create natural delimiters in the sentence and make spacing useless.

Reading Japanese fully written in Hiragana is currently much harder due to the lack of delimiters between words. The mix of hiragana, katakana and Kanji allow a very high density per character.
The Latin alphabet is not logographic.
> Also, do you generally teach advanced concepts in an introductory CS class?

This is also what I struggled to understand with other comments. An introductory CS class's purpose to introduce, warmup and invite students (most often w/ no background) to the world of CS. This means low barrier of entry. (which Python is well suited for).

Yes, there are other languages that offer more features and more explicitly but the point of intro CS classes is to spark the curiosity with a great feedback loop, while eliminating obstacles to learn.
OT, but I had this with Azure. My MS account was tied to the AD of a previous customer. Can not access Azure dashboard or services at all. 5 years later and still not resolved, despite numerous e-mails, phone calls, with several people (they even insisted I install a .exe file in order to be able to do screensharing. It took some persistance to make them accept that I shouldn't have to install Windows and install a binary just to be able to restore my account. That was about 6 months ago.

If this is how Microsoft support works for real, no wonder the scammers getting people to install malware are successful).
That's not a good reason to reject a submission to Hacker News. There have been quite a few decent submissions from city-journal.org: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que.... I'm not saying this is one of them ("experiment in lawlessness" sounds pretty baity).

On HN we judge by article quality, not site quality (https://hn.algolia.com/?dateRange=all&page=0&prefix=false&qu...). That site has enough thoughtful pieces to be far from the worst one out there. There are other sites with an opposite ideological polarity that are in the same category; this is not a partisan issue.
Here's a little quiz, which of the three phases are we in now?

a) Embrace

b) Extend

c) Extinguish
But they prefer Python.

I think we need to note that the specific population you are referring to is directly the ones who are being affected. It might also be a good idea to consider their input.
Sounds more like a MITM https proxy at your org.
perhaps its easier just to create a you fake persona n the internet and use it instead.
I wouldn't necessarily say if something is popular, it is also good.

Notable examples include mini packages from npm, lint and styling configs for eslint and prettier.

Some of those[0] enforce no semicolon rule which can introduce edge cases and errors because [1]js parser will automatically insert semicolons.

0] https://standardjs.com/

1] http://www.bradoncode.com/blog/2015/08/26/javascript-semi-co...
I would say it's 2 full size USB ports and 1 HDMI.
From reading all their comments up to now, my feeling is that's exactly their plan.

When asked, "Where do you think C is going?", one of them said, "I don't see it going anywhere." I took that as a good thing, meaning, they're concerned about backward compatibility, compiler performance, and only adding features when there's a wide concensus in implementation - which is a high enough hurdle that avoids the feature bloat of C++.

Overall, I felt the "conservatism" refreshing, to keep the language small.

On the other hand, there are several common feature requests I see in this thread that probably will never be part of the language, since it moves slow relative to other languages.
Microsoft owns Github. Microsoft owns VS Code. VS Code is superior to Atom. Do you need an official comment? It seems abundantly obvious to me.

Nat is the CEO of GitHub, not Microsoft, and despite any promises made on a Reddit AMA a year ago, why would they devote resources to two competing editors?
You can access files on the Linux file system from Windows.
Seriously, some people get annoyed over the most trivial of matters. Write your code, make sure it works well and then go outside for a bicycle ride.
Yes, it's on Windows I have experienced this issue.

I'm not familiar with the low level mechanics of this but you seem to be. How would it work to do what you write at the end? Isn't altGr just an easier way of typing ctrl+alt? Getting ctrl+[ would then be ctrl+ctrl+alt+9. Or is it a proper key of its own?
كلمات اغنية كيف الحال راما رباط مكتوبة كاملة
That is why they are limited to deliver only 20cmH2O (water pressure).

Even at that high setting it does not affect your lungs ... the purpose of a CPAP is keep your upper airways open i.e back of your throat ... you still need to breath on your own.
> You find a lawn-mower or dog-walker you like, and cut out the middleman by paying them directly

and how do you know someone else is willing to walk/mow for cheaper once you start paying them directly? How do you solve disputes, like no-shows, and payment legislations (like GST/VAT etc)?

The platform reduces friction - that's not false. Whether the platform is worth it to reduce that friction is another matter. Esp. for low cost things like dog walking. The value generated by reducing friction must be big enough, relative to the cost of the thing.
Possibly bad design with regards to the placement of the ejection seat box.

But surely bad user training, as no one should sit in such a plane without being properly strapped in.

It’s another example to learn from why procedures and consistent training are helpful.
I think, sinse he's working on internet search and knows targer architecture in advance, he meant x86_64 assembly, used probably for platform-specific fine-tuning
"Keep in mind that Jim Keller, an Intel ex-chip architect lead the AMD Zen platform when he was hired in 2013"

Jim's wikipedia page doesn't say he was ex-Intel employee when he joined AMD in 2013 to work on Zen.

https://en.wikipedia.org/wiki/Jim_Keller_(engineer)
Keycloak is basically like opensource Okta.
Credit scores algorithms keep operating normally even as everything else doesn’t
What are you talking about? The US is at the top of the handling of the crisis. You could definitely critique Trump and the fact he can't keep from saying some of the most ridiculous and petty things, but even Gavin Newsom has complimented the way this has been handled. If you only ever look at top headlines, you'll believe the world is about to end and Trump is responsible.

Also, how is Trump responsible for Italy and Spain? Or are you so xenophobic that you believe that only the US could possibly have handled this for them? Italy and Spain listened to the WHO and they suffered and continue to suffer because of it. Trump didn't completely listen to the WHO and saved lives. Now, maybe he should have closed things down earlier and followed the Taiwan and South Korea models, but those countries did well because they didn't listen to the WHO and knew China was lying because of the last flu outbreak.

Do I think Trump is doing A+ work, no, but I can see that the US is doing much better than many other countries. And when you say that Trump is doing a bad job, you do realize that there are teams of people working on this. So you are saying that everyone who's working on this crisis is mishandling everything? If it's only Trump, what do you think he did wrong? You might say he downplayed the pandemic, but everyone did. And if you think that, what should he have said? It's easy to use hindsight and say people did these things wrong. I think everyone is doing the best they can.

I'm really tired of seeing this criticism with no evidence and with other countries that clearly did a worse job. I don't think it's fair to blame the leaders of those other countries either, when it's pretty clear that China and the WHO deserve a lot of the blame.

The WHO is not a scapegoat, they are directly responsible for thousands of deaths, and untold suffering. They may have done it because of their close ties to China, and they may have believed what they were saying, but at this point would you trust anything they say?
Ask HN: HN Favourites Insights
Is there a way to access aggregate statistics about the favourite posts and comments of HN users? It would be really great if I could see the top 10 (or top 100) posts and comments across HN.

If there's not maybe somebody could use the HN API to aggregate that somehow? It should be possible.

That would be some great stuff to read and enjoy in the lockdown :)
A different question is how easy it is to use those FLOPS. The memory bandwidth on a GPU is much higher than on a CPU. Higher FLOP count is useless if the CPU is stalled on memory.
What Is Fanfold Label?
Thank you! The site is created with Hugo, as described in this post: https://tkainrad.dev/posts/using-hugo-gitlab-pages-and-cloud...

I used the Coder theme (https://github.com/luizdepra/hugo-coder/) but made quite a few changes over time. These changes include a slight increase in the main container width and the addition of information on the sides.

I really have a hard time reading long posts where I cannot see a TOC on the side, so this was a priority for me.
I take it you're not a gamer. Pretty sure very few would opt-out even if they knew exactly what was happening as long as it prevented cheaters.

If OS companies did that then competitive online multiplayer would effectively be dead. That may be fine to you but it's a very selfish opinion considering it would completely destroy the hobby of hundreds of millions of gamers.
We Work failure was more to do with bad corporate governance and that was the primary reason Wall street shunned it.

The core problem of VF was pushing companies for growth at all costs which led to companies not focussing on unit economics, not caring about profitability and becoming too big to ever take care of those things. Fixing your unit economics when you are so big is akin to repairing a rocket and changing direction which it is hurtling aggressively to crash. I hope now entrepreneurs will try to build sustainable business hoping for an IPO rather than growing fast to come in eye of VF and take softbank money
My (admittedly very armchair) understanding is the ping is a lot worse for the hunter than the target - the distance you can hear the ping is roughly 2x the distance* you'll get a useful return from it, so if the target is beyond that range you'll effectively lose all stealth and confer a huge advantage to the enemy.

* this is complicated by thermal layers, geography, etc. but very approximately 2x is the figure I've heard.
Of course it is. Ligatures aren't characters, they're glyphs that represent multiple characters. Unicode does not encode glyphs, that's simply not its job. No more than encoding what font to use or when to render text in italic.
Can you elaborate which capabilities to those of us interested to know?
It seems WSL1 isn't going away for now, so you can keep using that. WSL1 and 2 can be run side-by-side, isn't that pretty good?

https://docs.microsoft.com/en-us/windows/wsl/wsl2-faq#what-w...

Also, it seems the Intellij team is working on supporting WSL2 in some ways. Check their issue tracker.

Ex: https://youtrack.jetbrains.com/issue/IDEA-197573
If you things to just keep on working Arch might not be the distro for you. Have you tried something like ubuntu?
Is it Unix? Does it ship with a standard shell? Would I be able to build and install standard packages on it?
"So after arguing about this topic on the black issue reporting, seeing that people kept not reading what was the core of the issue"

...and shortly after ...

"It hurts my eyes to see it. They might have a justification but I don’t care. "

That's where I stopped reading.
The Pentagon Hasn’t Fixed Basic Cybersecurity Blind Spots
Trump Stops US Funding to WHO
>Huge vector units like AVX-512 are mainly useful for workloads that need huge amounts of RAM that you just can't get with a GPU, or for workloads that are very latency sensitive and incompatible with GPU task scheduling because they are in some other CPU-bound code.

There are a lot of tasks that a GPU can do faster than a CPU but it would require batching a large amount of work before you can gain a speedup. EYPC CPUs do not suffer that limitation. If all you have is an array with 4 elements you can straight up run the vector instructions and then immediately switch back to scalar code. Meanwhile with a GPU you probably need at least an array with 10000 elements or more.
Trump Blocks WHO Funding
UTF-32 is also a variable-width encoding; eg 00000044 00000308 aka "D̈".
Police Are Still Citing the Homeless, Despite CDC and Council Guidance
I’m curious how much extra cash can help. Surely it’ll help keep office workers paid and leases above water, but that can’t replace all the home owners that are going to bankrupt once the extra revenue disappears, especially the ones that took whole units off the market to just rent them on AirBnB.

Once that network is broken, how hard is it for AirBnB to return to normal?
We'd happily have air to air drones (really RPA/RPS) except for jamming.

Basically all the current generation RPS tech (like Reaper) stops working once you're dealing with someone with jamming capability. No one is happy with algorithms pulling the trigger yet for air to ground, but air to air I can see happening quickly.
I wonder to what degree software written in assembly is faster precisely because it's harder to write. The result is that you end up with a lot less of it.

Everything's fast in the early stages, when there's not so much of it yet.
The Agile C-Suite
Intolerable is too situation specific.

Integer overflows that yield "weird values" in one place can easily lead to disasterous bugs in another place. So the safest thing in general would be to abort on integer overflow. But I'm sure there are applications where that, too, is intolerable. Kinda hard to have constraint 2 then.
Maybe, but why offer an explanation at all. Most companies that rejected me gave me a bland “we’ve decided to pursue other candidates”.
React Native Setup for Existing Native Codebases
I have created OpenAPI (Swagger) schemas for Keycloak's admin rest API.

https://github.com/ccouzens/keycloak-openapi/tree/master/key...

Hopefully these are useful to other people.

See the parent directory for the tooling I wrote to generate them from Keycloak's HTML documentation.
I only find "unix-like" mentioned in the documentation, so probably not. Sounds like you're looking for Tiny Core Linux or similar projects.
No. It is its own OS from scratch. Not POSIX either.
> Why is this getting downvoted?

You might as well ask why dogs bark or puzzle with furrowed brow over the croaking of frogs.
Supposedly it can release memory, as of October. It wasn't working in January when I last tried it, but I guess it's worth putting it back on auto to see what happens.
Can they file unlawful termination claims?
React was released 7 years ago in may and is definitely the most dominant framework and going very strong, and will be a good career investment for years to come. I think framing that "momentarily" for yourself is making yourself very unhappy - life changes constantly, as we see with this pandemic, and we need to have a little bit or willingness to accept change every five years or so, or perhaps we need to choose a field that has less competition (which is also why we enjoy great benefits and great pay). It should also be noted that both Vue and Svelte are extremely similar paradigms to React, and not at all the big paradigm shift that we saw from Angular to React.
Show HN: Reverse geocoding API for interesting and memorable places
NASA's Plan to Turn the Moon into a Telescope Looks Like the Death Star