Page 1 of 1

The best programming language for GUI?

Posted: Sun Jul 21, 2013 5:10 am
by IdiotOS
I want to know which is the best GUI supporting language that also controls CPUs nicely!

Re: The best programming language for GUI?

Posted: Sun Jul 21, 2013 5:53 am
by iansjack
C.

Re: The best programming language for GUI?

Posted: Sun Jul 21, 2013 5:53 am
by Kevin
I want to know which colour a car should have if I want to drive it off-road!

Re: The best programming language for GUI?

Posted: Sun Jul 21, 2013 5:54 am
by iansjack
Red.

Re: The best programming language for GUI?

Posted: Sun Jul 21, 2013 6:03 am
by Casm
IdiotOS wrote:I want to know which is the best GUI supporting language that also controls CPUs nicely!
There is only one language which has direct control over the CPU, and that is assembly language.

As for a GUI, the low level functions would probably have to be implemented in assembly language, but higher level functions could probably be written in C.

The more general answer to your questions is that most people use assembly language when they have to, but C otherwise. That may be because they want their OS to be portable to other architectures, or because C code is more pleasing on the eye. The latter is largely because C is a structured language. Assembly language isn't particularly difficult, but it does require more steps to complete a relativly simple task. For example, the C code:

x = y + z;

Might translate into:

Code: Select all

mov ax, y
add ax, z
mov x, ax

Re: The best programming language for GUI?

Posted: Sun Jul 21, 2013 9:05 am
by NickJohnson
Jeez guys, stop trolling.

FORTRAN is clearly the best language for writing GUIs. The screen is just one giant matrix...