2,646
questions
0
votes
1
answer
45
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
16
views
Need suggestions on getting data from odoo inside Django on user navigation
I am developing a Complaint Management System with the admin side in Odoo and the subscriber side in Django. All complaints and subscriber information are managed on the admin/Odoo side, while the ...
0
votes
0
answers
54
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
63
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
82
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 ...
1
vote
1
answer
50
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
65
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 ...
3
votes
1
answer
80
views
ld: undefined reference to object I can see in objdump
I am doing some unorthodox linking right now and predictably enough I encountered some issues.
However I have gone through all the usual subjects and the problem persists.
I have a D source file ...
1
vote
2
answers
90
views
D using emplace
I am trying to use emplace in this piece of code:
class motionFactory{
public:
this(double velocity, double gravity, double angle){
this.velocity = velocity;
...
3
votes
1
answer
316
views
I'm getting a confusing link error building a trival D program on my Mac
I'm new to D programming. I'm using macOS Sonoma on an M1 processor. The clang version on my system is 15.0.0. I installed the latest version of DMD (2.106). I created this program:
import std.stdio;
...
0
votes
2
answers
114
views
Splitting a string treating multiple whitespace as one separator
I want to split a string in D programming language, so that elements that are empty strings, are not counted.
Example:
Input : This is a string [Note that between is and a, there are 3 blank spaces]
...
1
vote
2
answers
114
views
Is there a simpler way to do a parallel for-loop in D
Learning D and implementing a ray/path tracer algorithm to solidify the learning. I would like to cast rays in parallel, so this is currently how I have my outer for-loop parallelized:
auto yRange = ...
2
votes
2
answers
133
views
What is wrong with my MVP matrix operations?
I'm trying to program a 3D graphic engine (almost game engine) using Vulkan, following https://vulkan-tutorial.com/.
I've gotten to end of the Uniform Buffer section but instead of nicely angled ...
2
votes
1
answer
125
views
Intellisense for D in VS Code
I'm using the code-d extension. Auto-completion works for the standard library, but not for installed modules. The same vibe-d. And also, you can easily write a call to a non-existent method or a ...
2
votes
1
answer
114
views
How to make an http POST request with JSON data in D
How to
(1) define the JSON payload
(2) using a multiline string
(3) specify the http header fields such as "Content-Type"
(4) send the POST request with the JSON data
(5) receive the ...