What would you rewrite in D?

2010-10-05 Thread sybrandy
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 potentia

Re: What would you rewrite in D?

2010-10-05 Thread bearophile
sybrandy: > Anyone else? There are several things I'd like to translate to D. Some of them are: - a constraint solver that I use in Python - many small things to perform combinatorics (this is partially fit for Phobos2 too). - The mem.c/mem.h memory management utility written by Walter for C pr

Re: What would you rewrite in D?

2010-10-05 Thread BCS
DMD -- ... <

Re: What would you rewrite in D?

2010-10-05 Thread Michael Chen
There is DDMD. On Wed, Oct 6, 2010 at 10:04 AM, BCS wrote: > DMD > > -- > ... < > > > >

Re: What would you rewrite in D?

2010-10-05 Thread Andrei Alexandrescu
On 10/5/10 17:27 CDT, sybrandy 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 re

Re: What would you rewrite in D?

2010-10-05 Thread Nick Sabalausky
"sybrandy" wrote in message news:i8g8oi$1hv...@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

Re: What would you rewrite in D?

2010-10-05 Thread Jonathan M Davis
On Tuesday 05 October 2010 20:16:41 Andrei Alexandrescu wrote: > On 10/5/10 17:27 CDT, sybrandy 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/Lin

Re: What would you rewrite in D?

2010-10-05 Thread Kagamin
sybrandy Wrote: >What would you rewrite in D? Phobos.

Re: What would you rewrite in D?

2010-10-06 Thread Denis Koroskin
On Wed, 06 Oct 2010 10:29:24 +0400, Kagamin wrote: sybrandy Wrote: What would you rewrite in D? Phobos. Nice one!

Re: What would you rewrite in D?

2010-10-06 Thread Andrei Alexandrescu
On 10/6/10 1:29 CDT, Kagamin wrote: sybrandy Wrote: What would you rewrite in D? Phobos. The irony/joke is lost on me, so I'll bite: how do you mean that? Andrei

Re: What would you rewrite in D?

2010-10-06 Thread Denis Koroskin
On Wed, 06 Oct 2010 18:23:40 +0400, Andrei Alexandrescu wrote: On 10/6/10 1:29 CDT, Kagamin wrote: sybrandy Wrote: What would you rewrite in D? Phobos. The irony/joke is lost on me, so I'll bite: how do you mean that? Andrei He emphasized on "rewrite" rather than on "D".

Re: What would you rewrite in D?

2010-10-06 Thread Andrei Alexandrescu
On 10/6/10 9:27 CDT, Denis Koroskin wrote: On Wed, 06 Oct 2010 18:23:40 +0400, Andrei Alexandrescu wrote: On 10/6/10 1:29 CDT, Kagamin wrote: sybrandy Wrote: What would you rewrite in D? Phobos. The irony/joke is lost on me, so I'll bite: how do you mean that? Andrei He empha

Re: What would you rewrite in D?

2010-10-06 Thread JMRyan
Andrei Alexandrescu wrote in news:i8gpne $2o9...@digitalmars.com: > I wouldn't spend much time on rewriting classic utilities in D. There's > plenty to be done anew. One category of tools to be written in D are > utilities aimed at D itself (parsers, analyzers, Thrift bindings, > protocol buff

Re: What would you rewrite in D?

2010-10-06 Thread Nick Sabalausky
"JMRyan" wrote in message news:i8ie7k$d1...@digitalmars.com... > Andrei Alexandrescu wrote in news:i8gpne > $2o9...@digitalmars.com: > >> I wouldn't spend much time on rewriting classic utilities in D. There's >> plenty to be done anew. One category of tools to be written in D are >> utilities a

Re: What would you rewrite in D?

2010-10-06 Thread Daniel Gibson
Nick Sabalausky wrote: I'd rather go around beating up old ladies and baby seals than be the author of a GTK-based app. because ... ?

Re: What would you rewrite in D?

2010-10-06 Thread Robert Clipsham
On 06/10/10 22:26, Daniel Gibson wrote: Nick Sabalausky wrote: I'd rather go around beating up old ladies and baby seals than be the author of a GTK-based app. because ... ? If you'd used GTK you'd know ;D -- Robert http://octarineparrot.com/

Re: What would you rewrite in D?

2010-10-06 Thread Nick Sabalausky
"Robert Clipsham" wrote in message news:i8ipl4$1tv...@digitalmars.com... > On 06/10/10 22:26, Daniel Gibson wrote: >> Nick Sabalausky wrote: >>> I'd rather go around beating up old ladies and baby seals than be the >>> author of a GTK-based app. >>> >> >> because ... ? I have a severe distate fo

Re: What would you rewrite in D?

2010-10-06 Thread Daniel Gibson
Nick Sabalausky schrieb: "Robert Clipsham" wrote in message news:i8ipl4$1tv...@digitalmars.com... On 06/10/10 22:26, Daniel Gibson wrote: Nick Sabalausky wrote: I'd rather go around beating up old ladies and baby seals than be the author of a GTK-based app. because ... ? I have a severe d

Re: What would you rewrite in D?

2010-10-06 Thread Nick Sabalausky
"Daniel Gibson" wrote in message news:i8iqr3$22s...@digitalmars.com... > Nick Sabalausky schrieb: >> "Robert Clipsham" wrote in message >> news:i8ipl4$1tv...@digitalmars.com... >>> On 06/10/10 22:26, Daniel Gibson wrote: Nick Sabalausky wrote: > I'd rather go around beating up old ladi

Re: What would you rewrite in D?

2010-10-06 Thread Robert Clipsham
On 06/10/10 23:03, Nick Sabalausky wrote: Ok, for me GTK is native because I use Linux and a GTK based desktop. I know that there's a native GTK port for OSX/Quartz and I thought GTK had themes to look native on Windows? It does make a vague attempt to look native on Windows, and is FAR better

Re: What would you rewrite in D?

2010-10-06 Thread sybrandy
I wouldn't spend much time on rewriting classic utilities in D. There's plenty to be done anew. One category of tools to be written in D are utilities aimed at D itself (parsers, analyzers, Thrift bindings, protocol buffers bindings, code for DB interface, etc.) Andrei Indeed. It could be reas

Re: What would you rewrite in D?

2010-10-06 Thread Nick Sabalausky
"Robert Clipsham" wrote in message news:i8it3t$26f...@digitalmars.com... > On 06/10/10 23:03, Nick Sabalausky wrote: >>> Ok, for me GTK is native because I use Linux and a GTK based desktop. >>> I know that there's a native GTK port for OSX/Quartz and I thought GTK >>> had >>> themes to look nat

Re: What would you rewrite in D?

2010-10-06 Thread Daniel Gibson
Nick Sabalausky schrieb: "Robert Clipsham" wrote in message news:i8it3t$26f...@digitalmars.com... On 06/10/10 23:03, Nick Sabalausky wrote: Ok, for me GTK is native because I use Linux and a GTK based desktop. I know that there's a native GTK port for OSX/Quartz and I thought GTK had themes

Re: What would you rewrite in D?

2010-10-06 Thread Jonathan M Davis
On Wednesday, October 06, 2010 16:28:49 Nick Sabalausky wrote: > "Robert Clipsham" wrote in message > news:i8it3t$26f...@digitalmars.com... > > > On 06/10/10 23:03, Nick Sabalausky wrote: > >>> Ok, for me GTK is native because I use Linux and a GTK based desktop. > >>> I know that there's a nativ

Re: What would you rewrite in D?

2010-10-06 Thread Seth Hoenig
Open SSL http://www.peereboom.us/assl/assl/html/openssl.html

Re: What would you rewrite in D?

2010-10-06 Thread Jimmy Cao
Yes! When I was trying to get D to work with HTTPS, it took me a long time to figure out how to do it. I ended up using GnuTLS, somehow, with someone's help. On Wed, Oct 6, 2010 at 9:53 PM, Seth Hoenig wrote: > > Open SSL > http://www.peereboom.us/assl/assl/html/openssl.html > > >

Re: What would you rewrite in D?

2010-10-06 Thread Gour D.
On Wed, 06 Oct 2010 23:47:58 +0200 >> "Daniel" == Daniel Gibson wrote: Daniel> If that isn't the case I do understand your objection.. I hate Daniel> non native GUIs as well (java swing is particularly bad). Although I'm still hankering to see QtD, I'm just curious (not having experience with

Re: What would you rewrite in D?

2010-10-06 Thread Gour D.
On Wed, 6 Oct 2010 16:40:06 -0700 >> "Jonathan" == Jonathan M Davis wrote: Jonathan> That's definitely cool if it can, but as far as I know, I've Jonathan> never seen it done. wxwidget apps always seem to look like Jonathan> gtk in Linux (aka butt-ugly - I hate the look of gtk; I'd Jonathan> h

Re: What would you rewrite in D?

2010-10-06 Thread Brad Roberts
On 10/6/2010 7:56 PM, Jimmy Cao wrote: > On Wed, Oct 6, 2010 at 9:53 PM, Seth Hoenig > wrote: > > > Open SSL > http://www.peereboom.us/assl/assl/html/openssl.html > > Yes! When I was trying to get D to work with HTTPS, it took me a long time to > figure

Re: What would you rewrite in D?

2010-10-06 Thread Nick Sabalausky
"Seth Hoenig" wrote in message news:mailman.452.1286420009.858.digitalmar...@puremagic.com... > Open SSL > http://www.peereboom.us/assl/assl/html/openssl.html > Boy, that describes sooo many things I've had to deal with. Including the entire (VB6) codebase at a company I used to work for. (Let'

Re: What would you rewrite in D?

2010-10-06 Thread Nick Sabalausky
"Gour D." wrote in message news:20101007055846.597a5...@atmarama.noip.me... >Although I'm still hankering to see QtD, I'm just curious (not having >experience with) how does SWT (DWT) can compare in regards? SWT/DWT uses the native GUI, at least on windows. I have no idea what it uses on Linux,

Re: What would you rewrite in D?

2010-10-06 Thread Kagamin
Andrei Alexandrescu Wrote: > On 10/6/10 1:29 CDT, Kagamin wrote: > > sybrandy Wrote: > > > >> What would you rewrite in D? > > > > Phobos. > > The irony/joke is lost on me, so I'll bite: how do you mean that? Don't worry, I didn't mean std.algorithm.

Re: What would you rewrite in D?

2010-10-06 Thread Jonathan M Davis
On Wednesday 06 October 2010 22:00:02 Nick Sabalausky wrote: > "Gour D." wrote in message > news:20101007055846.597a5...@atmarama.noip.me... > > >Although I'm still hankering to see QtD, I'm just curious (not having > >experience with) how does SWT (DWT) can compare in regards? > > SWT/DWT uses

Re: What would you rewrite in D?

2010-10-07 Thread Jacob Carlborg
On 2010-10-07 07:00, Nick Sabalausky wrote: "Gour D." wrote in message news:20101007055846.597a5...@atmarama.noip.me... Although I'm still hankering to see QtD, I'm just curious (not having experience with) how does SWT (DWT) can compare in regards? SWT/DWT uses the native GUI, at least on wi

Re: What would you rewrite in D?

2010-10-07 Thread Jacob Carlborg
On 2010-10-07 00:26, Robert Clipsham wrote: On 06/10/10 23:03, Nick Sabalausky wrote: Ok, for me GTK is native because I use Linux and a GTK based desktop. I know that there's a native GTK port for OSX/Quartz and I thought GTK had themes to look native on Windows? It does make a vague attempt

Re: What would you rewrite in D?

2010-10-07 Thread Jacob Carlborg
On 2010-10-07 08:37, Jonathan M Davis wrote: On Wednesday 06 October 2010 22:00:02 Nick Sabalausky wrote: "Gour D." wrote in message news:20101007055846.597a5...@atmarama.noip.me... Although I'm still hankering to see QtD, I'm just curious (not having experience with) how does SWT (DWT) can c

Re: What would you rewrite in D?

2010-10-07 Thread Robert Clipsham
On 07/10/10 00:28, Nick Sabalausky wrote: Unless you're a KDE (or Xfce) user. Which actually brings up another thing: It's my understanding that wxWidgets can use other things than just GTK on Linux. And AIUI, Qt and KDE are tied togther in the same way as GTK and GNOME, so does that mean Qt won'

Re: What would you rewrite in D?

2010-10-07 Thread Robert Clipsham
On 07/10/10 09:46, Jacob Carlborg wrote: I haven't seen any native looking Qt application on Mac. When did you last use a Qt application on a Mac? The cocoa backend for OS X is fairly new - Qt apps I've written look native on a Mac (admittedly the spacing's a bit off in places, that's not a h

Re: What would you rewrite in D?

2010-10-14 Thread Andrej Mitrovic
On 10/6/10, Nick Sabalausky wrote: > "sybrandy" wrote in message > news:i8g8oi$1hv...@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/Linu

Re: What would you rewrite in D?

2010-10-14 Thread Michael Stover
An operating system written in D would be really interesting. On Thu, Oct 14, 2010 at 11:05 AM, Andrej Mitrovic < andrej.mitrov...@gmail.com> wrote: > On 10/6/10, Nick Sabalausky wrote: > > "sybrandy" wrote in message > > news:i8g8oi$1hv...@digitalmars.com... > >> Just asking out of curiosity.

Re: What would you rewrite in D?

2010-10-14 Thread Denis Koroskin
On Thu, 14 Oct 2010 21:32:44 +0400, Michael Stover wrote: An operating system written in D would be really interesting. http://wiki.xomb.org/index.php?title=Main_Page

Re: What would you rewrite in D?

2010-10-15 Thread Andrej Mitrovic
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 i

Re: What would you rewrite in D?

2010-10-15 Thread Iain Buclaw
== Quote from Andrej Mitrovic (andrej.mitrov...@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" wrote in message > > news:i8g8oi$1hv...@digitalmars

Re: What would you rewrite in D?

2010-10-17 Thread Nick Sabalausky
"Andrej Mitrovic" wrote in message news:mailman.597.1287068756.858.digitalmar...@puremagic.com... > On 10/6/10, Nick Sabalausky 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

Re: What would you rewrite in D?

2010-10-17 Thread Andrej Mitrovic
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 be

Re: What would you rewrite in D?

2010-10-17 Thread Andrej Mitrovic
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 wrote: > I think you mi

Re: What would you rewrite in D?

2010-10-18 Thread Emil Madsen
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