skysight-inc/HackerNews huggingface dataset:
One of the core requirements of the type hints design is that they don't affect the Python language.

You can still write python programs without them.

You can add them only partially.

You can also add them later.

Python stays Python.

MonkeyType lets you take a code base that is untyped, or partially typed, for historical or because it was not worth it at the time, and turn it into a fully typed project quickly.

It makes the transition between the exploration phase into the industrial phase much easier.

For me, it's kinda fantastic to be able to fiddle with a design, changing my mind again and again, without having to fight the type system, then once things are settled, add an additional safety net on top.

It's also very reassuring knowing I can just hack things, knowing that later on, if I want to take it to the next level, I have the option to change my mind about type hints.
Former Astronauts Share Ways to Cope with Social Distancing and Isolation
It’s great to see slides and lectures freely available. Thanks.
That's good to know :) Thanks. Yeah visual studio does seem to be nice with some insane features. With that being said, do you have a list of must have features in your editor

For example:

- Terminal kind interface part of the editor which keeps providing feedback in terms of any changes
- Ability to version control your files (git commit/diff/abort) without leaving the editor
- Any resources you could point me to that would be great which talks improving developer workflow with vim?

EDIT: I think you seem to have answered while I was writing my reply
Meneghini and Gram Pedersen of University of Padova just extended the standard “SIR” epidemiology model with quarantine and it has the nice property of being able to estimate the infections from the observables.
Preprint on Researchgate: “ Quantifying undetected COVID-19 cases and effects of containment measures in Italy”
Yeah I’m not sure what people are expecting to happen here. This virus has been circulating in the US for months and testing was limited. There’s surely many multiples of infected people than currently reported, and that’s true for any country that isn’t doing blanket testing of entire population.
> It doesn't because it can't. Any hearts that got tired died, and their owners did not reproduce.

They're asking why the heart can't get tired. You answered why we evolved such that the heart can't get tired, which is not the same question.
It shouldn't be hard to implement this for VS Code.
It would be cool if it could also record key strokes!

You might get valuable data ouf of it (refactorings that might increase productivity, learn how people code, see what can be improved).
It’s taking a week for them to get test results at the NHS. So currently today’s results are from last weeks tests.

Of course that’s assuming the labs doing the testing are doing it first in first out.
The lack of aerosols from pollution and jets might actually let more sun light through and increase temperatures.
I’m on hacker news and replying to this on an iPad. My mac and windows desktop both have their place, but the iPad really does slot in as a “third” device between a full fledged desktop OS and my phone.

I use it to take notes during meetings, to keep daily work logs, for replying to emails, checking up on slack, reading PDFs and ebooks, task management, web browsing and watching video as a third monitor to my two display desktop setup.

Yes it is extremely limited in a lot of ways, but having an instant on device that is one tap and less than a MS away from all those tasks really does change the way you work. And being able to pick it up and walk around with it comfortably means you can do those tasks anywhere. And if you are like me and work remote from places like coffee shops - it basically takes up barely any more room in your laptop bag.
The death curve is also quite steep. Seven days ago we were at 57 total deaths, now it's 276. Daily deaths has gone from eight people seven days ago to 49.

https://www.worldometers.info/coronavirus/country/us/

Here's a good article on estimating current number of cases from number of deaths:

https://medium.com/@tomaspueyo/coronavirus-act-today-or-peop...
ha! Interesting. Did you train model yourself or find some ready available?

BTW we also have an API for car's make/model/years/color/angle recognition. We can share API key for that if you'd like: https://carnet.ai
Cue another panic buying wave,
No, semantics and idiomatic code matters but I don't think performance oriented Swift code would be significantly slower than Rust. I might be wrong though - feel free to share relevant benchmarks.
What demo are you talking about? I don't see any links to something like that within the article itself.
When I saw this, I thought Google was making a vendor-independent HAL and I got excited.

But it looks like it's just a set of small plug-ins like statically-allocated strings and easy tests.

I guess that's cool too, but...eh. I agree with others who say that it seems counterproductive to try to run embedded integration tests every time a file is saved. This sort of looks like a solution in search of a problem.

Also, when has Google ever supported a novel project like this over the long term? I'm not too eager to buy into something that'll get discontinued a few years down the line.
In the wild, the meaning of class ranges from whatever it means in the bowels of theoretical OOP, to a struct that has thing.method() invocation syntax. I'd wager about 99% of people don't get more academic about what classes are beyond the latter definition since it's the only way in their language to create a group of state and then associate some methods with it, which is exactly what Rust has.
Covid-19 is not an influenza virus, coronaviruses are a different family
It seems like this is not actually about the trackpad but about the software of of how it is handled. I thought there was new hardware, but it seems like it is making better use of the multi touch trackpads that have been on their laptops for a long time.
As opposed to this one, which is starting with armchair statisticians extrapolating curves without considering the nuances of the underlying data?
Of course not all masks are completely useless. By "these" I was referring to the item of the topic, namely "DIY masks". They are only somewhat effective in preventing droplets being transmitted when you cough or sneeze. They are less effective in stopping you coming into contact with the virus because they simply do not effectively filter it out.

What medical staff wear are masks that are effective at filtering out viruses. Read this [1] on the FDA site for a good explanation.

It's well established that there's a global shortage of masks. [2] They're made in China and they can only make so many because the manufacturing requires special equipment. [3]

[1] https://www.fda.gov/medical-devices/personal-protective-equi...

[2] https://theconversation.com/the-global-effort-to-tackle-the-...

[2] https://www.npr.org/sections/goatsandsoda/2020/03/16/8149292...
No-Code Monte-Carlo Simulation
> First of all, they kind of dodge this later by saying "Array indexing must be properly tested" (else it can panic) -- everyone thinks they write code which is "properly tested".

You're skipping half the recommendation though:

> Array indexing must be properly tested, or the get method should be used to return an Option.

emphasis mine

> Also, in rust if we don't want to panic we need to never use array indexing and never use integer division, just to start.

I mean, that's literally the block above the one you quote:

> Common patterns that can cause panics are:

> * using unwrap or expect,

> * using assert,

> * an unchecked access to an array,

> * integer overflow (in debug mode),

> * division by zero,

> * large allocations,

> * string formatting using format!.

>> Rule LANG-NOPANIC

>> Functions or instructions that can cause the code to panic at runtime must not be used.

The bit you quote is really a additional reminder that array indexing is not panic-safe.
TraceTogether: Install an app to track Covid contact via Bluetooth
> The number of distinct outbreaks happening at once makes a big difference in the steepness of the curve in the beginning.

How come? "Distinct outbreaks" just means the older state was underdiagnosed, not that the characteristics of the pandemics change.
I.e. it isn't a drop-in replacement. There is nothing wrong about a language not being good at something. When you want to have everything, you get C++. And working with C++ is just sad.
The water itself is also a problem, in the stratosphere. I think this places an ultimate limit on the number of rocket launches at about 1 million Starship launches per year.
The problem here is, it's hard to get decent video output without a larger set of complex chips. If you just want serial output, this is totally doable with period accurate chips.

There are quite a few Z80 implementations that only use a handful of chips.
The death curve is also deceptive - there were likely many patients who were recorded as dying of the flu, or of influenza-like illness, that actually died of COVID-19, due to a lack of testing. The bottom line is that it’s very difficult to make a conclusive statement based on the data collected prior to widespread testing.

As for that Medium article, it’s written by a tech exec with zero education or professional experience in anything related to medicine or the life sciences, so I would treat it with a heavy dose of skepticism. Many of the deluge of preprint articles from academic institutions written by epidemiologists or public health experts would likely be a far better source of info.
No. It's been explicitly stated that Python will:

- never become statically typed

- never make the type hints mandatory

- never enforce the type hints at run time

Python is jokingly said to be "the second best language for most things". To achieve this, it has to be able to be decent for many different purposes such as setuping machine learning models, scripting SIG system, doing test automation, powering a web site, provisioning linux servers, scrapping web page, batch renaming files and teaching code, analyzing numbers from a hdf5 file, being the client to a database/ftp/ssh/imap system.

It means it can't just be purely functional/OOP/imperative, be must borrow from each paradigm. Be statically typed or not, but gives features from both. Etc.

Because you don't want type hints when you are in jupyter or scripting your linux box. But you may want it when your Saas reach 3 millions lines.
See my reply to nisuni above. I was referring to DIY masks, which is what the topic is about. Masks are definitely critical for health professionals interacting with those who are sick.
And the comment I replied to was "literally" about problems encountered in US (Seattle is in US FYI).
Mozilla is already maintaining and improving Firefox while exploring other things like Rust, but they're not winning the war against Google. And improvement is relative -- to Google. Maintaining is losing, esp. while Google isn't just competing on browsers but also ecosystem.

Otherwise I'm sure Microsoft would like to be the winner.

And there are new users everyday. It makes sense that some of those new experiences are the system defaults, like Safari or Edge. It also makes sense that some of those experiences would be Chrome if you're in the Google ecosystem. But why Firefox? Privacy? I don't think that's bad, I just don't think it's enough vs Google.
Augment Text Data for Machine Learning Using Google Sheets
There's also cargo-crev which is pretty neat.
I just contacted the developer account with the following text. In my mind this has huge potential to help the world find the right level of isolation and potentially leverage powerful adaptive learning algorithms. I don't know why this approach is not getting more mindshare in the current climate:

Is there a way you can enable other countries to also use this app? Even if it means you can't validate the users mobile telephone number (until that country's government negotiates a means to paying for SMS verification), allowing is to install it would allow collection of contacts to start immediately and raise awareness of this game changer.

Personally I would allow users to opt in to pushing the collected data online as that allows far more powerful analysis and the ability to continue to refine the algorithms to infer level of risk based on multiple "hops" of contact in the preceding days. For example carrier X overlaps with Y on day 1, then Y overlaps with Z on day 2. As soon as X is diagnosed Y gets a high risk rating and Z gets a moderate one. The exact criteria can evolve as we learn more and the data can be used to help train the model. The more people use it, the better it will be for everyone.

If you want me to help I can, but either way you could save millions of lives with this app if it is adopted globally.
Here's one:

3 metric cups of Brown Bread Flour or Wholewheat flour,
1 sachet instant yeast (personally we have a homegrown sourdough starter, but that's a whole other topic). You can get by with a little less yeast, and with bought-in yeast I'd add about a teaspoon of sugar to get the yeast well fed.
A good handful of sunflower seeds and/or pumpkin seeds if you like. I like to add about a tablespoon of linseeds. This is all optional.
1 scant teaspoon of salt. (This is not optional.)

Mix all the dry ingredients, then add water to make a sloppyish dough and mix well -- you can stir it with a spoon, but not easily, and it's sticky as hell. It takes about 1.5 to 2 cups of water, but it will vary depending on the flour, how old the flour is, the weather/humidity on the day, etc.

I like to dust the top of the loaf with a tablespoon or so of poppy seeds.

Turn the dough into a well-greased loaf tin and bung the tin in a plastic bag. Lift the bag away from the top of the loaf otherwise the dough will stick when it rises. Warm places are good, but it's not critical, and too warm is bad. Rising time could be as short as an hour, could be as long as 3 or 4 (unusual) and depends on too many factors to enumerate here. Once you've baked a loaf or two you'll have a good idea how long it takes given your flour, yeast, weather, etc.

When the dough has risen and seems ready to overflow the tin, put it into a 180C oven for 1 hour. When it comes out of the oven, immediately tip the load out of the tin and allow to cool on a rack. If the loaf won't tip easily out of the tin, you didn't grease the tin well enough.

A good test of whether your loaf is 'done' is to tap the bottom with a fingertip. It should sound 'hollow' and not 'dead', but honestly, if you've never had experience with breadmaking before, you'll be hard-pressed to hear much difference. It's one of those things that comes with experience, much like the feel/consistency of dough in more complicated breads.

It's very easy, takes about 5 minutes and lasts better than store-bought, but tastes so much better that shelf-life is seldom an issue. You may make a few 'flops' the first time or two you try, but they'll all be edible (nay, tasty). Keep at it.

eta: I see (late) you said 'dutch oven'. Just substitute 'dutch oven' where I wrote 'tin'. I've baked many a loaf with a dutch oven (and on a fire rather than an oven) and it works every bit as well.
An interesting challenge, are the accompanying lectures also available?
Yes. We thought about using car's value for quests/achievements. Haven't find reliable source for pricing data yet.

Current concept idea is very similar to one you suggested. Every car is assigned with some amount of points based on car's rarity. Player is then tasked to find certain models and get points for that.

We are thinking about adding 'social' element at some point: function to share car photos comment/react on them
I think a zombie outbreak would be much easier to handle, at least in the US.

It would probably be much easier to see who is infected, and thus "eliminate" the problem. In the US, there are plenty of bullets and guns everywhere.
But switching your ISP will take a week at best, likely multiple.

Right now politicians don't want me to enjoy the perfect weather outside but instead to stay indoor and play online games or program something. Both I'm less likely to do if my neighbors clog my internet by watching ultra hd streams, apparently.

Don't think "the market will solve it" is best approach right now.
Restaurants are supposed to monitor patrons level of alcohol consumption. Otherwise they can be held liable for damages resulting in accidents related to DUIs or can potentially lose their liquor license. Alcohol to go totally breaks that system. They also can’t monitor who gets the alcohol (are they of legal age? over the legal limit? etc.)

Most areas in the US ban public consumption if alcohol. The bottles cannot even be displayed in the open. Putting alcohol in an unmarked to go container would circumvent the law as well.
I think it should be up to the API to specify which types are allowed, not the developer just hoping it works.

When you’ve worked on a sufficiently large and complex code base maybe you’ll understand.

Edit: coded in python for > 10 years. I prefer it over other languages, warts and all.
It's not the key but the fundamentals that we have done for decades...
This is it? After all that hype, a website with a bunch of links? This is embarrassing.
How many tests for COVID-19 are being performed around the world?
Who are these experts you speak of? Are they in US? UK? Italy? Spain?
Not an unreasonable choice, but it has to be noted that home computers of the era already used LSI/VLSI dedicated ICs for this purpose, condensing the functionality of these 20 chips into a single package.
Command Line Maze Generator with Python
Neat! Sounds energy intensive though.
Collection of Free Learning Resources and Personal 1-1 Mentoring
"They don't identify that directly. But they do identify the potential to do something productive." It think your definition of what is productive might be very different than mine.

"since anyone who preys on other people has to have those skills" If you look at history you will find many without those skills that preyed on others.
> If you aim for performance, "pretty good" doesn't cut it.

"Performance" isn't an absolute, and, going by the fact C++ is apparently acceptable in some "performance" codebases, there's more to it than directly controlling every single RAM allocation and making every single use of memory take maximal advantage of cache. You can't even get that in C without deep knowledge of internal compiler details.

Rust gives no finer control than C does, overall, but it installs some guard rails to make the language less accidentally unsafe. That's proof that "performance" isn't the primary goal with this codebase; if it were, it would be re-written in assembly, and the guard rails be damned.

So Swift isn't immediately out, unless profiling deems it so.
(I'm not being sarcastic, just want to understand)
what's the point in saying "OK perfect interview" and then discarding without giving feedback? why would I risk applying again if I do not know where I failed?
from where can I learn the fundamentals on this topic. I tried searching for data plane but most of them are k8s specific and few of them were pointing to layer3 of OSI model but I couldn't understand maybe my fundamentals are not too strong.Any reference such as books or articles will be much appreciated
"Beginning" might be the wrong term, as it's a bit into the beginning that it starts to make a difference.

Local saturation happens fairly quickly. Having 100 infected in one place is very much different to having 1 infection happening 100 different places when you look at it after a week

When you're looking at the "country" view, the "older state" gets lost in the transmissions happening from people crossing borders. So what I mean is, people have been flying back to the states with infections spread out over the entire country while cross-border spread has been much more localized in italy
I try to do that as much as possible. I don’t want all of my interactions and transactions to be going through many intermediate parties. I also want to keep the freedom of cash alive for those who find it difficult or impossible to get or learn to use cards and online payments.
Well, there are a bit north of 1.2M Americans who die of heart disease or cancer every year.

That's deaths. With a functioning, advanced health care system.

Those numbers don't get better without that.
First let me say that I get that there is a limit to how many devices you want to lug around with you.

But I personally find reading on a Kindle (or other e-ink devices) to be a far, far better and more comfortable experience than on an LED device like an iPad - honestly, it's as good as reading from paper books (and I say that as a lifelong bookworm).

The battery life, form factor and weight are also firmly in the Kindle's favour when compared to an iPad.
You really cannot and should not compare confirmed cases / tests vs deaths when the calculation of confirmed cases or tests varies from place to place.

For example, South Korea where anyone can get a test, versus the UK where only ill people in hospital will get a test.

So what can you do? Possibly compare the number of sick people who have been tested in hospital? Possibly you need to control for demographics, and certainly per population. Possibly compare to official estimates of total population infected (e.g. UK could be around 50K now)

Then you can start to look at the differences, but the error rates are going to be large.
All the businessmen I've talked (tiny sample) to seem to prefer cash. One of my favourite restaurants gives me an extra egg in my soup because I pay cash.

It would be surprising if all the businessmen started turning away customers because they didn't pay by card, even with a government recommendation.
I was basically asking if the options on gcc or whatever allow you to turn on only optimizations at the assembly language level of abstraction. Which it seems to me would be a practical way to avoid the sort of optimizations that surprise people while not emitting totally unoptimized code. Maybe that's -O1 or -O2, I don't remember because it's been a long time.
Maybe for you... I find it pretty interesting... though you have to first learn, understand and document what it is doing, and then think about how you can adopt the function into the patterns of the new language.

That last part is key. Nothing like seeing code in a current language written like it's mainframe code. I've seen some really poorly ported code (and written plenty). The learning curve is pretty steep but it's great work if you enjoy it.

For me, my favorite part of working in software is the learning. New tools, languages, platforms, systems not to mention domain knowledge. In my career I've worked from government, banking, aerospace elearning, eCommerce and many things in between. What other career is such a great opportunity for continuous learning.
Coding and the concepts taught in a CS course aren’t necessarily the same. I think you should choose education if you have a wish to learn what CS courses teach including but not limited to:

- Algorithm optimization

- Logic Gates

- Cryptography

- Compilers

- Assembly

Further studies are available to those who exist in school programs if you wish to get a higher level degree and do the research associated with it.

That said, I don’t think you necessarily need this to code.

Lastly, if it’s about a job, a degree will most certainly help you get thru a blind first filter. However, it is definitely possible to show your work and experience without as well thru open source contributions and the like — so this really is a choice you’ll have to make.

If it was me with these options, I would go to school for free with the scholarship and work on open source projects simultaneously.
Very cool. Game developers get all the fun problems :)

If anyone gets interested in the SVG format, I've also found this to be a very useful resource:

https://svgpocketguide.com/book/