https://htmx.org logo
Join Discord
Powered by
# cplusplus-htmx
  • m

    mysterious-toddler-20573

    01/17/2023, 4:05 PM
    welcome @jolly-toddler-71191!
  • m

    mysterious-toddler-20573

    01/17/2023, 4:05 PM
    https://github.com/brakmic/HDA-Demo
  • m

    mysterious-toddler-20573

    01/17/2023, 4:05 PM
    from the #909436816388669530
  • j

    jolly-toddler-71191

    01/17/2023, 4:05 PM
    Great! Many thanks!
  • t

    tall-dinner-62086

    01/17/2023, 4:05 PM
    This channel is your responsibility now, raise it with care
  • l

    late-king-98305

    01/17/2023, 10:04 PM
    Man... and "htmx++" was right there... smh
  • l

    late-king-98305

    01/17/2023, 10:06 PM
    Jokes aside - how prevalent is server-side C++? I can see how it would be a nice choice (should be really fast and efficient), but I hadn't heard of it since I knew of some folks writing IIS modules.
  • j

    jolly-toddler-71191

    01/17/2023, 10:07 PM
    The later C++ standards made many things much easier to handle. Memory management (smart pointers), range support, lambdas (functional programming), string handling + formatting.
  • j

    jolly-toddler-71191

    01/17/2023, 10:09 PM
    The framework I'm using in the example project above is Drogon, and it doesn't need IIS or Apache to run. You program the web server itself.
  • j

    jolly-toddler-71191

    01/17/2023, 10:10 PM
    But Drogon is fairly complex and needs a bit of work to wire everything up. In the end, it's a true web server. And I am only touching a few simple parts of it. Drogon is much bigger.
  • j

    jolly-toddler-71191

    01/17/2023, 10:11 PM
    I'm thinking about writing another article with accompanying project, but this time with a smaller web server behind. Maybe something like "Crow": https://github.com/CrowCpp/Crow
  • l

    late-king-98305

    01/17/2023, 10:13 PM
    Cool - I appreciate the information. I'll definitely read up on them!
  • a

    aloof-farmer-99917

    01/17/2023, 10:50 PM
    With CGI anything can be a programming language for web
  • j

    jolly-toddler-71191

    01/17/2023, 10:51 PM
    Yes, that's true. A bit sad, that the previously diverse world of web development got so narrow.
  • j

    jolly-toddler-71191

    01/17/2023, 10:53 PM
    We sacrificed performance, flexibility, memory consumption, and hypermedia itself.
  • a

    aloof-farmer-99917

    01/17/2023, 10:59 PM
    https://learnbchs.org/ there's this (semi-joke?) stack. Although I kinda don't agree with putting sqlite into a separate process, that kills half of the reason to use sqlite 🙂
  • j

    jolly-toddler-71191

    01/17/2023, 11:03 PM
    Yes, I read about it some time ago. If I correctly remember, the guy uses OpenBSD.
  • j

    jolly-toddler-71191

    01/17/2023, 11:04 PM
    20 years ago I was a big fan of this excellent OS.
  • j

    jolly-toddler-71191

    01/17/2023, 11:04 PM
    Their packet filter was awesome (and sure still is).
  • j

    jolly-toddler-71191

    01/17/2023, 11:25 PM
    So, the other C++ web server, Crow, is working fine.
  • j

    jolly-toddler-71191

    01/17/2023, 11:26 PM
    Proof!
  • j

    jolly-toddler-71191

    01/17/2023, 11:27 PM
    It relies heavily on boost libraries, but there is a way to include only the things one really needs.
  • j

    jolly-toddler-71191

    01/17/2023, 11:28 PM
    I compiled it on my Mac and will try later the same with Windows.
  • j

    jolly-toddler-71191

    01/17/2023, 11:28 PM
    The nice thing with Crow is that it supports "mustache" templating.
  • j

    jolly-toddler-71191

    01/18/2023, 4:04 PM
    Here's the source code. I tested it under macOS and Windows. It supports SSL by default (self-signed certificates are included). https://github.com/brakmic/htmx_server
  • l

    late-king-98305

    01/18/2023, 4:35 PM
    https://tenor.com/view/clapping-sass-applause-gif-25898596
  • l

    late-king-98305

    01/18/2023, 4:35 PM
    > Life is too short for user-hostile software.
  • a

    aloof-ambulance-19063

    01/20/2023, 4:38 PM
    nice to see c++ in the list 😮