Register FAQ / Rules Forum Spy Search Today's Posts Mark Forums Read
Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Mar 12, 2013, 07:51 PM   #1
ThunderBow
macrumors newbie
 
Join Date: Mar 2013
Location: 1 Infinity Loop, Cupertino California :)
Programming on a Mac

Hey guys! I'm new to the threads so I'm not sure if there is any topic on this already, but heres my situation:
I'm trying to explore the world of programming and I have quite an interest in it. I have had my Mac for about half a year now and I was just recently sifting through the system files, just to browse and see what is deep down in the core of this badass machine

In school I am taking Java, and I have know of multiple other programming languages. While sifting through the system files, I came across folders for Python, Ruby, PHP and Perl. I became curious as to know which programming languages come PREINSTALLED on a Mac.

I'm not what languages it SUPPORTS, but what comes with it by default. As in if I went to the Apple store, bought a BRAND NEW laptop, booted it up and started searching through the files, what programming languages would be PREINSTALLED on this new laptop.
Thanks for the help :P and Mac FTW!!!
ThunderBow is offline   0 Reply With Quote
Old Mar 12, 2013, 08:24 PM   #2
ArtOfWarfare
macrumors 603
 
ArtOfWarfare's Avatar
 
Join Date: Nov 2007
Send a message via Skype™ to ArtOfWarfare
C, Obj-C, C++, and Obj-C++?

I'm not quite sure what you mean by your question, but if I were to make a program on a Mac, exclusively for Macs and/or iOS devices, those are the languages I'd be using. If I was looking to be more cross platform between Macs, PCs, and Android, I'd use Java, instead.
__________________
Don't tell me Macs don't last: 2007 iMac, 2007 Mac Mini, 2008 MacBook Air, all Vintage.
(iMac obsoletion: April 28, 2015, MBA: October 14, 2015, Mac Mini: March 9, 2016)
ArtOfWarfare is offline   0 Reply With Quote
Old Mar 12, 2013, 08:49 PM   #3
ThunderBow
Thread Starter
macrumors newbie
 
Join Date: Mar 2013
Location: 1 Infinity Loop, Cupertino California :)
Quote:
Originally Posted by ArtOfWarfare View Post
C, Obj-C, C++, and Obj-C++?

I'm not quite sure what you mean by your question, but if I were to make a program on a Mac, exclusively for Macs and/or iOS devices, those are the languages I'd be using. If I was looking to be more cross platform between Macs, PCs, and Android, I'd use Java, instead.
Ehh... sort of. My question wasn't necessarily what coding languages should I use for making programs... Heres what I mean.
If you're on your desktop, on the top it says "Finder" (as normal) and theres also a button for "Go". Click go and scroll down to "Go to Folder". If you type in "/" without the quotes, and hit enter, you will be taken to the main system directory aka Macintosh HD. There, you have multiple folders which branch off into the seemingly endless tunnels on the computer. This is where I discovered folders that had the files for preinstalling programming languages. For instance, if you went into the "Library" folder, and started searching through the system files, you would find folders such as "Application Support", "Automator", "Fonts", so forth and so on. Here in the Library folder, you can also find folders for programming languages, such as Python, Ruby, Perl, and Java.

After finding these and doing some research online, I found out that these folders were factory installed... preinstalled by Apple (I guess for developer usage). I know that Mac's are open to many other programming languages such as C, C++ and Objective-C. However, so summarize my question, I was wondering if anybody knew of PREINSTALLED programming languages such as Python, Perl, and Java. To make it a little more clear, are there any programming languages preinstalled that have their own location in the system files such as Python, Ruby, Perl, and Java? (Again, I know Macs support other languages, but these are the preinstalled ones that I know of, ones that have their own folders buried deep in the system files)

I hope that clears up my question a bit more :P
ThunderBow is offline   0 Reply With Quote
Old Mar 12, 2013, 11:56 PM   #4
phoenixsan
macrumors 65816
 
phoenixsan's Avatar
 
Join Date: Oct 2012
Maybe I am wrong.....

if so, pardon me. I have the idea that the folders you are seeing are like frameworks for software that actually uses them. By the other hand, a good IDE is provided in the Apple world with XCode. But it must be installed apart. And so on with programming languajes.

Again, wanting to weigh in onto your question. But as I had said, can be proved wrong.

__________________
Mac Pro 2012 3.06 Westmere version, 12 Core 64 GB RAM, 4 TB , iPhone 5 (black), Moto G 8 GB (black)
phoenixsan is offline   0 Reply With Quote
Old Mar 12, 2013, 11:57 PM   #5
mrichmon
macrumors 6502a
 
Join Date: Jun 2003
Quote:
Originally Posted by ThunderBow View Post
In school I am taking Java, and I have know of multiple other programming languages. While sifting through the system files, I came across folders for Python, Ruby, PHP and Perl. I became curious as to know which programming languages come PREINSTALLED on a Mac.
Java used to come pre-installed but with the switch to Oracle handling the OS X development for Java I'm not sure whether it continues to be part of the factory install.

First pass at programming languages and scripting languages as part of OS X 10.8.2:
  • sh
  • ksh
  • csh
  • tcsh
  • zsh
  • bash
  • awk
  • sed
  • ruby
  • python
  • perl
  • AppleScript
  • Lisp (You can get to a pretty clean Lisp engine within emacs)
  • bison
  • flex/lex
  • JavaScript (Within Safari)
  • m4
  • php
  • postgres
  • tcl/tk
  • wish
  • xpath
  • troff/nroff
  • x86 assembler (nasm - Possibly installed by the DeveloperTools package)
  • C (Installed by the DeveloperTools package)
  • C++ (Installed by the DeveloperTools package)
  • Objective-C (Installed by the DeveloperTools package)
  • C (Installed by the DeveloperTools package)

List based on browsing /bin and /usr/bin for the user-facing binary for each language. (Note: There are plenty of frameworks and libraries installed without the headers or main interpreters that are necessary to use the framework/library to develop new code. My list has excluded languages that cannot be developed in on a clean OS install.)

Last edited by mrichmon; Mar 13, 2013 at 12:23 AM. Reason: Adding paragraph to describe source of information.
mrichmon is offline   1 Reply With Quote
Old Mar 13, 2013, 03:25 AM   #6
gnasher729
macrumors G5
 
gnasher729's Avatar
 
Join Date: Nov 2005
Quote:
Originally Posted by ThunderBow View Post
Ehh... sort of. My question wasn't necessarily what coding languages should I use for making programs... Heres what I mean.
If you're on your desktop, on the top it says "Finder" (as normal) and theres also a button for "Go". Click go and scroll down to "Go to Folder". If you type in "/" without the quotes, and hit enter, you will be taken to the main system directory aka Macintosh HD. There, you have multiple folders which branch off into the seemingly endless tunnels on the computer. This is where I discovered folders that had the files for preinstalling programming languages. For instance, if you went into the "Library" folder, and started searching through the system files, you would find folders such as "Application Support", "Automator", "Fonts", so forth and so on. Here in the Library folder, you can also find folders for programming languages, such as Python, Ruby, Perl, and Java.
Go to developer.apple.com, get a free developer account, go to the App Store, download Xcode, read all the documentation you can lay your hands on.

The folders for programming languages are not for you to write programs, but so that programs that people write can run on every Macintosh.
gnasher729 is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Mac programming should be more like iOS programming. moonman239 Mac Programming 13 Feb 17, 2014 01:37 PM
which mac to buy for programming hamed90 Buying Tips and Advice 9 Oct 27, 2013 01:11 PM
c programming for mac Sriteja25 Mac Programming 3 Jul 5, 2013 03:00 AM
mac programming SlrP Mac Programming 6 Jan 26, 2013 12:59 PM
New to Programming (On a Mac; Questions) xShane Mac Programming 10 Jan 21, 2013 09:24 PM

Forum Jump

All times are GMT -5. The time now is 12:17 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC