Jonkman Microblog
  • Login
Show Navigation
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. clacke (clacke@social.heldscal.la)'s status on Monday, 09-Apr-2018 14:02:25 EDT clacke clacke
    Wow, #dpp, the D preprocessor.

    https://code.dlang.org/packages/dpp

    It takes an almost-D file that contains C-#includes, inserts those, translates any prototypes into the right D prototype in an extern(C) block, runs the result through the real cpp to expand any macros, and that becomes a D file that the normal compiler can compile.

    Sounds crazy, but apparently it's been tested to work for calling libcurl, openssl, nanomsg and a few others, and that's still early days. Kindasorta works with C++ if it's basically a C-compatible subset.

    !dlang
    In conversation Monday, 09-Apr-2018 14:02:25 EDT from social.heldscal.la permalink

    Attachments

    1. HTTP_Request2 needs an absolute HTTP(S) request URL, ':///packages/dpp/logo?s=000000000000000000000000' given
      Package dpp on DUB
      from DUB Package Registry
      Include C/C++ headers directly in D files
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

Jonkman Microblog is a social network, courtesy of SOBAC Microcomputer Services. It runs on GNU social, version 1.2.0-beta5, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All Jonkman Microblog content and data are available under the Creative Commons Attribution 3.0 license.

Switch to desktop site layout.