October 15, 2010 Re: What would you rewrite in D? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | Just in case you're interested, I did an update in the DFL forums for interfacing with Scintilla: http://www.dsource.org/forums/viewtopic.php?t=5605 My last two posts show how to get messages from Scintilla, and I've added a basic text editor example that has D syntax highlighting and maintains indentation. You would need to build DFL, and put it's files to DMD/windows/lib and build scintilla.lib which you passs to DMD when you're buildling your editor. + you need to build the Scintilla DLL, which will be called ScintillaLexer.dll, or something like that. (The DFL build script does need some modification though). On 10/6/10, Nick Sabalausky <a@a.a> wrote: > "sybrandy" <sybrandy@gmail.com> wrote in message news:i8g8oi$1hv6$1@digitalmars.com... >> Just asking out of curiosity. With all the great language features, I'm sure that many of you have thought about this. >> >> For me, I figured a good start would be your basic Unix/Linux/BSD utilities, like cat and grep. I figure it may make the code easier to read and maintain as well as potentially improve the quality of the software. Of course, most of these are so old they're probably quite bug free, but some probably could use a rewrite. Some may even benefit for threading. >> > > Not that I would want to do it myself, but I'd like to see LLMV and Scintilla moved to D. > > But really, just about anything in C/C++ that I might ever want to modify. If I never have to touch another line of C/C++ it'll be too soon. > > > | |||
October 15, 2010 Re: What would you rewrite in D? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | == Quote from Andrej Mitrovic (andrej.mitrovich@gmail.com)'s article > Just in case you're interested, I did an update in the DFL forums for interfacing with Scintilla: http://www.dsource.org/forums/viewtopic.php?t=5605 Nice. > > "sybrandy" <sybrandy@gmail.com> wrote in message news:i8g8oi$1hv6$1@digitalmars.com... > >> Just asking out of curiosity. With all the great language features, I'm sure that many of you have thought about this. > >> > >> For me, I figured a good start would be your basic Unix/Linux/BSD utilities, like cat and grep. I figure it may make the code easier to read and maintain as well as potentially improve the quality of the software. Of course, most of these are so old they're probably quite bug free, but some probably could use a rewrite. Some may even benefit for threading. > >> > > > > Not that I would want to do it myself, but I'd like to see LLMV and Scintilla moved to D. > > > > But really, just about anything in C/C++ that I might ever want to modify. If I never have to touch another line of C/C++ it'll be too soon. > > > > > > I can imagine the next project I'd work on being an ICCCM and EWMH compliant Window Manger. | |||
October 17, 2010 Re: What would you rewrite in D? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Andrej Mitrovic | "Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.597.1287068756.858.digitalmars-d@puremagic.com... > On 10/6/10, Nick Sabalausky <a@a.a> wrote: > > I wouldn't know if there are any bottlenecks in the Scintilla codebase, so I can't judge if it's worth porting to D. But it already works and you can use it from D already, so why go through all the trouble of rewriting it? :-) I've been tempted to try to add support for elastic tabstops, but the idea of diving into a C/C++ codebase again is rather off-putting. But I'm not actually going to go and port Scintilla just to do that ;) | |||
October 17, 2010 Re: What would you rewrite in D? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to Nick Sabalausky | I think you might get away with modifying Scite, not necessarily Scintilla. Since Scite is the one that takes care of indentation, folding, etc., maybe it can be modified to use elastic tabstops. Personally I find Scite's C++ codebase quite readable. (at least after a pass of the uncrustify code beautifier :p).
I'll take a look at the full documentation of that elastic tabstops trick and see if I can recreate it in D. It sounds like a fun project.
On 10/17/10, Nick Sabalausky <a@a.a> wrote:
> "Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.597.1287068756.858.digitalmars-d@puremagic.com...
>> On 10/6/10, Nick Sabalausky <a@a.a> wrote:
>>
>> I wouldn't know if there are any bottlenecks in the Scintilla codebase, so I can't judge if it's worth porting to D. But it already works and you can use it from D already, so why go through all the trouble of rewriting it? :-)
>
> I've been tempted to try to add support for elastic tabstops, but the idea of diving into a C/C++ codebase again is rather off-putting. But I'm not actually going to go and port Scintilla just to do that ;)
>
>
>
| |||
October 17, 2010 Re: What would you rewrite in D? | ||||
|---|---|---|---|---|
| ||||
Well disregard that, it looks like the original author already tried it with Scintilla, but it didn't work out: http://groups.google.com/group/scintilla-interest/browse_thread/thread/44fca717735f860e/9275ab81016110a5?lnk=gst&q=elastic+tabstop# On 10/18/10, Andrej Mitrovic <andrej.mitrovich@gmail.com> wrote: > I think you might get away with modifying Scite, not necessarily Scintilla. Since Scite is the one that takes care of indentation, folding, etc., maybe it can be modified to use elastic tabstops. Personally I find Scite's C++ codebase quite readable. (at least after a pass of the uncrustify code beautifier :p). > > I'll take a look at the full documentation of that elastic tabstops trick and see if I can recreate it in D. It sounds like a fun project. > > On 10/17/10, Nick Sabalausky <a@a.a> wrote: >> "Andrej Mitrovic" <andrej.mitrovich@gmail.com> wrote in message news:mailman.597.1287068756.858.digitalmars-d@puremagic.com... >>> On 10/6/10, Nick Sabalausky <a@a.a> wrote: >>> >>> I wouldn't know if there are any bottlenecks in the Scintilla codebase, so I can't judge if it's worth porting to D. But it already works and you can use it from D already, so why go through all the trouble of rewriting it? :-) >> >> I've been tempted to try to add support for elastic tabstops, but the >> idea >> of diving into a C/C++ codebase again is rather off-putting. But I'm not >> actually going to go and port Scintilla just to do that ;) >> >> >> > | ||||
October 18, 2010 Re: What would you rewrite in D? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to sybrandy Attachments:
| I would love to rewrite the copybyvalue and copybyreference schematics, to one, and then keep that one. I think its counter intuitive that the same syntax is used for both, and tbh, if everything was just copybyvalue, one would be able to use by reference, if they wanted to by explicitly declaring so, using pointers/references/ect., this is the one thing that bugged me mostly in Java, when coming from C, and the thing that bugs me the most about D. On 6 October 2010 00:27, sybrandy <sybrandy@gmail.com> wrote: > Just asking out of curiosity. With all the great language features, I'm sure that many of you have thought about this. > > For me, I figured a good start would be your basic Unix/Linux/BSD > utilities, like cat and grep. I figure it may make the code easier to read > and maintain as well as potentially improve the quality of the software. Of > course, most of these are so old they're probably quite bug free, but some > probably could use a rewrite. Some may even benefit for threading. > > Anyone else? > > Casey > -- // Yours sincerely // Emil 'Skeen' Madsen | |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply