Re: DustMite: the General-Purpose Data Reduction Tool (from the D Blog)

2020-04-13 Thread Vladimir Panteleev via Digitalmars-d-announce
On Monday, 13 April 2020 at 18:53:39 UTC, Steven Schveighoffer 
wrote:

Very nice article!


Thank you!

Interesting from the animation that it decided that importing 
std.stdio can be "reduced" to importing std!


Yes, it's a new minor annoyance for all DustMite users :)


I see that you can prevent reductions via regex.


Regex and similar rules are applied at input parsing time, not on 
the emitted output.


How do you say "Don't reduce `std\..*` to `std`" or is that 
possible? In other words, I'm fine with reducing imports, but 
not that specific reduction.


The canonical way, right now, is to add something like `if grep 
-q 'import .*std[;,]' ; then exit 1 ; fi` to the test script. To 
make this test reusable, it can be saved to e.g. 
"dustmite-no-std" and DustMite invoked with `dustmite src 
"dustmite-no-std && ../actual-test-script.sh"`.


I don't know if it's worth it, but to make this common annoyance 
easier to handle without baking in more highly-D-specific stuff 
into a tool which aims to be general-purpose, I'm thinking of the 
following additions:


1. Allow more than one test command. A reduction is considered 
successful only if all test commands pass. (It would be the 
equivalent of chaining them with && in a shell command.)
2. Add built-in tests which can be used in place of a test 
command, such as ":d-no-std".




Re: DustMite: the General-Purpose Data Reduction Tool (from the D Blog)

2020-04-13 Thread Steven Schveighoffer via Digitalmars-d-announce

On 4/13/20 9:06 AM, Mike Parker wrote:
Vladimir has contributed to the blog an article on the evolution of 
DustMite, looking at some of the challenges he had to overcome along the 
way.


The blog:
https://dlang.org/blog/2020/04/13/dustmite-the-general-purpose-data-reduction-tool/ 



Reddit:
https://www.reddit.com/r/programming/comments/g0ihse/dustmite_the_generalpurpose_data_reduction_tool/ 






Very nice article! I think everyone can be inspired by the tools that 
Vladimir writes.


Interesting from the animation that it decided that importing std.stdio 
can be "reduced" to importing std!


I see that you can prevent reductions via regex. How do you say "Don't 
reduce `std\..*` to `std`" or is that possible? In other words, I'm fine 
with reducing imports, but not that specific reduction.


-Steve


Re: DustMite: the General-Purpose Data Reduction Tool (from the D Blog)

2020-04-13 Thread Andrej Mitrovic via Digitalmars-d-announce

On Monday, 13 April 2020 at 13:06:30 UTC, Mike Parker wrote:
Vladimir has contributed to the blog an article on the 
evolution of DustMite, looking at some of the challenges he had 
to overcome along the way.


The blog:
https://dlang.org/blog/2020/04/13/dustmite-the-general-purpose-data-reduction-tool/

Reddit:
https://www.reddit.com/r/programming/comments/g0ihse/dustmite_the_generalpurpose_data_reduction_tool/


I wish I had even half (or quarter?) of the ingenuity of 
Vladimir. Really great write-up. Dustmite helped me reduce many 
compiler bugs in the past and saved me a lot of time.


Thanks so much for writing Dustmite, and implementing the recent 
feature I've requested!


Re: DustMite: the General-Purpose Data Reduction Tool (from the D Blog)

2020-04-13 Thread Mike Parker via Digitalmars-d-announce

On Monday, 13 April 2020 at 13:06:30 UTC, Mike Parker wrote:
Vladimir has contributed to the blog an article on the 
evolution of DustMite, looking at some of the challenges he had 
to overcome along the way.


The blog:
https://dlang.org/blog/2020/04/13/dustmite-the-general-purpose-data-reduction-tool/

Reddit:
https://www.reddit.com/r/programming/comments/g0ihse/dustmite_the_generalpurpose_data_reduction_tool/


HN:
https://news.ycombinator.com/item?id=22855633


DustMite: the General-Purpose Data Reduction Tool (from the D Blog)

2020-04-13 Thread Mike Parker via Digitalmars-d-announce
Vladimir has contributed to the blog an article on the evolution 
of DustMite, looking at some of the challenges he had to overcome 
along the way.


The blog:
https://dlang.org/blog/2020/04/13/dustmite-the-general-purpose-data-reduction-tool/

Reddit:
https://www.reddit.com/r/programming/comments/g0ihse/dustmite_the_generalpurpose_data_reduction_tool/




describe-d: an introspection library

2020-04-13 Thread bogdan via Digitalmars-d-announce

Hi!

I wrote this small `describe-d` library to allow me to do more 
readable introspection in some of my projects.


Any feedback is appreciated!

Thanks,
Bogdan

[1] https://gitlab.com/szabobogdan3/describe-d
[2] https://code.dlang.org/packages/describe-d


Beta 2.091.1

2020-04-13 Thread Martin Nowak via Digitalmars-d-announce
Glad to announce the first beta for the 2.091.1 point release, ♥ 
to the 10 contributors.


http://dlang.org/download.html#dmd_beta
http://dlang.org/changelog/2.091.1.html

As usual please report any bugs at
https://issues.dlang.org

-Martin