Best compiled language?

Talk about computers, hardware, applications, and consumer electronics.
User avatar
La historia me absolverá
La historia me absolverá
Posts: 2228
Joined: 2008.09.19 (14:27)
NUMA Profile: http://nmaps.net/user/maestro
MBTI Type: INTP
Location: Beijing
Contact:

Postby 乳头的早餐谷物 » 2010.07.19 (04:01)

I am seeking recommendations for compiled languages (that aren't C/C++) which feature the sort of benefits (e.g. speed) commonly associated with such languages.
M E A T N E T 1 9 9 2

Image

User avatar
Global Mod
Global Mod
Posts: 1416
Joined: 2008.09.26 (05:35)
NUMA Profile: http://nmaps.net/user/scythe33
MBTI Type: ENTP
Location: 09 F9 11 02 9D 74 E3 5B D8 41 56 C5 63 56 88 C0

Postby scythe » 2010.07.19 (06:50)

Well, the simple answer is that it really isn't that simple. On a basic level, the languages which offer the most flexibility and speed are OCaml and Haskell, no contest. However, Haskell is very difficult to learn, OCaml is only a little easier, and both languages have terrible library support, and it's my recollection that binding them to C is a giant pain in the ass.

As for easy languages, D is a lot easier, but it's a huge mess with more features than documentation and basically no compiler support, plus it's not as fast. Common Lisp, in the form of SBCL or some other CMUCL derivative, is compiled but slightly slower though a lot more flexible than D and simpler than Haskell or OCaml. Ada, the infamous military language, is faster than all the other options and very simple, but incredibly verbose. It might actually be your best choice here but I have no experience and I've never met anyone who uses it very often. Go, Google's language, is compiled and may well fit your requirements, but it's a good deal slower and is beaten by the faster VM languages (Java, Scala, Lua, and C#); it's also new and I don't know what library support looks like, especially on Windows (I don't even know if you can write Windows GUIs with it yet).

I'd say either Haskell or Ada, depending on how you feel about functional shit. For what it's worth, Suki hated Haskell.

Oh, and J is compiled.
As soon as we wish to be happier, we are no longer happy.

User avatar
Average Time to Take Breakfast in Equador
Posts: 640
Joined: 2008.09.27 (03:11)
NUMA Profile: http://nmaps.net/user/geti
MBTI Type: ENFJ
Contact:

Postby Geti » 2010.07.19 (08:56)

lol I'd say actionscript but it would be a massive joke. It is compiled though. You could go for BASIC actually, it's not quite the scumbucket everyone who codes in C like a machine makes it out to be.
Why do you want to stay away from C/++?
spoiler

"I'd be happy for a lion if it hunted me down and ate me, but not so happy for it if it locked up me and my family, then forced us to breed so it may devour our offspring." - entwilight <3
How do you know that God didn't intend for humans to be the animals' caretakers? He might be appalled that He gave us these animals to use and we're fucking eating them. - Tsukatu
4th - DDA Speedrunning Contest.
One Hundred Percent Vegetarian

deviantArt Profile - 1BarDesign
God knows if i'm back.

User avatar
La historia me absolverá
La historia me absolverá
Posts: 2228
Joined: 2008.09.19 (14:27)
NUMA Profile: http://nmaps.net/user/maestro
MBTI Type: INTP
Location: Beijing
Contact:

Postby 乳头的早餐谷物 » 2010.07.19 (09:04)

Geti wrote:lol I'd say actionscript but it would be a massive joke. It is compiled though. You could go for BASIC actually, it's not quite the scumbucket everyone who codes in C like a machine makes it out to be.
Why do you want to stay away from C/++?
Curiosity, basically, since I already know C /C++ (and BASIC for that matter).

I've never touched a functional language before, so I'll have a look at some of those. Haskell looks an interesting challenge.
M E A T N E T 1 9 9 2

Image

User avatar
Average Time to Take Breakfast in Equador
Posts: 640
Joined: 2008.09.27 (03:11)
NUMA Profile: http://nmaps.net/user/geti
MBTI Type: ENFJ
Contact:

Postby Geti » 2010.07.19 (10:46)

triplesec wrote:Curiosity, basically, since I already know C /C++ (and BASIC for that matter).
Oh, well, that changes the context a fair bit. Be sure to give us a look at the results then :)
spoiler

"I'd be happy for a lion if it hunted me down and ate me, but not so happy for it if it locked up me and my family, then forced us to breed so it may devour our offspring." - entwilight <3
How do you know that God didn't intend for humans to be the animals' caretakers? He might be appalled that He gave us these animals to use and we're fucking eating them. - Tsukatu
4th - DDA Speedrunning Contest.
One Hundred Percent Vegetarian

deviantArt Profile - 1BarDesign
God knows if i'm back.

User avatar
Retrofuturist
Posts: 3131
Joined: 2008.09.19 (06:55)
MBTI Type: ENTP
Location: California, USA
Contact:

Postby t̷s͢uk̕a͡t͜ư » 2010.07.19 (20:55)

In my efforts at broadening my horizons, I've actually learned time and again that I'm much better served by using the energy and enthusiasm I have for learning a new language to instead learn more about C, such as GLib or reading through the glibc documentation. In particular, learning about systems programming can set you up for the uplifting feeling you get when you start looking through Linux source code and realize it's Not Magic.
For a number of Project Euler problems, once I found the solution, I rewrote the code I used to find the solution in Ruby and compiled Common Lisp for comparison. C almost always blows everything else out of the water.

But seriously, if you're not familiar with GLib for C, you're really not doing yourself many favors. GLib has tried-and-true implementations for hash tables, sets, array variants, regular expressions, etc., etc. It's all the stuff you wish you'd saved from your Data Structures classes, except written and tested to death by professional C ninjas. It's like Boost for C++, except that C isn't a bloated, schizophrenic trannie.

Although the shell was surprisingly fast at finding a shit-ton of primes. I guess it might have something to do with the efficiency of pipes, so that the whole process is as parallelized as possible.
Here, for example, is GNU coreutils used to generate all primes (except 2) less than 10 million:
Attachments
zsh_primes.png
[spoiler="you know i always joked that it would be scary as hell to run into DMX in a dark ally, but secretly when i say 'DMX' i really mean 'Tsukatu'." -kai]"... and when i say 'scary as hell' i really mean 'tight pink shirt'." -kai[/spoiler][/i]
spoiler

Image


User avatar
Depressing
Posts: 1977
Joined: 2008.09.26 (06:46)
NUMA Profile: http://nmaps.net/user/rennaT
MBTI Type: ISTJ
Location: Trenton, Ontario, Canada
Contact:

Postby Tanner » 2010.07.20 (13:16)

I think you need a girlfriend but can't decide if maybe you deserve ten of them for that post.
Image
'rret donc d'niaser 'vec mon sirop d'erable, calis, si j't'r'vois icitte j'pellerais la police, tu l'veras l'criss de poutine de cul t'auras en prison, tabarnak

User avatar
Retrofuturist
Posts: 3131
Joined: 2008.09.19 (06:55)
MBTI Type: ENTP
Location: California, USA
Contact:

Postby t̷s͢uk̕a͡t͜ư » 2010.07.20 (18:32)

hairscapades wrote:I think you need a girlfriend but can't decide if maybe you deserve ten of them for that post.
Improving your UNIX skills and having a love life have really proven to be mutually exclusive. After attempting in vain to juggle them for a bit, I decided on a full sprint into the former, with a glimmer of hope in the distance that I'd end up writing an AI sophisticated enough that I could confuse it for a friend. ;_;
[spoiler="you know i always joked that it would be scary as hell to run into DMX in a dark ally, but secretly when i say 'DMX' i really mean 'Tsukatu'." -kai]"... and when i say 'scary as hell' i really mean 'tight pink shirt'." -kai[/spoiler][/i]
spoiler

Image


User avatar
Lifer
Posts: 1099
Joined: 2008.09.26 (21:35)
NUMA Profile: http://nmaps.net/user/smartalco
MBTI Type: INTJ

Postby smartalco » 2010.07.20 (19:43)

Tsukatu wrote: with a glimmer of hope in the distance that I'd end up writing an AI sophisticated enough that I could confuse it for a friend. ;_;
Don't ask me how but I read that as 'an AI sociopathic enough', and still thought it fit for you.
Image
Tycho: "I don't know why people ever, ever try to stop nerds from doing things. It's really the most incredible waste of time."
Adam Savage: "I reject your reality and substitute my own!"

Plus (Size) Member
Posts: 42
Joined: 2008.09.27 (02:56)

Postby taaveti » 2010.07.21 (02:54)

smartalco wrote:
Tsukatu wrote: with a glimmer of hope in the distance that I'd end up writing an AI sophisticated enough that I could confuse it for a friend. ;_;
Don't ask me how but I read that as 'an AI sociopathic enough', and still thought it fit for you.
Well hello there, GLaDOS. You're looking mighty modular today...


Who is online

Users browsing this forum: No registered users and 4 guests