Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Alternatives to C++

Name: nyymi 2011-09-03 9:40

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: Anonymous 2011-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.

Name: nyymi 2011-09-03 10:29

>>2
Aren't Lisps MUCH slower compared to C++?

Name: Anonymous 2011-09-03 10:33

>>3
Only if you don't compile them, duh.

Name: Anonymous 2011-09-03 10:37

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: nyymi 2011-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?

Name: Anonymous 2011-09-03 11:30

>>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: Anonymous 2011-09-03 11:46

>>6
You might want to look at chicken if you find the Scheme-like you want:

http://www.call-cc.org/

It even supports c/c++ libraries in it's code style, besides supporting tons of other languages natively.

Name: Anonymous 2011-09-03 12:02

Google's go language should fit your requirements.

Name: nyymi 2011-09-03 12:09

>>9
Doesn't Google Go have the Forced collection of the garbage? I want to manage my own memory

Name: Anonymous 2011-09-03 12:46

What you're looking for is ANSI-C, it does allow for object orientation as proven by the author of ``gods language'' ooc.

Name: nyymi 2011-09-03 13:57

>>1
I already know C (better than C++ actually) and it's not what I'm looking for.

Name: Anonymous 2011-09-03 14:04

The D Programming Language

Name: Anonymous 2011-09-03 14:51

Ada

Name: Anonymous 2011-09-03 16:03

What's so bad about Forced garbage collection anyways?

Name: Anonymous 2011-09-03 16:11

>>13
But I've heard the standard library of D is unusable if you disable GC. Is this not true?

>>14
I prefer to manage my own memory.

Name: Anonymous 2011-09-03 16:25

>>15

Performance? Also significant time delays when it unpredictably decides to run. I think those would be the only reason to avoid it.

Name: Anonymous 2011-09-03 16:41

Didn't know that it forces GC. It is shit tier then.

Name: Anonymous 2011-09-03 16:59

>>15
GC is shit.

Name: Dynamic typing. 2011-09-03 17:04

Dynamic typing.

Name: Anonymous 2011-09-03 20:36

>>16
But I've heard

Name: nyymi 2011-09-04 6:17

Shameless bump.

So I have to stick with C++ then? I guess it's ok then :/

Name: Anonymous 2011-09-04 6:21

>>22
It's not that bad. C++11 is here. Use gcc 4.6 with -std=gnu++0x.

Name: Anonymous 2011-09-04 6:33

You're actually looking for a language that:
– Is C++
– Is C++
– Is C++
– Is C++
– Is not C++

Could be hard. Have you thought about Vala?

Name: Anonymous 2011-09-04 6:39

Ada might be interesting for you.

It's not garbage collected by default.

Name: Anonymous 2011-09-04 6:59

>>1
Maybe Go from Google. But it has garbage collection.

Name: Anonymous 2011-09-04 7:26

Just write your own standard library for D.

Name: nyymi 2011-09-04 9:17

Ok, maybe I check out Ada.

Name: Anonymous 2011-09-04 12:11

LISP, Python, Java, but really you are looking for C++ (or try C# if you microsoft)

Name: Anonymous 2011-09-04 12:40

>>28
Ada, like Pascal, is too verbose.

Name: Anonymous 2011-09-04 12:45

Use D FFS

Name: Anonymous 2011-09-04 14:33

>>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: Anonymous 2011-09-05 0:18

I want to manage my own memory

Why don't you want to manage your own registers, too?

at any rate, objective C

Name: Anonymous 2011-09-05 8:44

>>33
touche

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List