Hacker News new | ask | show | jobs
Emerald C – Ultimate C Preprocessor (github.com)
2 points by gregoryc_ 1412 days ago
2 comments

People can be very rust-centric, but compilation of Rust (or Crystal) can take forever. The fast compilation of this "language" makes running scripts be like a scripting language, like Perl.

Will it be hard for me to find people who want to go in this direction?

I hope not.

This could handle all of your problems, and if you change your mindset a little bit to be willing to use this and to contribute to this project, all of your major programming difficulties might be solved. (And lets be honest, performance ALWAYS matters. Running a script in 5 hours vs 15 hours DOES matter, maybe not to your employer, but to you, it should.)

Thank you.

I have named this project and I have made a github for it.

I am looking for people to have a discussion about the direction of this.

After that, code formatting and things like that can be fixed.

What functions would you like to add to make this language even better?

String handling is a big problem for C. I handled that.

It would be nice to have 1) backticks like ruby or bash 2) blocks like ruby or crystal

So one could do something like Thread.new {

........

} in C

3) Maybe I can add list comprehensions? That would be cool. 4) I want to have good gsub variants

These are 4 things we have yet to implement.

What other methods would you guys like?

The source code is one file of 437 lines of Crystal code.

It is not hard to fork or modify.

There are no classes or anything complicated.