BindBC codegen survey

IchorDev zxinsworld at gmail.com
Wed Sep 10 10:42:49 UTC 2025


On Tuesday, 9 September 2025 at 22:42:29 UTC, Mike Shah wrote:
> On Sunday, 31 August 2025 at 11:07:39 UTC, IchorDev wrote:
>> Oh hey, that sounds awesome!
>
> One small update, that I have started making videos in my SDL3 
> series with Dlang to show how to setup (in some of them) 
> bindbc.sdl. This may be useful documentation for folks :) 
> https://www.youtube.com/playlist?list=PLvv0ScY6vfd-5hY-sFyttTjfuUxG5c7OA

Wow, that's so cool! :)
I noticed at [11:10 in Episode 
2.1](https://youtu.be/V7BNGMX7U9I?t=670): you say 'you can decide 
if you want to link statically', but this might be misleading. 
The option you're referring to actually enables static 
*bindings*. It's a common misconception, but static *bindings* ≠ 
static *linking*:
- **Dynamic bindings**: only support dynamic *linking* (since the 
library is loaded by your code)
- **Static bindings**: can be either statically *linked* **or** 
dynamically *linked*. If they're dynamically linked, then the 
compiler generates its own library loading code and runs it 
before your code is ever called into.

You can read more about static bindings 
[here](https://git.sleeping.town/BindBC/bindbc-sdl#static-bindings) in BindBC-SDL's readme.


More information about the Digitalmars-d mailing list