www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - [ INQUIRY ]: Full BetterC projects

reply wron <wron mail.com> writes:
Are there any projects dedicated to using only betterC as a 
better C alternative? Are full C-like projects in the scope of 
this feature, or is it only good for prototyping, easier C 
intergration, wasm (maybe more)?
Feb 14
next sibling parent monkyyy <crazymonkyyy gmail.com> writes:
On Saturday, 14 February 2026 at 12:56:38 UTC, wron wrote:
 Are there any projects dedicated to using only betterC as a 
 better C alternative? Are full C-like projects in the scope of 
 this feature, or is it only good for prototyping, easier C 
 intergration, wasm (maybe more)?
https://github.com/crazymonkyyy/raylib-2024/tree/master I STRONGLY dont suggest it
Feb 14
prev sibling next sibling parent Mike Parker <aldacron gmail.com> writes:
On Saturday, 14 February 2026 at 12:56:38 UTC, wron wrote:
 Are there any projects dedicated to using only betterC as a 
 better C alternative? Are full C-like projects in the scope of 
 this feature, or is it only good for prototyping, easier C 
 intergration, wasm (maybe more)?
The original intent behind BetterC was to make it easier to integrate D modules into existing C projects and easier to port C projects to D. But it's 100% possible to go all out with it on a full project. However, that's not how it's intended to be used and ecosystem support for it is limited. Going that route, you lose a lot of good D features and most of the standard library, and you'll have to roll a lot of your own stuff. If you're okay with that, then do what you want.
Feb 14
prev sibling next sibling parent reply Kapendev <alexandroskapretsos gmail.com> writes:
On Saturday, 14 February 2026 at 12:56:38 UTC, wron wrote:
 Are there any projects dedicated to using only betterC as a 
 better C alternative? Are full C-like projects in the scope of 
 this feature, or is it only good for prototyping, easier C 
 intergration, wasm (maybe more)?
My code supports it, but I would not say my projects are dedicated to using only it. I mainly use it for WASM and other niche things. Here is some code you can look at: 1. [microui-d](https://github.com/Kapendev/microui-d) 2. [Joka](https://github.com/Kapendev/joka) 3. [Parin](https://github.com/Kapendev/parin)
Feb 15
next sibling parent Kapendev <alexandroskapretsos gmail.com> writes:
On Sunday, 15 February 2026 at 09:21:02 UTC, Kapendev wrote:
 On Saturday, 14 February 2026 at 12:56:38 UTC, wron wrote:
 Are there any projects dedicated to using only betterC as a 
 better C alternative? Are full C-like projects in the scope of 
 this feature, or is it only good for prototyping, easier C 
 intergration, wasm (maybe more)?
My code supports it, but I would not say my projects are dedicated to using only it. I mainly use it for WASM and other niche things. Here is some code you can look at: 1. [microui-d](https://github.com/Kapendev/microui-d) 2. [Joka](https://github.com/Kapendev/joka) 3. [Parin](https://github.com/Kapendev/parin)
D by default is already a better C alternative :)
Feb 15
prev sibling parent reply wron <wron mail.com> writes:
On Sunday, 15 February 2026 at 09:21:02 UTC, Kapendev wrote:
 On Saturday, 14 February 2026 at 12:56:38 UTC, wron wrote:
 Are there any projects dedicated to using only betterC as a 
 better C alternative? Are full C-like projects in the scope of 
 this feature, or is it only good for prototyping, easier C 
 intergration, wasm (maybe more)?
My code supports it, but I would not say my projects are dedicated to using only it. I mainly use it for WASM and other niche things. Here is some code you can look at: 1. [microui-d](https://github.com/Kapendev/microui-d) 2. [Joka](https://github.com/Kapendev/joka) 3. [Parin](https://github.com/Kapendev/parin)
Do you have any embedded projects? I'm looking for some project examples on embedded with D but with no success.
Feb 16
next sibling parent Serg Gini <kornburn yandex.ru> writes:
On Tuesday, 17 February 2026 at 07:06:36 UTC, wron wrote:
 Do you have any embedded projects? I'm looking for some project 
 examples on embedded with D but with no success.
https://theartofmachinery.com/2017/02/28/bare_metal_d.html https://zyedidia.github.io/blog/posts/1-d-baremetal/
Feb 16
prev sibling next sibling parent Kapendev <alexandroskapretsos gmail.com> writes:
On Tuesday, 17 February 2026 at 07:06:36 UTC, wron wrote:
 Do you have any embedded projects? I'm looking for some project 
 examples on embedded with D but with no success.
Nope. I could try. What is the most common thing when people talk about embedded?
Feb 16
prev sibling parent Mindy (0xEAB) <desisma heidel.beer> writes:
On Tuesday, 17 February 2026 at 07:06:36 UTC, wron wrote:
 Do you have any embedded projects? I'm looking for some project 
 examples on embedded with D but with no success.
Check out this Wiki entry: <https://wiki.dlang.org/D_on_AVR>
Feb 17
prev sibling parent Mindy (0xEAB) <desisma heidel.beer> writes:
On Saturday, 14 February 2026 at 12:56:38 UTC, wron wrote:
 Are full C-like projects in the scope of this feature, or is it 
 only good for prototyping, easier C intergration, wasm (maybe 
 more)?
I’ve written two games[0][1] using only the betterC subset of D — though that was primarily as a size optimization for the resulting binary in the context of game jams[2]. The second game[1] also makes heavy use of the importC[3] feature of D compilers. [0] <https://0xeab.itch.io/quantum-jump-pinball> [1] <https://0xeab.itch.io/would-you-still-save-the-world-with-me-if-i-were-a-worm> [2] <https://4mbjam.dev/> [3] <https://dlang.org/spec/importc.html>
Feb 15