Re: Compiler Explorer Assembly Output for C, C++ and D (dlang)

2021-05-27 Thread Tariq Siddiqui via Digitalmars-d-learn

On Thursday, 27 May 2021 at 09:11:35 UTC, Dennis wrote:

On Thursday, 27 May 2021 at 08:47:50 UTC, Tariq Siddiqui wrote:

 - What are these additional lines?


D generates extra symbols per module for things like module 
constructors, unittests and class introspection (I think).



 - How can I remove these lines from being generated?


Pass the `-betterC` flag to dmd/ldc2.


Thanks for your answer, -betterC works well with simple code but 
when using templates in code -betterC compilation failed.


Compiler Explorer Assembly Output for C, C++ and D (dlang)

2021-05-27 Thread Tariq Siddiqui via Digitalmars-d-learn
When using Compiler Explorer (https://godbolt.org/) to compare 
assembly output of simple programs, why D language assembly 
output is so long compared to C or C++ output. The simple square 
function output is the same for C, C++, and D, but the D output 
has additional lines that are not highlighted when hovering over 
the square function in the source code.


 - What are these additional lines?
 - How can I remove these lines from being generated?


Master Thesis using D Programming language.

2020-08-24 Thread Tariq Siddiqui via Digitalmars-d-learn

Hello everyone,

I am looking for a master thesis topic using D Programming 
language. Earlier I choose Design by Introspection, but I did not 
find enough material in academic journals. DbI total material 
which I found is DConf Andrei talk and the similar talk at Google 
campus, which starts with 50 Deutsche Mark story and ends with 
explaining PbD, DbI and other Dlang internals. No doubt that 
Andrei's discussion was great. DbI as a topic is excellent, but 
as per my university requirements, I was not able to find five 
articles in the last five years in any academic journal, to start 
the initial discussion about the research topic.


I am still opened with my topic, next week, I have to submit my 
draft proposal. Till now, I did not meet my dissertation advisor.


I am looking for something practical and less theoretical. I have 
found some thesis done using Rust, you guys as a language expert 
can these below projects be achievable using D Programming 
language.


http://www.barrelfish.org/publications/ma-foellmic-bfrust.pdf
https://www.diva-portal.org/smash/get/diva2:1238890/FULLTEXT01.pdf
https://github.com/Gankra/thesis/blob/master/thesis.pdf

Regards,
Tariq Siddiqui.