• Welcome to Valhalla Legends Archive.
 

The Ultimate Programming Language!

Started by Banana fanna fo fanna, January 23, 2005, 09:32 PM

Previous topic - Next topic

Banana fanna fo fanna

Quote from: dxoigmn on January 25, 2005, 04:23 PM
Quote from: Banana fanna fo fanna on January 25, 2005, 03:59 PM
I was thinking something along the lines of:


class MyClass extends GarbageCollected {
...
}


Then you need to implement multiple inheritance which is icky.

Not if it's done right.

Kp

Quote from: tA-Kane on January 25, 2005, 07:53 PMBtw, I think having all user variables *not* stored on the stack may be a good idea for a language... especially not arrays...

Why?  Extremely short life arrays are much better on the stack, and if you're concerned about buffer overflows then:

1) You need a better programmer.
2) You could design the language to automatically check all load/stores to some/all arrays and abort on overflow.  This is a performance hit, and it's not backward compatible with some C wizardry, so it isn't done in C/C++.  Java does it, which is one reason it's such a nuisance to be clever with pointers.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

MyndFyre

Quote from: Banana fanna fo fanna on January 25, 2005, 09:52 PM
Quote from: dxoigmn on January 25, 2005, 04:23 PM
Quote from: Banana fanna fo fanna on January 25, 2005, 03:59 PM
I was thinking something along the lines of:


class MyClass extends GarbageCollected {
...
}


Then you need to implement multiple inheritance which is icky.

Not if it's done right.

For example, instead of "extends", try "implements".  Interfaces are a good thing.  ;)
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Banana fanna fo fanna

Ah...how about automatic boundschecked arrays?

Kp

Quote from: Banana fanna fo fanna on January 26, 2005, 08:07 PMAh...how about automatic boundschecked arrays?

Isn't that what I said? :)  Anyway, I'd suggest making that optional too (but maybe default to on).  I've occasionally found use for using "zero-length" arrays to alias other data types (especially variable length data that immediately follows a structure in memory), and bounds checking would ruin that.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!