gx VS drogon

Compare gx vs drogon and see what are their differences.

gx

A Go->C++transpiler meant for data-oriented gameplay and application programming especially for WebAssembly. Using this mostly in the context of specific personal projects and heavily focusing the feature set on those. Used in my Raylib gamejam project: https://github.com/nikki93/raylib-5k -- also being used to develop a private longer term game project and a note-taking app. (by nikki93)

drogon

Drogon: A C++14/17/20 based HTTP web application framework running on Linux/macOS/Unix/Windows (by drogonframework)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
gx drogon
6 18
88 10,761
- 1.2%
4.8 8.9
23 days ago 2 days ago
Go C++
- MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

gx

Posts with mentions or reviews of gx. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-24.
  • Making Games in Go for Absolute Beginners
    17 projects | news.ycombinator.com | 24 Nov 2023
    Nice! Ebiten is a super nice API for Go. Lots there to be inspired by in API design. Another API I like a lot is Love for Lua (which also actually can be used from C++).

    Re: the comments on here about the GC etc. -- I've posted about this a couple times before but I've been using a custom Go -> C++ compiler for hobby gamedev, which helps with perf, gives access to C/C++ APIs (I've been using Raylib and physics engines etc.) and also especially has good perf in WebAssembly. Another nice thing is you can add in some reflection / metaprogramming stuff for eg. serializing structs or inspector UI for game entity properties. I was briefly experimenting with generating GLSL from Go code too so you can write shaders in Go and pass data to them with shared structs etc.

    The compiler: https://github.com/nikki93/gx

  • Gx: Go to C++ Compiler
    1 project | news.ycombinator.com | 17 Sep 2022
  • Cppfront, Herb Sutter's proposal for a new C++ syntax
    13 projects | news.ycombinator.com | 17 Sep 2022
    I've been using my own little Go (subset / my own extensions) -> C++ compiler -- https://github.com/nikki93/gx -- and found it to be a fun way to add some guardrails and nicer syntax over C++ usage. You get Go's package system and the syntax analyzers / syntax highlighters etc. just work.
  • Build Pong in Your Terminal with Go for Some Reason
    6 projects | news.ycombinator.com | 26 Jul 2022
    Re: perf for hobby gamedev, I basically agree for native builds, but lately I've felt like Wasm support seems key for hobby gamedev (so you can have more people play your game / without downloading it / it works directly on mobile too without dealing with app or play store). And Go perf in Wasm unfortunately is not so good (I was hitting big GC pauses when trying to make a game with Ebiten and large images).

    I ended up writing a Go -> C++ compiler. The games I've done with it don't use the GC at all but also don't manually manage memory -- they use an ECS api which helps. https://github.com/nikki93/gx -- the README links to development workflow video and complete example game code.

  • GoGCTuner brought CPU utilisation down ~50%
    5 projects | news.ycombinator.com | 12 Jan 2022
    I've written my own Go (subset + extensions) -> C++ transpiler and using it on a game project: https://www.youtube.com/watch?v=8He97Sl9iy0 -- No GC, it does have slices and has access to an entity/component API and with that I think you're basically set and don't need GC for games.

    Example transpiler input / output: https://github.com/nikki93/gx/blob/master/example/main.gx.go... becomes https://gist.github.com/nikki93/97ff376abb6718427387bb9cca2f...

  • I wrote a simple Go->C++ compiler for gameplay programming (gives module system, simple definition-checked generics, static reflection). Here's a demo from my game project. Generated C++ visible at end of video. Compiler source is ~1500 lines, link in description. Will do a public release soon!
    1 project | /r/cpp | 25 Nov 2021
    Hey thanks! The source code for the compiler itself is here: https://github.com/nikki93/gx along with a test / example under the 'example/' directory. This is the C++ output when compiling 'example/': https://gist.github.com/nikki93/b650c551ccb67490d8607980a582c468

drogon

Posts with mentions or reviews of drogon. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-11-06.
  • Experience using crow as web server
    11 projects | /r/cpp | 6 Nov 2023
    I looked at oatpp and drogon, which are both great, but feel too high-level for my purposes. I tried drogon and got something working, but it feels like too much for my requirements, as in particular I'd like to slot in my choice of Json and message-body handling. C.f. the simple approach in Crow, which I easily understand and build on.
  • Dobri projekti na Githubu za ucenje
    7 projects | /r/CroIT | 26 Jun 2023
    drogonframework/drogon i drogonframework/trantor
  • Ask HN: Easiest and cheapest full-stack frameworks that you love?
    9 projects | news.ycombinator.com | 9 Feb 2023
    talking about C++, there are drogon framework: https://github.com/drogonframework/drogon

    not bells and whistles like on Wt as there are no integrated widgets. But have c++ based template (for HTML) engine and other integrated parts what you expect from framework (routing, controllers, db, authentication handling and so on).

    and boasts high performance design

  • Lies we tell ourselves to keep using Golang
    11 projects | /r/programming | 30 Dec 2022
    C++ - my favorite language, and, with modern revisions, extremely expressive and readable. There isn't a web server in the standard library, but there are a number of solid open-source choices (e.g., Drogon).
  • Cppfront, Herb Sutter's proposal for a new C++ syntax
    13 projects | news.ycombinator.com | 17 Sep 2022
    > * Let’s not pretend all conceivable applications are, or should be, written in C++.*

    This is a discussion on C++.

    > People mostly stopped using C++ to develop web servers which handle web requests, because they moved to Java, C#, PHP, Ruby, Python, etc.

    I'm not sure you understood what I said, or thought things through.

    By the way, the top performing web framework in the Tech Empower benchmark is a C++ framework which uses C++'s standard smart pointers.

    https://github.com/drogonframework/drogon

    Also, one of the most popular web frameworks for Python started off as an April Fools joke. I'm not sure what's your point.

    Lastly, the main reason why C++ ceased to be the most popular choice in some domains was because it was during a very long time the most popular choice in some domains, and still remains one of the most popular choices. Some of the reasons why C++ dropped in popularity is the fact that some vendors decided to roll their own alternatives while removing support for C++. Take for instance Microsoft, which was once responsible for making C++ the only tool in town for professional software development. Since it started pushing C# for all sorts of web applications, multi-platform applications, and even desktop applications, and also pushing the adoption of those technologies as a basic requirement to distribute apps in its app store, developers can only use technologies that exist. But does that say anything about the merits of C++?

  • What library/framework to use for writing a Web server?
    3 projects | /r/cpp_questions | 24 Aug 2022
    https://github.com/drogonframework/drogon has the best performance afaik
  • Hmm
    13 projects | /r/ProgrammerHumor | 11 Aug 2022
    Drogon is a framework for doing web backend in c++ but it is nowhere near on the level of something like Django in terms of ergonomics. In terms of Rust, Rocket is trying to be the easy to use framework with low boilerplate.
  • Programming languages endorsed for server-side use at Meta
    14 projects | news.ycombinator.com | 27 Jul 2022
    > How would one go about building a rest service in C++?

    I'd use https://github.com/drogonframework/drogon if the app needs to be pure C++ or Cutelyst (https://cutelyst.org/) if it's a Qt app which needs to expose an http server

  • Built my first project with rust!
    3 projects | /r/rust | 22 Jul 2022
    About the project - I was trying to find the perfect reliable and performant rust's web framework to use for one of my personal project, and since I've been using Drogon/uWebSockets previously, I wanted to choose the best one to replace it. So I decided to create a benchmark system that is fully automated.
  • Which library canI use for rendering html??
    2 projects | /r/learnprogramming | 29 Jun 2022

What are some alternatives?

When comparing gx and drogon you can also consider the following projects:

printf - Tiny, fast(ish), self-contained, fully loaded printf, sprinf etc. implementation; particularly useful in embedded systems.

Boost.Beast - HTTP and WebSocket built on Boost.Asio in C++11

cppfront - A personal experimental C++ Syntax 2 -> Syntax 1 compiler

Oat++ - 🌱Light and powerful C++ web framework for highly scalable and resource-efficient web application. It's zero-dependency and easy-portable.

rotaterm

POCO - The POCO C++ Libraries are powerful cross-platform C++ libraries for building network- and internet-based applications that run on desktop, server, mobile, IoT, and embedded systems.

flapioca - A Flappy Bird-inspired terminal game written in Go.

cppcoro - A library of C++ coroutine abstractions for the coroutines TS

go - The Go programming language

trantor - a non-blocking I/O tcp network lib based on c++14/17

Vrmac - Vrmac Graphics, a cross-platform graphics library for .NET. Supports 3D, 2D, and accelerated video playback. Works on Windows 10 and Raspberry Pi4.

restclient-cpp - C++ client for making HTTP/REST requests