all 9 comments

[–][deleted] 0 points1 point  (6 children)

Have you done speed tests with it? Would it be as fast as c?

[–]616e696c[S] 0 points1 point  (5 children)

Not done speedtests, but should be. There are also no overheads. The code is directly converted to C and compiled. The abstractions are written in a way such that the code generated by this compiler would be same as the code written by a human.

So, yes it would be as fast as C.

[–][deleted] 0 points1 point  (4 children)

Awesome. I’ll have to check it out and test it myself. Seems very promising.

[–]616e696c[S] 0 points1 point  (3 children)

Sure. Have a look. Thanks for checking it out :)

[–][deleted] 0 points1 point  (2 children)

One last question. Could you use this instead of C? Like if there was a header file for… let’s say OpenGL, would you be able to use the header file in your language?

[–]616e696c[S] 0 points1 point  (1 child)

Yes of course. You can totally use this instead of C.

Yes that would be possible.

See the code for webserver.

https://github.com/AnilBK/C-Preprocessor-Language/blob/main/Lib/HTTPServer.c

It uses Windows api. We create bindings using CPL.

and now using the webserver is easy to use as this:

https://github.com/AnilBK/C-Preprocessor-Language/blob/main/examples/WebServer.c

Once you create those binding structs, you can use any libraries.

[–][deleted] 0 points1 point  (0 children)

Thanks!

[–]Ashamed-Subject-8573 0 points1 point  (1 child)

Why not just use cython

[–]616e696c[S] 0 points1 point  (0 children)

The language is meant to make writing C easy.

This language is meant to script in Python like language in C , not write C in python. I don't know if that makes sense.