News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Python support

Started by mosfet, January 13, 2006, 06:12:08 PM

Previous topic - Next topic

mosfet

Hi,

would like to know if you have planned to support script language and in particular python.
I really like this IDE

thomas

We have not planned support for python or any other scripting language.

However, Code::Blocks already supports AngelScript for several months now. :)
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

takeshimiya

However, I think we should encourage people (maybe writting in the bounties forum) to add support for other languages.

sethjackson

Quote from: Takeshi Miya on January 13, 2006, 11:33:24 PM
However, I think we should encourage people (maybe writting in the bounties forum) to add support for other languages.

Yeah I agree. Next question..... How do you add support for a new language?

mosfet

I am not an expert but I don't think it's too difficult to add support for Perl, Pyrhon or Ryby.
Basically you call the interpreter (instead of the compiler) with a list of file.
C::B is well designed and it's rather modular ... At least I hope



Quote from: sethjackson on January 14, 2006, 03:13:52 AM
Quote from: Takeshi Miya on January 13, 2006, 11:33:24 PM
However, I think we should encourage people (maybe writting in the bounties forum) to add support for other languages.

Yeah I agree. Next question..... How do you add support for a new language?

Michael

Quote from: sethjackson on January 14, 2006, 03:13:52 AM
Yeah I agree. Next question..... How do you add support for a new language?

I think that this C::B wiki article and this topic could be of some help.

Michael
[url="http://img207.imageshack.us/img207/9728/411948picture4em.png"]http://img207.imageshack.us/img207/9728/411948picture4em.png[/url]

thomas

Quote from: Takeshi Miya on January 13, 2006, 11:33:24 PM
However, I think we should encourage people (maybe writting in the bounties forum) to add support for other languages.
I don't think so. The "Bounties" forum is for things we absolutely need, and yet another scripting language is no such thing.
First, the actual need for scripting is over-estimated (we have a working implementation for 4 months now, and nobody uses it).
Second, the Angelscript engine has a lot of advantages over Perl, Python, or whatever other script language we could use (to name just a few of many: security, ease of use, integration, speed, lack of external dependencies).

Quote from: mosfet on January 14, 2006, 02:07:01 PMBasically you call the interpreter (instead of the compiler) with a list of file.
How can that be used, for example, to add files to a project, to insert text into the editor, or to start a build process? I agree that it is really simple to run a script in an external interpreter, but integrating it into the IDE is a wholly different matter.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."

Urxae

There seems to be some confusion here about what kind of support was requested: support for scripting C::B itself, or support for editing, "compiling" and running programs written in scripting languages from C::B.
I'm guessing the OP meant one or the other, not both. In the light of his second post I'd assume the latter, but I'm not entirely sure.

takeshimiya

Quote from: Urxae on January 15, 2006, 01:06:17 AM
There seems to be some confusion here about what kind of support was requested: support for scripting C::B itself, or support for editing, "compiling" and running programs written in scripting languages from C::B.
I'm guessing the OP meant one or the other, not both. In the light of his second post I'd assume the latter, but I'm not entirely sure.
Of course I'm referring to support for "editing" and "compiling" and "running" programs, and I think mosfet was talking about that.

Not for scripting C::B itself, in which AngelScript fits perfectly. Perhaps the reason nobody is using that yet, is that C::B doesn't provide examples at least of using AngelScript in it.

But I repeat, here we're talking about supporting more languages in the IDE, not for scripting C::B itself.

thomas

Oh...
Well, if that is all you want, then it is quite trivial, really. You could just run the interpreter as a tool, and use the current editor variable, for example. That needs (almost) zero setup.

Or you might just do like you were adding a new compiler, as pointed out by Michael. Should not take more than a few minutes.

I discourage going for a more complicated solution (a dedicated compiler/interpreter plugin), since very likely that would result in a lot of your work becoming obsolete in a couple of weeks.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."