Re: argparse version 1.0.0

2022-06-11 Thread SealabJaster via Digitalmars-d-announce
On Friday, 10 June 2022 at 15:57:40 UTC, Andrey Zherikov wrote: On Friday, 10 June 2022 at 14:20:15 UTC, Vladimir Panteleev wrote: I invoke https://xkcd.com/927/ ! :) :-D I tried to improve one of the existing libs but it didn't go well enough. Assuming you're talking about your time with

Re: Result handing in D: some|none

2022-01-30 Thread SealabJaster via Digitalmars-d-announce
On Sunday, 30 January 2022 at 16:08:17 UTC, SealabJaster wrote: On Sunday, 30 January 2022 at 10:58:33 UTC, 9il wrote: ... ... I missed the full example I wanted to give: ```fsharp let (|Seconds|NotANumber|) (str : string) = let mutable value = 0.0 match Double.TryParse(str, ) with

Re: Result handing in D: some|none

2022-01-30 Thread SealabJaster via Digitalmars-d-announce
On Sunday, 30 January 2022 at 10:58:33 UTC, 9il wrote: ... Nice work! Anytime I see things like this it makes me wish D would adopt some form of pattern matching. I've been using F# a lot lately, and I'm in love with how expressive it can be in certain cases, i.e.: ```fsharp let

Re: Lumars 1.1.1 & Lumarsh 0.2.2

2021-11-26 Thread SealabJaster via Digitalmars-d-announce
On Friday, 26 November 2021 at 14:32:55 UTC, russhy wrote: One tip: - avoid "import std", makes compile time increase for nothing - https://github.com/BradleyChatha/lumars/blob/master/source/lumars/emmylua.d#L3 -

Lumars 1.1.1 & Lumarsh 0.2.2

2021-11-26 Thread SealabJaster via Digitalmars-d-announce
# Lumars Lumars is a high-level wrapper around the Lua API. It only targets Lua 5.1 because of LuaJit. It bundles a precompiled version of LuaJit for Windows and Posix x86_64 machines to make it easier to include. The main highlight of the latest release is the ability to create

Re: New library: argparse, for parsing CLI arguments

2021-10-13 Thread SealabJaster via Digitalmars-d-announce
On Wednesday, 13 October 2021 at 11:27:40 UTC, Andrey Zherikov wrote: ... Guess you got fed up with me not updating JCLI :3 Looks great either way, I really like what you've done with the `.Parse!().PreValidate!()` chaining, looks clean. Also happy to see your penchant for documentation is

[Semi-OT] Sdlang Initiative

2021-09-06 Thread SealabJaster via Digitalmars-d-announce
https://github.com/SdlangInitiative Since SDLang is quite closely related to D, as D is one of the only real users of it, I felt this was "D appropriate" enough to post. I personally think SDLang is much better than the likes of JSON, XML, and YAML for human-centered configuration files, so

Re: JCLI release v0.21.1

2021-08-25 Thread SealabJaster via Digitalmars-d-announce
On Wednesday, 25 August 2021 at 09:18:50 UTC, SealabJaster wrote: ... Oh, I'd also like to redocument the code. The old code was almost 50% comments or something, and the rewrite has almost no comments.

JCLI release v0.21.1

2021-08-25 Thread SealabJaster via Digitalmars-d-announce
I've rewritten JCLI, and this is the first release where I think it's useable again: https://code.dlang.org/packages/jcli Here's a snippet from the README # Features * Building: * This library was primarily built using [Meson](https://mesonbuild.com) as the build system, so should be

Re: BeerConf May 2021

2021-05-29 Thread SealabJaster via Digitalmars-d-announce
On Saturday, 29 May 2021 at 14:05:12 UTC, Iain Buclaw wrote: ... Is joining just to lurk (no video, audio, and minimal text chatter) acceptable (if it's still going >:3)?

Re: Please Congratulate My New Assistant

2021-01-19 Thread SealabJaster via Digitalmars-d-announce
On Tuesday, 19 January 2021 at 00:12:49 UTC, Max Haughton wrote: The second category is a bit looser, as there are some things I'd like to do that come under the community relations remit that aren't as structured - e.g. I am very interested in getting a proper working group together to try

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2020-05-06 Thread SealabJaster via Digitalmars-d-announce
On Wednesday, 11 December 2019 at 12:04:04 UTC, SealabJaster wrote: Final post of this series (also sorry for the necro, but it's probably better than making a new post): https://bradley.chatha.dev/BlogPost/JsonSerialiser/6-mixin-template-automate-dlang-tutorial-metaprogramming Pretty

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-27 Thread SealabJaster via Digitalmars-d-announce
On Thursday, 27 February 2020 at 15:12:23 UTC, Adam D. Ruppe wrote: error: cannot implicitly convert argument of type interpolated tuple to type string. Tip: use `.idup` to explicitly convert it to string. Oh, that pretty much sorts out my problem there, sorry if I glanced over it being

Re: DIP 1027---String Interpolation---Format Assessment

2020-02-27 Thread SealabJaster via Digitalmars-d-announce
On Thursday, 27 February 2020 at 09:30:30 UTC, Walter Bright wrote: You can make it behave like all those other languages simply with: f(format("hello $a")); At that point, it begs the question of why even bother having string interpolation. I'd like to imagine that most

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-12-11 Thread SealabJaster via Digitalmars-d-announce
On Wednesday, 4 December 2019 at 03:13:28 UTC, SealabJaster wrote: .. Final post of the year (and for a while) is out: https://bradley.chatha.dev/Home/Blog?post=JsonSerialiser5 Once I've worked on the website's design + other things I want to get done, then I'll finish off the series with

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-12-03 Thread SealabJaster via Digitalmars-d-announce
On Saturday, 23 November 2019 at 22:38:22 UTC, SealabJaster wrote: On Tuesday, 12 November 2019 at 09:15:28 UTC, SealabJaster wrote: ... Just wanted to quickly explain the delay for the next post. Basically just boils down to energy levels being non-existant, and run.dlang.io still being

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-23 Thread SealabJaster via Digitalmars-d-announce
On Tuesday, 12 November 2019 at 09:15:28 UTC, SealabJaster wrote: ... Just wanted to quickly explain the delay for the next post. Basically just boils down to energy levels being non-existant, and run.dlang.io still being broken (Don't want to have a backlog of snippets to make).

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-12 Thread SealabJaster via Digitalmars-d-announce
On Monday, 11 November 2019 at 16:56:31 UTC, Steven Schveighoffer wrote: On 10/30/19 8:05 PM, SealabJaster wrote: ... Looks like a great idea! Sounds very similar to what I've been learning over the past 5 years or so. See my dconf presentation from this year. I had a quick skim, and

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-10 Thread SealabJaster via Digitalmars-d-announce
On Sunday, 3 November 2019 at 08:37:07 UTC, SealabJaster wrote: ... Next post is out, I feel kind of iffy over how I went over classes, but I think for the most part it came out ok. I probably won't touch classes specifically in any future post though, unless I can think of something

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-03 Thread SealabJaster via Digitalmars-d-announce
On Sunday, 3 November 2019 at 08:35:42 UTC, SealabJaster wrote: On Friday, 1 November 2019 at 21:14:56 UTC, SealabJaster wrote: ... Sorry, seems it cut out the first half of that reply. New posts are out, and I don't want to spam Announce with new threads, so I'm just replying to this one.

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-03 Thread SealabJaster via Digitalmars-d-announce
On Friday, 1 November 2019 at 21:14:56 UTC, SealabJaster wrote: ... I've also made some changes to post #1 based on my last two comments on this thread. I'd also like to clarify that the main purpose of this series is to demonstrate some of the thing of what D's metaprogramming can do, via

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-01 Thread SealabJaster via Digitalmars-d-announce
On Friday, 1 November 2019 at 11:29:11 UTC, Ethan wrote: You also want to catch const(char)[] and just plain char[] for JSON serialisation purposes. So a template constraint that catches all those is what you want instead of just is( T == string ). I was definitely thinking of putting that

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-11-01 Thread SealabJaster via Digitalmars-d-announce
On Friday, 1 November 2019 at 10:39:42 UTC, Jacob Carlborg wrote: On Thursday, 31 October 2019 at 00:05:06 UTC, SealabJaster wrote: https://bradley.chatha.dev/Home/Blog?post=JsonSerialiser1 FYI, string is a built-in type. I feel it's more of a weird gray area. As Ethan said it's more

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-10-31 Thread SealabJaster via Digitalmars-d-announce
On Thursday, 31 October 2019 at 09:11:59 UTC, Paolo Invernizzi wrote: On Thursday, 31 October 2019 at 09:07:18 UTC, GreatSam4sure wrote: On Thursday, 31 October 2019 at 09:02:07 UTC, Paolo Invernizzi wrote: On Thursday, 31 October 2019 at 00:05:06 UTC, SealabJaster wrote: [...] Great Job,

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-10-31 Thread SealabJaster via Digitalmars-d-announce
On Thursday, 31 October 2019 at 07:38:46 UTC, Walter Bright wrote: Looks like a very nice initiative! Looking forward to more! A thought - host it on github? That way people can easily contribute suggestions to it. You'd be in charge, of course, with what to do with those suggestions. Happy

Re: Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-10-31 Thread SealabJaster via Digitalmars-d-announce
On Thursday, 31 October 2019 at 06:35:07 UTC, GreatSam4sure wrote: On Thursday, 31 October 2019 at 00:05:06 UTC, SealabJaster wrote: https://bradley.chatha.dev/Home/Blog?post=JsonSerialiser1 Currently only the first post is out, as I'd like to collect feedback before writing any more. [...]

Blog series to teach and show off D's metaprogramming by creating a JSON serialiser

2019-10-30 Thread SealabJaster via Digitalmars-d-announce
https://bradley.chatha.dev/Home/Blog?post=JsonSerialiser1 Currently only the first post is out, as I'd like to collect feedback before writing any more. The series is aimed at people new to D, or people who have heard of D, but haven't really explored its metaprogramming too much, hence

Re: argument parsing into structure

2019-06-26 Thread SealabJaster via Digitalmars-d-announce
On Wednesday, 26 June 2019 at 14:58:08 UTC, Basile B. wrote: I think we are several having written alternative getopt() systems. ... Here's another one to add to the list: https://code.dlang.org/packages/jcli Similar to you I'm pretty sure there's glaring issues I haven't seen/fixed yet.

Re: smile.amazon.com Promotion

2018-10-31 Thread SealabJaster via Digitalmars-d-announce
On Monday, 29 October 2018 at 16:40:20 UTC, FooledDonor wrote: On Monday, 29 October 2018 at 16:01:38 UTC, Mike Parker wrote: One of the easiest ways to support the D Language Foundation is using smile.amazon.com when you make a purchase. Until Nov 2, they're running a special where they're

Re: Vision document for H1 2018

2018-03-12 Thread SealabJaster via Digitalmars-d-announce
On Sunday, 11 March 2018 at 17:15:28 UTC, Seb wrote: What could be done from your perspective to make the setup easier? (This is from the perspective of a novice programmer, who hasn't really interacted with open source projects much) When I first tried to compile dmd+druntime+phobos quite