from Hacker News

Microsoft open sources C++ REST SDK "Casablanca"

by Rooki on 2/27/13, 3:15 AM with 44 comments

  • by charliesome on 2/27/13, 4:21 AM

    Disappointed to see the continued use of wide strings in new projects.
  • by ajross on 2/27/13, 4:40 AM

    Completely off topic, but was anyone as disoriented as I was to realize they were browsing an Apache-licensed git archive on a Microsoft site? It wasn't even awful (not github, or really even gitorious, but not bad).
  • by lmfao on 2/27/13, 5:25 AM

    I really like that they used the new C++11 features like lambdas etc. Will download and dig through the source code, seems to be one of the first OS projects by a major company which feature C++11.
  • by ajasmin on 2/27/13, 5:22 AM

    From what I understand this is a REST client library for making HTTP requests and dealing with JSON. Can anyone recommend a good C++ framework for writing REST services and simple HTTP servers.
  • by zerop on 2/27/13, 4:14 AM

    What are some good web frameworks in C/C++ to implement REST API?
  • by abcd_f on 2/27/13, 8:17 AM

    It's good to see the code using K&R naming convention (sans the class names starting with _).

    On the other hand, it's written in a C++ dialect that's incompatible with the one we are using. It also has quite a few unnecessary tie-ins into the native API and MSVC compiler specifics (#pragma endregion), so as nice of a gesture this is, it's not fit well for inclusion into other projects.

  • by CamperBob2 on 2/27/13, 4:45 AM

      file_stream<unsignedchar>::open_istream(L"myfile.txt").then([](basic_istream<unsignedchar> fileStream)
    
    I don't think I've ever seen this C++ idiom before (either the ".then" method or the use of anonymous brackets like that.) Is this common everywhere or just in Windows circles?
  • by mskierkowski on 2/27/13, 7:14 AM

    Back in the day (~4 yrs ago) there was a project called "Casablanca" at Microsoft which was supposed to be the native (C/C++) version of the Windows Communication Foundation. Is this the same "Casablanca"?
  • by reddit_clone on 2/27/13, 4:30 AM

    Is this Windows/VisualC++ only or is it portable?