Re: unit-threaded v0.6.19 - preliminary support for property-based testing

2016-07-03 Thread Andy Smith via Digitalmars-d-announce

On Saturday, 2 July 2016 at 18:21:10 UTC, Atila Neves wrote:

http://code.dlang.org/packages/unit-threaded

After merging code from Robert's fork I added some support for 
property-based testing. There's no shrinking yet and 
user-defined types aren't supported. Right now most if not all 
primitive types are, as well as string, wstring, dstring and 
arrays of any of them. Here's a simple example that is 
hopefully self-explanatory:


[...]


I make that round about 140 tests per line of code. Not too 
shabby!


Cheers,

A.




Re: Battle-plan for CTFE

2016-07-03 Thread Stefan Koch via Digitalmars-d-announce

On Thursday, 30 June 2016 at 14:26:29 UTC, Stefan Koch wrote:

On Thursday, 30 June 2016 at 14:17:30 UTC, Timon Gehr wrote:


Sorry, I had missed this. I see you were able to make progress.


It's fine.
Honestly the hardest thing was to actually get started.

Once I see something working the excitement carries me forward 
:)


I would appreciate a critical opinion, anytime!


Another update.
_very_ Basic SwtichStatements work now :)

I expect a simple project like a compile-time bf interpreter to 
work by the end of next week.


Re: one-file pure D decoders for vorbis, flac and mp3

2016-07-03 Thread sam via Digitalmars-d-announce

On Wednesday, 29 June 2016 at 09:07:18 UTC, ketmar wrote:
i decided to make some noise about those, as people may 
thinking about doing the ports themselves, and effectively 
double (or triple, or...) the work.


so, here they are:
* Vorbis decoder[1] (stb_vorbis port), PD;
* FLAC decoder[2] (drflac port), PD;
* MP3 decoder[3] (minimp3 port), GPL.

they may or may not work for you, i don't know.


[1] http://repo.or.cz/iv.d.git/blob_plain/HEAD:/stb/vorbis.d
[2] http://repo.or.cz/iv.d.git/blob/HEAD:/drflac.d
[3] http://repo.or.cz/iv.d.git/blob/HEAD:/minimp3.d


This is great thanks! I was able to use minimp3 with SDL2's 
queueaudio function to play back almost all of the MP3s in my 
library. But I noticed that any MP3 with embedded album art is 
reported as invalid by the library. Here's a sample one:


https://my.mixtape.moe/cjekko.mp3