I think is works with older versions of DMD.
D:\jpro\dpro2\SpellIt>dub
Performing "debug" build using D:\jpro\dmd2\windows\bin\dmd.exe
for x86_64.
bindbc-loader 0.3.0: target for configuration "noBC" is up to
date.
bindbc-sdl 0.18.0: target for configuration "dynamic" is up to
date.
spellit ~
Hello, I am trying to examine what causes my similar D solution
to lag behind performance.
In the link, they don't have ldc or gdc but according to my
machine, the dmd generated code isn't really far behind ldc
generated code.
So here is the actual code:
ulong levenshteinEditDistance(T)(in
On Saturday, 16 May 2020 at 23:00:46 UTC, samrose wrote:
I was writing some D with the -betterC option, which is quite
nice. I was wondering if it is possible to use std.stdio File
reading with the -betterC option.
It is working with -debug mode build but I get an error when
building with rel
I was writing some D with the -betterC option, which is quite
nice. I was wondering if it is possible to use std.stdio File
reading with the -betterC option.
It is working with -debug mode build but I get an error when
building with release:
```
/usr/local/opt/dmd/include/dlang/dmd/std/excep
What's the best way to implement an Objective C protocol in D?
I see mention here
https://dlang.org/changelog/2.085.0.html#4_deprecated_objc_interfaces but it's not clear where things are these days.
import std.stdio;
import automem;
import std.experimental.allocator.mallocator : Mallocator;
interface IGetInt
{
@nogc int GetInt();
}
class Foo : IGetInt
{
@nogc int GetInt()
{
return 42;
}
}
@nogc void main()
{
auto foo = Unique!(Foo, Mallocator).construct;
pr
On Saturday, 16 May 2020 at 10:51:07 UTC, Russel Winder wrote:
Has anyone got any D code using the Glib event loop, usually
GtkD code I'd guess, that is well tested using Unit_Threaded?
I always had a hard time doing unittests for things with as many
moving parts as glib based software, so I
Has anyone got any D code using the Glib event loop, usually GtkD code I'd
guess, that is well tested using Unit_Threaded?
--
Russel.
===
Dr Russel Winder t: +44 20 7585 2200
41 Buckmaster Roadm: +44 7770 465 077
London SW11 1EN, UK w: www.russe
On Saturday, 16 May 2020 at 08:11:20 UTC, Jan Hönig wrote:
I am convinced that this works.
I have another implementation, which should work:
https://run.dlang.io/is/tfBgD0
It is not pretty. It is probably not fast, if the `ignore` is too
large.
I guess it is in O(n^2) if not O(mn^2), where m
On Saturday, 16 May 2020 at 02:02:47 UTC, Paul Backus wrote:
On Saturday, 16 May 2020 at 01:11:54 UTC, NaN wrote:
Rather than trying to inspect the function itself, it's easier
to check that the result of *calling* the function is what you
expect it to be. So, for example:
is(typeof(T.x(
I want a simple algorithm.
Given DList (or a Range, Array... I am not constrained by the
container type), I want to combine certain elements depending on
some condition.
In the toy example, the struct and condition are simpler then in
my real scenario, but i think it covers my problem:
https
On 5/15/20 11:12 PM, Alex wrote:
static if(__traits(compiles, T.min))
writeln("Minimum value : ", T.min);
A little improvement:
static if(__traits(isFloating, T)) {
writeln("Minimum value : ", -T.max);
} else {
writeln("Minimum value : ", T.min);
}
A
12 matches
Mail list logo