Edit: Also you're right most normal programs would use make, and that was 100 times easier than cmake. At least from my limited knowledge it was, cmake always seemed to require editing some install file but it probably had something to do with the packages I was installing also.
]]>Now if you want to look at the code for existing projects (as you mention ratpoison) then you'll run into a lot of C and python.
You talk about gcc versus cmake in your OP, but that's apples and oranges. Cmake is not a compiler, gcc is. Cmake will call something like gcc (or clang, or whatever). You could compare gcc to clang/llvm, or you could compare make to cmake. I really never use cmake - isn't it mostly a Qt thing? Learning to use make will be more widely applicable, and once you can write Makefile (for make) cmake will make a lot more sense. But worrying about these tools, I think, is putting the cart ahead of the horse. Just start writing some code, and learn enough about your build tools to be able to compile and run your program.
]]>Sorry if I seem a bit scatter-brained right now but it's 7:45 and I've been up all night installing Gentoo.
]]>karol wrote:If you have a compiler for it, it has some use.
Although some languages are a bit less useful than others...
I wanted to use brainfuck as an example ;P
https://aur.archlinux.org/packages.php?K=brainfuck
If you have a compiler for it, it has some use.
Although some languages are a bit less useful than others...
]]>I guess I should rephrase my question to be less vauge. Are there any languages that wouldn't be very useful in linux? Yes it is just for learning the ropes.
Now that's a weird question.
If you have a compiler for it, it has some use. Maybe start with python - don't need to compile stuff, although there's a way to do it.
How about Gambas, the FreeBASIC compiler?
Java? C? Vala? go?
]]>I guess I should rephrase my question to be less vauge. Are there any languages that wouldn't be very useful in linux? Yes it is just for learning the ropes.
Well anything that relies on the .NET framework probably will be a pain to use, even with Mono. But generally speaking, no, not really.
]]>Thanks for that clarification, I'm very new to programming so I'm just kinda reiterating what I've gotten from google, what I took away from that is that most languages can do basically the same thing just they have a different way of doing it. I just don't know the jargon.
]]>Also I think you are confused. Syntax generally doesn't matter, correct, but some languages do have very large differences in semantics. It is possible to have languages with the exact same syntax, but wildly different semantics, e.g. this piece of pseudocode can do something quite different from what you might be expecting depending on the language in use:
function foo(n) {
if n == 0:
return 1
else:
return foo(n-1) * n
}
You should also read the rules https://bbs.archlinux.org/viewtopic.php?id=130309
]]>I know in Slackware it seemed like the main compilers were gcc and cmake but I absolutely loathed cmake, it seemed like what needed to be done to get the source to compile was different everytime, I don't think I ever actually got anything to work using cmake. So what are the best compilers in Arch?
Any help is greatly appreciated.
]]>