nikki93/gx
View on GitHub ↗ ★ 97 Go
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.
6 mentions on Hacker News by 2 people: 1 story, 5 comments · first 2021-12-14 · latest 2023-11-25
20082026
-
…too so you can write shaders in Go and pass data to them with shared structs etc. The compiler: https://github.com/nikki93/gx (it uses the Go parser and semantic analysis phases from the standard library so all it has to do is output C++)…
comment by nikki93 · 2023-11-25 · in Making games in Go for absolute beginners -
▲ 2
Gx: Go to C++ Compilerstory by ingve · 2022-09-18 · 0 comments
-
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…
comment by nikki93 · 2022-09-17 · in Cppfront, Herb Sutter's proposal for a new C++ syntax -
…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. I get the perf, interop/libs…
comment by nikki93 · 2022-07-26 · in Build Pong in Your Terminal with Go for Some Reason -
…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... Can…
comment by nikki93 · 2022-01-12 · in Large-scale, semi-automated Go GC tuning -
…I'm making with it and a built-in scene editor that uses reflection etc. Repo for compiler itself: https://github.com/nikki93/gx (no README.md etc. yet, will be getting to that when I next have a chance (it's a side project)). It just…
comment by nikki93 · 2021-12-14 · in Type-Safe Printf for C