I'm looking for a language that:
- Does not force garbage collection
- Can be compiled to native code
- Is very efficient to run (cpu and memory)
- Contains features that allow object oriented programming
- Is not C++
Are there any. If not, then I just stick with C++.
Name:
Anonymous2011-09-03 10:03
There's some Lisp-likes out there which support type defining or whatever, and most of them compile to C and support OOP.
CL fits everything except: - Does not force garbage collection
Not that your requirements are very exact, there are many other languages that fit it. As for efficiency, it depends on implementation. >>3
No, but you can write slow code if you want to, but the same is true with SEPPLES. It all depends on how well you know the language and what you're doing with it.
Name:
nyymi2011-09-03 11:17
>>5 there are many other languages that fit it. As for efficiency, it depends on implementation.
Please tell me what implementation would be (almost) as efficient as manual memory managment. No, but you can write slow code if you want to, but the same is true with SEPPLES. It all depends on how well you know the language and what you're doing with it.
Ok, one can write efficient code with CL? How does the it's garbace collector perform? Can the GC be turned off in CL?
>>6
SBCL (and at times maybe ClozureCL) and some of the commercial implementations tend to be fine.
GC can be turned off if you really want, but the consequences tend to be grim depending on how one writes the code.
If you actually insist on doing manual memory management, you might be better off with C. I don't think the GC cost is too big, and it can be tuned if you want to run it for more real-time applications.
Name:
Anonymous2011-09-03 11:46
>>6
You might want to look at chicken if you find the Scheme-like you want:
>>30 Ada, like Pascal, is too verbose.
no then are not, Delphi was actually a superior alternative to VB, scripting languages like Python, Ruby and Lua are based on Pascal syntax, I never heard of anyone saying Python is too verbose. I dont mind the comparison between Ada and Pascal even though the only thing they have in common are begin/end delimiters just like people compare C and Java syntax even though they really only have brace delimiters in common.
Name:
Anonymous2011-09-05 0:18
I want to manage my own memory
Why don't you want to manage your own registers, too?