Hacker Newsnew | past | comments | ask | show | jobs | submit | zrb's commentslogin

But where is the RPC? This just seems like messaging

EDIT: Found this... https://github.com/erpc-io/eRPC


Wear a mask


https://zh.m.wikipedia.org/wiki/禁蒙面法

It doesn't say so on the English wikipedia page, but in some areas known for violence and particularly extreme Chinese crackdowns, wearing a mask in public is banned.



Doing the equivalent of "maybe chaining" isn't hard in c++ & quite elegant in c++17 in my view

https://stackoverflow.com/questions/7690864/haskell-style-ma...



Speaking as a Haskell user:

Maybe chaining is just sequencing functions against results with bind.

Lifting is a general concept that is applicable to functors, applicatives, monads, etc.

--> signifies the result of the computation

    fmap (+1) [0, 1, 2] --> [1, 2, 3]
    map  (+1) [0, 1, 2] --> [1, 2, 3]
    fmap (+1) (Just 2)  --> Just 3
In the above examples, fmap (from the Functor typeclass, polymorphic) and map (monomorphic function for mapping functions over lists) are lifting the functions they are passed.

There's a little bit of regrettable redundancy in Haskell's typeclasses, fmap, liftA, and liftM (functor, applicative, monad) all the same thing.

But liftM, while relevant to monads, isn't >>=, which is bind. bind being what's relevant to Maybe chaining (just using >>= against Maybe values).


The rich Indians will go abroad for treatment. The poor Indians can't afford the drug anyway. The middle class will be squeezed, but they will manage through relatives, friends etc.

India win, Novartis lose


Why is this being downvoted? This is not reddit, if you disagree with his post, please give us an idea why.

As far as it goes, the only contentious part of his comment is the last line - India win, Novartis lose.

Otherwise his description of how Indians tend to deal with drug costs is a succinct portrayal of the current reality.


That bank headquartered in Singapore uses something different from Haskell. It is almost Haskell in most aspects... but uses strict evaluation.


But isn't this what BOOST MPL does, at least partially?


Boost MPL provides similar things with its type_list (more on the practical side though). But as far as I know, it's not yet C++11, so the overall syntax is a bit more clumsy.


Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: