On Monday, 6 February 2023 at 15:54:40 UTC, bachmeier wrote:
This is the specification for the D Programming Language.
I've been bitten by that a few times over the years, though to
be honest, I'm not sure of the relationship of the spec to
documentation. The Phobos documentation and compil
On Sunday, 5 February 2023 at 19:00:16 UTC, Richard (Rikki)
Andrew Cattermole wrote:
So LDC with druntime and yes GC turned on is good enough right
now that you can probably make it work without too much effort.
You don't necessarily have to limit yourself to -betterC.
In fact if you don't, yo
On Sunday, 5 February 2023 at 00:27:19 UTC, Richard (Rikki)
Andrew Cattermole wrote:
On 05/02/2023 1:20 PM, Adam D Ruppe wrote:
Even module imports can fail because betterC disables
outputting the module data info, even if it would otherwise be
required by language rules, despite it not using t
On Sunday, 5 February 2023 at 00:20:24 UTC, Adam D Ruppe wrote:
There's a lot of things described in the documentation that
don't actually work. D can be an *extremely* productive
language if you know which parts to focus on, but most the
newer hyped features just don't deliver.
The table of
On Saturday, 4 February 2023 at 19:44:15 UTC, bachmeier wrote:
On Saturday, 4 February 2023 at 18:29:41 UTC, Tamas wrote:
What's the reason to prefer LDC over DMD?
Anyone that cares about performance will use LDC rather than
DMD. It's hard to imagine a case where someone would want
betterC
On Saturday, 4 February 2023 at 18:27:34 UTC, Adam D Ruppe wrote:
On Saturday, 4 February 2023 at 18:11:05 UTC, Tamas wrote:
Well, as I'm new to D this isn't something I have insight into.
Then you'd probably be better off taking my word for it (or
even trusting your own limited experience wh
On Saturday, 4 February 2023 at 16:51:36 UTC, Richard (Rikki)
Andrew Cattermole wrote:
You don't have access to druntime/Phobos stuff at runtime.
SimpleDllMain is for initializing and uninitializing druntime.
See:
https://github.com/Project-Sidero/basic_memory/blob/main/source/sidero/base/dllm
Hi, thanks for the feedback. I'm happy to see 2 replies so
quickly.
On Saturday, 4 February 2023 at 17:26:17 UTC, Adam D Ruppe wrote:
On Saturday, 4 February 2023 at 16:45:31 UTC, Tamas wrote:
export extern (C) void main()
mixin SimpleDllMain;
No need to ever mix two mains together, the DllM
Hi,
I'm new to D and trying my hands on a few simple things. Being
able to build a Windows DLL with betterC enabled is of particular
interest to me, as I'd need it for a project that I'd like to do
in D.
I'm trying to follow some examples, such as
[this](https://wiki.dlang.org/Win32_DLLs_in
On Wednesday, 2 March 2016 at 09:37:03 UTC, Johan Engelen wrote:
On Wednesday, 2 March 2016 at 07:42:09 UTC, Tamas wrote:
Thanks, fixing this single issue solved the compiler crash too.
Did the compiler crash? Or just exit?
(a crash would still be a bug)
Crashed, just like in the case of Edw
Thanks, fixing this single issue solved the compiler crash too.
Thanks also for the tip using hasUDA! Works nicely!
My d code doesn't compile using ldc2 1.0.0-alpha or anything
above DMD v2.068.0
Using these compilers I get a lot of "Warning: statement is not
reachable". Then the both compiler crashes.
I minimized the code to get the same warning, although the
compilers do not crash this time, so this mig
Thanks Nicholas , I have integrated some of your advice on the
edited code i.e. foreach and ref in pattern . Hope I fully
understood what you meant. Am yet to look whether I still need
to change the signature . I have heared there are two
approaches to this, Where does one really draw the lin
On Saturday, 18 July 2015 at 13:16:26 UTC, Adam D. Ruppe wrote:
On Saturday, 18 July 2015 at 10:06:07 UTC, Tamas wrote:
Compile & execute:
$ dmd positive0.d; ./positive0; echo $?
$ ldc2 positive0.d; ./positive0; echo $?
Try adding the automatic optimize flags in all your cases. For
dmd, `-O -
Sorry, the main function of positive0.d correctly looks like this:
int main() {
return !((abs(-16) == 16)
&& (abs(3) == 3)
&& (square(5).absPositive == 25)
&& (square(-4).absPositive == 16));
}
But this does not affect the results, the asm file sizs or the
asm abs function bodies.
I made a thorough comparison using multiple compilers and a
summary of the findings. In short, there is a runtime overhead.
I reduced the code to cut out the imports and made two versions
with equivalent semantic content.
positive0.d contains the hand written specializations of the abs
functio
On Friday, 17 July 2015 at 23:16:51 UTC, ZombineDev wrote:
On Friday, 17 July 2015 at 23:15:31 UTC, ZombineDev wrote:
On Friday, 17 July 2015 at 21:20:41 UTC, Tamas wrote:
Is there a solution that results the same static
optimizations, but has no runtime penalty, i.e. the functions
just operat
I got inspired by Andrei's "Generic Programming Must Go" talk:
https://www.youtube.com/watch?v=mCrVYYlFTrA
I.e. writing functions with static if-s, based on what we know
about the input.
So the question is how to annotate the input variables?
Adam showed an excellent solution for this, by wrap
18 matches
Mail list logo