-
Notifications
You must be signed in to change notification settings - Fork 3
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
Some suggestions. #11
Comments
|
To add further comment on the 3rd point, Silicon was originally made for two main reasons: for it to be in C and for it to make the API more clear by naming every function Another thing is that Silicon is a bit more than just a direct Cocoa port. It’s trying to make Cocoa more C like, where general data types like NSString or NSArray are replaced with actual 100% compliant C-data types (being siString and siArray). As such you realistically cannot use something like Apple’s C++ port of the Foundation header in conjugation with Silicon. Both are trying to do two different things and it doesn’t make too much sense to link it here (I mean, what would it even help with?). |
Additionally, I would think C++'s longer compile time makes the single-header file less practical. |
Hello. Good that we are all up for points 1 and 2 :) re c++ and metal. Allow me to clarify any misunderstandings. Silicon-h is a C library. That is great and should never change. Building upwards I could easily imagine another layering that applied the usual C++ resource management to C libraries. That’s all. The metal reference is a) simply there for anyone else unaware of its existence, and b) a waypoint for my own code. |
I don't really like C++'s resource management, but I suppose that's unrelated. But also, I would imagine the main use of Silicon would be for things such as my library RGFW, in which the end user doesn't have to worry too much about managing Silicon's resources because the library abstracts the use of the other APIs for the user. Point being, I think both libraries have two different goals. Silicon is more about making Cocoas the low level API it should be in C. While the C++ library is more so about keeping it very high level and just doing a light port to C++. I think the inclusion of a more functional way of interacting with the library and the use of siArray and const char* show this point of very well. Oh, I also created the readme section which details how to extend the silicon.h API. Although I don't really like how it's written. Feel free to send an issue if you can think of something to chance. Though, I think I'll probably just have Eima read over it. |
Would be more than happy to help out with these.
The text was updated successfully, but these errors were encountered: