skysight-inc/HackerNews huggingface dataset:
Recall "Reading and Myopia: Contrast Polarity Matters" https://news.ycombinator.com/item?id=20207577

In myopia the eye grows too long, generating poorly focused retinal images when people try to look at a distance. Myopia is tightly linked to the educational status and is on the rise worldwide. It is still not clear which kind of visual experience stimulates eye growth in children and students when they study. We propose a new and perhaps unexpected reason. Work in animal models has shown that selective activation of ON or OFF pathways has also selective effects on eye growth. This is likely to be true also in humans. Using custom-developed software to process video frames of the visual environment in realtime we quantified relative ON and OFF stimulus strengths. We found that ON and OFF inputs were largely balanced in natural environments. However, black text on white paper heavily overstimulated retinal OFF pathways. Conversely, white text on black paper overstimulated ON pathways. Using optical coherence tomography (OCT) in young human subjects, we found that the choroid, the heavily perfused layer behind the retina in the eye, becomes about 16 µm thinner in only one hour when subjects read black text on white background but about 10 µm thicker when they read white text from black background. Studies both in animal models and in humans have shown that thinner choroids are associated with myopia development and thicker choroids with myopia inhibition. Therefore, reading white text from a black screen or tablet may be a way to inhibit myopia, while conventional black text on white background may stimulate myopia.
My Experience with Scaler Academy: SDE 1 at Amazon Scaler Bibhu Prasad Pala
... I never meant to imply that performance was the reason for the switch.

We've had a track record of technologies which:

1) Automated things (reliving programmers from thinking about stuff)

2) Were expected to make stuff slower

3) In reality, sped stuff up, at least in the typical case, once algorithms got smart

That's true for interpreted/dynamic languages, automated memory management/garbage collection, managed runtimes of different sorts, high-level descriptive languages like SQL, etc.

Sometimes, it took a lot of time to figure out how to do this. Interpreters started out an order-of-magnitude or more slower than compilers. It took until we had bytecode+JIT that performance roughly lined up. Then, we started doing profiling / optimization based on data about what the program was actually doing, and potentially aligning compilation to the individual users' hardware, things suddenly got a smidgeon faster than static compilers.

There is something really odd to me about the whole async thing with Python. Writing async code in Python is super-manual, and I'm constantly making decisions which ought to be abstracted away for me, and where changing the decisions later is super-expensive. I'd like to write.
Yes because kids don't have a strong opinion on anything, so as long as you don't prevent them to have fun, they won't try to find work around.

Try the same a few years later, with teens, and it's a whole different story.
Every time someone brings this up I can only imagine some horrible version of of something like SCRUM being given the force of law.
I agree with you that dark mode is a choice, one that I took many many years ago. My first assembler program was one that inverted the screen with a button press on my Atari ST. This so I could adjust for a dark or a light day. Now I'm using f.lux to turn down the blue light and to invert the screen if needed. Also some firefox plugin to make all homepages darkmode.

I have the ghosting halos too but this is something that you need to see an optician for. It can be corrected for but might have different sideeffects that you can or cannot live with :-) For me the world is slightly tipping over to the left if I use the glasses I'm supposed to use. And looking down and then up again is also very hard still after a year.
Berlin Mulls Mandatory Bus Tickets to Get Cars Off the Streets
Tangentially-related: does anybody know the status of go plugins? IIRC, only Linux and Darwin are supported, but is this a permanent state of affaires? Does the Go team intend to further develop this (e.g adding support for BSD and Win)?
This is definitely not unique to unions, nor are all (or many) unions like this. Of course the examples you list are ridiculous and shouldn’t happen, but the more boring instances of bureaucracy are just part of the mundane process of work in a large company (e.g. raising a ticket on a third party vendor to grant access to some service and the whole process descending into farce as no one knows how to/wants to do it and everyone has a problem with it). The benefits of unionisation almost always outweigh the negatives, and most of the time a union has some degree of member democracy so you can attempt to change internal processes.
I really like this title: "Can we implement something easier than a Convolutional Neural Network?"

Nice to see people still remember problems can be solved with anything else than, ehm, "AI".
>Cargo defaults its optimization level to 3 for release builds, which optimizes the binary for speed. To instruct Cargo to optimize for minimal binary size, use the z optimization level in Cargo.toml

In what scenarios is optimizing for binary size preferred over optimizing for speed?
Any reason why Django wasn't tested? It supports both the sync standard and async stanadard and is AFAIK the most popular web framework (way more then flask)
It's called Multiple Document Interface (MDI) and in some instances can be quite useful. MS have completely depreciated it now to the extent that MDI apps no longer render their window chrome properly since Windows 7.
Yeah, this, same in the Netherlands. Where a large company tends to put share holders first because that is where the CEO's bonus depends on, the unions put the employees first. I see it almost a necessary thing to keep the balance. But the way I see it, with the very little workers rights there are in the US the anti-union movement has basically won there. Reminds me of that quote [0] or this meme [1]. Yeah, you don't need a union, it's a privilege that your boss can fire you on the spot without proper reasoning. It's also a privileged for a woman to get 2 weeks of paid pregnancy leave (can you even walk normally when you're expected back at work?). Working on chemo sounds great as well. Keep telling yourselves that you don't need unions. I feel American work culture completely ignores the fact that the vast majority of people is nice, social and wants to make nice things they feel good about, even if they didn't go to an "ivy". This attitude is reflected by employees. You would do good just being a bit nicer overall.

[0] Socialism never took root in America because the poor see themselves not as an exploited proletariat but as temporarily embarrassed millionaires.

[1] https://m.9gag.com/gag/aoP1WMg
They are never equivalent because we don't consider them fully human.

I recommend anyone reading this who wants more to read Robert Fisk.

The lives of poor people in these countries literally don't matter to us. They don't make the news, their names never mentioned, our part in their deaths glossed over.

We're so self obsessed. So selfish. So racist.
Myths can make ‘smart money’ act dumb
It would be nice to have a prompt when the phone asks for phone book access:

Allow Deny Fake

The Fake would just have generated names and numbers to pollute their data mining.
This is my main problem with the "but you didn't" objection. I could have made that, in the sense that I am clever and imaginative and creative enough to look at a toilet and say "wouldn't it be funny to take this toilet and put it in a museum and call it art". It's not a high bar. I could not have made that, in the sense that I lack the power to get things into museums, no matter how much artistic merit they have, and the existence of Fountain confirms that this skill is orthogonal to creating things people want to look at.

Damien Hirst takes this mockery you mention and makes it the very focus of his "art". He took a skull and coated it in diamonds and called it "For the love of god". Even the title seems to say "jesus, how far can I push this?"
Well some would argue that it is Pepsi who were giving lottery so any mistake on their part should be on them. Like if you mistakenly deposit 1 million dollar into my account I don't owe you shit and I shouldn't be asked to repay it back legally.

Here off course it depends on the laws of that country. For instance Philippines could certainly have said its your mistake so you owe people money instead. They would have then taken higher steps than that if the company failed to pay back like canceling passports of foreign employees and extradition of executives.

Off course this is all hypothetical but there should be laws that hold companies responsible for their own mistakes.
Dark mode is a matter of demand, not if it's good for you. The real questions scientists should be asking why people want it in the first place. Other than that, I agree with your sentiment.
Santorini: https://boardgamegeek.com/boardgame/194655/santorini

is a good two player game. It has a simple base game, and then is kept fresh by randomly changing the gameplay with additional rules each play. You can also buy more rule cards.
alternatively, one can use gevent and get a transparent asyncio from a modified runtime - something that a high-level language should've provided out of the box.
How come no one is talking about the fact that a couple months ago our banks went from fractional reserve to zero reserve? If that doesn’t scream disaster is expected I don’t know what does. Literally anyone can form a banking org, get fdic insurance and print. money. out. of. thin. air.

If you aren’t doing it yourself already, maybe you should. I’m gonna try and maybe make a medium.com post about it.
>dismisses what happens to everyone else as long as you're OK

Not really, because it's not like tech low performers are in poverty. Tech salaries bottom out at $60-70k in most places in the US. $60k is far from poverty and far from nothing.

>Which may be fine for you, but why should the rest of us agree that you being wealthier is the thing we all want?

Well, the collective in this case has already agreed that I should be paid the market rate that I successfully negotiate. Unionisation is extremely unpopular in tech.

>You negotiating against the resources of a multi-million dollar company who can hire any legal or negotiating team of experts against you

Negotiating isn't 1:1. If you are an effective negotiator and perform well then you're usually negotiating multiple offers and using them as leverage against each other. In reality, it's less "David vs Goliath" and more like "Goliath vs Goliath vs Goliath". If a company refuses to meet my expectations, I move on. No harm done.

>Unions protect exploited, abused, unfairly treated employees too, which you might become one day

I willingly give up those rights. No, really. My current employer can terminate my contract for any reason with minimal notice required. I don't really care, because I know they won't do that as long as I continue to deliver value. In return for those contract stipulations, I am paid more.

But you seem to gloss over the inconvenient facts about police and teachers unions.

In fact, teachers unions regularly protect sexual predators. [1]

Similarly, police unions regularly protect officers who commit heinous abuses of power.

>Democracy only serves to harm my interests

Maybe I just think a bloated organisation that protects incompetent employees shouldn't be the moderator of so-called "democracy".

If I have a problem within an organisation, I make my thoughts clearly heard with management. If management refuses to listen and the issue is serious enough, I leave.

For example, I once worked for an undisclosed company who refused to allocate resources to fix security issues impacting our customer's privacy. I pushed the issue as high as it would go in the chain of command and left when it was clear they refused to do anything.

[1] https://www.wsj.com/articles/SB10000872396390443437504577547...
Often, things that seem to not make sense are the result of historical practices at that workplace or others. In a situation like the comment describes, usually it's at a partially unionized workplace.

If you don't have these kinds of things in the contract, what can sometimes happen is a situation where all the "monitor movers" are unionized, but then management hires a new "screen transporter" for $10 an hour who isn't in the union.
Mental. Do you know how many people have been killed and displaced in the middle East due to western action over say the past 20 years? No?

That's cos no one does.

Because no one cares.

And we still see ourselves and the "good guys" - it's unbelievable.
> Why would someone pay in advance for something that they will get for free at the same time as everything else?

Because the content wouldn't get created unless they do pay. That's why worthwhile Kickstarter projects tend to reach their funding threshold, even when they're to be released for no added cost.
Most of the land isn't in Europe but most of the population is and I daresay Russians outnumber other nationalities on European servers.
Well, no – not if you still need audience participation with video and/or audio. Things like annual/quarterly meetings and such where people have a right to speak etc. It's really not that different from a typical video conference, just that the moderator has controls to mute/unmute people and participants can't unmute themselves. Polling/voting/chat features I reckon are secondary I reckon.
It is often possible to flexibly reduce your hours after you've worked at a place for some time, but it is much harder to start off that way from day one. The default assumption is that you will work 40+ hours per week. In short, I've wondered about this question myself. The best I've been able to come up with is cultural expectation.
"Made a dent in the universe" isn't really a synonym for worthwhile.
The article says that Windows 95 file explorer is not that deeply altered from File Manager. While this might be somewhat true in visual sense, it is completely different beast in what it does.

File Manager was just what it says on the tin and showed directories and files, while Explorer displays what is essentially an arbitrary graph of COM objects and allows you to call methods on them. One particularly notable point about that is that it is not that MS renamed directories to folders in Windows 95, these are names for two slightly different concepts. Directories are on filesystem, while folder is essentially anything that can be shown as explorer window (including desktop, control panel, various synthesized views of start menu contents, "god-mode menu"...).
Isn’t the dark mode something invented primarily as energy saving feature for OLED screens? I never even considered it to be protective for eyes.
Looks very cool, thanks
I'm pretty sure that was a knock at go
Half the Earth relatively intact from global human influence
Well, if it's a third-party software, that's not ideal but "ok" for realistic levels of ok.

But yeah, your tests shouldn't be non-deterministic unless there's a very good reason why not (and to be honest I can't think of any)

For added resiliency, try changing the order of the tests and/or not running some tests sometimes

That being said, my obligatory test rant is "don't write micro-tests" (like "test if method returns" then "test if method returns the right value" etc) and don't set-up everything in the setup function (that is, setup only what you need).
How I Implemented GTD in Roam
Workplace is very very very annoying to actually use, btw.

Workplace is basically "facebook, but in a corp"; but all the nags and annoying notifications that kind-of work in Facebook, because you can chose what pages and groups to follow, just flat out don't work there, because you have to follow certain group. And you keep getting these annoying notifications that you cannot easily filter.

So you still have one stream of notification, as on Facebook, which is both "funny pictures haha" and "important company-wide announcement". So bad!

Workplace Chat is just Messenger. And again, it sucks in corporate settings.

Workplace is really, really bad UX.
Mainstream news comments make me feel like we are on the precipice of the collapse of civilization.
As a linux user, I really wish that the Nautilus team wouldn't have changed some UI features all in recent major version changes - it makes me wish Windows Explorer from the Win 2000 area back sometimes.
Even the worst tests here provide a lot more information than a coin flip, as I understand it. A 50% PPV at a prevalance of 5% means that if the odds of someone having had coronavirus were 5% going into the test and they get a positive result, you can immediately update your estimate of the odds of them having had it to 50%, which isn't nothing.
I'm squinting as I read this.
I wonder if there’s a turnkey(ish) way to crowdsource a back-up the archive on IPFS.

IPFS seems ideally suited for two reasons:

- it has decent censorship-resistant properties

- content addressing is ideal for partial backups because individuals can mirror as little (or as much) as they want.

I’m guessing the simplest approach would be to somehow get access to the archive’s database? Is this something they’d be willing to consider?
Tried a lot of dark themes. I like it better, but with an astigmatism there’s no denying that I need glasses for dark mode but not for light mode. I hate wearing my glasses (20/20 in my good eye) so I recently made a switch to light mode. Everyone calls me a psychopath but I guess that’s what I get for doing what’s right for my case?
Science is not a faith based system. If you doubt about the rigor of some study, by all means point the errors you find. In the meantime, I will trust those scientific studies more than subjective opinions in hackernews comments.
if it makes the difference between fitting the whole binary in L1 cache or not, then the wins on memory latency could beat the losses on branch misprediction
The Virus Will Win
Aaargh. I always forget that while UNIX strips one layer of quotes from arguments, DOS and its inheritors have no parsing and just pass the whole thing through. So you can have semantically meaningful quotes.
Embedded systems.
To set the record straight, this allows an attacker to impersonate your phone to the eyes of your carrier and maybe (not sure how?) intercept an ongoing data session. This doesn't "hack" the phone itself and any data being transmitted is safe if it's using HTTPS which the majority of website and apps use nowadays.

The article is very light on technical details and is mostly spreading alarmist FUD (fear, uncertainty and doubt). These risks have been around for years and while it's definitely a major problem for carriers, it is less so for the end-user.
Hi, thanks for your response :)

Edit: I've been downvoted so I'll add a precision: Usually, it is believed that async shines against other models once you reach a certain scale (https://en.wikipedia.org/wiki/C10k_problem). This benchmark shows than async app frameworks are slower than the sync ones when running at a given scale, and since the article doesn't give many details on the incomming traffic, I can only assume that it's low, since it saturates 4 cores.

I believe that your conclusion that "Async python is not faster" is an over generalization of your use case.

I'm not saying that the configuration in your benchmark is not correct, I am saying that this benchmark may not yield the same results if you try to scale it on bigger hardware.

I believe that scheduler overhead can't be ruled out (not for python nor any other program) on a server since we've sometimes observed that the scheduler could be the bottleneck under some circumstances. For instance, some Linux schedulers used to show poor perfs when using nested cgroups with resources quota enabled.

Also, I'd like to state my first point again: you need to see how the number of workers will influence the memory usage on your system. Especially with python, if you've got a lot of workers, you can expect some memory fragmentation that can impact the perf of your system.
Obviously, I have no idea how unions work in the US. But there was the example of Dwayne Johnson, earning 90 Million and being a union member. The collective bargaining I am used to, has the effect in some cases of maybe overpaying certain individuals. IMHO that always happens. It doesn't drag salaries anywhere but up so. And there is a cap on salary levels and job levels being covered by unions collective bargaining. Above these levels, it is what you negotiate with your employer.
Sony Reveals the Playstation 5
They are always set too bright. I always wondered why are they simply not adaptive: you turn it on, and then set the brightness that you find comfortable. Then it adjust the brightness as ambient light changes by extrapolating from your chosen point.

Better systems could let you calibrate multiple points, so they would interpolate instead if extrapolate, but even a single point calibration would be amazing.

FWIW, I've tried dark mode and have to enlarge font sizes to read stuff compared to using very dim setting on my screens and light mode. I felt like I was in minority so didn't bother with exploring further.

But, I did realise and investigate blinking issue (I've got dry eyes, worse due to contacts and lots of screen time). I even have a few experiments in mind (like the typing break apps of old, I want my computer to trigger my blinking without adverse effects; whether it's by bluring content for a couple ms at a time to trigger eye refocus and blink, or whether it's something else, I still need to test it).
I'm well aware of the crimes of the Wehrmacht, and I implied as much when I mentioned how they executed rural Jewish populations in Soviet territory.

As I said earlier, there is a big difference between what people can be made to do in the heat of the action compared to when people have time to think. There's intense peer pressure and training that stresses compliance. They had been under fire recently, which made them more willing to kill. There's the escalation of engagement, where you've been killing people for a while already, so murdering civilians is, in a way, merely an extension.

> I would imagine all the Nazis not directly involved (perhaps even Hitler!) would be 'innocent'.

I'm not arguing in terms of guilt or innocence; it's a rather pointless exercise. But if I really must, then the Germans were certainly guilty of persecuting, despoiling and rounding up the Jews in concentration camps. As such, they were ultimately guilty for the extermination that this made possible.
Django is not async yet. You can run it over ASGI but parts of it (eg ORM) need extra compat layer (sync_to_async wrapper) for async to work.
There seems to be a sizable group where any job (especially an entry-level middle class job with the associated health insurance benefits and salary) would be a massive step up in income and social status. Cheating on a test to escape a life of poverty in the slums is not much of a dilemma IMO.
It's not? Try this - create 10 Postrges queries and run them in sequence with standard Python.

Now yield all those calls asynchronously as an array. What is this even about?
(Mbaert his comment, but his account is throttled) We were worried about the performance of Electron as well. All data intensive work is done in a separate process, once in react/electron no data manipulation is needed anymore. So far it works quite ok, performance upgrades we find in electron usually don't have anything to do with the data.

Thank you for the info, we're still finding our position in the market. Figuring out the perfect use case and integration in a certain workflow will be key indeed!
Feel free to contact us in private if you like to discuss more in detail about your experiences, we'd love to hear more :)