Re: New library: argparse, for parsing CLI arguments

2021-10-18 Thread Mathias LANG via Digitalmars-d-announce
On Wednesday, 13 October 2021 at 11:27:40 UTC, Andrey Zherikov 
wrote:

Hi everyone,

I'm happy to announce that I've published a CLI argument 
parsing library - 
[argparse](https://code.dlang.org/packages/argparse). It's been 
around for some time already so please take a look and provide 
your feedback if you haven't done so.


The reasoning to create one more CLI parsing library is that 
the existing libraries do not provide enough flexibility in 
parsing that I'm looking for and/or they depend on other 
libraries. As a result `argparse` supports wide variety of data 
types including enums, callbacks and arrays as well as a fully 
customized argument parsing. It also doesn't depend on anything 
besides the standard library.


Since it's in active development (activeness depends on my 
availability of course), I have few things to do before making 
the first major release so stay tuned and/or contribute if 
you'd like to.


Very interesting! I was looking for something similar recently, 
will definitely give it a try! One thing that it'd be interested 
to see would be subcommand support. Check what DUB is doing for 
example.


Beerconf October 2021

2021-10-18 Thread Steven Schveighoffer via Digitalmars-d-announce

# BEERCONF!

Just one month to go before the next [dconf 
online](http://dconf.org/2021/online/index.html), I hope everyone is 
excited! In the meantime, we will once again get together online to 
discuss all things D, and sample some tasty beverages.


This month, it falls on October 30-31. If you need a costume for Sunday, 
I suggest a nice 
[T-shirt](https://www.zazzle.com/store/dlang_swag/products?cg=196874696466206954).


## What is beerconf?

Check out the [wiki article](https://wiki.dlang.org/Beerconf).

There are also rumors going around that we will have a 
[beetconf](https://forum.dlang.org/post/nybetrqnutwjysyni...@forum.dlang.org). 
This is totally unfounded fake news. But beefconf is 
[real](https://mobile.twitter.com/CDNBeefConf).


## Presentations?

Will Stefan make it 3 in a row? Will we have some other contenders? If 
you want to reserve some time, send me an email, ping me on discord or 
slack. Let me know what you want to talk about and when you can talk.


See you in 2 weeks! 🍺

-Steve


Re: New library: argparse, for parsing CLI arguments

2021-10-18 Thread Steven Schveighoffer via Digitalmars-d-announce

On 10/17/21 6:02 PM, Andrey Zherikov wrote:

On Thursday, 14 October 2021 at 15:03:34 UTC, Steven Schveighoffer wrote:
Having done a lot of stuff with serialization and UDAs, this turns 
into a mess if you have multiple systems (serialization is really what 
you are doing here) using the same structs. So really, you are likely 
to have this `Params` struct be distinctly for parameter parsing. It's 
OK to have requirements such as expecting all items to be serialized 
by default and in a default way.


Structs without UDA are now supported starting version `0.4.0`. I also 
added this use case as a basic into "Getting started" section in readme.


OMG this looks awesome! I will switch my code to using it...

Prepare for some PRs, I already see ways to make this better ;)

-Steve


Re: Beta 2.098.0

2021-10-18 Thread Guillaume Piolat via Digitalmars-d-announce

On Sunday, 17 October 2021 at 17:55:05 UTC, Adam D Ruppe wrote:

Why did dstep fail for them?


I don't know; never tried it. Not qualified for an opinion there.

I mean we both use stb_vorbis and many other stuff translated by 
ketmar by hand to (Alice)D ; not everyone is at his level to do 
it well.




How would importC help the bindBC project?


I guess for small libraries you would be able to just embed the 
file instead of creating bindings. I also assume that ImportC 
would eat pre-declarations but not sure.