View mode: basic / threaded / horizontal-split · Log in · Help
August 03, 2011
Re: What library functionality would you most like to see in D?
Jimmy Cao wrote:

> 2011/8/2 so <so@so.so>
> 
>> On Tue, 02 Aug 2011 03:51:56 +0300, Brad Roberts <
>> braddr@slice-2.puremagic.com> wrote:
>>
>>  I don't think that any gui library belongs in phobos because there's
>>> essentially no agreement about what cross-platform library is standard.
>>> Pick any random 10 gui developers about what library they used (assuming
>>> they do anything cross-platform) and you'll get more than 1 answer.  I'd
>>> be shocked if you get a clear enough majority to suggest 1 that'd make a
>>> big set of people happy.
>>>
>>> Sorry, the gui library landscape just doesn't approach being obvious
>>> enough to be in the standard library.
>>>
>>> My 2 cents,
>>> Brad
>>>
>>>
>> I agree, GUIs (and other huge libraries that everyone has their own
>> favorite) don't belong standard library. Other languages get away with it
>> because they are either platform themselves or support only one platform.
>> Another reason not to include them to the standard library, remember
>> phobos has rules (we might need to change many things).
>> But if we have something small, simple and cross-platform somewhere, why
>> not!
>>
> 
> If a GUI library were included in Phobos, that would make D a much better
> competitor against C#.  That's why I hope such an inclusion would be
> possible in the future.  I see why it might not be possible, though.

I really doubt that. You don't get to really compete with C# until D runs on 
.NET and perhaps even until microsoft adopts it. I don't think a standard  
gui lib will make any difference.
August 03, 2011
Re: What library functionality would you most like to see in D?
Brad Roberts wrote:

> On Monday, August 01, 2011 7:31:13 PM, Andrei Alexandrescu wrote:
>> On 8/1/11 7:51 PM, Brad Roberts wrote:
>>>
>>> I don't think that any gui library belongs in phobos because there's
>>> essentially no agreement about what cross-platform library is standard.
>> 
>> Python has something and as far as I can tell people are fine with that.
>> 
>> Andrei
> 
> It has something _in the base library_?  It has wrappers for all/most
> of the popular libraries?  The standard distributions install some
> combination of those?
> 
> I don't use python so I'm ill equipped to discuss, but my guess is that
> it's not the first but rather the last.

It only has a wrapper for the Tkinter (from Tcl/Tk). I don't think a lot of 
people use it for serious stuff, it's kinda ancient. A lot of people use the 
Qt bindings though - these are not in the standard library.
August 03, 2011
Re: What library functionality would you most like to see in D?
On 2011-08-02 19:58, Jimmy Cao wrote:
> You're right, it's probably not that important.
> I guess it's most important that a cross-platform GUI library can simply
> be easily installed and set up (with some sort of D package manager).

I think that would make most sense.

-- 
/Jacob Carlborg
August 03, 2011
Re: What library functionality would you most like to see in D?
On 2011-08-02 21:48, Walter Bright wrote:
> On 8/1/2011 5:51 PM, Brad Roberts wrote:
>> I don't think that any gui library belongs in phobos because there's
>> essentially no agreement about what cross-platform library is standard.
>> Pick any random 10 gui developers about what library they used (assuming
>> they do anything cross-platform) and you'll get more than 1 answer. I'd
>> be shocked if you get a clear enough majority to suggest 1 that'd make a
>> big set of people happy.
>>
>> Sorry, the gui library landscape just doesn't approach being obvious
>> enough to be in the standard library.
>
>
> Also, remember, we did try to endorse a standard gui library for D a
> while back. It was a disaster on every front.

Yes, that was very unfortunate that basically when you announced DWT 
(the old one) as the standard GUI library the development stopped.

-- 
/Jacob Carlborg
August 03, 2011
Re: What library functionality would you most like to see in D?
On 2011-08-02 21:57, Nick Sabalausky wrote:
> "Jacob Carlborg"<doob@me.com>  wrote in message
> news:j18dfe$20rj$1@digitalmars.com...
>>
>> Windows and Linux (GTK) 32bit. I'm in the middle of porting the Mac OS X
>> version. These are the platforms that SWT supports:
>>
>> Windows 32/64bit
>> Windows CE
>> Linux 32/64bit and PPC64
>> Solaris 10 x86 and Sparc
>> HPUX IA64_32
>> AIX PPC/64
>> Mac OS X 32/64bit
>>
>
> It does Solaris, HPUX, and AIX, but not BSD??

I'm just listing was officially supported with binary releases. I don't 
see a reason why GTK on BSD wouldn't work.

-- 
/Jacob Carlborg
August 03, 2011
Re: What library functionality would you most like to see in D?
On 2011-08-02 22:01, Nick Sabalausky wrote:
> "Alex Rønne Petersen"<xtzgzorex@gmail.com>  wrote in message
> news:j19d45$pt5$1@digitalmars.com...
>> On 02-08-2011 18:44, Jacob Carlborg wrote:
>>>
>>> Some kind of console library to easy handle input from a user,
>>> displaying progress bars, outputting text in different colors and
>>> similar.
>>>
>> Perhaps a curses binding of some sort?
>>
>
> Maybe for linux, but it should be cross-platform and therefore use the Win
> API for that stuff on Windows. (For some bizarre reason, ANSI display
> support was removed from approx Win2k onward.)

Actually when I think about it I've written a simple library like that 
in C++ for a school project. I wonder if I still have it somewhere.

-- 
/Jacob Carlborg
August 03, 2011
Re: What library functionality would you most like to see in D?
On Aug 3, 11 13:53, Lutger Blijdestijn wrote:
> Jimmy Cao wrote:
>
>> 2011/8/2 so<so@so.so>
>>
>>> On Tue, 02 Aug 2011 03:51:56 +0300, Brad Roberts<
>>> braddr@slice-2.puremagic.com>  wrote:
>>>
>>>   I don't think that any gui library belongs in phobos because there's
>>>> essentially no agreement about what cross-platform library is standard.
>>>> Pick any random 10 gui developers about what library they used (assuming
>>>> they do anything cross-platform) and you'll get more than 1 answer.  I'd
>>>> be shocked if you get a clear enough majority to suggest 1 that'd make a
>>>> big set of people happy.
>>>>
>>>> Sorry, the gui library landscape just doesn't approach being obvious
>>>> enough to be in the standard library.
>>>>
>>>> My 2 cents,
>>>> Brad
>>>>
>>>>
>>> I agree, GUIs (and other huge libraries that everyone has their own
>>> favorite) don't belong standard library. Other languages get away with it
>>> because they are either platform themselves or support only one platform.
>>> Another reason not to include them to the standard library, remember
>>> phobos has rules (we might need to change many things).
>>> But if we have something small, simple and cross-platform somewhere, why
>>> not!
>>>
>>
>> If a GUI library were included in Phobos, that would make D a much better
>> competitor against C#.  That's why I hope such an inclusion would be
>> possible in the future.  I see why it might not be possible, though.
>
> I really doubt that. You don't get to really compete with C# until D runs on
> .NET and perhaps even until microsoft adopts it. I don't think a standard
> gui lib will make any difference.
>

There was a D.net (which seems no longer updated), and when D runs on 
.NET, the language can use all .NET libraries like WinForms and WPF 
immediately, and there's no need to have another GUI lib.

(And why D needs to compete against C#?)
August 03, 2011
Re: What library functionality would you most like to see in D?
There's pdcurses which apparently works on Windows. It's public
domain. I'm not sure if this is the one that supports ASCII escape
codes though. And I haven't tested it.

Home: http://pdcurses.sourceforge.net/
Binaries: http://gnuwin32.sourceforge.net/packages/pdcurses.htm
August 03, 2011
Re: What library functionality would you most like to see in D?
This is interesting:

http://openil.sourceforge.net/

In particular that news post from 2010. Apparently the author might
consider changing the license if there's interest in it.
August 04, 2011
Re: What library functionality would you most like to see in D?
On 2-8-2011 4:48, Adam D. Ruppe wrote:
> I've been thinking about a minimalist drawing library for
> phobos - just basic 2d stuff, but with easy enough hooks to
> add more (native api events and handles.

+1

I'd very much like to see this implemented.
9 10 11 12 13 14 15 16
Top | Discussion index | About this forum | D home