Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Piotrek via Digitalmars-d
On Friday, 6 March 2015 at 06:30:45 UTC, Rikki Cattermole wrote: I'll summarize my views on all of this. We keep making the same damn mistakes time after time. Especially with GUI's. Stop trying to make GUI toolkits! Seriously just stop. WE DO NOT HAVE THE INFRASTRUCTURE FOR IT. Yes I know

Re: dfmt 0.1.0

2015-03-06 Thread Walter Bright via Digitalmars-d-announce
On 3/6/2015 1:48 AM, Brian Schott wrote: The serious answer is that there's a lot of special casing that I'm still trying to figure out. Ah. I had thought that maybe there was an obvious algorithm I didn't think of!

Re: dfmt 0.1.0

2015-03-06 Thread Walter Bright via Digitalmars-d-announce
On 3/6/2015 2:47 AM, Stefan Koch wrote: I'd like to hear your definition of simple. It's easy to understand, and one could write one from scratch over a weekend. I haven't done any statistics, but I'd bet that that parse.c lexer.c are among the most stable parts of dmd judging by change

Re: dfmt 0.1.0

2015-03-06 Thread Walter Bright via Digitalmars-d-announce
On 3/6/2015 1:54 AM, Brian Schott wrote: On Friday, 6 March 2015 at 09:39:13 UTC, Walter Bright wrote: True, but on the other hand, a D lexer and parser are pretty simple. Did you mean simple compared to C++? It's simple in both absolute terms and relative to C++ terms. It's not as simple

Re: Two suggestions for safe refcounting

2015-03-06 Thread Zach the Mystic via Digitalmars-d
On Friday, 6 March 2015 at 14:40:31 UTC, Volodymyr wrote: On Friday, 6 March 2015 at 07:46:13 UTC, Zach the Mystic wrote: ... Note how the last member, opIndex, doesn't return a raw E*, but only an E* which is paired with a pointer to the same RCData instance as the RCArray is: struct

Targeting Vulkan and SPIR-V

2015-03-06 Thread Joakim via Digitalmars-d
The ground-up redesign of OpenGL, now called Vulkan, has been announced at GDC: http://www.phoronix.com/scan.php?page=articleitem=khronos-vulcan-spirv Both graphics shaders and the latest verson of OpenCL, which enables computation on the GPU, will target a new IR called SPIR-V:

Re: dfmt 0.1.0

2015-03-06 Thread Walter Bright via Digitalmars-d-announce
On 3/6/2015 11:55 AM, Russel Winder via Digitalmars-d-announce wrote: The core problem here is teletype, monospace font thinking. Using a proper proportional font for you code and you rapidly lose the need for all this alignment stuff. Real point but expressed as a bit of a troll, mostly to

[Issue 14252] New: Erroneous dtor attributes check even if the struct returned immediately

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14252 Issue ID: 14252 Summary: Erroneous dtor attributes check even if the struct returned immediately Product: D Version: D2 Hardware: All OS: All Status:

Re: dfmt 0.1.0

2015-03-06 Thread Walter Bright via Digitalmars-d-announce
On 3/6/2015 2:31 AM, Russel Winder via Digitalmars-d-announce wrote: Remember a tab is not a number of spaces, it is semantic markup. All I can say is good luck with that. ASCII is not a markup language, and trying to reinvent it as one is doomed to failure. I can also say from experience

Re: how to read some in vibe.d tcpconnection?

2015-03-06 Thread zhmt via Digitalmars-d-learn
Hi,I got the right answer in vibe.d forum,here is the link: http://forum.rejectedsoftware.com/groups/rejectedsoftware.vibed/thread/24403/#post-24416

[Issue 14213] Strange deprecated message in std.typecons.Proxy with using method

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14213 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid

[Issue 14062] Not pure std.variant.Variant ctor

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14062 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Hardware|x86 |All

Re: Targeting Vulkan and SPIR-V

2015-03-06 Thread deadalnix via Digitalmars-d
On Saturday, 7 March 2015 at 02:18:22 UTC, Iain Buclaw wrote: Unlike LDC, GDC doesn't need to be *made* to target anything. It's IR is high level enough that you don't need to think (nor care) about your backend target. GCC itself will need a backend to support it though. ;) Iain Why is

Re: DDT 0.11.0 released

2015-03-06 Thread Bruno Medeiros via Digitalmars-d-announce
On 06/03/2015 17:37, Bruno Medeiros wrote: A new version of DDT is out. Improvements to the semantic engine, important fixes: https://github.com/bruno-medeiros/DDT/releases/tag/Release_0.11.0 There has also been some big internal changes lately, so these latest releases might be a bit more

Re: DDT 0.11.0 released

2015-03-06 Thread Bruno Medeiros via Digitalmars-d-announce
On 06/03/2015 18:48, wobbles wrote: On Friday, 6 March 2015 at 17:37:51 UTC, Bruno Medeiros wrote: A new version of DDT is out. Improvements to the semantic engine, important fixes: https://github.com/bruno-medeiros/DDT/releases/tag/Release_0.11.0 There has also been some big internal changes

Re: Targeting Vulkan and SPIR-V

2015-03-06 Thread Iain Buclaw via Digitalmars-d
On 6 Mar 2015 23:30, Joakim via Digitalmars-d digitalmars-d@puremagic.com wrote: The ground-up redesign of OpenGL, now called Vulkan, has been announced at GDC: http://www.phoronix.com/scan.php?page=articleitem=khronos-vulcan-spirv Both graphics shaders and the latest verson of OpenCL, which

Re: Int to float?

2015-03-06 Thread bearophile via Digitalmars-d-learn
Ola Fosheim Grøstad: D claims to follow C, so using unions for type punning is ultimately implementation defined. I am not sure if D is the same as C regarding this. Bye, bearophile

[Issue 10972] aggregate postblit doesn't clean up in case of failure

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10972 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, wrong-code ---

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Paulo Pinto via Digitalmars-d
On Friday, 6 March 2015 at 13:02:05 UTC, Ola Fosheim Grøstad wrote: On Friday, 6 March 2015 at 12:30:36 UTC, Paulo Pinto wrote: I am hoping mobile applications and application stores bring an end to the non-sense of bending documents into applications. Yes, the model-view separation could be

Re: Two suggestions for safe refcounting

2015-03-06 Thread monarch_dodra via Digitalmars-d
On Friday, 6 March 2015 at 07:46:13 UTC, Zach the Mystic wrote: The second, harder problem, is when you take a reference to a subcomponent of an RC'd type, e.g. an individual E of an RCArray of E: struct RCArray(E) { E[] array; int* count; ... } auto x = RCArray([E()]); E* t = x[0];

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Paulo Pinto via Digitalmars-d
On Friday, 6 March 2015 at 14:43:20 UTC, Ola Fosheim Grøstad wrote: On Friday, 6 March 2015 at 14:22:21 UTC, Paulo Pinto wrote: Last one was an upload progress bar with status with amount of uploaded data for files dragged into the browser, working the same way across all required browsers.

Initializing defaults based on type.

2015-03-06 Thread anon via Digitalmars-d-learn
Hi, I can't figure this out. struct Pair(T) { T x; T y; alias x c; alias y r; } What would like is that the x and y to be initialized to different values depending on type eg: struct Container { Pair!double sample1; // This will initialize sample1 with 0 for both x and y

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Wyatt via Digitalmars-d
On Friday, 6 March 2015 at 06:02:17 UTC, Taylor Hillegeist wrote: So I have played with a few GUI libraries with bindings available through D. Personally I find that it seems like there is alot of effort being put forth on GUI projects. For consideration/inspiration/whatever, Hybrid was an

Re: dfmt 0.1.0

2015-03-06 Thread Brian Schott via Digitalmars-d-announce
On Friday, 6 March 2015 at 09:40:07 UTC, Walter Bright wrote: How are comments handled? The source code makes a DC 15 wisdom save, if it fails then the comments get distributed randomly. The serious answer is that there's a lot of special casing that I'm still trying to figure out.

Re: dfmt 0.1.0

2015-03-06 Thread Russel Winder via Digitalmars-d-announce
On Fri, 2015-03-06 at 09:48 +, Brian Schott via Digitalmars-d-announce wrote: On Friday, 6 March 2015 at 09:40:07 UTC, Walter Bright wrote: How are comments handled? The source code makes a DC 15 wisdom save, if it fails then the comments get distributed randomly. But with a d4, d6,

Re: how to write a string to a c pointer?

2015-03-06 Thread FG via Digitalmars-d-learn
On 2015-03-06 at 00:25, ketmar wrote: unicode sux[1]. [1] http://file.bestmx.net/ee/articles/uni_vs_code.pdf Great article. Thanks, Кетмар ⚠ ∑ ♫ ⚽ ☀ ☕ ☺ ≡ ♛

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Paulo Pinto via Digitalmars-d
On Friday, 6 March 2015 at 12:49:11 UTC, Kagamin wrote: On Friday, 6 March 2015 at 12:30:36 UTC, Paulo Pinto wrote: Or that we get to have the second comeback of XHTML, and finally have something like XAML on the browser, which was XHTML original idea. There's already XUL, I use it, a small

Re: Standard GUI framework inspired by Qt

2015-03-06 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-05 09:05, Paulo Pinto wrote: This is the approach taken by modern GUI toolkits for native applications, Qt, JavaFX, XAML, Android. I imagine on Mac OS/iOS NIBs also follow a similar pattern. Not as far as I know. It can only load the nib at runtime, at least officially. The

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Paulo Pinto via Digitalmars-d
On Friday, 6 March 2015 at 13:22:47 UTC, Ola Fosheim Grøstad wrote: On Friday, 6 March 2015 at 12:29:46 UTC, Chris wrote: to!). Frankly speaking, I hate JS and wish there was a way to get rid of it (please, don't try to convince me that JS is somehow good - it isn't - and that there is jquery

[Issue 11166] Forward reference error when alias of template instance is private

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=11166 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull, rejects-valid ---

[Issue 5223] [qtd] Cannot use default value with function parameter of struct type

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=5223 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: Two suggestions for safe refcounting

2015-03-06 Thread Volodymyr via Digitalmars-d
On Friday, 6 March 2015 at 07:46:13 UTC, Zach the Mystic wrote: ... Note how the last member, opIndex, doesn't return a raw E*, but only an E* which is paired with a pointer to the same RCData instance as the RCArray is: struct RCElement(E) { E* element; private RCData* data;

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread via Digitalmars-d
On Friday, 6 March 2015 at 14:22:21 UTC, Paulo Pinto wrote: Last one was an upload progress bar with status with amount of uploaded data for files dragged into the browser, working the same way across all required browsers. Meaning IE9? You can do it, by reporting back from the server

Re: dfmt 0.1.0

2015-03-06 Thread Ben Boeckel via Digitalmars-d-announce
On Fri, Mar 06, 2015 at 10:31:29 +, Russel Winder via Digitalmars-d-announce wrote: That is the whole point of using tabs for indent, you can chose the indent amount: I tend to use 20ex. Remember a tab is not a number of spaces, it is semantic markup. Using spaces is a low-level hack

[Issue 6766] Forward reference error for default struct/class arguments

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6766 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added Keywords||pull

[Issue 6766] Forward reference error for default struct/class arguments

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=6766 Kenji Hara k.hara...@gmail.com changed: What|Removed |Added CC||samu...@voliacable.com ---

how to read some in vibe.d tcpconnection?

2015-03-06 Thread zhmt via Digitalmars-d-learn
TCPConnecion has a read method, which will block untill the buf is fully filled. This is not what I want. I want a readSome method, which will return if some data comes from remote end, and notify the length of data to me. so I can process data in time. what should I do ?

Re: dfmt 0.1.0

2015-03-06 Thread Brian Schott via Digitalmars-d-announce
On Friday, 6 March 2015 at 09:39:13 UTC, Walter Bright wrote: True, but on the other hand, a D lexer and parser are pretty simple. Did you mean simple compared to C++? I remember having to report/fix a LOT of bugs in the language specification and explore the DMD front end source code to get

Re: how to read some in vibe.d tcpconnection?

2015-03-06 Thread zhmt via Digitalmars-d-learn
There should be a function called DataAvilable. Simply read the data if this function returns true Thanks you! But the DataAvilable just return a bool value, so I dont know the available data size, I cant call the read method simply. Is there more info to solve this problem?

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Russel Winder via Digitalmars-d
On Fri, 2015-03-06 at 10:01 +, via Digitalmars-d wrote: […] Components are coming to HTML5: […] It could work out nicely. On the other hand for a non-browser UI, it doesn't really make sense! Personally I cannot see a new D implemented graphics system and GUI system on top of it

Re: I wondered what characters are allowed for delimiters in a delimited string

2015-03-06 Thread anonymous via Digitalmars-d
On Friday, 6 March 2015 at 01:44:30 UTC, Philip Miess wrote: The spec seemed a little loose, so I tried the first 256 to see. It is everything minus letters, null and control-z, opening brackets braces, parenthesis whitespace Opening brackets, braces, and parenthesis are allowed; the

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #8 from Martin Nowak c...@dawg.eu --- (In reply to Ketmar Dark from comment #7) so do you mean that if some syntax was allowed by accident, it should be kept forever No it should be kept for one release with a deprecation warning

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #11 from Ketmar Dark ket...@ketmar.no-ip.org --- but why? it's not the compiler task to babysit old and broken code, it's lint(dfix) task. removing that burden from compiler allows alot more possibilities, as compiler code stays clean,

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread via Digitalmars-d
On Friday, 6 March 2015 at 12:29:46 UTC, Chris wrote: to!). Frankly speaking, I hate JS and wish there was a way to get rid of it (please, don't try to convince me that JS is somehow good - it isn't - and that there is jquery and blah dee blah. Please don't.). It isn't good, but once you

Re: Int to float?

2015-03-06 Thread Nicolas Sicard via Digitalmars-d-learn
On Friday, 6 March 2015 at 00:57:16 UTC, Ola Fosheim Grøstad wrote: On Thursday, 5 March 2015 at 23:50:28 UTC, Jesse Phillips wrote: I think I read somewhere you don't want to use unions like this, but I think it is more because you generally don't want to reinterpret bits. It is

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Chris via Digitalmars-d
On Friday, 6 March 2015 at 11:34:15 UTC, Ola Fosheim Grøstad wrote: On Friday, 6 March 2015 at 10:55:34 UTC, ketmar wrote: wow, what a shitload of crap! exactly what i mean when i wrote most people doing it wrong. Describe what is right? To most developers, doing it right means saving

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Paulo Pinto via Digitalmars-d
On Friday, 6 March 2015 at 11:30:58 UTC, Ola Fosheim Grøstad wrote: On Friday, 6 March 2015 at 10:42:37 UTC, Russel Winder wrote: On Fri, 2015-03-06 at 10:01 +, via Digitalmars-d wrote: […] Components are coming to HTML5: […] It could work out nicely. On the other hand for a

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #9 from Dicebot pub...@dicebot.lv --- It was introduced in 1b932b9282df6ed312b6da0031417ea0d4f8faa5 I am looking in how deprecation message can be added --

[Issue 14250] New: add function for reading a password to std.getopt

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14250 Issue ID: 14250 Summary: add function for reading a password to std.getopt Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread via Digitalmars-d
On Friday, 6 March 2015 at 12:30:36 UTC, Paulo Pinto wrote: I am hoping mobile applications and application stores bring an end to the non-sense of bending documents into applications. Yes, the model-view separation could be better for large datasets ( 5000 items), but you can do it just

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #12 from Dicebot pub...@dicebot.lv --- Can you please resist the temptation to start another pointless discussion with ketmar? I don't want to disable notifications for this issue. --

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #10 from Martin Nowak c...@dawg.eu --- (In reply to Ketmar Dark from comment #7) Once dfix is ready for primetime and is release with dmd we might switch to a model where we such changes are accompanied with a rewrite in dfix. But for

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #13 from Martin Nowak c...@dawg.eu --- Thanks @dicebot. It's this error you're triggering. https://github.com/9rnsr/dmd/commit/1b932b9282df6ed312b6da0031417ea0d4f8faa5#diff-62dcb5f0ffc3089b7565897d8beb3322R918 At best you pass a `bool

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #15 from Martin Nowak c...@dawg.eu --- (In reply to Ketmar Dark from comment #11) i'm far from saying that nothing should be done. actually, i'm saying the exact opposite thing: it's time to bless dfix and bundle it with compiler

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #14 from Dicebot pub...@dicebot.lv --- Thanks, working on it. --

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #17 from Kenji Hara k.hara...@gmail.com --- (In reply to Martin Nowak from comment #4) (In reply to Ketmar Dark from comment #3) should any bug be deprecated first — just in case somebody wrote invalid code relying on that bug?

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread ketmar via Digitalmars-d
On Fri, 06 Mar 2015 11:34:14 +, Ola Fosheim Grøstad wrote: On Friday, 6 March 2015 at 10:55:34 UTC, ketmar wrote: wow, what a shitload of crap! exactly what i mean when i wrote most people doing it wrong. Describe what is right? i did alot of times. Smalltalk, Oberon, BCB. old

Re: [OT] HTML: div/iframe hybrid?

2015-03-06 Thread Kagamin via Digitalmars-d
Just posted: http://jonrimmer.github.io/are-we-componentized-yet/ Is it what you need?

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Kagamin via Digitalmars-d
On Friday, 6 March 2015 at 12:30:36 UTC, Paulo Pinto wrote: Or that we get to have the second comeback of XHTML, and finally have something like XAML on the browser, which was XHTML original idea. There's already XUL, I use it, a small program eats ~100MB of RAM.

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Kagamin via Digitalmars-d
On Friday, 6 March 2015 at 12:29:46 UTC, Chris wrote: To cut a long story short, ideals and pragmatism are at loggerheads here, but at the end of the day, you have to get your apps out there for as many people and as many platforms as possible, with the least effort possible. So HTML5 and

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread ketmar via Digitalmars-d
On Fri, 06 Mar 2015 12:29:45 +, Chris wrote: To cut a long story short, ideals and pragmatism are at loggerheads here, but at the end of the day, you have to get your apps out there for as many people and as many platforms as possible, with the least effort possible. So HTML5 and related

[Issue 14232] redundant attribute 'const'

2015-03-06 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #16 from Ketmar Dark ket...@ketmar.no-ip.org --- How about you work with Brian on getting it integrated for 2.068? i've never seen a call for help from him. but sure, if he needs any help i can provide, i'm ready to do that... after dfix

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread ketmar via Digitalmars-d
On Fri, 06 Mar 2015 16:23:33 +, Chris wrote: On Friday, 6 March 2015 at 12:46:10 UTC, Kagamin wrote: On Friday, 6 March 2015 at 12:29:46 UTC, Chris wrote: To cut a long story short, ideals and pragmatism are at loggerheads here, but at the end of the day, you have to get your apps out

Re: Standard GUI framework inspired by Qt

2015-03-06 Thread ketmar via Digitalmars-d
On Fri, 06 Mar 2015 17:07:55 +0100, Jacob Carlborg wrote: On 2015-03-05 08:58, ketmar wrote: On Thu, 05 Mar 2015 08:40:36 +0100, Jacob Carlborg wrote: Everyone is constantly forgetting about OS X :(. i'm not forget about it, i'm simply ignoring it, along with windows. strictly speaking,

Re: Standard GUI framework inspired by Qt

2015-03-06 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-05 08:58, ketmar wrote: On Thu, 05 Mar 2015 08:40:36 +0100, Jacob Carlborg wrote: Everyone is constantly forgetting about OS X :(. i'm not forget about it, i'm simply ignoring it, along with windows. strictly speaking, along with anything that is not X11. ;-) Fair enough :). I

Re: Initializing defaults based on type.

2015-03-06 Thread Benjamin Thaut via Digitalmars-d-learn
On Friday, 6 March 2015 at 15:36:47 UTC, anon wrote: Hi, I can't figure this out. struct Pair(T) { T x; T y; alias x c; alias y r; } What would like is that the x and y to be initialized to different values depending on type eg: struct Container { Pair!double sample1; //

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Chris via Digitalmars-d
On Friday, 6 March 2015 at 12:46:10 UTC, Kagamin wrote: On Friday, 6 March 2015 at 12:29:46 UTC, Chris wrote: To cut a long story short, ideals and pragmatism are at loggerheads here, but at the end of the day, you have to get your apps out there for as many people and as many platforms as

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Chris via Digitalmars-d
On Friday, 6 March 2015 at 16:57:01 UTC, ketmar wrote: On Fri, 06 Mar 2015 16:23:33 +, Chris wrote: On Friday, 6 March 2015 at 12:46:10 UTC, Kagamin wrote: On Friday, 6 March 2015 at 12:29:46 UTC, Chris wrote: To cut a long story short, ideals and pragmatism are at loggerheads here, but

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Chris via Digitalmars-d
On Friday, 6 March 2015 at 13:22:47 UTC, Ola Fosheim Grøstad wrote: On Friday, 6 March 2015 at 12:29:46 UTC, Chris wrote: to!). Frankly speaking, I hate JS and wish there was a way to get rid of it (please, don't try to convince me that JS is somehow good - it isn't - and that there is jquery

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread ketmar via Digitalmars-d
On Fri, 06 Mar 2015 16:59:18 +, Chris wrote: A web UI like that of fossil? Fossil doesn't use JS in its UI. But Fossil is not yet usable, is it? it's completely usable. and it is used to develop fossil itself and sqlite. I saw a comment saying project not finished, no downloads or

Re: Initializing defaults based on type.

2015-03-06 Thread Ali Çehreli via Digitalmars-d-learn
On 03/06/2015 08:04 AM, Benjamin Thaut wrote: On Friday, 6 March 2015 at 15:36:47 UTC, anon wrote: Hi, I can't figure this out. struct Pair(T) { T x; T y; alias x c; alias y r; } What would like is that the x and y to be initialized to different values depending on type eg:

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Kagamin via Digitalmars-d
On Friday, 6 March 2015 at 16:23:34 UTC, Chris wrote: A web UI like that of fossil? Fossil doesn't use JS in its UI. But Fossil is not yet usable, is it? Why not? You can try it right now: http://www.fossil-scm.org/

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Chris via Digitalmars-d
On Friday, 6 March 2015 at 14:30:20 UTC, Wyatt wrote: On Friday, 6 March 2015 at 06:02:17 UTC, Taylor Hillegeist wrote: So I have played with a few GUI libraries with bindings available through D. Personally I find that it seems like there is alot of effort being put forth on GUI projects.

Re: Initializing defaults based on type.

2015-03-06 Thread ketmar via Digitalmars-d-learn
On Fri, 06 Mar 2015 08:39:55 -0800, Ali Çehreli wrote: And an overengineered solution: :p this is definitely the best. signature.asc Description: PGP signature

Re: I want to introduce boost_asio to dlang

2015-03-06 Thread ketmar via Digitalmars-d-learn
On Fri, 06 Mar 2015 03:12:44 +, Messenger wrote: On Thursday, 5 March 2015 at 07:38:35 UTC, ketmar wrote: On Thu, 05 Mar 2015 06:05:55 +, zhmt wrote: But I am not familiar with dlang this is the root of the problem. please, make yourself familiar before starting to wrap boost crap.

Re: dfmt 0.1.0

2015-03-06 Thread Stefan Koch via Digitalmars-d-announce
On Friday, 6 March 2015 at 09:39:13 UTC, Walter Bright wrote: On 3/5/2015 1:04 AM, Russel Winder via Digitalmars-d-announce wrote: It would be good if the D implemented D parser were though. Parsing to create an AST is needed for many things. If each tool in the tool chain implements it's

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread ketmar via Digitalmars-d
On Fri, 06 Mar 2015 10:01:34 +, Ola Fosheim Grøstad wrote: On Friday, 6 March 2015 at 07:49:51 UTC, ketmar wrote: it should be turned inside out: to be productive we need component framework a-la BlackBox Component Builder. sadly, most people were never worked with *real* component

Re: dfmt 0.1.0

2015-03-06 Thread Walter Bright via Digitalmars-d-announce
On 3/5/2015 7:15 PM, Brian Schott wrote: You probably feel that way because tabs are better. dfmt only defaults to spaces because that's what's in the Phobos style guide. Spaces are used in Phobos because no two tools agree on what the tab size should be.

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread via Digitalmars-d
On Friday, 6 March 2015 at 07:49:51 UTC, ketmar wrote: it should be turned inside out: to be productive we need component framework a-la BlackBox Component Builder. sadly, most people were never worked with *real* component framework, so they keep thinking that ide + gui builder + compiler is

Re: how to read some in vibe.d tcpconnection?

2015-03-06 Thread Stefan Koch via Digitalmars-d-learn
On Friday, 6 March 2015 at 10:16:32 UTC, zhmt wrote: There should be a function called DataAvilable. Simply read the data if this function returns true Thanks you! But the DataAvilable just return a bool value, so I dont know the available data size, I cant call the read method simply.

Re: dfmt 0.1.0

2015-03-06 Thread Russel Winder via Digitalmars-d-announce
On Fri, 2015-03-06 at 01:37 -0800, Walter Bright via Digitalmars-d-announce wrote: On 3/5/2015 7:15 PM, Brian Schott wrote: You probably feel that way because tabs are better. dfmt only defaults to spaces because that's what's in the Phobos style guide. Spaces are used in Phobos

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread via Digitalmars-d
On Friday, 6 March 2015 at 10:55:34 UTC, ketmar wrote: wow, what a shitload of crap! exactly what i mean when i wrote most people doing it wrong. Describe what is right? To most developers, doing it right means saving developer time and if possible push design declarative programming onto

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread via Digitalmars-d
On Friday, 6 March 2015 at 10:42:37 UTC, Russel Winder wrote: On Fri, 2015-03-06 at 10:01 +, via Digitalmars-d wrote: […] Components are coming to HTML5: […] It could work out nicely. On the other hand for a non-browser UI, it doesn't really make sense! Not sure what you mean by

Re: dfmt 0.1.0

2015-03-06 Thread Walter Bright via Digitalmars-d-announce
On 3/3/2015 3:03 PM, Brian Schott wrote: dfmt works by re-using my existing lexer and parser. The parser is run on the code first so that the formatting step knows a few things like the difference between the binary and unary forms of *. Line splitting is figured out using a badly mangled

Re: What Features Should A GUI toolkit have?

2015-03-06 Thread Kagamin via Digitalmars-d
On Friday, 6 March 2015 at 06:02:17 UTC, Taylor Hillegeist wrote: -Widgets- Personally I think that all layout items like HBar should be children of widget that way i can make more modular component, but that's just my opinion. For user components, a UserControl is provided

Re: how to read some in vibe.d tcpconnection?

2015-03-06 Thread Rikki Cattermole via Digitalmars-d-learn
On 6/03/2015 10:30 p.m., zhmt wrote: I am forwarding data from client to another server, if the client send data to server,I want to forward that to another server in time. So, if the server recieves nothing it will wait, if it receive some data , forward them to another server immediately. I

Re: I want to introduce boost_asio to dlang

2015-03-06 Thread zhmt via Digitalmars-d-learn
On Friday, 6 March 2015 at 09:30:51 UTC, ketmar wrote: On Fri, 06 Mar 2015 01:19:40 +, zhmt wrote: Thanks for all the suggestions and pointing the right direction,I will learn and try vibe.d, try to use it in my gameserver. i've seen people using vibe.d to write warcraft server, so it's

Re: Standard GUI framework inspired by Qt

2015-03-06 Thread ketmar via Digitalmars-d
On Fri, 06 Mar 2015 08:09:15 +, Kagamin wrote: On Thursday, 5 March 2015 at 15:01:20 UTC, ketmar wrote: oh, really? so no deep widget ierarchies, no way to position the widget (as we doesn't store it's coordinates), no way to... no way to define anything. that's will be great GUI! To

Re: dfmt 0.1.0

2015-03-06 Thread Walter Bright via Digitalmars-d-announce
On 3/5/2015 1:04 AM, Russel Winder via Digitalmars-d-announce wrote: It would be good if the D implemented D parser were though. Parsing to create an AST is needed for many things. If each tool in the tool chain implements it's own… it just seems wrong. True, but on the other hand, a D lexer

Re: Standard GUI framework inspired by Qt

2015-03-06 Thread via Digitalmars-d
On Tuesday, 3 March 2015 at 18:43:50 UTC, Aram wrote: I've been thinking over a GUI framework for D for some time, and ended up with idea expressed by Andrew Fedoniouk here: http://www.digitalmars.com/d/archives/digitalmars/D/32633.html. That is, having a separate drawing layer, and widgets

Re: I want to introduce boost_asio to dlang

2015-03-06 Thread ketmar via Digitalmars-d-learn
On Fri, 06 Mar 2015 01:19:40 +, zhmt wrote: Thanks for all the suggestions and pointing the right direction,I will learn and try vibe.d, try to use it in my gameserver. i've seen people using vibe.d to write warcraft server, so it's definitely is working. you can find that on github, i

Re: how to read some in vibe.d tcpconnection?

2015-03-06 Thread zhmt via Digitalmars-d-learn
I am forwarding data from client to another server, if the client send data to server,I want to forward that to another server in time. So, if the server recieves nothing it will wait, if it receive some data , forward them to another server immediately. I dont think the TCPConnecion.read

Re: Standard GUI framework inspired by Qt

2015-03-06 Thread Vadim Lopatin via Digitalmars-d
On Friday, 6 March 2015 at 09:09:43 UTC, Ola Fosheim Grøstad wrote: On Tuesday, 3 March 2015 at 18:43:50 UTC, Aram wrote: I've been thinking over a GUI framework for D for some time, and ended up with idea expressed by Andrew Fedoniouk here:

Re: Standard GUI framework inspired by Qt

2015-03-06 Thread Kagamin via Digitalmars-d
On Friday, 6 March 2015 at 09:35:58 UTC, ketmar wrote: To position a widget you invoke a backend function on a widget handle with desired coordinates. smells like windows. To some extent, any GUI smells like windows. A widget, as long as it exists and is visible, has a size and position,

Re: how to read some in vibe.d tcpconnection?

2015-03-06 Thread zhmt via Digitalmars-d-learn
Take a look at empty and leastSize. https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/core/stream.d#L33 @Rikki Cattermole Thanks for your reply, but it is not what I want, and I cant implement my goal with them. in boost::asio, It has a method like this :

Re: how to read some in vibe.d tcpconnection?

2015-03-06 Thread Stefan Koch via Digitalmars-d-learn
On Friday, 6 March 2015 at 10:10:35 UTC, zhmt wrote: Take a look at empty and leastSize. https://github.com/rejectedsoftware/vibe.d/blob/master/source/vibe/core/stream.d#L33 @Rikki Cattermole Thanks for your reply, but it is not what I want, and I cant implement my goal with them. in

Re: DDT 0.11.0 released

2015-03-06 Thread wobbles via Digitalmars-d-announce
On Friday, 6 March 2015 at 17:37:51 UTC, Bruno Medeiros wrote: A new version of DDT is out. Improvements to the semantic engine, important fixes: https://github.com/bruno-medeiros/DDT/releases/tag/Release_0.11.0 There has also been some big internal changes lately, so these latest releases

Re: how to read some in vibe.d tcpconnection?

2015-03-06 Thread Kagamin via Digitalmars-d-learn
I'd say, peek is the right method, it returns what's already in the buffer (but doesn't read), while leastSize returns full logical size of the stream.

Re: Standard GUI framework inspired by Qt

2015-03-06 Thread via Digitalmars-d
On Friday, 6 March 2015 at 17:03:51 UTC, ketmar wrote: but i like it's core simplicity (oh, no, full xorg is a beast, especially with Opening a simple window with nothing on it in a portable and compliant manner using xlib is at least 800 lines of code... Simple!

DDT 0.11.0 released

2015-03-06 Thread Bruno Medeiros via Digitalmars-d-announce
A new version of DDT is out. Improvements to the semantic engine, important fixes: https://github.com/bruno-medeiros/DDT/releases/tag/Release_0.11.0 There has also been some big internal changes lately, so these latest releases might be a bit more buggy than usual. (as exemplified by the

  1   2   >