4 ms·
I still program in C at times and would love what Objective-C offers in it's place. C++? Not so much because, in essence, that is also a leaky abstraction wher
by t43562 2y ago
I still program in C at times and would love what Objective-C offers in it's place.
C++? Not so much because, in essence, that is also a leaky abstraction where you have to care about even more issues. Static versus dynamic methods to give an example: code looks the same but works subtly very differently depending on whether the methods used are static or dynamic. So you cannot ignore how the mechanics of the language works underneath and there is a continuous high mental load.
IMO Objective C is simpler - the OO side of it is all dynamic. For performance optimisations you can drop to C and you can really know where you are and what to expect.
To be fair I haven't used Objective-C enough so perhaps there are things about it which would turn me off it in the end. I liked Go for example but the way modules work eventually wore me down.
- 3np 2y agoJust curious: What's been stopping you from actually writing more/some of new code in Objective C rather than C?
- klausa 2y agoI can't imagine trying to seriously use Objective-C on non-Apple platforms; even with all of my love and nostalgia for the language. (not the OP)
- ynniv 2y agoGNUStep has never been popular, but it's out there (Aug 2023): https://www.mail-archive.com/discuss-gnustep@gnu.org/msg25501.html https://www.mail-archive.com/discuss-gnustep@gnu.org/msg2550... As you guys know, Algoriddim makes use of GNUstep on Windows. It has just been released in beta: https://www.algoriddim.com/store/djay-windows-beta https://www.algoriddim.com/store/djay-windows-beta
- apple4ever 2y agoYou can use ObjFW https://objfw.nil.im/home https://objfw.nil.im/home pretty easily.
- t43562 2y agoJust that I was most often working on pre-existing projects like GNU Make. I can't force them to go for Objective-C. When I'm doing something on my own it's usually so small that it's not really worth it - something like a python C module where there's already a kind of OO model built in. I think my last C program was a set of functions for GNU Make that you can load up - a collection of tiny functions to do simple things that GNU Make should have been able to do 15 years ago but is too constipated to get on with. Once or twice I've had the perfect sized mini-project but have been in a team where using Objective-C would get me into trouble because the rest of the team love C++ or whatever and would immediately demand that I use that instead. For some reason using C didn't bother them.