Blockland Forums > Modification Help
Brick++ (Brick Language)
Slicksilver:
--- Quote from: HellsHero on February 10, 2012, 07:43:41 AM ---http://www.killersites.com/blog/2005/scripting-vs-programming-is-there-a-difference/
--- End quote ---
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".
DontCare4Free:
--- Quote from: Slicksilver on February 10, 2012, 02:29:11 PM ---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".
--- End quote ---
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).
Slicksilver:
--- Quote from: DontCare4Free on February 10, 2012, 02:31:47 PM ---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).
--- End quote ---
I talked about TS in the above post. TS compiled in DSO form isn't bytecode, it's still ran through an interpreter.
Brian Smithers:
Well
Thats a lesson learned :)
Destiny/Zack0Wack0:
--- Quote from: Port on February 10, 2012, 09:09:04 AM ---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: ---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))
--- End code ---
--- End quote ---
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.
--- Quote from: Slicksilver on February 10, 2012, 02:29:11 PM ---Java is a programming language.
--- End quote ---
Incorrect in that context. Java is interpreted.