The best programming language for GUI?

Programming, for all ages and all languages.
Locked
User avatar
IdiotOS
Posts: 9
Joined: Tue Jun 25, 2013 7:14 pm
Location: India

The best programming language for GUI?

Post by IdiotOS »

I want to know which is the best GUI supporting language that also controls CPUs nicely!
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: The best programming language for GUI?

Post by iansjack »

C.
Kevin
Member
Member
Posts: 1071
Joined: Sun Feb 01, 2009 6:11 am
Location: Germany
Contact:

Re: The best programming language for GUI?

Post by Kevin »

I want to know which colour a car should have if I want to drive it off-road!
Developer of tyndur - community OS of Lowlevel (German)
User avatar
iansjack
Member
Member
Posts: 4685
Joined: Sat Mar 31, 2012 3:07 am
Location: Chichester, UK

Re: The best programming language for GUI?

Post by iansjack »

Red.
Casm
Member
Member
Posts: 221
Joined: Sun Oct 17, 2010 2:21 pm
Location: United Kingdom

Re: The best programming language for GUI?

Post 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
User avatar
NickJohnson
Member
Member
Posts: 1249
Joined: Tue Mar 24, 2009 8:11 pm
Location: Sunnyvale, California

Re: The best programming language for GUI?

Post by NickJohnson »

Jeez guys, stop trolling.

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