Hi all,
Is there a way to enumerate all the unittests in a specific module?
Thanks,
Shachar
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei
Alexandrescu wrote:
Hello, for all of you with expertise in graphics, we'd be in
your debt if you could create a logo for DConf 2018. Proposals
would be appreciated!
Thanks,
Andrei
Why a new logo? The last year's one is superb and
On Friday, 17 November 2017 at 10:45:13 UTC, codephantom wrote:
Sounds to me, like too many people are writing incorrect code
in the first place,
Also known as "writing code".
and want to offload responsibility onto something other than
themself.
That's the whole point of using a safe
On Friday, 17 November 2017 at 08:32:23 UTC, Michael V. Franklin
wrote:
On Friday, 17 November 2017 at 08:12:13 UTC, Shachar Shemesh
wrote:
Is there a way to enumerate all the unittests in a specific
module?
Try this: https://dlang.org/spec/traits.html#getUnitTests
Mike
Note that before
On Friday, 17 November 2017 at 08:12:13 UTC, Shachar Shemesh
wrote:
Is there a way to enumerate all the unittests in a specific
module?
Try this: https://dlang.org/spec/traits.html#getUnitTests
Mike
On Friday, November 17, 2017 07:40:35 Mike Parker via Digitalmars-d-learn
wrote:
> On Friday, 17 November 2017 at 03:15:12 UTC, Tony wrote:
> > Thanks T! Good information, especially "iterating over a range
> > is supposed to consume it". I have been reading
> > dlang.org->Documentation->Language
On Friday, November 17, 2017 01:47:01 Michael V. Franklin via Digitalmars-d
wrote:
> With Microsoft's proposed change, the compiler will emit a
> warning for Example C. If you want to opt out of the warning,
> you'll need to declare `_instance` as `Test? _instance` (see the
> '?' there).
https://issues.dlang.org/show_bug.cgi?id=17987
Issue ID: 17987
Summary: Cannot use string in Variant at compile time
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei
Alexandrescu wrote:
Hello, for all of you with expertise in graphics, we'd be in
your debt if you could create a logo for DConf 2018. Proposals
would be appreciated!
Thanks,
Andrei
Hastily scribbled on graph paper because I liked the
On Friday, 17 November 2017 at 06:32:03 UTC, codephantom wrote:
On Friday, 17 November 2017 at 05:50:24 UTC, rumbu wrote:
You are not ending with nothing, you are ending with a run
time error in D. In C# it's a compile-time error. Ideally,
something ending for sure in an error at run time,
On Friday, 17 November 2017 at 03:04:20 UTC, Andrei Alexandrescu
wrote:
Whenever I look at the documentation, I find things that could
be improved. Consider https://dlang.org/library/, one of the
most important pages - the portal - of the hopefully future
default documentation renderer. It
On Friday, 17 November 2017 at 09:44:01 UTC, rumbu wrote:
I know your aversion towards C#, but this not about C#, it's
about safety. And safety is one of the D taglines.
Well the nice thing about that discussion (at:
On Friday, November 17, 2017 09:44:01 rumbu via Digitalmars-d wrote:
> I know your aversion towards C#, but this not about C#, it's
> about safety. And safety is one of the D taglines.
Completely aside from whether having the compile-time checks would be good
or not, I would point out that this
And https://github.com/Extrawurst/DerelictFmod/issues/1
On Wednesday, 15 November 2017 at 22:40:04 UTC, H. S. Teoh wrote:
On Wed, Nov 15, 2017 at 10:43:03PM +, codephantom via
Umm...how is it, that your response to my post, precedes my post?
https://issues.dlang.org/show_bug.cgi?id=17988
Issue ID: 17988
Summary: [ICE] Segfault when using member in map
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
On Friday, 17 November 2017 at 03:04:20 UTC, Andrei Alexandrescu
wrote:
Whenever I look at the documentation, I find things that could
be improved. [...]
Makes you want to go postal, innit?
Makes me want to go "fork"-al.
http://dpldocs.info/experimental-docs/std.html
https://issues.dlang.org/show_bug.cgi?id=17986
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=17986
--- Comment #1 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/phobos
https://github.com/dlang/phobos/commit/f529c855ae3f2dfd66d1f1f0af9873c1bbc01f0a
Fix Issue 17986 - Erratic failure with
On 11/17/17 8:13 AM, Adam D. Ruppe wrote:
On Friday, 17 November 2017 at 06:57:16 UTC, Michael V. Franklin wrote:
Actually, it looks like it's this 4-year old bug.
https://issues.dlang.org/show_bug.cgi?id=9506
Yeah, I suspected this is old and my comment in there still applies...
It passes
On 17.11.2017 11:19, Jonathan M Davis wrote:
If the compiler can't guarantee that your code is
wrong, then that check should be left up to a linter.
I.e., you think the following code should compile:
class C{}
void main(){
size_t a = 2;
C b = a;
size_t c = b;
import
On 17.11.2017 12:22, Jonathan M Davis wrote:
On Friday, November 17, 2017 09:44:01 rumbu via Digitalmars-d wrote:
I know your aversion towards C#, but this not about C#, it's
about safety. And safety is one of the D taglines.
Completely aside from whether having the compile-time checks would
On 11/17/17 4:46 AM, codephantom wrote:
On Wednesday, 15 November 2017 at 22:40:04 UTC, H. S. Teoh wrote:
On Wed, Nov 15, 2017 at 10:43:03PM +, codephantom via
Umm...how is it, that your response to my post, precedes my post?
One of your clocks is off by some amount.
-Steve
On Friday, 17 November 2017 at 01:47:01 UTC, Michael V. Franklin
wrote:
It peeked my interested, because when I first started studying
D, the lack of any warning or error for this trivial case
surprised me.
You wanna get freaked out?
Try that very same trivial example with the `-O` option to
https://issues.dlang.org/show_bug.cgi?id=17585
Basile B. changed:
What|Removed |Added
CC||radu.raca...@gmail.com
---
https://issues.dlang.org/show_bug.cgi?id=17989
Basile B. changed:
What|Removed |Added
Status|NEW |RESOLVED
CC|
On Friday, November 17, 2017 15:05:48 Timon Gehr via Digitalmars-d wrote:
> On 17.11.2017 12:22, Jonathan M Davis wrote:
> > On Friday, November 17, 2017 09:44:01 rumbu via Digitalmars-d wrote:
> >> I know your aversion towards C#, but this not about C#, it's
> >> about safety. And safety is one
On Friday, 17 November 2017 at 10:45:13 UTC, codephantom wrote:
I've always thought writing the correct code was the better
option anyway.
It is interesting that you mention this. Our product manager was
talking to our senior developer about this very thing. He
explained that it was a
https://issues.dlang.org/show_bug.cgi?id=9506
Steven Schveighoffer changed:
What|Removed |Added
Keywords|wrong-code |
On Thursday, 16 November 2017 at 19:37:31 UTC, ade90036 wrote:
Can we enable some sort of profiling to see what is going on?
You may compile the code with dmd -g -O -profile -profile=gc
I currently struggle getting meaningful output. I want to
terminate the program after a number (say 400)
On 17.11.2017 03:25, codephantom wrote:
On Friday, 17 November 2017 at 01:47:01 UTC, Michael V. Franklin wrote:
It peeked my interested, because when I first started studying D, the
lack of any warning or error for this trivial case surprised me.
// Example A
class Test
{
int Value;
}
On Friday, 17 November 2017 at 06:57:16 UTC, Michael V. Franklin
wrote:
Actually, it looks like it's this 4-year old bug.
https://issues.dlang.org/show_bug.cgi?id=9506
Yeah, I suspected this is old and my comment in there still
applies...
It passes the isInputRange test due to the implicit
https://issues.dlang.org/show_bug.cgi?id=17989
Issue ID: 17989
Summary: [REG2.076] Confusing message on deprecated overrride
Product: D
Version: D2
Hardware: x86
OS: Windows
Status: NEW
Severity: regression
On Friday, 17 November 2017 at 14:53:40 UTC, Jonathan M Davis
wrote:
[snip] Regardless, given that dereferencing null will segfault,
it does not present an @safety problem.
@safe is really more of @memorysafe. Null safety is orthogonal to
memory safety.
I don't really use null much in D
On Wednesday, 13 October 2010 at 01:58:19 UTC, Michael Stover
wrote:
Elephant appears dead. Poseidon's activity is extremely low
and is still alpha after 5 years. LEDS is even less active, and
DDT doesn't have a release yet. What do actual D programmers
use?
-Mike
I use Atom, so not
On Friday, November 17, 2017 19:02:12 Mafi via Digitalmars-d-learn wrote:
> What is the current best practice for parsing JSON in D? What
> library (on code.dlang.org) should I use?
>
> I do not want to (de-)serialize structs. Instead I want a simple
> DOM-API.
>
> Thank you very much :)
I've
On Thursday, 16 November 2017 at 03:58:38 UTC, Adam D. Ruppe
wrote:
On Thursday, 16 November 2017 at 03:32:26 UTC, codephantom
wrote:
23k executable if 32bit (i.e. -m32 )
It is the statically linked C library. Note that if you remove
the call to printf, the size is slashed in half.
Windows
On Wednesday, 13 October 2010 at 01:58:19 UTC, Michael Stover
wrote:
Elephant appears dead. Poseidon's activity is extremely low
and is still alpha after 5 years. LEDS is even less active, and
DDT doesn't have a release yet. What do actual D programmers
use?
-Mike
vim
On 11/17/17 1:30 PM, bauss wrote:
On Wednesday, 13 October 2010 at 01:58:19 UTC, Michael Stover wrote:
Elephant appears dead. Poseidon's activity is extremely low and is
still alpha after 5 years. LEDS is even less active, and DDT doesn't
have a release yet. What do actual D programmers use?
What is the current best practice for parsing JSON in D? What
library (on code.dlang.org) should I use?
I do not want to (de-)serialize structs. Instead I want a simple
DOM-API.
Thank you very much :)
On Friday, 17 November 2017 at 07:40:35 UTC, Mike Parker wrote:
You might also find use in this article (poorly adapted from
Chapter 6 of Learning D by the publisher, but still readable):
https://www.packtpub.com/books/content/understanding-ranges
makes a distinction about "range
I keep jumping between VSCode and SublimeText3
atm using ST3. (but they are not IDEs ;P)
On Friday, November 17, 2017 17:37:01 Tony via Digitalmars-d-learn wrote:
> On Friday, 17 November 2017 at 07:40:35 UTC, Mike Parker wrote:
> > You might also find use in this article (poorly adapted from
> > Chapter 6 of Learning D by the publisher, but still readable):
> >
> >
On Friday, 17 November 2017 at 10:31:19 UTC, Dejan Lekic wrote:
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei
Alexandrescu wrote:
Hello, for all of you with expertise in graphics, we'd be in
your debt if you could create a logo for DConf 2018. Proposals
would be appreciated!
Thanks,
https://issues.dlang.org/show_bug.cgi?id=17972
--- Comment #2 from Jacob Carlborg ---
What about using the existing fields in ClassDeclaration: "cpp", "objc" and so
on [1]? I know it's not exactly the same.
[1] https://github.com/dlang/dmd/blob/master/src/ddmd/dclass.d#L215-L218
On Saturday, 18 November 2017 at 04:56:19 UTC, codephantom wrote:
First semester, programming course.
Write a life-essential system in C, and simulate it.
If patient dies, you fail.
Second semester. Find vulnerability in another students semester
1 project.
If you succeed, they fail the
On Saturday, 18 November 2017 at 05:24:30 UTC, Tony wrote:
Forgot to handle pre-mature foreach exit:
import std.stdio : writeln;
class RefRange {
int foreach_index;
int[] items;
this(int[] src)
{
items = src;
}
bool empty()
{
if (foreach_index ==
https://issues.dlang.org/show_bug.cgi?id=17559
github-bugzi...@puremagic.com changed:
What|Removed |Added
Status|NEW |RESOLVED
https://issues.dlang.org/show_bug.cgi?id=17990
Issue ID: 17990
Summary: Type.toChars() returns null and Type.size() returns
nonsense on 32-bit platforms only
Product: D
Version: D2
Hardware: x86
OS: All
I'll just refer you to this comment:
https://github.com/dlang/dmd/pull/6947#issuecomment-345423103
Manually merging this pull as it sat around long enough waiting
to be marked approved that it accumulated github's max 1000
status updates per commit id and won't ever see more until a
new
On Friday, 17 November 2017 at 17:55:30 UTC, Jonathan M Davis
wrote:
When you have
foreach(e; range)
it gets lowered to something like
for(auto r = range; !r.empty; r.popFront())
{
auto e = r.front;
}
So, the range is copied when you use it in a foreach. In the
case of a class, it's
https://issues.dlang.org/show_bug.cgi?id=17559
--- Comment #8 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/127d639b6bbd82d1294da884a97de310e52985e0
fix issue 17559 - [REG2.073.0] Wrong line number in stack
On Saturday, November 18, 2017 05:24:30 Tony via Digitalmars-d-learn wrote:
> On Friday, 17 November 2017 at 17:55:30 UTC, Jonathan M Davis
> > So, in the general case, if you want to use a range in foreach
> > without consuming the range, it needs to be a forward range,
> > and you need to call
On 17/11/17 10:32, Michael V. Franklin wrote:
On Friday, 17 November 2017 at 08:12:13 UTC, Shachar Shemesh wrote:
Is there a way to enumerate all the unittests in a specific module?
Try this: https://dlang.org/spec/traits.html#getUnitTests
Mike
This is precisely what I asked for, but not
On Saturday, 18 November 2017 at 03:39:50 UTC, Adam D. Ruppe
wrote:
If you have a life-essential system that can't survive a single
part randomly failing, including a process terminating
abnormally, you're an incompetent engineer.
First semester, programming course.
Write a life-essential
On Friday, 17 November 2017 at 14:57:52 UTC, Stas wrote:
I use and highly recommend Codelobster:
http://www.codelobster.com
But I would hope you don't recommend it for D language
development.
"Details of Codelobster:
Our goal is to create product which would simplify and speed up
to the
On Wednesday, 15 November 2017 at 17:32:50 UTC, Satoshi wrote:
Hi,
as the title says, I'm looking for a job opportunity in the USA
(H1B visa sponsorship required).
I'm experienced Software Engineer with a demonstrated history
of working in the security and investigations industry. Skilled
https://issues.dlang.org/show_bug.cgi?id=9506
Steven Schveighoffer changed:
What|Removed |Added
Status|NEW |RESOLVED
On Friday, 17 November 2017 at 14:28:38 UTC, kdevel wrote:
On Thursday, 16 November 2017 at 19:37:31 UTC, ade90036 wrote:
Can we enable some sort of profiling to see what is going on?
You may compile the code with dmd -g -O -profile -profile=gc
I currently struggle getting meaningful output.
I use and highly recommend Codelobster: http://www.codelobster.com
We had an issue today calling a D shared library from our Java code
where we were getting segfaults during GC collection cycles.
Of course we were being careful and calling Runtime.initialize() inside
our initialization function, which is called from the Java side:
extern (C) auto
https://issues.dlang.org/show_bug.cgi?id=17096
--- Comment #2 from github-bugzi...@puremagic.com ---
Commits pushed to master at https://github.com/dlang/dmd
https://github.com/dlang/dmd/commit/30e01ba7969ede07e0428132dfbdda9d3ddbe80e
Fix issue 17096 - Check the number of arguments given to
On Friday, 17 November 2017 at 23:31:07 UTC, David Nadlinger
wrote:
The more promising avenue would probably be to distribute LLD
with DMD. This still leaves the system library licensing to
deal with, but if I remember correctly, one of the usual
suspects (Rainer? Vladimir?) was working on
On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei
Alexandrescu wrote:
Hello, for all of you with expertise in graphics, we'd be in
your debt if you could create a logo for DConf 2018. Proposals
would be appreciated!
Thanks,
Andrei
If you really want to use a new logo, which fits to
Hi!
Russian AI Cup (http://russianaicup.ru) is an annual online AI
programming competition by Mail.Ru Group. This year, the task is
to write a bot which plays a real-time strategy against other
programmer's bots. The competition runs from November 13 to
December 24, 2017, and the first
On 11/17/17 5:47 PM, Ivan Kazmenko wrote:
Hi!
Russian AI Cup (http://russianaicup.ru) is an annual online AI
programming competition by Mail.Ru Group. This year, the task is to
write a bot which plays a real-time strategy against other programmer's
bots. The competition runs from November
On Thursday, 16 November 2017 at 23:03:10 UTC, H. S. Teoh wrote:
On Thu, Nov 16, 2017 at 08:21:41PM +, user1234 via
Digitalmars-d wrote:
On Thursday, 16 November 2017 at 14:11:22 UTC, Dukc wrote:
> On Wednesday, 15 November 2017 at 14:56:53 UTC, Andrei
> Alexandrescu wrote:
> > Hello, for
On Friday, 17 November 2017 at 14:57:52 UTC, Stas wrote:
I use and highly recommend Codelobster:
http://www.codelobster.com
https://s3.amazonaws.com/EarthwatchMedia/GalleryImages/unearthing-ancient-history-in-tuscany-c.-archeodig-h1_2196.jpg
On Friday, 17 November 2017 at 23:31:07 UTC, David Nadlinger
wrote:
The more promising avenue would probably be to distribute LLD
This still leaves the system library licensing to deal with,
but if I remember correctly, one of the usual suspects (Rainer?
Vladimir?) was working on generating
https://issues.dlang.org/show_bug.cgi?id=5710
calex changed:
What|Removed |Added
CC|
On Friday, 17 November 2017 at 02:01:41 UTC, solidstate1991 wrote:
It's filled with Assembly code, and otherwise not very
readable. Would need a lot of work, I don't think it would
worth it. Let's hope that MS will allow us to distribute a
linker alongside DMD.
The more promising avenue
On 11/17/2017 02:50 PM, user1234 wrote:
> On Thursday, 16 November 2017 at 23:03:10 UTC, H. S. Teoh wrote:
>> On Thu, Nov 16, 2017 at 08:21:41PM +, user1234 via Digitalmars-d
>> wrote:
>>> On Thursday, 16 November 2017 at 14:11:22 UTC, Dukc wrote:
>>> > On Wednesday, 15 November 2017 at
We're very fortunate to have Nic as our speaker this month. He will be
connecting remotely. We will announce the Google Hangouts link later so
that you can join as well.
"DCompute is a set of libraries designed to work with ldc to enable
native execution of regular D code on GPUs (and other
On Friday, 17 November 2017 at 12:18:47 UTC, Atila Neves wrote:
That's the whole point of using a safe language, otherwise we'd
be fine with C.
Personally, I would prefer to teach new students to program in C
first - precisely because it's an unsafe language - or at least,
can be used
On Friday, 17 November 2017 at 14:53:40 UTC, Jonathan M Davis
wrote:
Regardless, given that dereferencing null will segfault, it
does not present an @safety problem.
"A notion of safety is always relative to some criterion".
If your code dereferences a null pointer, and the program
On Saturday, 18 November 2017 at 03:33:00 UTC, codephantom wrote:
If your code dereferences a null pointer, and the program
segfaults, and that program is supplying me with the oxygen i
need to survive...then its probably not safe ;-)
If you have a life-essential system that can't survive a
On Friday, 17 November 2017 at 15:27:06 UTC, Jesse Phillips wrote:
It is interesting that you mention this. Our product manager
was talking to our senior developer about this very thing. He
explained that it was a method of development that an employee
at his previous company came up with at
On 11/17/2017 6:05 AM, Timon Gehr wrote:
There are type systems that do that, which is what is being proposed for C#.
It's pretty straightforward: If I have a variable of class reference type C, it
actually contains a reference to a class instance of type C.
One of the difficulties with this
On 11/16/2017 5:47 PM, Michael V. Franklin wrote:
the lack of any warning or error for this trivial case surprised me.
Consider the following code:
void test() {
int* p;
*p = 3;
}
Compiling it with -O gives:
Error: null dereference in function _D5test54testFNaZv
The -O is
79 matches
Mail list logo