Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 01:47:57 UTC, Walter Bright wrote: The one difference was Go's support for green threads. There's no technical reason why D can't have green threads, it's just that nobody has written the library code to do it. Go can move stacks and extend them. Go is closer to

Re: readln() doesn't stop to read the input.

2015-03-27 Thread Ivan Kazmenko via Digitalmars-d
On Friday, 27 March 2015 at 04:37:34 UTC, jonaspm wrote: Please, i need your help, I tried this: write(Write p: ); readln(p); p = chomp(p); writeln(Write q: ); readln(q); q = chomp(q); but the result is: Write p: Write q: and doesn't pause to read keyboard input... what's wrong? Thanks in

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 04:05:30 UTC, Laeeth Isharc wrote: Programming is - for now - still a human activity, and what is important in human activities may not always be measured, and what may be easily measured is not always important. That doesn't mean one should throw away the profiler

OT; Donald Knuth on beauty, efficiency, and the programmer as artist

2015-03-27 Thread Laeeth Isharc via Digitalmars-d-learn
An old essay that may yet be relevant today at a time when intellectual fashion has continued in the direction he was moved to address in his speech. there is a way to make a big improvement: it is still a pleasure to do routine jobs if we have beautiful things to work with. For example, a

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Walter Bright via Digitalmars-d-announce
On 3/26/2015 11:40 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: Go can move stacks and extend them. That has no value on 64 bit systems, and is not a language issue (it's an implementation issue). Go is closer to having a low latency GC. I.e. it

Re: readln() doesn't stop to read the input.

2015-03-27 Thread lobo via Digitalmars-d
On Friday, 27 March 2015 at 04:37:34 UTC, jonaspm wrote: Please, i need your help, I tried this: write(Write p: ); readln(p); p = chomp(p); writeln(Write q: ); readln(q); q = chomp(q); but the result is: Write p: Write q: and doesn't pause to read keyboard input... what's wrong? Thanks in

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Walter Bright via Digitalmars-d-announce
On 3/27/2015 2:57 AM, Russel Winder via Digitalmars-d-announce wrote: I think the way go handles interfaces and their composition would require a few tricks in D and C++, but I am sure it can be done. Interfaces can be done with D templates. It'll be compile time polymorphism rather than run

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 09:44:27 UTC, Walter Bright wrote: On 3/27/2015 1:41 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Friday, 27 March 2015 at 08:25:26 UTC, Walter Bright wrote: The MMU makes it pointless. The virtual address space allows for 4

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread Dominikus Dittes Scherkl via Digitalmars-d
On Thursday, 26 March 2015 at 19:32:53 UTC, Idan Arye wrote: The problem, as Andrei Alexandrescu pointed out(http://forum.dlang.org/thread/mdtago$em9$1...@digitalmars.com?page=6#post-mduv1i:242169:241:40digitalmars.com), is learning how to use them. Ideally you'd want to be able to look at a

[Issue 14348] New: typeof(x).ident is not accepted as a symbol

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14348 Issue ID: 14348 Summary: typeof(x).ident is not accepted as a symbol Product: D Version: D2 Hardware: All OS: All Status: NEW Keywords: rejects-valid

[Issue 12152] Cannot forward reference subclass member in superclass

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12152 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

[Issue 12152] Cannot forward reference subclass member in superclass

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=12152 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/91dd1ff1ec207d3510fc12808e8166c3f80dab05 fix Issue 12152 - Cannot

[Issue 14320] Improve diagnostic message for undefined identifier error

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14320 github-bugzi...@puremagic.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: readln() doesn't stop to read the input.

2015-03-27 Thread Steven Schveighoffer via Digitalmars-d
On 3/27/15 4:22 AM, tcak wrote: On Friday, 27 March 2015 at 05:17:03 UTC, jonaspm wrote: but readln(p); isn't supposed to read input and store it into p? Nope. Parameter is terminator character. Read string is returned from the function. So, it would be like: string p = readln(); readln

Re: Why dont dlang check NullPointer?

2015-03-27 Thread Steven Schveighoffer via Digitalmars-d
On 3/27/15 12:13 AM, deadalnix wrote: On Friday, 27 March 2015 at 03:59:30 UTC, zhmt wrote: The best way to do that is to separate the server modules into independent processes. Then if one crashes, the others keep running without fear of corruption. So instead of server modules, try doing

Re: OT; Donald Knuth on beauty, efficiency, and the programmer as artist

2015-03-27 Thread Kagamin via Digitalmars-d-learn
Hmm... science exists only as long as we don't understand something, then it disappears and only knowledge remains. Looks like he talks about engineering, but calls it science.

Re: How does the D compiler get updated on travis-ci.org?

2015-03-27 Thread extrawurst via Digitalmars-d
On Thursday, 26 March 2015 at 21:02:56 UTC, Alex Parrill wrote: On Thursday, 26 March 2015 at 20:40:50 UTC, Gary Willoughby wrote: On Thursday, 26 March 2015 at 19:37:06 UTC, extrawurst wrote: i think it is already available on travis. this it what works for me:

[Issue 14348] typeof(x).ident is not accepted as a symbol

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14348 yebblies yebbl...@gmail.com changed: What|Removed |Added Keywords||pull --- Comment #1 from

[Issue 14320] Improve diagnostic message for undefined identifier error

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14320 --- Comment #2 from github-bugzi...@puremagic.com --- Commits pushed to master at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/6d4c8492fb3c9879b918560afbb29133625ca122 fix Issue 14320 - Improve

Advise for syntax highlighting

2015-03-27 Thread Jacob Carlborg via Digitalmars-d
I'm currently updating the TextMate D bundle for D2. I have a couple of questions for how to highlighting some specific code or how other editors/IDE's highlight them. * this in constructor this () {} In TextMate functions/methods are highlighted, should this be highlighted as a keyword or

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Russel Winder via Digitalmars-d-announce
On Fri, 2015-03-27 at 03:11 -0700, Walter Bright via Digitalmars-d-announce wrote: On 3/27/2015 2:57 AM, Russel Winder via Digitalmars-d-announce wrote: […] However, I cannot see this happening purely on volunteer, hobbyist resource. We need to find an organization or three willing to

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Russel Winder via Digitalmars-d-announce
On Fri, 2015-03-27 at 10:14 +, via Digitalmars-d-announce wrote: […] Have you actually thought about these issues or done performance tests? The Go team certainly have, and have changed their goroutine model twice because of it. No matter what they do in Go 0.0 →1.4, 1.5 onwards will be

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 10:37:01 UTC, Russel Winder wrote: The question is though what should happen in D. If Vibe.d fibres are a single threaded system, then they are not suitable for the actor, dataflow, CSP implementation needed in D since that must sit on a kernel thread pool where

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Walter Bright via Digitalmars-d-announce
On 3/27/2015 12:37 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Friday, 27 March 2015 at 06:53:01 UTC, Walter Bright wrote: On 3/26/2015 11:40 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: Go can move stacks and

[Issue 10925] unittests qualified on the right hand side fail

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=10925 Walter Bright bugzi...@digitalmars.com changed: What|Removed |Added CC|

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Russel Winder via Digitalmars-d-announce
On Thu, 2015-03-26 at 18:47 -0700, Walter Bright via Digitalmars-d-announce wrote: On 3/26/2015 12:40 PM, Russel Winder via Digitalmars-d-announce wrote: (Almost) All publicity is good publicity. I attended a presentation at NWCPP on Go last week. I have never written a Go program, so

[Issue 14322] Menu on downloads.dlang.org is completely broken

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14322 Jacob Carlborg d...@me.com changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: DlangUI

2015-03-27 Thread Vadim Lopatin via Digitalmars-d-announce
On Thursday, 26 March 2015 at 13:48:20 UTC, Chris wrote: On Thursday, 26 March 2015 at 11:47:59 UTC, Vadim Lopatin wrote: Try `dub upgrade --force-remove` followed by `dub build --force` For the love of God, please put this on the github page under troubleshooting. It happens quite a lot.

Re: problems with std.bitmanip.append (bug?)

2015-03-27 Thread John Colvin via Digitalmars-d-learn
On Friday, 27 March 2015 at 00:50:34 UTC, Hugo wrote: On Thursday, 26 March 2015 at 12:29:03 UTC, John Colvin wrote: On Thursday, 26 March 2015 at 12:21:23 UTC, Hugo wrote: Also, can anyone provide a similar example but using little endian order? If only to contrast differences between

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 08:25:26 UTC, Walter Bright wrote: The MMU makes it pointless. The virtual address space allows for 4 billion goroutines with 4 billion bytes each of stack. If you fragment the memory space you cannot use recursive page tables? If you want to address more than

Re: Class Hierarchy Graphs

2015-03-27 Thread w0rp via Digitalmars-d
On Friday, 27 March 2015 at 08:26:51 UTC, Dragos Carp wrote: On Thursday, 26 March 2015 at 17:41:58 UTC, w0rp wrote: If enough people are interested and have a few suggestions for some features they like which aren't crazy massive feature lists, I'd be willing to expand it a bit, add some

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Walter Bright via Digitalmars-d-announce
On 3/27/2015 1:41 AM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: On Friday, 27 March 2015 at 08:25:26 UTC, Walter Bright wrote: The MMU makes it pointless. The virtual address space allows for 4 billion goroutines with 4 billion bytes each of stack. If you

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 06:53:01 UTC, Walter Bright wrote: On 3/26/2015 11:40 PM, Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com wrote: Go can move stacks and extend them. That has no value on 64 bit systems, It has. and is not a language issue (it's an

Re: Why dont dlang check NullPointer?

2015-03-27 Thread via Digitalmars-d
On Friday, 27 March 2015 at 03:46:49 UTC, zhmt wrote: class A { void test() { writeln(test); } } try { A a = null; a.test(); }catch(Throwable

Re: readln() doesn't stop to read the input.

2015-03-27 Thread tcak via Digitalmars-d
On Friday, 27 March 2015 at 05:17:03 UTC, jonaspm wrote: but readln(p); isn't supposed to read input and store it into p? Nope. Parameter is terminator character. Read string is returned from the function. So, it would be like: string p = readln();

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 08:41:40 UTC, Ola Fosheim Grøstad wrote: tables? If you want to address more than 512GB you need to move to 1MiB pages. Actually, it is 2MiB. Also keep in mind that there is an advantage to having very small stacks (e.g. 1-2K) when you do simulations.

Re: Why dont dlang check NullPointer?

2015-03-27 Thread bearophile via Digitalmars-d
zhmt: In short words, I want to catch something like NullPointerException. Is this possible? One solution is to add null tests to D in nonrelease mode. A better solution is to modify D to remove all or most chances of dereferencing null pointers and class references. Bye, bearophile

Re: Feature idea: scope (failure, ExceptionSpecification) for catching exceptions

2015-03-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-26 12:23, Andrej Mitrovic via Digitalmars-d wrote: One idea I'd like to see is to enhance scope(failure) to allow it to catch a specific type of exception which would allow us to e.g. log the exception message and potentially re-throw the exception. All of this without having to nest

Re: between and among: worth Phobosization? (reprise)

2015-03-27 Thread John Colvin via Digitalmars-d
On Friday, 27 March 2015 at 01:53:22 UTC, H. S. Teoh wrote: On Fri, Mar 27, 2015 at 01:37:45AM +, Vladimir Panteleev via Digitalmars-d wrote: On Thursday, 26 March 2015 at 22:23:12 UTC, Andrei Alexandrescu wrote: New idea: bool ordered(pred = a b)(T...)(T values) So... isSorted for

Re: Class Hierarchy Graphs

2015-03-27 Thread Dragos Carp via Digitalmars-d
On Thursday, 26 March 2015 at 17:41:58 UTC, w0rp wrote: If enough people are interested and have a few suggestions for some features they like which aren't crazy massive feature lists, I'd be willing to expand it a bit, add some documentation, and offer it as a DUB package. Very nice!

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Dejan Lekic via Digitalmars-d-announce
On Wednesday, 25 March 2015 at 22:30:15 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 25 March 2015 at 21:00:37 UTC, Andrei Alexandrescu wrote: https://www.reddit.com/r/programming/comments/30ad8b/why_gos_design_is_a_disservice_to_intelligent/ Andrei Downplaying other languages makes the D

Re: HTTP() from std.net.curl hidden state

2015-03-27 Thread Ilya Korobitsyn via Digitalmars-d-learn
It looks like in perform() method curl option is set: p.curl.set(CurlOption.customrequest, DELETE); but is never reset and all requests after DELETE are DELETE too (even if asked for POST).

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Sönke Ludwig via Digitalmars-d-announce
Am 27.03.2015 um 11:11 schrieb Walter Bright: On 3/27/2015 2:57 AM, Russel Winder via Digitalmars-d-announce wrote: Aren't green threads now given the label fibres? My understanding of fibers is they are all in one thread. Go's green threads can be in multiple threads, the same thread, and

Re: HTTP() from std.net.curl hidden state

2015-03-27 Thread Ilya Korobitsyn via Digitalmars-d-learn
Solved by a workaround: // before anything else in method call() http.handle.set(CurlOption.customrequest, cast(void*) null); http.clearRequestHeaders(); Hope this will help is anyone else has this problem.

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Dejan Lekic via Digitalmars-d-announce
On Wednesday, 25 March 2015 at 21:00:37 UTC, Andrei Alexandrescu wrote: https://www.reddit.com/r/programming/comments/30ad8b/why_gos_design_is_a_disservice_to_intelligent/ Andrei If Go community is what they believe they are - intelligent. They would not blame D community for this article,

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread John Colvin via Digitalmars-d-announce
On Friday, 27 March 2015 at 12:15:03 UTC, Sönke Ludwig wrote: Am 27.03.2015 um 11:11 schrieb Walter Bright: On 3/27/2015 2:57 AM, Russel Winder via Digitalmars-d-announce wrote: Aren't green threads now given the label fibres? My understanding of fibers is they are all in one thread. Go's

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Chris via Digitalmars-d-announce
On Friday, 27 March 2015 at 03:53:36 UTC, Laeeth Isharc wrote: That kind of articles are bad for the image of the D community Nick S: No. Just...no. I'm honestly *really* tired of general society's (seemingly?) increasing intolerance FOR intolerance. Some things ARE bad. Some ideas are

Re: Advise for syntax highlighting

2015-03-27 Thread Chris via Digitalmars-d
On Friday, 27 March 2015 at 10:34:58 UTC, Jacob Carlborg wrote: I'm currently updating the TextMate D bundle for D2. I have a couple of questions for how to highlighting some specific code or how other editors/IDE's highlight them. * this in constructor this () {} In TextMate

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread Panke via Digitalmars-d
On Thursday, 26 March 2015 at 21:36:56 UTC, rumbu wrote: On Thursday, 26 March 2015 at 19:45:19 UTC, Alex Parrill wrote: On Thursday, 26 March 2015 at 19:32:53 UTC, Idan Arye wrote: ...snip... So tl;dr; make the template constraints in ddoc less prominent? The new library reference preview

Re: Solution to problems:

2015-03-27 Thread Jake The Baker via Digitalmars-d
On Thursday, 26 March 2015 at 22:05:27 UTC, Andrei Alexandrescu wrote: On 3/26/15 2:23 PM, Jake The Baker wrote: But until people stop acting like little children and think seriously about the problems, goals, and solutions then who the heck knows what to do?

Re: Solution to problems:

2015-03-27 Thread Jake The Baker via Digitalmars-d
On Thursday, 26 March 2015 at 22:33:33 UTC, ketmar wrote: On Thu, 26 Mar 2015 21:28:13 +, Jake The Baker wrote: On Thursday, 26 March 2015 at 07:06:50 UTC, ketmar wrote: On Wed, 25 Mar 2015 16:56:32 +, Jake The Baker wrote: Do *you know what progress is? one important part of

Re: DDT 0.11.0 released (please read!)

2015-03-27 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: A reason to choose D over Go

2015-03-27 Thread Shammah Chancellor via Digitalmars-d
On 2015-03-25 10:17:00 +, Bienlein said: I recently made a pull request for a go tool and spent about half an hour trying to find some function to test whether an array contains a particular element. There are libraries for this like gen: http://clipperhouse.github.io/gen. But it also

Re: Can we deprecate D-style Variadic Functions

2015-03-27 Thread Shammah Chancellor via Digitalmars-d
On 2015-03-26 01:04:03 +, Freddy said: On Thursday, 26 March 2015 at 00:11:05 UTC, Dicebot wrote: On Wednesday, 25 March 2015 at 22:12:04 UTC, Freddy wrote: D-style Variadic Functions found here:http://dlang.org/function.html seem entirely out classed by Variadic Function Templates. Can

Re: Advise for syntax highlighting

2015-03-27 Thread Chris via Digitalmars-d
On Friday, 27 March 2015 at 14:10:22 UTC, Jacob Carlborg wrote: On 2015-03-27 15:03, Chris wrote: Well, it _is_ a keyword. You cannot write a function called this, nor can you use it as a variable name. So yes, it's a keyword = reserved. It depends on how you see it. It's also a special

Re: Advise for syntax highlighting

2015-03-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-27 13:33, Chris wrote: Am using Textadept, the highlighting is as follows: highlighted as keyword: this() Why is this highlighted as a keyword? I was more leaning to highlight it as a method. What about the parameter in a copy constructor? __traits What about the

Re: pureity of closures

2015-03-27 Thread Shammah Chancellor via Digitalmars-d
On 2015-03-23 09:45:39 +, Dicebot said: I think this was not intended and is simply a side effect of limited D call graph analysis. Relaxing that limitation makes sense to me because unused impure function can be used for compile-time reflection or returned from pure function as a result

Re: Advise for syntax highlighting

2015-03-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-27 15:03, Chris wrote: Well, it _is_ a keyword. You cannot write a function called this, nor can you use it as a variable name. So yes, it's a keyword = reserved. It depends on how you see it. It's also a special method that just happens to use a keyword as its name. It doesn't

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread CraigDillabaugh via Digitalmars-d
On Friday, 27 March 2015 at 10:10:37 UTC, Dominikus Dittes Scherkl wrote: On Thursday, 26 March 2015 at 19:32:53 UTC, Idan Arye wrote: But when it comes to heavily templated functions - understanding the signature is HARD. It's hard enough for the top programmers that can handle the complex

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread rumbu via Digitalmars-d
On Friday, 27 March 2015 at 13:07:30 UTC, Panke wrote: On Thursday, 26 March 2015 at 21:36:56 UTC, rumbu wrote: On Thursday, 26 March 2015 at 19:45:19 UTC, Alex Parrill wrote: On Thursday, 26 March 2015 at 19:32:53 UTC, Idan Arye wrote: ...snip... So tl;dr; make the template constraints in

Re: Advise for syntax highlighting

2015-03-27 Thread Chris via Digitalmars-d
On Friday, 27 March 2015 at 13:58:03 UTC, Jacob Carlborg wrote: On 2015-03-27 13:33, Chris wrote: Am using Textadept, the highlighting is as follows: highlighted as keyword: this() Why is this highlighted as a keyword? I was more leaning to highlight it as a method. Well, it _is_ a

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 12:15:03 UTC, Sönke Ludwig wrote: distribution across the cores, but in most scenarios the number of concurrent tasks should be high enough to keep all cores busy anyhow. There are also additional costs for moving fibers (synchronization, cache misses). It is a

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread CraigDillabaugh via Digitalmars-d
On Friday, 27 March 2015 at 14:02:55 UTC, CraigDillabaugh wrote: clip If the function inputs are trivial (ie. takes an integer or basic string) then this isn't an issue. But for functions taking complex inputs it can be a bit baffling for someone new to the language. I must admit when I was

Re: problems with std.bitmanip.append (bug?)

2015-03-27 Thread Hugo via Digitalmars-d-learn
On Friday, 27 March 2015 at 08:43:56 UTC, John Colvin wrote: Think of it as compile-time arguments and run-time arguments. First set of parenthesis are compile-time, second are run-time. The parenthesis are optional for compile-time arguments iff there's only one of them. I really

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread Tobias Pankrath via Digitalmars-d
Looked also in the source code to find out that startsWith is locale sensitive, something ignored in phobos. Why would I need a locale for startsWith? Please file a bug, if that's actually needed for unicode strings.

Re: Why dont dlang check NullPointer?

2015-03-27 Thread Shammah Chancellor via Digitalmars-d
On 2015-03-27 05:34:59 +, zhmt said: On Friday, 27 March 2015 at 04:13:01 UTC, deadalnix wrote: On Friday, 27 March 2015 at 03:59:30 UTC, zhmt wrote: The best way to do that is to separate the server modules into independent processes. Then if one crashes, the others keep running

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread Tobias Pankrath via Digitalmars-d
[skip] I'm not a native English speaker, but a range can start with a needle? Where is the haystack? :) Yes the output is awful, but that does not imply some kind of concepts is needed to make the documentation easier to understand. And Python's startsWith makes no use of a protocol. See

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread Shammah Chancellor via Digitalmars-d
On 2015-03-26 19:32:51 +, Idan Arye said: There is a discussion about D vs Go going on in several threads(yey for multithreading!), and one thread is about an article by Gary Willoughby that claims that Go is not suitable for sophisticated

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Dicebot via Digitalmars-d-announce
On Friday, 27 March 2015 at 14:18:33 UTC, Ola Fosheim Grøstad wrote: On Friday, 27 March 2015 at 12:15:03 UTC, Sönke Ludwig wrote: distribution across the cores, but in most scenarios the number of concurrent tasks should be high enough to keep all cores busy anyhow. There are also additional

Format double in decimal notation without trailing zeros after the decimal point

2015-03-27 Thread akaDemik via Digitalmars-d-learn
The task seemed very simple. But I'm stuck. I want to: 1234567890123.0 to 1234567890123 1.23 to 1.23 1.234567 to 1.2346. With format string %.4f i get 1.2300 for 1.23. With %g i get 1.23456789e+12 for 1234567890123.0. I can not believe that it is not implemented. What did I miss?

Re: Advise for syntax highlighting

2015-03-27 Thread Dicebot via Digitalmars-d
Personal preferences: * this in constructor this () {} In TextMate functions/methods are highlighted, should this be highlighted as a keyword or as a method? method * this in copy constructor this (this) {} The this parameter, should that be highlighted as a keyword or as a parameter?

Re: Can we deprecate D-style Variadic Functions

2015-03-27 Thread Dicebot via Digitalmars-d
What Shammah has said. Your proposal is not a proper replacement, it has very different effect on a binary. It could be possible to reimplement D-style varargs on top of C-style varargs + manual RTTI usage but not with template variadics.

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread Tobias Pankrath via Digitalmars-d
Regarding the scscscshghshshshhswarzThing, here we discuss the readability and accessibility of the documentation, not the power of the library. Every other language will use a variation of sortBy instead of the scscshwcwscThing. I'm happy that D has in the default lib functions like

Re: pureity of closures

2015-03-27 Thread H. S. Teoh via Digitalmars-d
On Fri, Mar 27, 2015 at 05:28:54PM +, Dicebot via Digitalmars-d wrote: On Friday, 27 March 2015 at 14:29:05 UTC, Shammah Chancellor wrote: On 2015-03-23 09:45:39 +, Dicebot said: I think this was not intended and is simply a side effect of limited D call graph analysis. Relaxing that

[Issue 14349] New: String imports with subpaths don't work on Windows

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14349 Issue ID: 14349 Summary: String imports with subpaths don't work on Windows Product: D Version: D2 Hardware: All OS: Windows Status: NEW Severity: normal

[Issue 14350] New: Unit test failures are not displayed in Windows GUI programs

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14350 Issue ID: 14350 Summary: Unit test failures are not displayed in Windows GUI programs Product: D Version: D2 Hardware: All OS: Windows Status: NEW

[Issue 14350] Unit test failures are not displayed in Windows GUI programs

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14350 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added Keywords||pull ---

Re: Format double in decimal notation without trailing zeros after the decimal point

2015-03-27 Thread Steven Schveighoffer via Digitalmars-d-learn
On 3/27/15 11:02 AM, akaDemik wrote: The task seemed very simple. But I'm stuck. I want to: 1234567890123.0 to 1234567890123 1.23 to 1.23 1.234567 to 1.2346. With format string %.4f i get 1.2300 for 1.23. With %g i get 1.23456789e+12 for 1234567890123.0. I can not believe that it is not

[Issue 14349] String imports with subpaths don't work on Windows

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14349 bb.t...@gmx.com changed: What|Removed |Added CC||bb.t...@gmx.com --

Re: Unittests and windows application

2015-03-27 Thread Vladimir Panteleev via Digitalmars-d
On Thursday, 26 March 2015 at 12:11:33 UTC, Stefan wrote: On Thursday, 26 March 2015 at 10:50:06 UTC, Vladimir Panteleev wrote: On Thursday, 26 March 2015 at 10:23:58 UTC, Stefan wrote: .. That's a bug. You'll notice that if an exception is thrown in main() (or anything called from it),

Re: Advise for syntax highlighting

2015-03-27 Thread Jacob Carlborg via Digitalmars-d
On 2015-03-27 16:04, Dicebot wrote: not at all. The fact it is reserved is already denoted by __, otherwise it is just another vairable/symbol. Doesn't this symbol also have special semantics? -- /Jacob Carlborg

Re: Advise for syntax highlighting

2015-03-27 Thread Tobias Pankrath via Digitalmars-d
On Friday, 27 March 2015 at 15:23:56 UTC, Jacob Carlborg wrote: On 2015-03-27 16:04, Dicebot wrote: not at all. The fact it is reserved is already denoted by __, otherwise it is just another vairable/symbol. Doesn't this symbol also have special semantics? A more pragmatical view would

Re: pureity of closures

2015-03-27 Thread Stefan Koch via Digitalmars-d
On Friday, 27 March 2015 at 14:29:05 UTC, Shammah Chancellor wrote: Pure functions returning impure functions. *BOOM* My brain just exploded. -Shammah I am not sure when this would happen, but why disallow it ?

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Sönke Ludwig via Digitalmars-d-announce
Am 27.03.2015 um 17:06 schrieb Dicebot: On Friday, 27 March 2015 at 15:28:31 UTC, Ola Fosheim Grøstad wrote: No... E.g.: On the same thread: 1. fiber A receives request and queries DB (async) 2. fiber B computes for 1 second 3. fiber A sends response. Latency: 1 second even if all the other

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 16:27:48 UTC, Dicebot wrote: I have no interest in arguing with you, just calling out especially harmful lies that may mislead random readers. Nice one. I am sure your attitude is very helpful for D.

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Chris via Digitalmars-d-announce
On Friday, 27 March 2015 at 16:20:28 UTC, Ola Fosheim Grøstad wrote: On Friday, 27 March 2015 at 16:09:08 UTC, Chris wrote: It need not be new, it needs to be good. That's all. I don't understand this obsession people have with new things, as if they were automatically good only because they

[Issue 9826] import doesn't work with absolute paths

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=9826 Vladimir Panteleev thecybersha...@gmail.com changed: What|Removed |Added CC|

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Sönke Ludwig via Digitalmars-d-announce
Am 27.03.2015 um 17:31 schrieb Ola Fosheim =?UTF-8?B?R3LDuHN0YWQi?= ola.fosheim.grostad+dl...@gmail.com: On Friday, 27 March 2015 at 16:18:33 UTC, Sönke Ludwig wrote: So what happens if 10 requests come in at the same time? Does moving things around still help you? No. Load balancing is

Re: GtkD 3.1.0 released, GTK+ with D.

2015-03-27 Thread via Digitalmars-d-announce
On Thursday, 26 March 2015 at 22:41:01 UTC, Mike Wey wrote: Shortly after the last release, GtkD has been updated for GTK+ 3.16. Thank you, that's awesome :) Can't wait for my distro to get updated to start playing with this.

Re: Why dont dlang check NullPointer?

2015-03-27 Thread w0rp via Digitalmars-d
I'd be tempted to go way back to the very root of the problem starting with Tony Hoare again. Eliminate null as a possibility. That's a whole other subject, though.

[Issue 14232] redundant attribute 'const'

2015-03-27 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=14232 --- Comment #21 from github-bugzi...@puremagic.com --- Commit pushed to stable at https://github.com/D-Programming-Language/dmd https://github.com/D-Programming-Language/dmd/commit/9edd2223950b919a201cf104601f877283cca2bf Merge pull request #4458

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread w0rp via Digitalmars-d
On Thursday, 26 March 2015 at 19:45:19 UTC, Alex Parrill wrote: On Thursday, 26 March 2015 at 19:32:53 UTC, Idan Arye wrote: ...snip... So tl;dr; make the template constraints in ddoc less prominent? The new library reference preview under Resources seems to already have this (example:

Re: pureity of closures

2015-03-27 Thread Dicebot via Digitalmars-d
On Friday, 27 March 2015 at 14:29:05 UTC, Shammah Chancellor wrote: On 2015-03-23 09:45:39 +, Dicebot said: I think this was not intended and is simply a side effect of limited D call graph analysis. Relaxing that limitation makes sense to me because unused impure function can be used for

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread John Colvin via Digitalmars-d-announce
On Friday, 27 March 2015 at 16:40:14 UTC, Ola Fosheim Grøstad wrote: On Friday, 27 March 2015 at 16:27:48 UTC, Dicebot wrote: I have no interest in arguing with you, just calling out especially harmful lies that may mislead random readers. Nice one. I am sure your attitude is very helpful for

Re: Human unreadable documentation - the ugly seam between simple D and complex D

2015-03-27 Thread rumbu via Digitalmars-d
On Friday, 27 March 2015 at 14:39:48 UTC, Tobias Pankrath wrote: Looked also in the source code to find out that startsWith is locale sensitive, something ignored in phobos. Why would I need a locale for startsWith? Please file a bug, if that's actually needed for unicode strings. Because

Re: dfmt options

2015-03-27 Thread Shammah Chancellor via Digitalmars-d
On 2015-03-14 23:15:34 +, Brian Schott said: First, a disclaimer: I am an idiot for starting this thread. Moving on... I'm working on a list of configuration options for dfmt - a formatter for D source code. So far I have the following: * Insert spaces between if, while, for, foreach,

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread via Digitalmars-d-announce
On Friday, 27 March 2015 at 16:18:33 UTC, Sönke Ludwig wrote: So what happens if 10 requests come in at the same time? Does moving things around still help you? No. Load balancing is probabilistic in nature. Caching also makes it unlikely that you get 10 successive high computation requests.

[Issue 14343] Postfix increment doesn't work on structs with immutable member

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

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Dicebot via Digitalmars-d-announce
On Friday, 27 March 2015 at 15:28:31 UTC, Ola Fosheim Grøstad wrote: No... E.g.: On the same thread: 1. fiber A receives request and queries DB (async) 2. fiber B computes for 1 second 3. fiber A sends response. Latency: 1 second even if all the other threads are free. This is a problem of

Re: Gary Willoughby: Why Go's design is a disservice to intelligent programmers

2015-03-27 Thread Chris via Digitalmars-d-announce
On Friday, 27 March 2015 at 15:54:31 UTC, Ola Fosheim Grøstad wrote: On Friday, 27 March 2015 at 12:48:04 UTC, Dejan Lekic wrote: My personal opinion about the article - people may hate D equally for being too pragmatic. That Yeah, well, both the D/Go communities use the term pragmatic to

  1   2   >