HNHacker News
TopNewBestAskShowJobs

mc10

138 karma · joined December 3, 2016

submissionscomments
mc10··on Why Dark didn't choose Rust
As someone who's relatively new to Rust, I'm curious: what is an example of a situation where someone might lean on Rc/Arc as a "band-aid", and what would be a more "idiomatic", non-Rc/Arc solution?
mc10··on Leaving OCaml
OCaml functors are not the same as Haskell/F# functors/applicatives (which are essentially one and the same in OCaml if you use named arguments).

Instead, they're roughly "functions from modules to modules": https://dev.realworldocaml.org/functors.html. Functors allow you to replicate much of what classes/objects in an OO language offer, but with static instead of dynamic dispatch.

mc10··on Don’t pay for 95% (2016)
This is attacking a straw man; the elimination of single-family zoning does not imply replacing that zoning with some other equally onerous requirement. Allowing students to attend school without requiring a dress code is hardly "imposing your preferred solution on everybody else".

Also, the idea that local interests should have the power to block community changes is directly responsible for many prescient issues, like the lack of housing in California causing sky-high home and rental prices. See e.g. a review of the book Golden Gates, which touches on NIMBY-ism in California: https://www.nytimes.com/2020/02/13/business/economy/housing-...

mc10··on Where our economy is, for the young
Curious, in what way is the Fed’s bond purchasing program illegal?
mc10··on Ask HN: What is your favorite method of sending large files?
WebTorrent is pretty limited though:

> ... a browser-based WebTorrent client or "web peer" can only connect to other clients that support WebTorrent/WebRTC.

(from https://webtorrent.io/faq)

This essentially splinters the world into the bittorrent and webtorrent halves, which makes it far less useful.

mc10··on Math.min(Math.max(num, min), max)
You can prove that this algorithm works for both of those cases. Assuming min <= max:

If a < min, then the sorted array is [a, min, max]. The median is min, which is a clamped to min.

If a > max, then the sorted array is [min, max, a]. The median is max, which is a clamped to max.

mc10··on Forget Google, time to end the Visa-MasterCard duopoly
Apple Pay doesn't solve anything on the merchant's side. There's just nothing in the US with the simplicity and affordability as the various payment apps in Asian countries.

For instance, in China WeChat Pay only charges 0.1% above 10,000 RMB (from what various articles say). Square is not even in the same category, charging 2.6% + 10¢. And you don't need to buy any equipment to use WeChat Pay; you just need to pull up a QR code on your phone.

mc10··on Adding an Effect System to OCaml [video]
Here are some recent (June 2018) slides about multicore OCaml that provide some extra information about effect handlers: http://kcsrk.info/slides/mcocaml_gallium.pdf
← PreviousPage 3 of 3