Thread overview
Is there an 'rdmd' equivalent for C lang?
Sep 03, 2022
ikelaiah
Sep 03, 2022
Jack
Sep 03, 2022
ikelaiah
Sep 05, 2022
Antonio
Sep 11, 2022
ikelaiah
Sep 05, 2022
bachmeier
Sep 11, 2022
ikelaiah
Sep 06, 2022
Tejas
Sep 11, 2022
ikelaiah
September 03, 2022

Hi,

I'm enjoying learning D, especially using rdmd tool, where I can edit-run quickly, that checks dependencies and freshness of files in a project.
It does feel like working with Python, but with C/C++ like syntax that I am familiar with.

Out of curiosity, does anyone know if there is such a tool for C that is as convenient as rdmd?

Thanks.

September 03, 2022

On Saturday, 3 September 2022 at 03:07:15 UTC, ikelaiah wrote:

>

Hi,

I'm enjoying learning D, especially using rdmd tool, where I can edit-run quickly, that checks dependencies and freshness of files in a project.
It does feel like working with Python, but with C/C++ like syntax that I am familiar with.

Out of curiosity, does anyone know if there is such a tool for C that is as convenient as rdmd?

Thanks.

https://stackoverflow.com/questions/10766900/is-there-a-repl-for-c-programming

i think i have used some of those ages ago tho. give try out

September 03, 2022

On Saturday, 3 September 2022 at 03:34:32 UTC, Jack wrote:

>

https://stackoverflow.com/questions/10766900/is-there-a-repl-for-c-programming

i think i have used some of those ages ago tho. give try out

Gems! Many thanks for this Jack. I'll try them out.

Regards,
Ikel

September 05, 2022

On Saturday, 3 September 2022 at 21:16:51 UTC, ikelaiah wrote:

>

On Saturday, 3 September 2022 at 03:34:32 UTC, Jack wrote:

>

https://stackoverflow.com/questions/10766900/is-there-a-repl-for-c-programming

i think i have used some of those ages ago tho. give try out

Gems! Many thanks for this Jack. I'll try them out.

Regards,
Ikel

Hi Ikel,

A bit late but I thought it could be useful.

There's a C compiler (tcc[1]) from Fabrice Bellard that has the option '-run' that allows to automatically run the generated executable.

It even allows you write 'scripts' in C: #!/usr/local/bin/tcc -run

Hope this helps.
Antonio

[1] https://bellard.org/tcc/

September 05, 2022

On Saturday, 3 September 2022 at 03:07:15 UTC, ikelaiah wrote:

>

Hi,

I'm enjoying learning D, especially using rdmd tool, where I can edit-run quickly, that checks dependencies and freshness of files in a project.
It does feel like working with Python, but with C/C++ like syntax that I am familiar with.

Out of curiosity, does anyone know if there is such a tool for C that is as convenient as rdmd?

Thanks.

Doesn't rdmd work with C code? D compilers can compile C code, so long as you don't rely too heavily on the preprocessor. I've never tried it with C files though.

September 06, 2022

On Saturday, 3 September 2022 at 03:07:15 UTC, ikelaiah wrote:

>

Hi,

I'm enjoying learning D, especially using rdmd tool, where I can edit-run quickly, that checks dependencies and freshness of files in a project.
It does feel like working with Python, but with C/C++ like syntax that I am familiar with.

Out of curiosity, does anyone know if there is such a tool for C that is as convenient as rdmd?

Thanks.

Idk about C but there is one for C++:

https://rawcdn.githack.com/root-project/cling/d59d27ad61f2f3a78cd46e652cd9fb8adb893565/www/index.html

September 11, 2022

On Monday, 5 September 2022 at 17:46:27 UTC, Antonio wrote:

>

A bit late but I thought it could be useful.

Hi Antonio, not late at all!

>

There's a C compiler (tcc[1]) from Fabrice Bellard that has the option '-run' that allows to automatically run the generated executable.

Never heard of Tiny C Compiler before. WI will give it a try.
Thank you.

-Ikel

September 11, 2022

On Monday, 5 September 2022 at 21:53:03 UTC, bachmeier wrote:

>

Doesn't rdmd work with C code? D compilers can compile C code, so long as you don't rely too heavily on the preprocessor. I've never tried it with C files though.

Thanks Bachmeier.

I tried the example given in ImportC page but unable to get it to work.
I will revisit it again

-Ikel

September 11, 2022

On Tuesday, 6 September 2022 at 12:53:48 UTC, Tejas wrote:

>

Idk about C but there is one for C++:

https://rawcdn.githack.com/root-project/cling/d59d27ad61f2f3a78cd46e652cd9fb8adb893565/www/index.html

Thanks Tejas for the reference to Cling. It does look promising.

-Ikel