
Oddly enough I've just listed most of them elsewhere... I think it's safe to say that almost all languages are supported on the Pi. Other than the ones you've listed, there is Ada, COBOL, FORTRAN, Pascal for starters, then maybe in the interpreted (ish) section there are more BASICs than pips in a raspberry, Forth, Squeak, Scratch, Ruby, Shells/Tk and probably dozens of others...Technetiumable wrote:Hi, I've just began programming and I really enjoy it. I'm currently learning python and was wondering after I've got comfortable with python and go on to learn a different language like C/C++, Java or PHP is there a compiler for any of them languages for the raspberry pi. I'm also new to the raspberry pi and Linux like OS's so please forgive me if I don't understand some things people say.
I cannot think of any feature that I can't use in FPC... can you give (an) example(s)?jackokring wrote:FreePascal is quite nice, but you will not be able to use all the features of the Pi yet.
I'm new to the forums so I haven't explored it fully so that's why I haven't seen your posts. Thanks for the suggestions.gordon@drogon.net wrote:Oddly enough I've just listed most of them elsewhere... I think it's safe to say that almost all languages are supported on the Pi. Other than the ones you've listed, there is Ada, COBOL, FORTRAN, Pascal for starters, then maybe in the interpreted (ish) section there are more BASICs than pips in a raspberry, Forth, Squeak, Scratch, Ruby, Shells/Tk and probably dozens of others...Technetiumable wrote:Hi, I've just began programming and I really enjoy it. I'm currently learning python and was wondering after I've got comfortable with python and go on to learn a different language like C/C++, Java or PHP is there a compiler for any of them languages for the raspberry pi. I'm also new to the raspberry pi and Linux like OS's so please forgive me if I don't understand some things people say.
-Gordon
Thanks for the lengthy answer (I mean it in a good way). I like the idea of my own website so I'll go with PHP.jackokring wrote:The question becomes "what do you want to do next?"
For example, PHP could be interesting but setting up a web sever to develop your own small website might be a little hurdle. You could do this using Python, but PHP is more available if you want to put the website on the net with an ISP.
If you want to try out another script language, to see how easy or difficult it is to use compared to python then tcl may be worth a look, it's already on the system. "tclsh", and then type "help", or look online for documentation. Other similar to python languages include Ruby and maybe Perl. Maybe even try sh the command line shell, as this would be useful for automating the OS.
If you want to develop a large project, there are many compiled languages. C is the language a lot of Linux is written in. It is always worth learning, but can be complicated and rarely but sometimes very difficult to find your programming errors. FreePascal is quite nice, but you will not be able to use all the features of the Pi yet. Java can be a pain, but this is mainly because it is insistent on preventing errors which can be known about in advance, and the eclipse development IDE it uses is big and often slow.
If you want to get into things like manipulation of text data and sorting, and matching patterns, then maybe scheme is worth a look. A lot of people think it has loads of brackets () and it does. Forth is an interesting language which is small (slightly strange, but fast), which can make very fast code. It is perhaps best to look up "reverse polish notation forth" on the internet to see how easy it is to change your patterns of thought.
Prolog is a very interesting language, it is very useful for solving logic problems. It is very difficult to write arcade games in though. Most of the other languages are similar to these few. They each have their own peculiar features, or restrictions on the style of programming that can be used.
Thanks for the suggestion of PHP I'll go with that.rpdom wrote:I like PHP. It's great for building web sites or can be used for stand-alone CLI programs. Being a scripting language (like Python) it doesn't use a compiler.
Also, for debugging web pages, the PHP cli interpreter has a built-in mini-webserver which requires only a few command line options to start and displays all output (errors and requests) in the terminal it was started from. Ctrl-C terminates the server.
Just guessing but can you access the OpenGL acceleration libraries (and similar) from FPC? That may be the point being made. If you can that's great!DirkS wrote:I cannot think of any feature that I can't use in FPC... can you give (an) example(s)?jackokring wrote:FreePascal is quite nice, but you will not be able to use all the features of the Pi yet.
Gr.
Dirk.
Never used it but apparently it does exist: http://wiki.freepascal.org/OpenGLjamesh wrote:Just guessing but can you access the OpenGL acceleration libraries (and similar) from FPC? That may be the point being made. If you can that's great!