Better HN
topnewbestaskshowjobs
Log inSign up

divbzero

11,264 karma · joined Oct 8, 2017 (9y ago) · 2,949 submissions

Hello, world.

  #!/bin/bash
  name=chris
  user=divbzero
  email=${name}@${user}.com
  code=https://github.com/${user}
  website=https://${user}.com
[ my public key: https://keybase.io/divbzero; my proof: https://keybase.io/divbzero/sigs/o74zfvmaYGlCRV0hSUGRNdI1y03rbNP65tL072qROtg ]

[ my kismet code: ef956b ]

Submissions

2791.

Public health interventions and epidemic intensity during the 1918 flu pandemic(pnas.org ↗)

145 points · by divbzero · 6y ago · 34 comments

comment 6y ago · link · parent

I have run Python in its traditional synchronous form, using gevent, and with the more recent async/await syntax. I don’t hold this opinion strongly, but do lean towards async/await syntax for the sake of explicit is better than implicit [1]. Node.js which was asynchronous from the start also separates async from sync explicitly with, for example, distinct fs.readFile() and fs.readFileSync() functions [2].

[1]: https://www.python.org/dev/peps/pep-0020/ "PEP 20"

[2]: https://nodejs.org/dist/latest-v12.x/docs/api/fs.html#fs_fs_... "Node.js File System"

(Edit: Commenting only on clarity of syntax. Those performance metrics are interesting and I’ve admittedly never hit a scale where the difference has a practical impact.)

comment 6y ago · link · parent

Agreed on both (a) I usually like the author’s articles and (b) think she’s missing the point on this one.

gevent and gunicorn were good attempts to remedy a bad situation. async/await is the solution that the Python community is coalescing around. Even with Django, there are active efforts to support ASGI. [1]

[1]: https://docs.djangoproject.com/en/3.0/howto/deployment/asgi/...

comment 6y ago · link · parent

Fair point.

I currently pay $0 for a decent ad blocker but my DNS is still unencrypted. I would not be surprised if my former ISP (Big Cable Co) found a way to track me that way, hopefully my current ISP (local utility) would not. Also suspect that data can leak through the ad blocker anyway via first-party requests.

comment 6y ago · link · parent

> The idea that a single user browsing the web could have earned Brave anywhere near $25 in ad revenue is (coming from someone who worked in the ad industry for a couple years) completely absurd.

Wait, is that what my attention is worth to the online ad industry? I would gladly pay <$25/month to not be tracked for ads. (Or, even better, enjoy that as a consumer right protected by law.)

comment 6y ago · link · parent

And two nearby universities as well, Seattle University and Seattle Pacific University.

comment 6y ago · link · parent

The downside mentioned in the blog post is worth calling out:

> No technology is magical, every transition comes with disadvantages. An Isolate-based system can’t run arbitrary compiled code. Process-level isolation allows your Lambda to spin up any binary it might need. In an Isolate universe you have to either write your code in Javascript (we use a lot of TypeScript), or a language which targets WebAssembly like Go or Rust.

It’s also worth noting that for JavaScript the Workers Runtime environment [1] is more similar to the browser than to Node.js. Thus you cannot include NPM packages directly, e.g. you could not simply:

  const express = require('express')
[1]: https://developers.cloudflare.com/workers/reference/apis/sta... "Workers Runtime APIs"

comment 6y ago · link · parent

Yes, I think UW cancelled on-site classes Friday morning when a staff member tested positive. [1]

[1]: https://www.seattletimes.com/seattle-news/university-of-wash...

comment 6y ago · link · parent

For those annoyed by the ad on this morioh.com blog post, the official Python website offers a succinct description of the same feature: [1]

Dictionary Merge & Update Operators

Merge (|) and update (|=) operators have been added to the built-in dict class. See PEP 584 [2] for a full description. (Contributed by Brandt Bucher in bpo-36144 [3].)

[1]: https://docs.python.org/3.9/whatsnew/3.9.html "What’s New In Python 3.9"

[2]: https://www.python.org/dev/peps/pep-0584 "PEP 584"

[3]: https://bugs.python.org/issue36144 "bpo-36144"

comment 6y ago · link · parent

This is a small but welcome change.

Note that the two new operators introduced for dict

  a | b

  a |= b
brings the behavior in line with the same operators for set. [1]

[1]: https://docs.python.org/3.8/library/stdtypes.html#set-types-...

2801.

Stanford Medicine COVID-19 test now in use(med.stanford.edu ↗)

128 points · by divbzero · 6y ago · 35 comments

comment 6y ago · link · parent

This is a masterful history and a reminder that what we have now is just a quasi-frozen snapshot of evolving solutions. Is there any chance that an alternative (URN? IPFS? Dat?) will gain traction and resolve some of the shortcomings of the URL?

comment 6y ago · link · parent

It might be a self-reinforcing cycle? To get funding researchers write grant proposals to target the most trendy research topics, which when funded lead to more research papers and momentum around those topics. Speculative research is thereby forced to survive more as side projects than the primary research areas of successful labs.

comment 6y ago · link · parent

Curious. I wonder if analogous “traps” could be added to software.

comment 6y ago · link · parent

I was chatting with a B&N store clerk the other week who hinted at this plan. Great to see it become official.

Their new “indie” approach sounds intriguing and akin to what Amazon Books tries to accomplish. In today’s world, the physical store can no longer compete with the web’s infinite selection, but can still offer value in curation and presentation.

Don’t know if B&N will pull it off but wish them the best. I love bookstores and would hate to see them die.

comment 6y ago · link · parent

The CDC has a strong reputation and this would be a rare disappointment.

I think they still deserve benefit of the doubt for now but also owe the public a clear explanation, especially when professional epidemiologists are also puzzled by the situation.

The misstep if true would be particularly regretful for a couple reasons. First, the underlying technology isn’t complicated: PCR [1] is for molecular biology what the hash map might be for software engineering, not simple per se but well understood and widely used. The coronavirus test requires a variation to detect RNA instead of DNA [2] but that still isn’t rocket science. Second, the article points to alternative tests [3] that could probably have been performed safely by many labs in the US if they had the approval.

[1]: https://en.wikipedia.org/wiki/Polymerase_chain_reaction

[2]: https://en.wikipedia.org/wiki/Reverse_transcription_polymera...

[3]: https://www.who.int/emergencies/diseases/novel-coronavirus-2...

(Edit: It should be noted that PCR can be finicky. But given that labs around the world have been sharing which primers they use, I would hope that the CDC had access to that information, could test those primers in parallel, and pick the ones that performed the best.)

comment 6y ago · link · parent

This subthread reads like an excerpt from the Bible.

comment 6y ago · link · parent

For me the most useful advice has come in the form of “How should I spend my money?” Reddit has an excellent detailed flowchart [1] that echoes a simplified version that fits on an index card [2].

[1]: https://www.reddit.com/r/personalfinance/comments/4gdlu9/how...

[2]: https://www.npr.org/sections/alltechconsidered/2016/01/08/46...

comment 6y ago · link · parent

I live on the other side of Earth but can fully sympathize with your long drive. It’s a shame that the Milky Way is so difficult to see in most cities around the world. It is truly majestic: not only visually stunning but also awe-inspiring when you realize you’re gazing across the void at the next arm of our galaxy.

comment 6y ago · link · parent

Fascinating article!

Constellations of fishing boats can also be a significant source of light when viewed from space. Here are examples from NASA of fishing boats off the coasts of Argentina [1] and Thailand [2].

[1]: https://earthobservatory.nasa.gov/features/Malvinas

[2]: https://earthobservatory.nasa.gov/images/92152/fishing-in-gr...

comment 6y ago · link · parent

“Mass hysteria” sounds extreme and seems to exaggerate our joint response to date.

What I’ve observed from friends and news out of Seattle is general caution and a measured public response, which if successful can dramatically slow the rate of transmission.

1
939495
99