Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Wednesday, 2 August 2017 at 00:39:24 UTC, Mike wrote: Looking at your code though, I probably should have used Adam's dom.d too; std.xml was weird to say the least. There's a couple functions in dom.d too that might have simplified this: foreach(EnumsTop;

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Mike via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 20:11:13 UTC, Taylor Hillegeist wrote: Reminds me of something I put together a while ago. https://github.com/taylorh140/SVD_TO_D But this looks much nicer, nice work! ha ha! Even the pattern used in our code is similar. I swear I never saw it before. Looking

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Mike via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 19:04:44 UTC, Johannes Pfau wrote: SVD seems to be an ARM standard / initiative? Yeah, ARM appears to maintain the XML schema, but the SVD files are usually created and distributed by the silicon vendors, in varying levels of quality, unfortunately. Mike

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Mike via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 14:52:51 UTC, Steven Schveighoffer wrote: Mike, I have to say still your talk in 2014 was one of my favorites. One of the things that was so impressive to me was the way you scraped the PDF to generate all the registers automatically. Having worked with STM chips

Re: covered - processes output of code coverage analysis performed by the D programming language compiler

2017-08-01 Thread Anton Fediushin via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 08:19:47 UTC, Szabo Bogdan wrote: Nice work! I would like to contribute to such a tool :) I was working at something similar with trial( http://trial.szabobogdan.com/ ), and I would like to include your library if it's possible. Thanks! Yes, module

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Taylor Hillegeist via Digitalmars-d-announce
On Monday, 31 July 2017 at 08:51:16 UTC, Mike wrote: https://github.com/JinShil/svd_to_d SVD_to_D is a command-line utility that generates D code from ARM Cortex-M SVD files. [...] Reminds me of something I put together a while ago. https://github.com/taylorh140/SVD_TO_D But this looks

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Johannes Pfau via Digitalmars-d-announce
Am Mon, 31 Jul 2017 08:51:16 + schrieb Mike : > https://github.com/JinShil/svd_to_d > > SVD_to_D is a command-line utility that generates D code from ARM > Cortex-M SVD files. > > SVD files are XML files that describe, in great detail, the > memory layout and

Re: args.d | a command line argument and config file parser

2017-08-01 Thread H. S. Teoh via Digitalmars-d-announce
On Tue, Aug 01, 2017 at 03:44:34PM +, Robert burner Schadek via Digitalmars-d-announce wrote: > args.d is a command line argument and config file parser. > > The basic idea of args.d is that that command line options and config > file options are basically the same or should be. > The

Re: args.d | a command line argument and config file parser

2017-08-01 Thread Adam D. Ruppe via Digitalmars-d-announce
On Tuesday, 1 August 2017 at 15:44:34 UTC, Robert burner import args; I suggest adding a module declaration with some kind of top level namespace as soon as possible. This is liable to conflict with some other module with the same name from a user's project.

args.d | a command line argument and config file parser

2017-08-01 Thread Robert burner Schadek via Digitalmars-d-announce
args.d is a command line argument and config file parser. The basic idea of args.d is that that command line options and config file options are basically the same or should be. The configuration options are build from UDA annotated structs that can be nested. The package can be used with dub

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Steven Schveighoffer via Digitalmars-d-announce
On 7/31/17 4:51 AM, Mike wrote: https://github.com/JinShil/svd_to_d SVD_to_D is a command-line utility that generates D code from ARM Cortex-M SVD files. Mike, I have to say still your talk in 2014 was one of my favorites. One of the things that was so impressive to me was the way you

A DUB Case Study: Compiling DMD as a Library

2017-08-01 Thread Mike Parker via Digitalmars-d-announce
Jacob Carlborg announced here recently that he had configured DMD to compile as a library. From there, he decided to write a blog post intended as an introduction to DUB, with the DMD-as-a-library bit as a case study. I convinced him to post it on The D Blog and then deviously hijacked his

Re: SVD_to_D: Generate over 100k lines of highly-optimized microcontroller mmapped-IO code in the blink of an eye

2017-08-01 Thread Mike via Digitalmars-d-announce
On Monday, 31 July 2017 at 08:51:16 UTC, Mike wrote: The code generated by SVD_to_D depends on this memory-mapped-IO library: https://github.com/JinShil/memory_mapped_io That library uses D's CTFE and meta-programming features to generate highly optimized code (for both size and speed) at

A small benchmarking lib

2017-08-01 Thread Etranger via Digitalmars-d-announce
Hi all, I don't know if it is the right place to post that but I wrote a little benchmarking lib [1] in order to learn the D programming language, and also because I was learning Rust at the same time and wanted to be able to compare their performances. The lib is in part a translation of

Re: covered - processes output of code coverage analysis performed by the D programming language compiler

2017-08-01 Thread Szabo Bogdan via Digitalmars-d-announce
On Monday, 31 July 2017 at 15:45:18 UTC, Anton Fediushin wrote: On Monday, 31 July 2017 at 15:27:42 UTC, jmh530 wrote: On Monday, 31 July 2017 at 13:06:44 UTC, Anton Fediushin wrote: Hello! I am glad to announce a new command-line tool which should make development a little easier. You