Re: Redesign of dlang.org

2015-12-22 Thread Dmitry via Digitalmars-d
On Tuesday, 22 December 2015 at 13:38:48 UTC, Charles wrote: That's silliness, and not how percentages work at all. To suggest that 95% of people that go to dlang.org have widescreens because 95% of some other user base is nonsense. 1) Do you have statistics of dlang.org? 2) Do you think that

Re: Redesign of dlang.org

2015-12-22 Thread Adam D. Ruppe via Digitalmars-d
Let me preface this saying I'm mildly on the just-keep-ddoc side of things On Tuesday, 22 December 2015 at 14:42:35 UTC, Jack Stouffer wrote: it's not in ddoc? Not everyone knows HTML. If you don't know HTML, the ddoc macros the dlang.org site uses will be pretty mysterious too. What is

Re: Redesign of dlang.org

2015-12-22 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 22 December 2015 at 08:52:28 UTC, Dmitry wrote: Yep, you are one of that 5%. Me too. Many programmers do not have. But other many programmers have. I use multiple monitors, 16:9 and 4:3. All studios, where I worked, uses multiple monitors. Most part of professional developers,

Is a type not a symbol?

2015-12-22 Thread Shriramana Sharma via Digitalmars-d-learn
http://dlang.org/spec/template.html#TemplateTupleParameter says that an AliasSeq (wording needs to be updated) "is a sequence of any mix of types, expressions or symbols." Is a type not a symbol? I mean, alias can refer to both, no? -- Shriramana Sharma, Penguin #395953

: in template specialization vs constraint

2015-12-22 Thread Shriramana Sharma via Digitalmars-d-learn
import std.stdio; void func(T)(T v) { writeln(1); } void func(T: int)(T v) { writeln(2); } void func(T)(T v) if (is(T: int)) { writeln(3); } void main() { func(100); ubyte s = 200; func(s); } The above code prints 2 twice. A fwe questions: 1) At func(100) why isn't the compiler

Re: Redesign of dlang.org

2015-12-22 Thread Meta via Digitalmars-d
On Tuesday, 22 December 2015 at 14:42:35 UTC, Jack Stouffer wrote: On Tuesday, 22 December 2015 at 07:19:48 UTC, Jacob Carlborg wrote: I have no interest in using Ddoc. If that's a requirement we can close down the redesign idea completely. Jacob, I really like the design, but how are others

Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread FrankLike via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 14:37:21 UTC, Rikki Cattermole wrote: I'm confused. The commands listed e.g. $ sudo wget http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list $ sudo apt-get update && sudo apt-get -y --allow-unauthenticated

Re: Redesign of dlang.org

2015-12-22 Thread Jacob Carlborg via Digitalmars-d
On 2015-12-22 16:05, Adam D. Ruppe wrote: The new logo design still struck me as the same brand when I first saw it. It's the shape that you recognize (the D and the two moons). The rest is just extra. -- /Jacob Carlborg

Re: Redesign of dlang.org

2015-12-22 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 22 December 2015 at 14:57:22 UTC, Meta wrote: If you don't know HTML then you probably shouldn't be doing webdev. Most the website is content articles, not web dev. My ideal situation with the website would probably be a html skeleton with ddoc in the contents, providing semantic

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Joakim via Digitalmars-d
On Tuesday, 22 December 2015 at 12:55:19 UTC, Jakob Jenkov wrote: All decent ideas- I've been thinking recently about setting up a paid blog for articles by D devs- but without someone to explore and push them, they will go nowhere, ie somebody has to do the work of wrangling the writers and

Re: Redesign of dlang.org

2015-12-22 Thread anonymous via Digitalmars-d
On 22.12.2015 16:01, Dmitry wrote: On Tuesday, 22 December 2015 at 13:38:48 UTC, Charles wrote: [...] To be fair, D's documentation uses a left-side menu, but it removes the top level navigation (you have to press the logo). Yep, new design has _same_ solution. No, the mock-up doesn't

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Jakob Jenkov via Digitalmars-d
Simple, a blog that you pay to read. :) It's amazing to me that people still continue to pump out books, such an outdated form, simply because it has an existing payment model in place, rather than trying new paid models online. Simply churning out ebooks or the equivalent is all they do,

Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread FrankLike via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 15:08:20 UTC, FrankLike wrote: On Tuesday, 22 December 2015 at 14:37:21 UTC, Rikki Cattermole wrote: I'm confused. The commands listed e.g. $ sudo wget http://netcologne.dl.sourceforge.net/project/d-apt/files/d-apt.list -O /etc/apt/sources.list.d/d-apt.list $

Re: : in template specialization vs constraint

2015-12-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 15:29:16 UTC, Shriramana Sharma wrote: 1) At func(100) why isn't the compiler complaining that it is able to match two templates i.e. the ones printing 2 and 3? Because the specialized one just wins the context. It only complains when there's two equal ones.

Re: Redesign of dlang.org

2015-12-22 Thread Dmitry via Digitalmars-d
On Tuesday, 22 December 2015 at 15:17:57 UTC, Adam D. Ruppe wrote: and a good web design should work in all these cases. I agree. My message was that current design supports any size, but new design does not support widescreens.

Re: Is a type not a symbol?

2015-12-22 Thread Adam D. Ruppe via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 15:22:49 UTC, Shriramana Sharma wrote: Is a type not a symbol? I mean, alias can refer to both, no? Keywords aren't symbols so `int` is a type, but not a symbol and thus qualifies as `T` but not as `alias T`.

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Joakim via Digitalmars-d
On Tuesday, 22 December 2015 at 17:29:56 UTC, Bubbasaur wrote: On Tuesday, 22 December 2015 at 17:01:17 UTC, Joakim wrote: The problem is ads make no money for the vast majority of writers, so they have to write a book and sell it to make writing worth their time. This is why you have to pay

Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread Jordi Sayol via Digitalmars-d-learn
El 22/12/15 a les 18:28, Jordi Sayol via Digitalmars-d-learn ha escrit: > "d-lang" splits it in few deb packages: s/d-lang/d-apt/

Re: Most performant way of converting int to string

2015-12-22 Thread Daniel Kozák via Digitalmars-d-learn
V Tue, 22 Dec 2015 18:39:16 + Ivan Kazmenko via Digitalmars-d-learn napsáno: > On Tuesday, 22 December 2015 at 18:11:24 UTC, rumbu wrote: > > On Tuesday, 22 December 2015 at 17:15:27 UTC, Andrew Chapman > > wrote: > >> Sorry if this is a silly question

MonoTime longevity

2015-12-22 Thread Tanel Tagaväli via Digitalmars-d-learn
I discovered something potentially troublesome in druntime. Namely, applications that use MonoTime will break if run 18 hours after booting, according to a short program I wrote. Here's my code: ``` import core.time : MonoTime; auto mt = MonoTime.currTime; import std.stdio : writeln;

Re: MonoTime longevity

2015-12-22 Thread Tanel Tagaväli via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 20:07:58 UTC, Steven Schveighoffer wrote: MonoTime uses whatever precision is given to it by the OS. So if on your OS, ticksPerSecond is 1e9, then your OS clock wraps at 18 hours as well. Thanks, I didn't know that. I actually just realized that my use case

Re: IAP Tools for D

2015-12-22 Thread Guillaume Piolat via Digitalmars-d-announce
On Wednesday, 16 December 2015 at 09:47:35 UTC, Jakob Jenkov wrote: Since we are rather new to D, would anyone be interested in helping us a bit out making such a library? We can probably do the coding ourselves, but might need some tips about how to pack it nicely into a D library which can

Re: Most performant way of converting int to string

2015-12-22 Thread Daniel Kozák via Digitalmars-d-learn
V Tue, 22 Dec 2015 18:11:24 + rumbu via Digitalmars-d-learn napsáno: > On Tuesday, 22 December 2015 at 17:15:27 UTC, Andrew Chapman > wrote: > > Sorry if this is a silly question but is the to! method from > > the conv library the most efficient way of

Re: Three Cool Things about D

2015-12-22 Thread David Nadlinger via Digitalmars-d-announce
On Tuesday, 22 December 2015 at 19:07:55 UTC, Steven Schveighoffer wrote: Am I missing some new feature here? What does the 'this' mean? I have no idea, this must have been some sort of weird copy/paste or auto-correct mistake on my side. It's supposed to be "uint", as in Andrei's talk. —

Re: Most performant way of converting int to string

2015-12-22 Thread rumbu via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 17:15:27 UTC, Andrew Chapman wrote: Sorry if this is a silly question but is the to! method from the conv library the most efficient way of converting an integer value to a string? e.g. string s = to!string(100); I'm seeing a pretty dramatic slow down in my

Re: Redesign of dlang.org

2015-12-22 Thread Charles via Digitalmars-d
On Tuesday, 22 December 2015 at 15:01:52 UTC, Dmitry wrote: On Tuesday, 22 December 2015 at 13:38:48 UTC, Charles wrote: That's silliness, and not how percentages work at all. To suggest that 95% of people that go to dlang.org have widescreens because 95% of some other user base is nonsense.

Re: Most performant way of converting int to string

2015-12-22 Thread Daniel Kozák via Digitalmars-d-learn
V Tue, 22 Dec 2015 17:15:27 + Andrew Chapman via Digitalmars-d-learn napsáno: > Sorry if this is a silly question but is the to! method from the > conv library the most efficient way of converting an integer > value to a string? > > e.g. > string s =

Re: Most performant way of converting int to string

2015-12-22 Thread Daniel Kozák via Digitalmars-d-learn
V Tue, 22 Dec 2015 20:52:07 + rumbu via Digitalmars-d-learn napsáno: > On Tuesday, 22 December 2015 at 19:45:46 UTC, Daniel Kozák wrote: > > V Tue, 22 Dec 2015 18:11:24 + > > rumbu via Digitalmars-d-learn > > > >

Re: Most performant way of converting int to string

2015-12-22 Thread Andrew Chapman via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 18:11:24 UTC, rumbu wrote: On Tuesday, 22 December 2015 at 17:15:27 UTC, Andrew Chapman wrote: Sorry if this is a silly question but is the to! method from the conv library the most efficient way of converting an integer value to a string? e.g. string s =

Re: MonoTime longevity

2015-12-22 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/22/15 2:48 PM, Tanel Tagaväli wrote: I discovered something potentially troublesome in druntime. Namely, applications that use MonoTime will break if run 18 hours after booting, according to a short program I wrote. Here's my code: ``` import core.time : MonoTime; auto mt =

Re: Most performant way of converting int to string

2015-12-22 Thread rumbu via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 20:52:07 UTC, rumbu wrote: On Tuesday, 22 December 2015 at 19:45:46 UTC, Daniel Kozák wrote: V Tue, 22 Dec 2015 18:11:24 + rumbu via Digitalmars-d-learn napsáno: On Tuesday, 22 December 2015 at 17:15:27 UTC, Andrew

Re: Most performant way of converting int to string

2015-12-22 Thread H. S. Teoh via Digitalmars-d-learn
On Tue, Dec 22, 2015 at 08:54:35PM +0100, Daniel Kozák via Digitalmars-d-learn wrote: > V Tue, 22 Dec 2015 09:43:00 -0800 > "H. S. Teoh via Digitalmars-d-learn" > napsáno: > > > On Tue, Dec 22, 2015 at 05:23:11PM +, Andrew Chapman via > >

Re: Most performant way of converting int to string

2015-12-22 Thread Daniel Kozák via Digitalmars-d-learn
V Tue, 22 Dec 2015 21:10:54 + rumbu via Digitalmars-d-learn napsáno: > On Tuesday, 22 December 2015 at 20:52:07 UTC, rumbu wrote: > > On Tuesday, 22 December 2015 at 19:45:46 UTC, Daniel Kozák > > wrote: > >> V Tue, 22 Dec 2015 18:11:24 + > >> rumbu

Re: How is D doing?

2015-12-22 Thread Cavanni via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 03:43:24 UTC, ShinraTensei wrote: A friend of mine told me that my post might have sounded a bit trollish i assure you that was not the case. In fact it sounds very nonsense to me. You know you just came here asking on a "D FORUM" if the "D Programming

Re: How is D doing?

2015-12-22 Thread ShinraTensei via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 21:58:24 UTC, Cavanni wrote: On Tuesday, 22 December 2015 at 03:43:24 UTC, ShinraTensei wrote: A friend of mine told me that my post might have sounded a bit trollish i assure you that was not the case. In fact it sounds very nonsense to me. You know you

[Issue 15464] Template parameter-dependent attributes

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15464 --- Comment #4 from Kenji Hara --- (In reply to Andrei Alexandrescu from comment #0) > Per Timon Gehr's reply, implementation could achieved the feature by means of > a lowering. A function template declaration: void foo(T)()

Lots of D code

2015-12-22 Thread steven kladitis via Digitalmars-d-learn
I have 843 programs written in D. 805 actually create an 32 bit exe in windows 10. I am running the latest D. Some just start to link and the linker disappears. Some just have issues I am not able figure out. I can attach the code and scripts I use to compile and run these. If anyone is

[Issue 15465] Make the "Ddoc" header optional in .dd files

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15465 --- Comment #3 from Andrei Alexandrescu --- (In reply to Adam D. Ruppe from comment #2) > Just quickly looking at the source: the compiler seems to treat .dd files > identically as .d files. In any D file, if it starts with

[Issue 15470] Unnecessary markup in ddoc's html generation

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15470 Adam D. Ruppe changed: What|Removed |Added CC|

Re: Redesign of dlang.org

2015-12-22 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 22 December 2015 at 15:43:29 UTC, Dmitry wrote: On Tuesday, 22 December 2015 at 15:17:57 UTC, Adam D. Ruppe wrote: and a good web design should work in all these cases. I agree. My message was that current design supports any size, but new design does not support widescreens.

Re: Three Cool Things about D

2015-12-22 Thread Ali Çehreli via Digitalmars-d-announce
On 12/21/2015 09:28 AM, Andrei Alexandrescu wrote: https://www.reddit.com/r/programming/comments/3xq2ul/codedive_2015_talk_three_cool_things_about_d/ https://www.facebook.com/dlang.org/posts/1192267587453587 https://twitter.com/D_Programming/status/678989872367988741 Andrei Two

Re: Three Cool Things about D

2015-12-22 Thread Walter Bright via Digitalmars-d-announce
On 12/22/2015 10:29 AM, David Nadlinger wrote: Not sure about how it arrives at the crazily unrolled loop, but no recursion in sight anymore. It's doing tail recursion optimization, which turns the recursion into a loop. Then the loop is unrolled 8 times.

[Issue 15470] New: Unnecessary markup in ddoc's html generation

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15470 Issue ID: 15470 Summary: Unnecessary markup in ddoc's html generation Product: D Version: D2 Hardware: All OS: All Status: NEW Severity: enhancement

[Issue 15465] Make the "Ddoc" header optional in .dd files

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15465 Adam D. Ruppe changed: What|Removed |Added CC|

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Rikki Cattermole via Digitalmars-d
On 23/12/15 5:10 AM, Joakim wrote: On Tuesday, 22 December 2015 at 15:33:50 UTC, Jakob Jenkov wrote: Simple, a blog that you pay to read. :) It's amazing to me that people still continue to pump out books, such an outdated form, simply because it has an existing payment model in place, rather

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Joakim via Digitalmars-d
On Wednesday, 23 December 2015 at 01:33:22 UTC, Rikki Cattermole wrote: On 23/12/15 5:10 AM, Joakim wrote: On Tuesday, 22 December 2015 at 15:33:50 UTC, Jakob Jenkov wrote: Have you considered using LeanPub for this? Never heard much about them. Looking at their site now, I like that they

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Rikki Cattermole via Digitalmars-d
On 23/12/15 3:26 PM, Joakim wrote: On Wednesday, 23 December 2015 at 01:33:22 UTC, Rikki Cattermole wrote: On 23/12/15 5:10 AM, Joakim wrote: On Tuesday, 22 December 2015 at 15:33:50 UTC, Jakob Jenkov wrote: Have you considered using LeanPub for this? Never heard much about them. Looking

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Joakim via Digitalmars-d
On Wednesday, 23 December 2015 at 02:36:38 UTC, Rikki Cattermole wrote: On 23/12/15 3:26 PM, Joakim wrote: Are you offering to write for a D blog or to get it set up on leanpub? I'd never use an external platform like leanpub where I don't control the source, as one of the main points would be

Re: MonoTime longevity

2015-12-22 Thread Jonathan M Davis via Digitalmars-d-learn
On Tuesday, December 22, 2015 15:07:58 Steven Schveighoffer via Digitalmars-d-learn wrote: > MonoTime uses whatever precision is given to it by the OS. So if on your > OS, ticksPerSecond is 1e9, then your OS clock wraps at 18 hours as well. 1e9 ticks per second should still take over 293 years

Re: : in template specialization vs constraint

2015-12-22 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/22/15 10:40 AM, Adam D. Ruppe wrote: In specialization, it will implicitly convert, it will just select the best match available. Make #1: void func(T : ubyte)(T v) { writeln(1); } It will then use that for for the second line because it is a *better* match than :int, but :int

Re: Most performant way of converting int to string

2015-12-22 Thread Steven Schveighoffer via Digitalmars-d-learn
On 12/22/15 12:15 PM, Andrew Chapman wrote: Sorry if this is a silly question but is the to! method from the conv library the most efficient way of converting an integer value to a string? e.g. string s = to!string(100); I'm seeing a pretty dramatic slow down in my code when I use a conversion

Re: curl : access violation

2015-12-22 Thread Ali Çehreli via Digitalmars-d-learn
On 12/22/2015 03:10 AM, Vic wrote: I am testing simple code in Geany (Windows 7, DMD compiler): import std.stdio,std.net.curl; void main() { // Return a char[] containing the content specified by an URL auto content = get("dlang.org"); } It compiled ok, but I get error after running exe file:

Re: How is D doing?

2015-12-22 Thread ZombineDev via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 17:49:34 UTC, Jakob Jenkov wrote: On Tuesday, 22 December 2015 at 03:30:32 UTC, ShinraTensei wrote: I recently noticed massive increase in new languages for a person to jump into(Nim, Rust, Go...etc) but my question is weather the D is actually used anywhere or

Re: Most performant way of converting int to string

2015-12-22 Thread Daniel Kozak via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 18:27:12 UTC, cym13 wrote: ... I don't think there is anything in the standard library that would really help here as (if I read it correctly) it is mainly because of the conversion from ranges to arrays that this code is slow. Yes, it has been faster in past,

Re: Most performant way of converting int to string

2015-12-22 Thread Ali Çehreli via Digitalmars-d-learn
On 12/22/2015 10:15 AM, Andrew Chapman wrote: > On Tuesday, 22 December 2015 at 18:11:24 UTC, rumbu wrote: >> Converting numbers to string involves the most expensive known two >> operations : division and modulus by 10. > > Cool thanks, so essentially it's unavoidable There is hope. :) > I

Re: Most performant way of converting int to string

2015-12-22 Thread Ivan Kazmenko via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 18:11:24 UTC, rumbu wrote: On Tuesday, 22 December 2015 at 17:15:27 UTC, Andrew Chapman wrote: Sorry if this is a silly question but is the to! method from the conv library the most efficient way of converting an integer value to a string? e.g. string s =

Re: Three Cool Things about D

2015-12-22 Thread Steven Schveighoffer via Digitalmars-d-announce
On 12/22/15 1:29 PM, David Nadlinger wrote: --- ulong factorial(this n) { return n <= 1 ? 1 : n * factorial(n - 1); } --- Am I missing some new feature here? What does the 'this' mean? -Steve

Re: Most performant way of converting int to string

2015-12-22 Thread Daniel Kozák via Digitalmars-d-learn
V Tue, 22 Dec 2015 09:43:00 -0800 "H. S. Teoh via Digitalmars-d-learn" napsáno: > On Tue, Dec 22, 2015 at 05:23:11PM +, Andrew Chapman via > Digitalmars-d-learn wrote: [...] > > for({int i; i = 0;} i < num; i++) { > > //string s =

Re: Most performant way of converting int to string

2015-12-22 Thread Andrew Chapman via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 17:43:00 UTC, H. S. Teoh wrote: I wonder if the slowdown is caused by GC collection cycles (because calling to!string will allocate, and here you're making a very large number of small allocations, which is known to cause GC performance issues). Try inserting

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Jakob Jenkov via Digitalmars-d
It is all beyond idiotic: it is amazing how long antiquated ideas stick around, only because people cannot imagine anything else. I agree 100%. I published 4 books for Amazon Kindle, then stopped for exactly this reason. You can do so much more advanced stuff on the web than in an ebook. I

Re: Most performant way of converting int to string

2015-12-22 Thread Daniel Kozák via Digitalmars-d-learn
V Tue, 22 Dec 2015 12:55:10 -0800 "H. S. Teoh via Digitalmars-d-learn" napsáno: > On Tue, Dec 22, 2015 at 08:54:35PM +0100, Daniel Kozák via > Digitalmars-d-learn wrote: > > V Tue, 22 Dec 2015 09:43:00 -0800 > > "H. S. Teoh via Digitalmars-d-learn" > >

[Issue 15470] Unnecessary markup in ddoc's html generation

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15470 --- Comment #4 from Charles Smith --- (In reply to Adam D. Ruppe from comment #3) > Ah, yes indeed, though the whitespace is prolly generated accidentally by > some macro which can't generically strip :( That's what I was

Re: segfault in invariant { assert(super); }

2015-12-22 Thread SimonN via Digitalmars-d-learn
On Monday, 21 December 2015 at 20:29:14 UTC, Steven Schveighoffer wrote: 1) Is this recursion expected? Yes. assert calls the virtual invariant function, which in the case of super is equivalent to this. So you are essentially calling assert(this). 2) The example is a dustmite'd version of

[Issue 15470] Unnecessary markup in ddoc's html generation

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15470 --- Comment #2 from Charles Smith --- (In reply to Adam D. Ruppe from comment #1) > What do you mean by "links need to be striped for anchor tags." ? Poor phrasing, my mistake. I'm referring to the white space in the href.

Re: Three Cool Things about D

2015-12-22 Thread David Nadlinger via Digitalmars-d-announce
On Wednesday, 23 December 2015 at 01:07:57 UTC, Walter Bright wrote: On 12/22/2015 10:29 AM, David Nadlinger wrote: Not sure about how it arrives at the crazily unrolled loop, but no recursion in sight anymore. It's doing tail recursion optimization, which turns the recursion into a loop.

[Issue 15465] Make the "Ddoc" header optional in .dd files

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15465 --- Comment #4 from Adam D. Ruppe --- I have good news and bad news. Good news: this turned out to be trivial to implement! Bad news: I'm up way past bed time doing all this dmd stuff :( BOOM!

Setting native OS thread name (eg, via prctl)

2015-12-22 Thread Arun Chandrasekaran via Digitalmars-d-learn
I have this trivial code where the main thread clones a child thread. import std.stdio; import core.thread; import std.concurrency; class DerivedThread : Thread { this() { super(); } void quit() { _quit = true; } private: void setOSThreadName()

Re: Setting native OS thread name (eg, via prctl)

2015-12-22 Thread Arun Chandrasekaran via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 16:08:01 UTC, Dejan Lekic wrote: Arun, isn't that what the 'name' property is there for? Hi Dejan, Thanks for a quick reply. Setting the name property is not reflecting in the OS level. May be it is just used only at the object level? After setting the

curl : access violation

2015-12-22 Thread Vic via Digitalmars-d-learn
I am testing simple code in Geany (Windows 7, DMD compiler): import std.stdio,std.net.curl; void main() { // Return a char[] containing the content specified by an URL auto content = get("dlang.org"); } It compiled ok, but I get error after running exe file: object.Error@(0): Access Violation

Re: Three Cool Things about D

2015-12-22 Thread Nordlöw via Digitalmars-d-announce
On Monday, 21 December 2015 at 17:28:51 UTC, Andrei Alexandrescu wrote: https://www.reddit.com/r/programming/comments/3xq2ul/codedive_2015_talk_three_cool_things_about_d/ Great motivation as always! Thx!

Re: Template parameter-dependent attributes

2015-12-22 Thread Daniel Kozak via Digitalmars-d
On Monday, 21 December 2015 at 13:58:53 UTC, Andrei Alexandrescu wrote: On 12/16/2015 12:14 PM, Andrei Alexandrescu wrote: [snip] I submitted https://issues.dlang.org/show_bug.cgi?id=15464, which is preapproved. There is a bit of a sense of urgency to it - it blocks the bigo library proposal

Re: Socket - handling large numbers of incoming connections

2015-12-22 Thread Johannes Pfau via Digitalmars-d-learn
Am Mon, 21 Dec 2015 23:29:14 + schrieb Adam D. Ruppe : > On Monday, 21 December 2015 at 23:17:45 UTC, Daniel Kozák wrote: > > If you want to reinvent the wheel you can use > > [...] it isn't like the bundled functions with the OS are > hard to use [...] >

[Issue 15464] Template parameter-dependent attributes

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15464 --- Comment #3 from Daniel Kozak --- PR: https://github.com/D-Programming-Language/dmd/pull/5314 --

[Issue 15464] Template parameter-dependent attributes

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15464 Daniel Kozak changed: What|Removed |Added URL|https://github.com/D-Progra |

Re: Redesign of dlang.org

2015-12-22 Thread Ola Fosheim Grøstad via Digitalmars-d
On Tuesday, 22 December 2015 at 06:38:24 UTC, Dmitry wrote: Left-side menu. I don't like when site uses only half of screen (is anybody still uses 1280*1024 and 1024*768 displays? Statistic of November says that 5% and 2% of people). New design prepared for 4:3, not for wide-screen displays

Re: Redesign of dlang.org

2015-12-22 Thread Dmitry via Digitalmars-d
On Tuesday, 22 December 2015 at 08:04:29 UTC, Ola Fosheim Grøstad wrote: I use exclusively 4:3 and 3:4, 1600*1280, 1280*1024, 1024*1280, 1024*768 and 768*1024. Yep, you are one of that 5%. Widescreen is for movies... No. Besides, many programmers with wide screen does not have multiple

Re: Packt ebooks are currently $5.00

2015-12-22 Thread Robert M. Münch via Digitalmars-d-announce
On 2015-12-21 23:50:17 +, bachmeier said: All Packt ebooks are currently only $5.00, including pre-order of D Web Development, Learning D, and D Cookbook. https://www.packtpub.com/web-development/d-web-development https://www.packtpub.com/application-development/learning-d

Re: Slicing AliasSeq-s

2015-12-22 Thread Shriramana Sharma via Digitalmars-d
Adam D. Ruppe wrote: > Look down to > where it handles tuples (AliasSeq is the user-visible name for > what the compiler internally calls a tuple). Ouch. So even if the terminology gets abolished from Phobos, it's still lurking in the compiler? > Slicing a tuple creates a new tuple that

Re: Socket - handling large numbers of incoming connections

2015-12-22 Thread Jakob Jenkov via Digitalmars-d-learn
The same as in C [1]. Just change #include to import core.sys.posix.poll; [1] http://linux.die.net/man/2/poll I have a background in Java, so I am a bit handicapped :-)

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Jakob Jenkov via Digitalmars-d
All decent ideas- I've been thinking recently about setting up a paid blog for articles by D devs- but without someone to explore and push them, they will go nowhere, ie somebody has to do the work of wrangling the writers and docs. What do you mean by a "paid blog" ?

Re: How is D doing?

2015-12-22 Thread bachmeier via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 03:30:32 UTC, ShinraTensei wrote: I recently noticed massive increase in new languages for a person to jump into(Nim, Rust, Go...etc) but my question is weather the D is actually used anywhere or are there chances of it dying anytime soon. So far I've tried a

Re: Socket - handling large numbers of incoming connections

2015-12-22 Thread Jakob Jenkov via Digitalmars-d-learn
Thanks, everyone, I have looked a bit at different frameworks, and it seems that libasync might have a decently narrow scope to fit what I need. I have a background in Java, so a lot of this OS-specific stuff is new to me (EPoll etc.). In Java that stuff is used under the hood for you,

[Issue 15467] Compiler incorrectly flags a function as throwing an exception though it is caught

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15467 --- Comment #1 from Shriramana Sharma --- I forgot to mention that if the catch block catches an Exception instead of a MeaCulpa, then the compiler does not produce an error w.r.t. `nothrow`. Also, I'm using latest DMD 2.0.69.2.

Re: Set color to a single point in Cairo

2015-12-22 Thread Luis via Digitalmars-d-learn
On Sunday, 20 December 2015 at 01:17:50 UTC, Basile B. wrote: On Saturday, 19 December 2015 at 14:16:23 UTC, TheDGuy wrote: is it possible to set the color of a single pixel with Cairo? Not like you would do with a classic canvas (2d grid), because colors are applied with `cairo_fill()` and

[Issue 15467] New: Compiler incorrectly flags a function as throwing an exception though it is caught

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15467 Issue ID: 15467 Summary: Compiler incorrectly flags a function as throwing an exception though it is caught Product: D Version: D2 Hardware: x86_64 OS: Linux

Re: Redesign of dlang.org

2015-12-22 Thread Andrei Alexandrescu via Digitalmars-d
On 12/22/2015 02:19 AM, Jacob Carlborg wrote: On 2015-12-21 18:37, Andrei Alexandrescu wrote: That's a large leap. I suggest using Ddoc instead of Sass compact CSS files, see the existing instance at https://github.com/D-Programming-Language/dlang.org/blob/master/css/cssmenu.css.dd.

Re: Redesign of dlang.org

2015-12-22 Thread anonymous via Digitalmars-d
On 22.12.2015 16:43, Dmitry wrote: I agree. My message was that current design supports any size, but new design does not support widescreens. There's a point where claiming more horizontal space doesn't improve the usability of the site any more. Yes, more stuff fits on one screen, but

Re: Setting native OS thread name (eg, via prctl)

2015-12-22 Thread Dejan Lekic via Digitalmars-d-learn
Arun, isn't that what the 'name' property is there for?

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Joakim via Digitalmars-d
On Tuesday, 22 December 2015 at 15:33:50 UTC, Jakob Jenkov wrote: Simple, a blog that you pay to read. :) It's amazing to me that people still continue to pump out books, such an outdated form, simply because it has an existing payment model in place, rather than trying new paid models online.

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Adam D. Ruppe via Digitalmars-d
On Tuesday, 22 December 2015 at 16:10:23 UTC, Joakim wrote: It is all beyond idiotic: it is amazing how long antiquated ideas stick around, only because people cannot imagine anything else. What you're describing sounds basically like a magazine... paid freelance authors contributing

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Joakim via Digitalmars-d
On Tuesday, 22 December 2015 at 16:16:53 UTC, Adam D. Ruppe wrote: On Tuesday, 22 December 2015 at 16:10:23 UTC, Joakim wrote: It is all beyond idiotic: it is amazing how long antiquated ideas stick around, only because people cannot imagine anything else. What you're describing sounds

Re: D Consortium as Book / App Publisher... ?

2015-12-22 Thread Bubbasaur via Digitalmars-d
On Tuesday, 22 December 2015 at 15:24:23 UTC, Joakim wrote: On Tuesday, 22 December 2015 at 12:55:19 UTC, Jakob Jenkov wrote: All decent ideas- I've been thinking recently about setting up a paid blog for articles by D devs- but without someone to explore and push them, they will go nowhere,

Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread Rikki Cattermole via Digitalmars-d-learn
On 23/12/15 3:32 AM, FrankLike wrote: On Tuesday, 22 December 2015 at 14:11:29 UTC, Rikki Cattermole wrote: On 23/12/15 3:09 AM, FrankLike wrote: Now,we can't setup dmd or ldc like this: sudo apt-get install dmd sudo apt-get install ldc2 If I set 'The Installation Source' is : deb

Re: Redesign of dlang.org

2015-12-22 Thread Jack Stouffer via Digitalmars-d
On Tuesday, 22 December 2015 at 07:19:48 UTC, Jacob Carlborg wrote: I have no interest in using Ddoc. If that's a requirement we can close down the redesign idea completely. Jacob, I really like the design, but how are others supposed to contribute, e.g. those who come from the dmd side of

Re: Redesign of dlang.org

2015-12-22 Thread Charles via Digitalmars-d
On Tuesday, 22 December 2015 at 08:52:28 UTC, Dmitry wrote: On Tuesday, 22 December 2015 at 08:04:29 UTC, Ola Fosheim Grøstad wrote: I use exclusively 4:3 and 3:4, 1600*1280, 1280*1024, 1024*1280, 1024*768 and 768*1024. Yep, you are one of that 5%. That's silliness, and not how percentages

Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread FrankLike via Digitalmars-d-learn
Now,we can't setup dmd or ldc like this: sudo apt-get install dmd sudo apt-get install ldc2 If I set 'The Installation Source' is : deb http://downloads.dlang.org/releases/2015/ main But it's error,why? Thank you.

Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread Rikki Cattermole via Digitalmars-d-learn
On 23/12/15 3:09 AM, FrankLike wrote: Now,we can't setup dmd or ldc like this: sudo apt-get install dmd sudo apt-get install ldc2 If I set 'The Installation Source' is : deb http://downloads.dlang.org/releases/2015/ main But it's error,why? Thank you. dlang.org does not host a apt

[Issue 15468] New: [Interfacing to Objective-C] is compromise

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15468 Issue ID: 15468 Summary: [Interfacing to Objective-C] is compromise Product: D Version: D2 Hardware: All URL: http://dlang.org/ OS: All Status: NEW

Re: Let dmd or ldc be easy to setup on Ubuntu

2015-12-22 Thread FrankLike via Digitalmars-d-learn
On Tuesday, 22 December 2015 at 14:11:29 UTC, Rikki Cattermole wrote: On 23/12/15 3:09 AM, FrankLike wrote: Now,we can't setup dmd or ldc like this: sudo apt-get install dmd sudo apt-get install ldc2 If I set 'The Installation Source' is : deb http://downloads.dlang.org/releases/2015/ main

[Issue 15468] [Interfacing to Objective-C] is compromise

2015-12-22 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=15468 Richard Cattermole changed: What|Removed |Added Status|NEW |RESOLVED

  1   2   >