Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Programming
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="Exolon" data-source="post: 534181" data-attributes="member: 42014"><p>Well, I've been using Java so far, because the project I'm working on is written in it. When I get around to programming for my own stuff, I'm not sure; this Objective-C sounds pretty nice.</p><p>Ideally, there are languages I'd like to use, but they have minimal API support, and often no API at all when it comes to GUI work, which would be nice to have on the Mac... </p><p></p><p></p><p>Yeah, you're right, and I have seen and debugged some of the kernel myself in my painful trying-to-get-ACPI-sleep-working-on-my-linux-laptop days. But you're missing the point here. C is about as high-level as most people would want for writing an operating system, because they need to optimise the **** out of the code, they often need to use assembly language escapes, and they routinely need to deal with extremely low level stuff like dealing with interrupts and reading and writing to device registers.</p><p>For operating system coding, C is almost like a little wrapper over assembly language, to make things a bit easier to work with.</p><p>You should note that Windows is also written in C, so it's no magic bullet <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite2" alt=";)" title="Wink ;)" loading="lazy" data-shortname=";)" /></p><p></p><p></p><p>And now you know the reasons why Java or BASIC would not be used to write an operating system. However, I think we can safely assume that most programmers (especially budding novices) are not starting to write an operating system!</p><p>And for the general, more application-oriented case, it's very worth looking to alternatives to C and C++. Also, don't get me wrong about C, some of its elegant simplicities make it preferable to the over-engineered bloated behemoth that is C++.</p></blockquote><p></p>
[QUOTE="Exolon, post: 534181, member: 42014"] Well, I've been using Java so far, because the project I'm working on is written in it. When I get around to programming for my own stuff, I'm not sure; this Objective-C sounds pretty nice. Ideally, there are languages I'd like to use, but they have minimal API support, and often no API at all when it comes to GUI work, which would be nice to have on the Mac... Yeah, you're right, and I have seen and debugged some of the kernel myself in my painful trying-to-get-ACPI-sleep-working-on-my-linux-laptop days. But you're missing the point here. C is about as high-level as most people would want for writing an operating system, because they need to optimise the **** out of the code, they often need to use assembly language escapes, and they routinely need to deal with extremely low level stuff like dealing with interrupts and reading and writing to device registers. For operating system coding, C is almost like a little wrapper over assembly language, to make things a bit easier to work with. You should note that Windows is also written in C, so it's no magic bullet ;) And now you know the reasons why Java or BASIC would not be used to write an operating system. However, I think we can safely assume that most programmers (especially budding novices) are not starting to write an operating system! And for the general, more application-oriented case, it's very worth looking to alternatives to C and C++. Also, don't get me wrong about C, some of its elegant simplicities make it preferable to the over-engineered bloated behemoth that is C++. [/QUOTE]
Verification
Name this item 🌈
Post reply
Forums
macOS & iOS Developer Playground
macOS - Development and Darwin
Programming
Top