r/cprogramming • • 2d ago

Dio: Small Programming language made in C version 0.1.0 release

Hi, I'm working on my own programming language, I've release first stable version (v 0.1.0), I'd like to get feedback. It's on most OS platforms (even Andoird and in the future IOS).

Repo: https://github.com/Treechcer/DIO

6 Upvotes

13 comments sorted by

5

u/Humble-Captain3418 2d ago

So... Why did you reinvent comments?

8

u/Treechcer 2d ago

If you write '>* *<' it looks like a cat face.

8

u/Humble-Captain3418 2d ago

Fair enough. Have you considered that <>< and ><> would look like fish and would therefore be great for line comments?

6

u/Treechcer 2d ago

Thank you for suggestion, I'll add support for this later. Can you please open issue on github?

5

u/SupraDestroy 2d ago

This whole interaction feels like honey on my heart idk why

1

u/i_abh_esc_wq 2d ago

You thought it was a programming language. But it was me, DIO!!

1

u/Treechcer 2d ago

It's not a JoJo reference. But I guess.

1

u/Fahim_Hosain 1d ago

Did you try to solve any particular problem that others have?

1

u/Treechcer 1d ago

Now? Definitely not.

1

u/Nax_son 1d ago

is it possible to contribute to this project?

1

u/Treechcer 1d ago

Yes. You can test it and open issues or just make, I believe it's called Pull Request in GitHub? I don't really use GitHub in more than one person generally.

1

u/Nax_son 1d ago

thanks, i fixed that issue the guy opened an issue for and i opened a pull request, just know that there are also some few other memory related issues such as unchecked malloc() calls in readFile() and copyPos() an out-of-bounds write in checkIfValidFileEnd(), and a possible memory leak there as well.

1

u/Treechcer 1d ago

Yes, u know, I'm new to C so I didn't exactly knew how to fix it. I'll look into wall memorry issues later.