You are not logged in.
Just a quick follow-up:
You might appreciate Write yourself a scheme in 48 hours, it should give you a quick start on implementing a language on top of Haskell while introducing you to Haskell. (Note: I haven't followed the tutorial yet.)
I've just finished the tutorial and I can only continue to recommend it. The Haskell code got bigger and less well-arranged (my fault) than I expected (~580 lines), therefore I recommend you to write the exercises in a copy of a code. But I recommend to do the exercises, at least I learn a lot more by doing than by just reading and understanding.
Should you already know Lisp/functional programming: The last chapter helps thinking the Haskell way by defining functions in terms of folds instead of recursive calls.
It was really fun, I'll do a follow-up with another simple language. Should you go with Haskell, have a look at this tutorial.
Offline
As a sidenote: Using C# on *nix might become problematic in the future
Last edited by Mr.Elendig (2009-12-19 23:47:51)
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline
I'm wondering if there is a language that is higher-level and easier to program in than C++, but faster to start than Java?
I can not understand precisely what do you mean by "starting time". Start of a virtual machine? Initialization of an application library? A JIT-compiler may waste time on a compilation. It depends on what aforementioned components we use and whether we use them at all. As a general rule, the higher-level language is, the slower programs are. Are you interested in starting time or overall efficiency, maybe heap behavior?
we are not condemned to write ugly code
Offline
ocaml?
I've heard Caml is as fast/faster than C, and is definitely higher level than C. I'm not sure about OCaml, but I would guess it's similar in performance. Leading on from that, Haskell is an obvious choice.
I think any functional language would get a tick for the "higher level" part, not so sure about speed. It depends what the application does. There are also other things to consider like memory usage and development speed. Functional languages tend to excel in the latter two. Out of functional languages, interesting ones are Haskell, Lisp/Scheme, Erlang and Clean.
C++ and even C are quite high-level if you make them be. It depends what features you want. C even has anonymous functions (blocks) through extensions. I suppose you want the language to be concise? In that case functional languages are definitely the way to go. Python, Ruby and Lua can also be very concise, although the former two aren't quite that fast.
What about Lua? It compiles, but I am ensure to its speed in relation to C++ and Java.
Lua compiles to bytecode, not machine code. It's still interpreted, like like Java, Python, Ruby, etc.
Last edited by Xilon (2009-12-28 14:07:48)
Offline
I'm quite certain that BlitzMax fits the bill. It's compiled and faster than Java, and easier to program than C++. The bad side is that it's not free.
Offline