Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's a good lightweight programming language that compiles to native windows code? [closed]

I'm a .Net developer but I have a situation where I can't guarantee that the .Net Framework will be installed on the target machine.

I've seen a few questions (here and here) that suggest using NGen to compile to native code. Both point out that you still need the framework though.

I want to write a fairly lightweight app (basic GUI, no database, nothing complicated) but for various reasons, I don't want to have to install any frameworks or bytecode interpreters.

This question suggests Python and py2exe. I'm not familiar with Python, but if it's the best tool for the job, I can probably learn enough to write this app (I'd prefer not to though). I've also thought about writing it in DHTML and javascript - I can rely on the machine having a relatively new browser.

I'm familiar with the C family of languages and I've dabbled in Java, PHP, and Ruby.

Can anyone suggest a language that I can easily compile to native Win32 code?

Edit: Clarification

There have been a few answers suggesting that if I'm familiar with the C family of languages, why not just use C? I should probably clarify. I use C# every day and I was brought up on C+ and C++ (but haven't used either for quite a few years).

It does look like C/C++ might be the way to go, but I'll have to refresh my memory on them :)

like image 681
Damovisa Avatar asked May 31 '09 23:05

Damovisa


2 Answers

if it's lightweight and nothing complicated, and you are familiar with the C family of languages.. then why not C and the Win32 Api? It's harder than writing .net or java programs, sure but it's definitely going to compile to native windows code, and doesn't need bytecode or an interpreter.

Also, you might be able to use Mono to statically link a C# application with the Mono runtime. http://www.mono-project.com/Guide:Running_Mono_Applications

I see you need to brush up on C..here's another idea, then : Delphi.

There are some more answers in this thread

like image 168
Jean Azzopardi Avatar answered Oct 21 '22 04:10

Jean Azzopardi


I would try C++ with Qt... I think it is a very important framework to learn, considering it just turned LGPL.

like image 25
Johan Kotlinski Avatar answered Oct 21 '22 06:10

Johan Kotlinski