D Language retweeted
Completed GSoC'26 with @D_Programming .
I built a performance regression bot for the D compiler (DMD). It benchmarks every pull request.
Thanks to my mentor Dennis Korpel for the guidance.
I'll keep contributing to The D Language Foundation and it's ecosystem.
D Language retweeted
I will speak tomorrow at #DConf dconf.org/2024/index.html#gu…
D Language retweeted
More progress with #AArch64 #dlang dmd code generator. The function prolog/epilog is working at a basic level now, and so is the address resolution for stack symbols and register allocation is also working:
uint add(uint x, uint y) { return x + y; }
becomes:
0000: D1 00 43 FF sub sp,sp,#0x10
0004: B9 00 0B E0 str w0,[sp,#8]
0008: 2A 01 03 E2 mov w2,w1
000c: B9 40 0B E3 ldr w3,[sp,#8]
0010: 0B 23 40 40 add w0,w2,w3,uxtw
0014: 91 00 43 FF add sp,sp,#0x10
0018: D6 5F 03 C0 ret
0000: allocate space for locals
0004: save register parameter x as local
0008: save register parameter y as w2
000c: load local x into w3
0010: w0 = w2 + w3
0014: deallocate space for locals
0018: return from function
I know this looks treeevial, but an awful lot has to work to get this far.
#compilers #programming #programminglanguages
D Language retweeted
Another recreational programming video!
Saving and loading the state in binary format - Infinite Game of Life part 3
youtu.be/Sm3YGB56kVU
#programming #dlang #raylib
D Language retweeted
I suppose I can talk about the side project I'm working on -- porting @raysan5 's great raylib library to D. The end result will be D-ified API. But some interesting features of #dlang being used here, including the ability to import C code. schveiguy.com/draylib
D Language retweeted
C++26 vs Dlang2009 #dlang
D Language retweeted
Building #DLang Apps on Apache #NuttX RTOS ... Piece of cake 👍
Source: gist.github.com/lupyuen/e6fe…
D Language retweeted
VALIDATED! We hope to have #dlang, dkos, and examples fully integrated with KallistiOS for the Sega #Dreamcast, along with precompiled GDC toolchain binaries for DreamSDK on Windows! Thanks for bringing us this magnificent language and for personally turning me on to it!
You’re unable to view this Post because this account owner limits who can view their Posts. Learn more
D Language retweeted
Today's #dlang dmd #Aarch64 accomplishment:
long foo(long x, long y)
{
return 5;
}
becomes:
_D4test3fooFllZl:
0000: D2 80 00 A0 mov x0,#5
0004: D6 5F 03 C0 ret
I feel like Herr Doktor Frankenstein applying the lightning!
(I know it looks trivial, but there's an awful lot of code in a compiler to get to that point. Note that the compiler has a builtin disassembler I wrote that dumps the generated binary, rather than trying to assemble text.)
Many thanks to godbolt.org to show me what needs to happen.
#compilers #programminglanguages #programming
D Language retweeted
Level up! My visual novel now has options & transitions with a pixel-perfect retro vibe. Time to write the story.
#gamedev #indiedev #raylib #programming #dlang
D Language retweeted
I'm fairly pleased with this refactoring of a function that makes it dramatically easier to read, and is significantly reduced in size, although its behavior is identical.
github.com/dlang/dmd/pull/16…
#dlang #programming
D Language retweeted
Ever wonder why the code you wrote more than 5 years ago is a fetid swamp of awfulness? For many ideas on how to fix this, my talk on Comprehensible Programming is now available.
slides: nwcpp.org/talks/2024/underst…
video:
youtu.be/_Y3sK19Uhgg
#dlang #programming #compilers #programminglanguages
D Language retweeted
#importc now successfully converts function-like C macros to #dlang function templates:
#define ADD(a, b) a + b
is converted to a D function template:
auto ADD(T1, T2)(T1 a, T2 b) { return a + b; }
which opens up a lot more automatic support for C macro use.
github.com/dlang/dmd/pull/16…
#programming #compilers #programminglanguages
D Language retweeted
The next #dlang meeting will be Fri Feb 23 7pm at the Overlake Red Robin. We'll be determining who the Ring Bearer will be, so if you don't want to be selected, you'll need to attend.
D Language retweeted
I'm always amazed at how #dustmite can reduce a test case of terrifying complexity down to a few lines of code:
github.com/dlang/dmd/pull/16…
github.com/CyberShadow/DustM…
#dlang #programming
D Language retweeted
Posted on the #dlang forums Jan 18:
"Seriously, the reason I use D is precisely because it meets that perfect peak intersection on the graph between powerful and genuinely fun/enjoyable to work with. When I'm not doing commercial work in D, I have folder upon folder of little snippets and experiments I've done just to explore new ideas or try something entertaining or creative, because it's just that easy, and appealing, to jump right in and do it in D. Other languages haven't inspired me to that degree, and I'm one that rode the perl wagon for long after it should have turned around and headed back to civilization."














