Why am I writing a THIRD text component class?!?

2022-12-19 Thread Adam D Ruppe via Digitalmars-d-announce

Take the bait. Click the link. The answer may surprise you.

(ok let's be real, it probably won't surprise you, but you might 
enjoy the read anyway. then tell me if you guessed the reason 
correctly or not!!)


http://dpldocs.info/this-week-in-d/Blog.Posted_2022_12_19.html


Re: text based file formats

2022-12-19 Thread H. S. Teoh via Digitalmars-d-announce
On Mon, Dec 19, 2022 at 04:16:57PM -0800, Walter Bright via 
Digitalmars-d-announce wrote:
> On 12/19/2022 4:35 AM, Adam D Ruppe wrote:
> > On Monday, 19 December 2022 at 09:55:47 UTC, Walter Bright wrote:
> > > Curious why CSV isn't in the list.
> > 
> > Maybe std.csv is already good enough?
> 
> LOL, learn something every day! I've even written my own, but it isn't very 
> good.

There's also my little experimental csv parser that was designed to be
as fast as possible:

https://github.com/quickfur/fastcsv

However it can only handle input that fits in memory (using std.mmfile
is one possible workaround), has a static limit on field sizes, and does
not do validation.


T

-- 
Debian GNU/Linux: Cray on your desktop.


Re: text based file formats

2022-12-19 Thread Walter Bright via Digitalmars-d-announce

On 12/19/2022 4:35 AM, Adam D Ruppe wrote:

On Monday, 19 December 2022 at 09:55:47 UTC, Walter Bright wrote:

Curious why CSV isn't in the list.


Maybe std.csv is already good enough?


LOL, learn something every day! I've even written my own, but it isn't very 
good.


Re: D demangler for C++

2022-12-19 Thread thebluepandabear via Digitalmars-d-announce
Nice work. What is the process for learning how to make a project 
such a de-mangler if you don't mind me asking? :)




Re: text based file formats

2022-12-19 Thread bachmeier via Digitalmars-d-announce

On Sunday, 18 December 2022 at 15:56:38 UTC, Robert Schadek wrote:

I complaint before that D and phobos needs more stuff.
But I can't do it all by myself, but I can ask for help.

So here it goes https://github.com/burner/textbasedfileformats

As on the tin, text based file formats is a library of SAX and 
DOM parsers for text based file formats.


I would like to get the following file formats in.

* json (JSON5) there is actually some code in there already
* xml, there is some code already, the old std.experimental.xml 
code

* yaml, maybe there is something in code.dlang.org to be reused
* toml, maybe there is something in code.dlang.org  to be reused
  * ini, can likely be parsed by the toml parser
* sdl, I know I know, but D uses it.


A natural complement to this would be the functionality in 
https://github.com/eBay/tsv-utils


I've created versions of the filter and select functions that 
take a string as input and return a string or string[] as output. 
It's a performant way to query text files. Most important, all 
the hard work is already done.


Re: text based file formats

2022-12-19 Thread Robert Schadek via Digitalmars-d-announce

replay -> reply




Re: text based file formats

2022-12-19 Thread Robert Schadek via Digitalmars-d-announce
Curious why CSV isn't in the list. I encounter that a lot at 
tax time.


As Adam said, std.csv is already there and its at least from my 
perspective okay enough.


That being said, I liked how you quoted me here

On Monday, 19 December 2022 at 09:55:47 UTC, Walter Bright wrote:

On 12/18/2022 7:56 AM, Robert Schadek wrote:

So stop talking, and start creating PR's.


Yup!



and replay, create an PR that puts it on the list ;-)


Re: DConf Online '22 Day Two Livestream

2022-12-19 Thread Mike Parker via Digitalmars-d-announce

On Monday, 19 December 2022 at 10:03:26 UTC, Walter Bright wrote:


A shoutout our glorious contributors:

Larry Hemsley
Mike Shah
Steven Schveighoffer
Brian Callahan (presentation *and* workshop!)


Yes, thanks to all of our for taking the time to put their talks 
together without the incentive of a free trip to London!




And, of course, none of this would have worked without our 
indefatigable Mike Parker, who wore many hats: DJ, MC, Editor, 
Manager, Host, Roadie, Organization Man, Audio/Video Engineer, 
Youtube Coordinator, Cruise Director, and Man Behind The 
Curtain.


Thanks, Walter!


Re: text based file formats

2022-12-19 Thread Adam D Ruppe via Digitalmars-d-announce

On Monday, 19 December 2022 at 09:55:47 UTC, Walter Bright wrote:

Curious why CSV isn't in the list.


Maybe std.csv is already good enough?


Re: DConf Online '22 Day Two Livestream

2022-12-19 Thread Walter Bright via Digitalmars-d-announce

On 12/18/2022 5:08 AM, Mike Parker wrote:
We're coming up on the start of the Day Two livestream. I'll get it started at 
13:45 UTC. I'll jump in around 13:50, and Walter will join me at 13:55 just 
before his talk starts.


See you there!

https://youtu.be/VCgdajZconA



Another marvelous DConf day! Afterwards, I hung out a bit at Beerconf and we had 
a great and productive discussion.


A shoutout our glorious contributors:

Larry Hemsley
Mike Shah
Steven Schveighoffer
Brian Callahan (presentation *and* workshop!)

And, of course, none of this would have worked without our indefatigable Mike 
Parker, who wore many hats: DJ, MC, Editor, Manager, Host, Roadie, Organization 
Man, Audio/Video Engineer, Youtube Coordinator, Cruise Director, and Man Behind 
The Curtain.


Re: text based file formats

2022-12-19 Thread Walter Bright via Digitalmars-d-announce

On 12/18/2022 7:56 AM, Robert Schadek wrote:

So stop talking, and start creating PR's.


Yup!

Curious why CSV isn't in the list. I encounter that a lot at tax time.

https://en.wikipedia.org/wiki/Comma-separated_values

Maybe just ask OpenAI?


Re: text based file formats

2022-12-19 Thread Per Nordlöw via Digitalmars-d-announce

On Sunday, 18 December 2022 at 15:56:38 UTC, Robert Schadek wrote:

So stop talking, and start creating PR's.
For the project admin stuff, this will use github. There are 
milestones for the five formats, so please start creating the 
issues you want/can work on and start typing.


If I were you I would join forces with Ilya and work on getting 
the mir libraries doing text-parsing integrated into Phobos.