2,654 questions
1
vote
1
answer
53
views
Trying to build Python extension (module) with Dlang and pyd with dub + ldc2
I am trying to build a Python extension (module) with D and the pyd (https://github.com/ariovistus/pyd) and dub and ldc2 compiler on Windows.
I have the following dub.sdl:
name "hello"
...
1
vote
1
answer
50
views
Variadic function seems to work incorrectly in dmd
I encountered a strange behavior of variadic function in dmd v2.111.0
import std.stdio;
alias C = P!(S);
void main() {
auto s = random();
writeln(s.ts);
writeln(s.ts[0].n);
writeln(s....
1
vote
0
answers
93
views
Debugging GDT in assembly/D lang
I've been dabbling with writing a small OS in D lang but I'm crashing on boot. I've been debugging my main file and think that the issue is with gdt_flush which is called in gdt.d and defined in gdt.s....
2
votes
1
answer
209
views
Dlang application crashes with "Segmentation fault: 11" on macOS 15.4
After upgrading macOS from 15.3.1 to 15.4, my D executable crashes with Segmentation fault: 11.
I've tried using lldb to figure out what's going on, but am not sure what this reveals:
* thread #1, ...
1
vote
1
answer
188
views
OpenXR with Oculus using D
I am creating an OpenXR application, using Vulkan and Dlang, so mostly doing the integration and library management myself. ;(
I have an application that works, can create a Vulkan window and display ...
1
vote
1
answer
294
views
How do I make a docking interface in GTK?
I know this has been asked before, and the answer was GDL, but it now seems unused and outdated, so I thought it would be wise to ask it again.
The language of my choice is D, but it shouldn't matter ...
1
vote
1
answer
85
views
How to create an associative array of associative arrays in D?
I'm using D to crunch some data, it would be nice for me to be able to have an immutable map of maps that hold direction coordinates. I tried to do this via:
enum Direction
{
NORTH = "north&...
2
votes
1
answer
80
views
Is there a good way to Link CGAL in D?
I am trying to use CGAL in a D Program. I have generated the .o files from C++, but I am now stuck on how to link CGAL.
Because of this I would guess I need to find something similar to -lc++ but ...
0
votes
1
answer
77
views
Convert Unicode const(uint)* to a dlang character type
I'm writing an SFML app in D using bindbc.sfml. System clipboard functions for Unicode in this SFML bindings get and return Unicode clipboard text as const(uint)* where uint is a Unicode code.
How ...
1
vote
1
answer
933
views
Rendering a font in raylib using freetype
I write code in D, so the examples will be in it, but you can help me in any language that has bindings to Freetype and Raylib.
I'm trying to make the font glyphs load and render through Freetype, and ...
0
votes
0
answers
72
views
arsd.minigui (D) LineEdit customization
I am creating a GUI application in D using the arsd.minigui library. I need to make my widget like LineEdit, but change the background, remove border, change font, font size and alignment of text ...
0
votes
1
answer
107
views
Error Program exited with code -1073741819 - DerelictSDL2
I'm developing an application using SDL2 and SDL2_image in D, and I'm encountering an access violation error -1073741819 when I attempt to run my program. I've included the relevant code below. The ...
3
votes
2
answers
128
views
Is this the right way to combine Garbage collected with none Garbage collected code in D
I have been showing interest in systems level programming languages D caught my attention, so I was told the Dlang by default the GC is on but I can turn it off however I went beyond that I wanted to ...
2
votes
1
answer
79
views
Is it possible, in D, to tell the garbage collector to not scan a particular pointer (or anything below it)?
I have a very large tree structure that 1) does not often have nodes removed during the duration of the program, and 2) gets its nodes from a custom allocator that has its own reference to the block ...
1
vote
3
answers
128
views
Dlang associative array of an array of strings keyed by a string has unexpected behavior
The output from the following code does not behave how I think it should. It appears that making changes to the string array returned by testAA.require() does not reflect in the associative array. I ...