An operating system written in D would be really interesting.<div><br><div class="gmail_quote">On Thu, Oct 14, 2010 at 11:05 AM, Andrej Mitrovic <span dir="ltr"><<a href="mailto:andrej.mitrovich@gmail.com">andrej.mitrovich@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">On 10/6/10, Nick Sabalausky <a@a.a> wrote:<br>
> "sybrandy" <<a href="mailto:sybrandy@gmail.com">sybrandy@gmail.com</a>> wrote in message<br>
> news:i8g8oi$1hv6$1@digitalmars.com...<br>
>> Just asking out of curiosity. With all the great language features, I'm<br>
>> sure that many of you have thought about this.<br>
>><br>
>> For me, I figured a good start would be your basic Unix/Linux/BSD<br>
>> utilities, like cat and grep. I figure it may make the code easier to<br>
>> read and maintain as well as potentially improve the quality of the<br>
>> software. Of course, most of these are so old they're probably quite bug<br>
>> free, but some probably could use a rewrite. Some may even benefit for<br>
>> threading.<br>
>><br>
><br>
> Not that I would want to do it myself, but I'd like to see LLMV and<br>
> Scintilla moved to D.<br>
><br>
> But really, just about anything in C/C++ that I might ever want to modify.<br>
> If I never have to touch another line of C/C++ it'll be too soon.<br>
><br>
><br>
><br>
<br>
FYI, there's a DFL Scintilla component you can use in D2, which is<br>
downloaded separately from DFL. I've made a small update to it in the<br>
DFL forums although you would also need to add one more method in the<br>
scintilla class to get messages back from Scintilla itself (I'll post<br>
an update to the DFL forums some time later for that).<br>
<br>
So basically the DFL component loads the scintilla DLL, and you can<br>
use message passing or optionally get a function pointer for direct<br>
access. It's really easy to use the editor from D in this way. In<br>
fact, you can port *Scite* source code to a D equivalent that uses the<br>
Scintilla DLL with ease. It only took me a minute to port the<br>
automatic indentation functionality from Scite to a fresh project that<br>
uses the DFLs Scintilla class.<br>
<br>
I wouldn't know if there are any bottlenecks in the Scintilla<br>
codebase, so I can't judge if it's worth porting to D. But it already<br>
works and you can use it from D already, so why go through all the<br>
trouble of rewriting it? :-)<br>
</blockquote></div><br></div>