On Saturday, 16 November 2019 at 10:01:25 UTC, Avery Stupidman
wrote:
assert(angleDeg(sqrt(3.0)/2.0, 1.5) == 60.0); // Fails
On my computer the results are very close, that is:
import std.math: nextUp;
assert(nextUp(angleDeg(sqrt(3.0)/2.0, 1.5)) == 60.0); // OK
On Saturday, 16 November
On Saturday, 16 November 2019 at 07:24:50 UTC, GreatSam4sure
wrote:
According to this [1] a person that java is much more powerful
than D. I am really surprised at this claim. Is this true?
Because I believe D much more powerful than Java.
I will really appreciate detail analysis
On 11/16/19 10:20 AM, James Blachly wrote:
On 11/16/19 9:48 AM, James Blachly wrote:
I am trying to write templated code that will take a character array
-- mutable, const, or immutable (string).
I am aware of isSomeString, but I am still curious about Unqual array
from a learning
On Saturday, 16 November 2019 at 15:20:26 UTC, James Blachly
wrote:
On 11/16/19 9:48 AM, James Blachly wrote:
I am trying to write templated code that will take a character
array -- mutable, const, or immutable (string).
I am aware of isSomeString, but I am still curious about Unqual
array
On 11/16/19 9:48 AM, James Blachly wrote:
I am trying to write templated code that will take a character array --
mutable, const, or immutable (string).
I am aware of isSomeString, but I am still curious about Unqual array
from a learning perspective.
I am trying to write templated code that will take a character array --
mutable, const, or immutable (string).
static assert(is(Unqual!(const char) == char));
(Succeeds)
static assert(is(Unqual!(const(char)[]) == char[]));
Error: static assert: `is(const(char)[] == char[])` is false
Is
On Saturday, 16 November 2019 at 09:07:45 UTC, Petar Kirov
[ZombineDev] wrote:
[snip]
Most likely the reason is parallelism. Every CI service offers
a limited amount of agents that can run in parallel, which
limits the number of test matrix combinations that you can run
in a reasonable
On Saturday, 16 November 2019 at 10:28:58 UTC, bachmeier wrote:
On Saturday, 16 November 2019 at 07:24:50 UTC, GreatSam4sure
wrote:
[...]
What does "powerful" mean? I sure as heck wouldn't call Java a
powerful language for interacting with C code, for instance.
This kind of discussion is
On 2019-11-14 20:50, NonNull wrote:
Greetings, Java seems to be almost a subset of D in various ways. Has
there been any work done to automatically translate Java source into D?
Yes, I'm working on a tool, JPort [1], for automatically translating
Java to D. It's not done yet and there's been
On 2019-11-16 08:13, GreatSam4sure wrote:
I am of the opinion that D is much more powerful than Java since I am
familiar with the language to some extent. I am even to start a GUI app
in java due to the fact I have no find a GUI toolkit in D that meet all
my need.
There's DWT [1], which is
On Saturday, 16 November 2019 at 10:02:58 UTC, Ola Fosheim
Grøstad wrote:
As a matter of courtesy I would have added a notice on the top
of the file that says that function x, y, z was lifted from
such and such library with a "see comments for details" notice.
I will add this comment at the
On Saturday, 16 November 2019 at 10:02:58 UTC, Ola Fosheim
Grøstad wrote:
On Saturday, 16 November 2019 at 09:21:41 UTC, René Heldmaier
wrote:
Thanks a lot for the lengthy reply ;). I live in Germany by the
way...
statement "Copyright 2019, My Name" is incomplete though. It
would be better
On Saturday, 16 November 2019 at 07:24:50 UTC, GreatSam4sure
wrote:
According to this [1] a person that java is much more powerful
than D. I am really surprised at this claim. Is this true?
Because I believe D much more powerful than Java.
I will really appreciate detail analysis
On Saturday, 16 November 2019 at 10:17:12 UTC, drug wrote:
16.11.2019 13:01, Avery Stupidman пишет:
[...]
In general you shouldn't compare floating point values for
equality because of their nature, you can use something like
approxEqual https://dlang.org/library/std/math/approx_equal.html
16.11.2019 13:01, Avery Stupidman пишет:
Hello,
I have a function "angle" that returns the angle (in degrees) of a right
triangle given the length of the its lengths as type "real". It works,
but when trying to test the equality of the angle with the seemingly
identical value, I'm informed
Typo in the first paragraph: angle -> angleDeg
On Saturday, 16 November 2019 at 09:21:41 UTC, René Heldmaier
wrote:
Do i have to list the authors of std.complex as authors of the
module?
Or should i list the authors in the commentary above the copied
functions?
I believe the correct answer would depend on your jurisdiction
(the country
Hello,
I have a function "angle" that returns the angle (in degrees) of
a right triangle given the length of the its lengths as type
"real". It works, but when trying to test the equality of the
angle with the seemingly identical value, I'm informed that the
two are not equal. Thus, when
On Friday, 15 November 2019 at 03:29:16 UTC, Heromyth wrote:
On Thursday, 14 November 2019 at 19:50:22 UTC, NonNull wrote:
Greetings, Java seems to be almost a subset of D in various
ways.
No, it's not exactly right. Java is more powerful than D as for
a language. Many things that Java can do
Hi,
I'm currently implementing a data type which is quite similar to
complex numbers.
Because of the similarity, I could copy paste (with minor
modifications) the toString methods and the helper functions from
std.complex. The much bigger rest of it is my own work.
I would like to publish
On Thursday, 14 November 2019 at 17:32:27 UTC, jmh530 wrote:
On Thursday, 14 November 2019 at 17:06:36 UTC, Andre Pany wrote:
[snip]
With the public availability of Github Actions I highly
recommend it if you have open source project on Github. If is
free and works well with D and Dub.
21 matches
Mail list logo