Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Generalizing programming language patterns in CodeBlocks
dmoore:
This sounds a little like Fermat's last theorem. "I have a proof for this, but there's not quite enough room in the margin of this notepad..." And it was finally solved using what can only be described as a brute force approach.
I think we are open to having the IDE support multiple languages (but the developers certainly vary in their level of interest), and we've taken many steps in that direction. The editor syntax highlighting works for whatever languages Scintilla supports, the build system is very flexible and can be configured to support a wide range of compilers and languages. We have a pretty flexible API for supporting debugging via plugins (I have written a debugger plugin for python using it) and we are well on the way to doing the same for code completion (I have a partially working plugin for python). But that still leaves a LOT of work to write all of the interfaces for language you would hope to support. So you really need to tell us more about what you have in mind ...
Alpha:
--- Quote from: oBFusCATed on November 05, 2013, 10:11:19 pm ---On the other hand: we're working on better SDK for CC plugins, so in the future it will be possible to CC for any language there is a plugin written.
--- End quote ---
If you are curious, this thread contains some details.
beqroson:
First off, thanks for the response. I know your time is limited between all the forum posts.
--- Quote from: oBFusCATed on November 05, 2013, 10:11:19 pm ---Because we use a single language in our day work and we don't care for the others much. Is this enough for a reason?
--- End quote ---
Yes, it is reason, more than enough reason in fact.
--- Quote from: oBFusCATed on November 05, 2013, 10:11:19 pm ---Expecting that we'll start doing changes to our SDK (without a specific requirements) in order to support random/every language is optimistic.
--- End quote ---
At the moment I am just handling the idea. As for my self I havent invested in any expectation at all for your part. However, I am already starting to visualize how to implement it. The difference may be sutble, but I apologize if I sound or read as arrogant.
--- Quote from: oBFusCATed on November 05, 2013, 10:11:19 pm ---If you have a favourite language that is not supported you can:
1. look at the C::B's code
2. start making changes, so the support is improved or possible.
3. post a patch or better series of patches
4. fix reported problems and don't be afraid of criticism
--- End quote ---
Yes, I can agree to that being a proper way to proceed. Unless the idea is a little different than that. I am not talking about adding one language at a time, but to add ANY language in one single step. I want to synchronize with you all about this. But I am not going to do anything if my idea is not supported, right? However, I am willing to create all of the low level code for this, how does that sound? But, you are the core developers. I must know that once the low level code is created, that you will implement it somehow, by way of a single plugin or two or in any way. If there is no relatively covering consensus about this, the question is if I really should go about on this.
Sure, when I say in one single step, I am talking pretty big strides.
Do you think that it would be possible to do something like:
5. Create some of the "low level" code as a showcase to give you the idea of the concept?
Not that I am on my way to do any such horrendously stupid thing yet... ;)
But if that be an option to proceed?
beqroson:
--- Quote from: dmoore on November 05, 2013, 10:18:41 pm ---This sounds a little like Fermat's last theorem. "I have a proof for this, but there's not quite enough room in the margin of this notepad..." And it was finally solved using what can only be described as a brute force approach.
I think we are open to having the IDE support multiple languages (but the developers certainly vary in their level of interest), and we've taken many steps in that direction. The editor syntax highlighting works for whatever languages Scintilla supports, the build system is very flexible and can be configured to support a wide range of compilers and languages. We have a pretty flexible API for supporting debugging via plugins (I have written a debugger plugin for python using it) and we are well on the way to doing the same for code completion (I have a partially working plugin for python). But that still leaves a LOT of work to write all of the interfaces for language you would hope to support. So you really need to tell us more about what you have in mind ...
--- End quote ---
Sure, I will be more specific. And I will not keep you on your toes. I will present any information until the idea is proven wrong, which happens most of the time, just as you pointed out.
Many of the steps that you have taken covers most of the usage out there. It even covers a lot of my general idea of supporting any language. But it will lack some space in order to support my specific idea.
beqroson:
--- Quote from: Alpha on November 05, 2013, 10:21:17 pm ---
--- Quote from: oBFusCATed on November 05, 2013, 10:11:19 pm ---On the other hand: we're working on better SDK for CC plugins, so in the future it will be possible to CC for any language there is a plugin written.
--- End quote ---
If you are curious, this thread contains some details.
--- End quote ---
I will surely look into all the current work and streamline any solution of an implementation to make use of as much as possible of the current implementations.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version