Author Topic: Brick++ (Brick Language)  (Read 4049 times)

http://www.killersites.com/blog/2005/scripting-vs-programming-is-there-a-difference/
That's wrong. There is a difference. A huge difference.

C++ is a programming language. C is a programming language. Python is a scripting language. Ruby is a scripting language. Java is a programming language. Assembly is a programming language. TorqueScript is a scripting language. LUA is a scripting language. It can be compiled to C then compiled to binary, but the language itself is scripting

The difference is programming languages compile into binary code. Scripting languages are interpreted by, well, an interpreter. Even in DSO form, TQS files are still interpreted by the engine. In C++, once you compile theres no more interpreting. It's in "machine code".

That's wrong. There is a difference. A huge difference.

C++ is a programming language. C is a programming language. Python is a scripting language. Ruby is a scripting language. Java is a programming language. Assembly is a programming language. TorqueScript is a scripting language. LUA is a scripting language.

The difference is programming languages compile into binary code. Scripting languages are interpreted by, well, an interpreter. Even in DSO form, TQS files are still interpreted by the engine. In C++, once you compile theres no more interpreting. It's in "machine code".
However, bytecode-based stuff is a shady area. Both Java and all .NET languages belong there, as well as Python (only imported modules though, not the main script) and possibly TS (if in DSO form).

However, bytecode-based stuff is a shady area. Both Java and all .NET languages belong there, as well as Python (only imported modules though, not the main script) and possibly TS (if in DSO form).
I talked about TS in the above post. TS compiled in DSO form isn't bytecode, it's still ran through an interpreter.

Well
Thats a lesson learned :)

It's funny how I started a project very much like this around six days ago. It currently has 100% working and finished GUI's, transmitting code from and to client and server and a trigger ("event input") management system. The syntax it's going to use is highly inspired by Python.

Example:
Code: [Select]
from random import randint, choice
from server_constants import colorset

@event('player.touch.stop')
def whatever(brick, player):
    if randint(0, 5) == 5:
        player.kill()
    else:
        brick.setColor(choice(colorset))
Make a repo, I want in. First though: No inconsistencies aaaaa. it should be brick.set_color if you're going to use server_constants.
EDIT: Misinterpreted, you haven't written the interpreter yet. Call me back in 10 years when you've got it working.
Java is a programming language.
Incorrect in that context. Java is interpreted.
« Last Edit: February 15, 2012, 12:32:55 AM by Destiny/Zack0Wack0 »