-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
What are the plans for the language? #8
Comments
I've spent the last 2 years writing this language, so no, this won't be 'thrown away' anytime soon :) Nevertheless, feel free to improve/work on this language if you want to, I'd be happy to merge some pull requests :) |
Sadly I’m not experienced enough to do any PR that would improve this language (apart from bindings 😏) Are there plans to perhaps expand the documentations e.g on manual memory management and overall? And ofc Window support anytime? |
yea, you're right, the documentation is not complete at all, I'll have to expand it eventually, I plan to cover all language features and stdlib functions, but won't go in depth about memory management, etc. since that's a thing not specific to this language. I already tried porting CSpydr to Windows a couple of times in the past, but never even got the compiler to work (Visual CXX being the main problem). The standard library basically needs to be rewritten to support Windows aswell. When I get back to this project, my main target will be finishing off all of the semi-implemented features (e.g. libcspydr API/Headers), adding unit tests etc. |
Unfortunately I’m not that experience to help out, but I hope someone will do or one day you find that pesky reason why it doesn’t work. Personally as a user I do have to say that Windows & Linux or least Linux & WASM is probably the minimal of what people might need, especially if planning to use a language for game dev (which is what I’m into) Luckily CSpydr source code is quite easy to read so it also reads a little bit like documentation, but most certainly more documentation would make people be interested in using the language. Hope you will revisit this project and continue developing it at some point. I might play with it a little bit more, although last time I tried using it with the SDL2 and GLFW bindings provided it seemed to give errors. I will try again and continues I will post an issue |
Would there be any guidelines on interoperability with C somewhere as well? If not I will study the bindings a little and try to glue something together |
CSpydr is fully compatible with C. Stuff like the call ABI, struct padding, pointers, etc. is exactly like in C Defining a C function is done like this: extern "C" fn c_function_name(arguments: types): ReturnType; linking with a C library can be done like this
Calling CSpydr functions from C is possible, although not officially supported right no (no explicit name-conversion...) |
Yes! Please do that! :) |
Is it possible to link with a static lib? Or would it be the same as dynamic ones? |
I see you're also working on a different language and few other repo's that would indicate other interests. Are there plans to focus on this language or move onto something else? IMO the language has a potential, but it's difficult to consider interest in it if it's going to be thrown on a shelf of unwanted projects.
The text was updated successfully, but these errors were encountered: