HNHacker News
TopNewBestAskShowJobs

weiming

1,099 karma · joined May 8, 2018

未名
submissionscomments
weiming··on Goodbye, New York, California and Illinois – Hello where?
Tongue-in-cheek comment that I've read somewhere is that folks flee Democrat-run cities due to high taxes and mismanagement and move elsewhere, but then continue voting Democrat to bring back the same policies they wanted to escape from.
weiming··on A Sad Day for Rust
The "unsafe" keyword should probably just be called "unchecked," otherwise it is a bit of a misnomer.
weiming··on Google Culture War Escalates as Era of Transparency Wanes
> is serviced by an army of workers that wear special uniforms, are not included in the major perks

Isn't this about government (IRS et al.) categorization of contractors vs. employees and not about GOOG specifically? IIRC there is a specific reason contractors cannot receive employee perks or even participate in team morale events.

weiming··on How to proceed when you run out of cash, but you still believe?
Cool idea but, from watching the demo videos:

(a) That's a messy, unappealing closet.

(b) The Alexa interaction felt awkward. Probably a touch interface would've worked better.

(c) Ugh, (used?) boots on the TV stand.

(d) Many of the clothing items we own are Asian items without barcodes. Wonder how the import would work on those.

(e) The website (chicisimo) could use a lot, and I mean a lot of copywriting love. So many walls of text. Some fashion photos should be front and center. It is hard to understand what is going on in the animated iOS screen.

weiming··on The 16-Inch MacBook Pro
I can't believe how often I accidentally press something on the touch bar as my finger somehow brushes across it.
weiming··on Ask HN: With paywalls everywhere now where do you get your news?
NYT is neutral?
weiming··on Why is hi-tech Japan using cassette tapes and faxes? (2015)
Even these days, daily and business life in Japan is something that will make an eco- or time-conscious Westerner cry. Routine documents are printed out with many copies instead of being consumed electronically, many forms and documents are handwritten, cash is still used for most purchase transactions, despite NFC readers/phones/cards being ubiquitous, and regular people take a morning trip to the ATM to get daily cash.
weiming··on Apple approves previously rejected HKMap.live app
Not that difficult to notarize an app. For example, the latest Sublime Text just added it the other day.
weiming··on Hong Kong protest safety app banned from iOS store
Plot twist: As of 2018, Grindr is literally owned by a Chinese holding company, Beijing Kunlun Tech Co Ltd.

It looks like they were asked by US regulators to sell it off due to privacy concerns: https://www.reuters.com/article/us-grindr-m-a-beijingkunlun/...

weiming··on Ocean plastic waste probably comes from ships, report says
Extensive air pollution from China or India that surpasses the West also doesn't seem to get much attention, e.g. [1] [2]

Greta visited the US and gave some compelling speeches. Will she visit China and India and do the same?

[1] https://www.forbes.com/sites/rrapier/2018/07/01/china-emits-...

[2] https://qz.com/india/1581665/indias-carbon-emissions-growing...

weiming··on Hard Times in Silicon Valley? Not for the Payments Startup Stripe
Hey that's great! Thanks, will give this a go.
weiming··on Hard Times in Silicon Valley? Not for the Payments Startup Stripe
How does everyone deal with sales tax/VAT collection with Stripe? If selling software licenses for example. It seems like you have to use a third-party solution [1] and wondering why Stripe doesn't provide such a service themselves.

[1] https://stripe.com/docs/orders/tax-integration

weiming··on Rent control will make housing shortages worse?
I don't think by any measurements the NY State/City gov'ts and/or New York Times can be called conservative.
weiming··on Rent control will make housing shortages worse?
Tell that to people living in NY public housing...

"Imagine paying rent for a home with rats, cockroaches, lead paint and mold. That’s what far too many of the estimated 600,000 residents of New York City public housing are doing, even after a lead paint scandal led to an investigation by federal prosecutors." [1]

[1] https://www.nytimes.com/2019/07/30/opinion/new-yorks-public-...

weiming··on iPhone 11 Pro and iPhone 11 Pro Max
Sigma cameras are getting close to that form factor. [1]

[1] https://www.sigma-global.com/en/cameras/dp-series/

weiming··on India Loses Contact with Probe Just as It Prepares to Land on Moon
On the contray, I am looking forward to the Space Force (The President has just unveiled the Space Command.) [1]

[1] https://www.economist.com/united-states/2019/09/05/donald-tr...

weiming··on Palantir forced out of job fair after outcry over ICE contracts
> Facing societal oppression

> Sponsored by some of the country's biggest companies: https://lesbianswhotech.org/newyork2019/#Sponsors

weiming··on Palantir forced out of job fair after outcry over ICE contracts
Diversity != Diversity of thought
weiming··on Palantir forced out of job fair after outcry over ICE contracts
Soon, activists will start boycotting Microsoft (gov't agencies use Word and Excel), 3M (gov't agencies use Post-it notes), and Charmin (they also buy toilet paper).
weiming··on The Provocations of Camille Paglia
"Behind that devotion to heterodoxy lies something softer. She admitted that she’s chosen to censor herself in front of her students [...] I don’t want to upset them. The historical material is too painful for a music class,” she said."

I don't know if this is representative of the current times, but sad if so.

weiming··on Opioid crisis: Johnson and Johnson hit by landmark ruling
A friend recently had a minor procedure (he took a couple of ibuprofens after and that was all). But the doctor gave him about a dozen of narcotic pills that eventually ended up in the trash.

Another friend had a persistent cough getting over a cold and was given oxycodone in liquid form "to help sleep." She never took it.

Both of these were at major facilities in the Bay Area. Thinking at least some of the blame falls on the docs.

weiming··on Desegregation Plan: Eliminate All Gifted Programs in New York
This space intentionally left blank
weiming··on Desegregation Plan: Eliminate All Gifted Programs in New York
This space intentionally left blank
weiming··on From Mac to Linux – the setup I've grown to love
What are some of those things? (Curious question, haven't thought of switching yet but could try if it's worth it.)
weiming··on How Rust optimizes async/await
(Of course, this is Tokio-specific)

Cooperative scheduling is used to schedule tasks on executors. A single executor is expected to manage many tasks across a small set of threads. There will be a far greater number of tasks than threads. There also is no pre-emption. This means that when a task is scheduled to execute, it blocks the current thread until the poll function returns.

Because of this, it is important for implementations of poll to only execute for very short periods of time. For I/O bound applications, this usually happens automatically. However, if a task must run a longer computation, it should defer work to a blocking pool [1] or break up the computation into smaller chunks and yield back to the executor after each chunk. [2]

"poll" here refers to the callback function in the future that actually does the work.

[1] https://docs.rs/tokio-threadpool/0.1.15/tokio_threadpool/fn....

[2] https://tokio.rs/docs/internals/runtime-model/

weiming··on How Rust optimizes async/await
You need a third-party library to provide an executor. Rust does not come with one to keep the runtime size small. The community seems to have centralized on https://tokio.rs/ (under the hood it uses epoll/whatever OS-specific functionality to schedule M:N)

See: https://news.ycombinator.com/item?id=20722297

weiming··on How Rust optimizes async/await
Going down the same rabbit hole earlier this week, found this to be a good explanation:

All of the data needed by a task is contained within its future. That means we can neatly sidestep problems of dynamic stack growth and stack swapping, giving us truly lightweight tasks without any runtime system implications. ... Perhaps surprisingly, the future within a task compiles down to a state machine, so that every time the task wakes up to continue polling, it continues execution from the current state—working just like hand-rolled code. [1]

[1] https://aturon.github.io/blog/2016/09/07/futures-design/

weiming··on How Rust optimizes async/await
A future is a one-shot generator, give or take.

Good reading list at the bottom of https://areweasyncyet.rs, starting with this post that uses generators as an example: https://boats.gitlab.io/blog/post/2018-01-25-async-i-self-re...

weiming··on How Rust optimizes async/await
As a newcomer to Rust, wishing that this post was one of the first ones I've read about this topic. It took scouring through many many posts, some of them here on HN, to be able to grasp some of the same idea. (I may not be alone, judging from the very long discussion the other day: https://news.ycombinator.com/item?id=20719095)
weiming··on We Have Ruined Childhood
Why not plan an activity or build something together?
← PreviousPage 2 of 6Next →