Re: Mockup of my doc dream ideas

2015-12-25 Thread Israel via Digitalmars-d
On Friday, 25 December 2015 at 05:06:47 UTC, Adam D. Ruppe wrote: I wrote this manually as a mock of what I really want the docs to look like. I only marked up the top box and a wee bit of the bottom. The body text of the doc is written by us and is OK, but the function signature is a mess.

Re: Graphics/font/platform backends with common interfaces?

2015-12-25 Thread Vadim Lopatin via Digitalmars-d-learn
On Wednesday, 23 December 2015 at 19:22:01 UTC, Taylor Hillegeist wrote: So I have seen alot of projects that need the same sort of stuff. graphics libraries gui libraries game libraries ploting libaries they would all benefit from a backend solution with a common interface for color fonts

Re: dmd without gcc depency

2015-12-25 Thread tcak via Digitalmars-d
On Friday, 25 December 2015 at 12:57:50 UTC, Jardik wrote: Now that dmd is written in D language, is it possible to use dmd without the need to have gcc and its libraries installed? Or would it be possible, if I didn't need to call any extern C++ functions? If not, is it planned for dmd to be

Re: Mockup of my doc dream ideas

2015-12-25 Thread Bubbasaur via Digitalmars-d
On Friday, 25 December 2015 at 14:13:56 UTC, Adam D. Ruppe wrote: On Friday, 25 December 2015 at 09:18:45 UTC, Israel wrote: Why not take it to the next level while youre at it? Add user comments that can be rated by users and sorted by date. My dream does not include user comments. I don't

Re: Understand typeof trick

2015-12-25 Thread anonymous via Digitalmars-d-learn
On 25.12.2015 13:10, Joakim Brännström wrote: In http://forum.dlang.org/post/ojawnpggfaxevqpmr...@forum.dlang.org Adam uses findSkip as an example and especially points out the "D idiom with is/typeof". I'm not quite sure I understand it correctly. Please correct me if I have misunderstood

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread eyveer via Digitalmars-d-announce
On Friday, 25 December 2015 at 13:57:52 UTC, Pradeep Gowda wrote: A link to the github page would help me in reporting these bugs? https://github.com/kingsleyh/DLanguage I was waiting year for this. Best christmas gift, Thank you! downloading right now :)

Re: Understand typeof trick

2015-12-25 Thread Adam D. Ruppe via Digitalmars-d-learn
Well, what I'd really want to document here's isn't necessarily the nitty-gritty of the idiom and why it is used (that's a thing for api authors, but these docs are targeted at api consumers), but more just what it actually means at a glance. That line of code simply means "pred must be a

Re: Mockup of my doc dream ideas

2015-12-25 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 25 December 2015 at 09:18:45 UTC, Israel wrote: Why not take it to the next level while youre at it? Add user comments that can be rated by users and sorted by date. My dream does not include user comments. I don't think well-written documentation benefits from them, and adding

Ranges: How to take N last of elements of range

2015-12-25 Thread via Digitalmars-d-learn
How to take N last of elements of range? I have tried the following example in my code, but it says that it deprecated. What is the other possible way? static struct LogerInfo { string func; int line; void write(T...)(T

DMD -L Flag, maybe a bug?

2015-12-25 Thread Bubbasaur via Digitalmars-d-learn
If you follow the link below: https://dlang.org/dmd-windows.html#switch-L It's written: " -Llinkerflag pass linkerflag to the linker link.exe , for example, -L/ma/li " But at least on Windows, you need to put a space between -L and the PATH. Which It's weird, since with "-I" flag you

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Kingsley via Digitalmars-d-announce
On Friday, 25 December 2015 at 13:57:52 UTC, Pradeep Gowda wrote: On Friday, 25 December 2015 at 10:41:26 UTC, Kingsley wrote: [...] Thanks! I did install it on IntelliJ IDEA Ultimate 15 and take it for a spin. However, it did not create a "dub" project even when I chose "D application with

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Minas Mina via Digitalmars-d-announce
On Friday, 25 December 2015 at 10:41:26 UTC, Kingsley wrote: Hi I have released an initial attempt at an IntelliJ plugin for D to the jetbrains plugin repository. It's DLanguage version 1.2 It has basic syntax highlighting, autocompletion with DCD, compile checking and linting with

Re: [Feature Request] Single name access when module name and content are same

2015-12-25 Thread Satoshi via Digitalmars-d
On Friday, 25 December 2015 at 17:08:04 UTC, default0 wrote: On Friday, 25 December 2015 at 15:46:23 UTC, tcak wrote: On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote: I only want to discuss an idea here. I am hoping see some nice pros and cons from people. [...] My mistake at the

Re: Graphics/font/platform backends with common interfaces?

2015-12-25 Thread Guillaume Piolat via Digitalmars-d-learn
On Wednesday, 23 December 2015 at 19:22:01 UTC, Taylor Hillegeist wrote: Shouldn't there be like a common (interface/abstract class) that these back-ends can fulfill? maybe I am unaware of how these things are done. And perhaps there are performance reasons that many of these are baked in.

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Pradeep Gowda via Digitalmars-d-announce
On Friday, 25 December 2015 at 10:41:26 UTC, Kingsley wrote: Hi I have released an initial attempt at an IntelliJ plugin for D to the jetbrains plugin repository. It's DLanguage version 1.2 It has basic syntax highlighting, autocompletion with DCD, compile checking and linting with

Re: Graphics/font/platform backends with common interfaces?

2015-12-25 Thread thedeemon via Digitalmars-d-learn
On Wednesday, 23 December 2015 at 23:34:58 UTC, Rikki Cattermole wrote: So far I've been implementing windowing and image libraries for Phobos. Right now windowing works on Windows minice eventing. Once eventing is done it is ready for the first stage of feedback. I don't understand

Re: [Feature Request] Single name access when module name and content are same

2015-12-25 Thread tcak via Digitalmars-d
On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote: I only want to discuss an idea here. I am hoping see some nice pros and cons from people. [...] My mistake at the end. It should be: my.big.lib.createFile("FSociety.dat");

[Feature Request] Single name access when module name and content are same

2015-12-25 Thread tcak via Digitalmars-d
I only want to discuss an idea here. I am hoping see some nice pros and cons from people. --- We have this feature in D: template something(T){ void something(T value){ writeln( value ); } } something("Hello"); Because the name of template and function match each other, "something" is

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Kingsley via Digitalmars-d-announce
On Friday, 25 December 2015 at 16:55:32 UTC, Bogdan wrote: On Friday, 25 December 2015 at 15:28:23 UTC, Pradeep Gowda wrote: On Friday, 25 December 2015 at 15:04:42 UTC, eyveer wrote: On Friday, 25 December 2015 at 13:57:52 UTC, Pradeep Gowda wrote: A link to the github page would help me in

Re: dmd without gcc depency

2015-12-25 Thread Joakim via Digitalmars-d
On Friday, 25 December 2015 at 12:57:50 UTC, Jardik wrote: Now that dmd is written in D language, is it possible to use dmd without the need to have gcc and its libraries installed? Or would it be possible, if I didn't need to call any extern C++ functions? If not, is it planned for dmd to be

Re: D Cannot Be Used for Real Time / Low Latency Systems? - Of course it can!

2015-12-25 Thread Satoshi via Digitalmars-d
On Friday, 18 December 2015 at 10:41:46 UTC, Claude wrote: Bottom line is, if you are competent enough, you can be successfull with D, just like you would be if you were using C/C++. D's superior compile-time meta programming allows you to express zero cost abstractions give you the edge that

Re: Must I compile on the target architecture?

2015-12-25 Thread Adam D. Ruppe via Digitalmars-d-learn
On Friday, 25 December 2015 at 12:43:05 UTC, Jakob Jenkov wrote: If I write a program in D and I use Windows for development but want it to run on Linux, do I have to copy the source code to the target Linux machine and compile it there, to make an executable for that machine? What is the

Re: Redesign of dlang.org

2015-12-25 Thread Jacob Carlborg via Digitalmars-d
On 24/12/15 20:33, anonymous wrote: On 21.12.2015 14:58, anonymous wrote: http://d-ag0aep6g.rhcloud.com/ On GitHub if people want to play around with it: https://github.com/aG0aep6G/dlang.org/tree/Ivan-Smirnov's-redesign That's a full clone of dlang.org in the new style. I just pasted it over

dmd without gcc depency

2015-12-25 Thread Jardik via Digitalmars-d
Now that dmd is written in D language, is it possible to use dmd without the need to have gcc and its libraries installed? Or would it be possible, if I didn't need to call any extern C++ functions? If not, is it planned for dmd to be self hosting in the future?

Re: Must I compile on the target architecture?

2015-12-25 Thread Lucien via Digitalmars-d-learn
On Friday, 25 December 2015 at 12:43:05 UTC, Jakob Jenkov wrote: Hi, just a quick question: If I write a program in D and I use Windows for development but want it to run on Linux, do I have to copy the source code to the target Linux machine and compile it there, to make an executable for

Re: Redesign of dlang.org

2015-12-25 Thread anonymous via Digitalmars-d
On 25.12.2015 12:51, Jacob Carlborg wrote: Most of the pages do not seem to be updated. I don't know what you mean. Could this be a cache thing? Can you give a specific example, maybe with a screenshot? The drop down in the search fields looks very bad in Safari on OS X. I think this is a

Re: Mockup of my doc dream ideas

2015-12-25 Thread default0 via Digitalmars-d
On Friday, 25 December 2015 at 14:50:06 UTC, Adam D. Ruppe wrote: This linked page is my dream for a narrow part of the docs: the function signature. The whitespace formatting can be worked into existing ddoc (I'm angry with existing ddoc and don't want to work with it for a while, but it

Re: [Feature Request] Single name access when module name and content are same

2015-12-25 Thread tcak via Digitalmars-d
On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote: I only want to discuss an idea here. I am hoping see some nice pros and cons from people. --- We have this feature in D: template something(T){ void something(T value){ writeln( value ); } } something("Hello"); Because the name

DLanguage IntelliJ plugin released

2015-12-25 Thread Kingsley via Digitalmars-d-announce
Hi I have released an initial attempt at an IntelliJ plugin for D to the jetbrains plugin repository. It's DLanguage version 1.2 It has basic syntax highlighting, autocompletion with DCD, compile checking and linting with Dscanner, code formatting with Dfmt and navigation jump to classes

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Vadim Lopatin via Digitalmars-d-announce
On Friday, 25 December 2015 at 10:41:26 UTC, Kingsley wrote: Hi I have released an initial attempt at an IntelliJ plugin for D to the jetbrains plugin repository. It's DLanguage version 1.2 It has basic syntax highlighting, autocompletion with DCD, compile checking and linting with

Re: [Feature Request] Single name access when module name and content are same

2015-12-25 Thread default0 via Digitalmars-d
On Friday, 25 December 2015 at 15:46:23 UTC, tcak wrote: On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote: I only want to discuss an idea here. I am hoping see some nice pros and cons from people. [...] My mistake at the end. It should be: my.big.lib.createFile("FSociety.dat");

Re: Mockup of my doc dream ideas

2015-12-25 Thread Bubbasaur via Digitalmars-d
On Friday, 25 December 2015 at 15:51:02 UTC, rcorre wrote: On Friday, 25 December 2015 at 14:24:34 UTC, Bubbasaur wrote: What happens when I see a DOC with comments is that sometimes the comments are more clear than the Doc itself, or there are tips or tricks that was not "well" documented.

Re: DMD -L Flag, maybe a bug?

2015-12-25 Thread Bubbasaur via Digitalmars-d-learn
On Friday, 25 December 2015 at 15:06:27 UTC, anonymous wrote: ... You can try removing the "-L" entirely. If it still works... In fact it works without the "-L". Which makes me wonder if I was using it wrongly? What exactly are trying to pass to the linker? A lib: GtkD. Can you give a

Re: Mockup of my doc dream ideas

2015-12-25 Thread karabuta via Digitalmars-d
On Friday, 25 December 2015 at 07:41:11 UTC, James Hofmann wrote: On Friday, 25 December 2015 at 05:06:47 UTC, Adam D. Ruppe wrote: I strongly agree Markdown is simple to use, and well supported. No need to do work that has already been done. Besides, Github is pretty popular nowadays.

GTKD - Get the size of the context

2015-12-25 Thread TheDGuy via Digitalmars-d-learn
Hello, i want to draw something to a GTKD context and i need the size of the context in pixel but i don't know how i can get the pixel height and width? Any ideas? With best regards

Understand typeof trick

2015-12-25 Thread Joakim Brännström via Digitalmars-d-learn
Hello, In http://forum.dlang.org/post/ojawnpggfaxevqpmr...@forum.dlang.org Adam uses findSkip as an example and especially points out the "D idiom with is/typeof". I'm not quite sure I understand it correctly. Please correct me if I have misunderstood anything regarding the idiom.

Must I compile on the target architecture?

2015-12-25 Thread Jakob Jenkov via Digitalmars-d-learn
Hi, just a quick question: If I write a program in D and I use Windows for development but want it to run on Linux, do I have to copy the source code to the target Linux machine and compile it there, to make an executable for that machine? What is the standard process for cross platform

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

2015-12-25 Thread Jakob Jenkov via Digitalmars-d
On Thursday, 24 December 2015 at 17:19:30 UTC, karabuta wrote: On Sunday, 20 December 2015 at 21:09:31 UTC, Jakob Jenkov wrote: Writing a focused book of around 100 pages can be done in 3-6 months. If more people chip in, it might even be faster. There are these books floating around where

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Jakob Jenkov via Digitalmars-d-announce
On Friday, 25 December 2015 at 10:41:26 UTC, Kingsley wrote: Hi I have released an initial attempt at an IntelliJ plugin for D to the jetbrains plugin repository. It's DLanguage version 1.2 It has basic syntax highlighting, autocompletion with DCD, compile checking and linting with

Re: Mockup of my doc dream ideas

2015-12-25 Thread Bubbasaur via Digitalmars-d
On Friday, 25 December 2015 at 14:24:34 UTC, Bubbasaur wrote: On Friday, 25 December 2015 at 14:13:56 UTC, Adam D. Ruppe wrote: On Friday, 25 December 2015 at 09:18:45 UTC, Israel wrote: Why not take it to the next level while youre at it? Add user comments that can be rated by users and

Re: Mockup of my doc dream ideas

2015-12-25 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 25 December 2015 at 07:41:11 UTC, James Hofmann wrote: 1. There's more code than ever and more of a need for code to be well-documented on a conceptual/hand-holding level Absolutely. general idea of fitting the text into a certain container is similar to the API doc tradition of

Re: DMD -L Flag, maybe a bug?

2015-12-25 Thread anonymous via Digitalmars-d-learn
On 25.12.2015 15:40, Bubbasaur wrote: But at least on Windows, you need to put a space between -L and the PATH. Which It's weird, since with "-I" flag you don't need any space. I don't think that's right. Unless something awful is going in Windows dmd, that should be processed as two separate

Re: Understand typeof trick

2015-12-25 Thread Joakim Brännström via Digitalmars-d-learn
On Friday, 25 December 2015 at 14:55:04 UTC, anonymous wrote: On 25.12.2015 13:10, Joakim Brännström wrote: [B] Evaluates to the function type "constructed" by binaryFun. Almost. It evaluates to the type of the expression. The expression is a function call, so typeof evaluates to the return

Re: Mockup of my doc dream ideas

2015-12-25 Thread rcorre via Digitalmars-d
On Friday, 25 December 2015 at 14:24:34 UTC, Bubbasaur wrote: What happens when I see a DOC with comments is that sometimes the comments are more clear than the Doc itself, or there are tips or tricks that was not "well" documented. Bubba. If the comments are more clear than the Doc, then

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Bogdan via Digitalmars-d-announce
On Friday, 25 December 2015 at 15:28:23 UTC, Pradeep Gowda wrote: On Friday, 25 December 2015 at 15:04:42 UTC, eyveer wrote: On Friday, 25 December 2015 at 13:57:52 UTC, Pradeep Gowda wrote: A link to the github page would help me in reporting these bugs?

Re: Redesign of dlang.org

2015-12-25 Thread Charles via Digitalmars-d
On Friday, 25 December 2015 at 14:04:36 UTC, anonymous wrote: On 25.12.2015 12:51, Jacob Carlborg wrote: Most of the pages do not seem to be updated. I don't know what you mean. Could this be a cache thing? Can you give a specific example, maybe with a screenshot? The drop down in the

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Pradeep Gowda via Digitalmars-d-announce
On Friday, 25 December 2015 at 15:04:42 UTC, eyveer wrote: On Friday, 25 December 2015 at 13:57:52 UTC, Pradeep Gowda wrote: A link to the github page would help me in reporting these bugs? https://github.com/kingsleyh/DLanguage Thank you. The screenshots are very impressive! Gives me

Re: [Feature Request] Single name access when module name and content are same

2015-12-25 Thread tcak via Digitalmars-d
On Friday, 25 December 2015 at 17:08:04 UTC, default0 wrote: On Friday, 25 December 2015 at 15:46:23 UTC, tcak wrote: On Friday, 25 December 2015 at 15:45:16 UTC, tcak wrote: I only want to discuss an idea here. I am hoping see some nice pros and cons from people. [...] My mistake at the

Re: dqml for Ubuntu Unity apps

2015-12-25 Thread karabuta via Digitalmars-d-announce
On Wednesday, 23 December 2015 at 21:24:41 UTC, Karabuta wrote: On Wednesday, 23 December 2015 at 19:14:53 UTC, Adam Stokes wrote: On Sunday, 20 December 2015 at 13:25:48 UTC, Karabuta wrote: I can't seem to wrap my head around using dqml and D backend for Ubuntu Unity app development. They

Re: Mockup of my doc dream ideas

2015-12-25 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 25 December 2015 at 22:26:46 UTC, bachmeier wrote: Filing a bug is a better approach. It's best to keep everything in one place. Bugzilla sucks hard though, on pretty much every level. It is separate from the page itself, people might not even know it is there, you have to log in,

Re: Mockup of my doc dream ideas

2015-12-25 Thread Israel via Digitalmars-d
On Friday, 25 December 2015 at 17:00:05 UTC, default0 wrote: On Friday, 25 December 2015 at 14:50:06 UTC, Adam D. Ruppe wrote: Aren't these usually called tutorials? Or am I misunderstanding what you mean here? A single page really detailing what a function does and providing an example for

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Minas Mina via Digitalmars-d-announce
I'm trying to build on IntelliJ 15, Ubuntu 15.10: 9:05:55 ΠΜ All files are up-to-date 9:05:55 ΠΜ Error running Run DUB: DUB executable is not specified.Configure DUB settings How do I configure dub settings? It seems that "configure" is a link (it's underlined) but nothing opens when I click

Re: DMD -L Flag, maybe a bug?

2015-12-25 Thread anonymous via Digitalmars-d-learn
On 25.12.2015 19:32, Bubbasaur wrote: On Friday, 25 December 2015 at 15:06:27 UTC, anonymous wrote: In fact it works without the "-L". Which makes me wonder if I was using it wrongly? I'm convinced that putting a space between "-L" and its argument is nonsense. The "-L" part just means "pass

Re: Ranges: How to take N last of elements of range

2015-12-25 Thread via Digitalmars-d-learn
On Friday, 25 December 2015 at 20:06:04 UTC, drug wrote: 25.12.2015 17:13, Ur@nuz пишет: [...] You can do following http://dpaste.dzfl.pl/41c57f89a5a0 The reason of compile error is your using a range as a separator, change it to single symbol and it works. Also I used 'array' after

Re: Mockup of my doc dream ideas

2015-12-25 Thread bachmeier via Digitalmars-d
On Friday, 25 December 2015 at 15:51:02 UTC, rcorre wrote: On Friday, 25 December 2015 at 14:24:34 UTC, Bubbasaur wrote: What happens when I see a DOC with comments is that sometimes the comments are more clear than the Doc itself, or there are tips or tricks that was not "well" documented.

Re: Mockup of my doc dream ideas

2015-12-25 Thread Adam D. Ruppe via Digitalmars-d
On Saturday, 26 December 2015 at 03:01:25 UTC, Israel wrote: This is exactly how i feel. You might see me as coming too weak because im used to C# and MSDN Docs holding my hand If it wasn't for Microsoft documentation (I didn't use MSDN per se, but a downloaded win32.hlp file - I didn't have

Re: Mockup of my doc dream ideas

2015-12-25 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 25 December 2015 at 19:00:13 UTC, karabuta wrote: I strongly agree Markdown is simple to use, and well supported. I don't like Markdown personally, though I don't hate it either. A couple features in it are cool, but most of them are just meh to me and a few of them I actively

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Minas Mina via Digitalmars-d-announce
Also, it seems that no [project name].sdl file is created for dub projects.

Re: Ranges: How to take N last of elements of range

2015-12-25 Thread drug via Digitalmars-d-learn
25.12.2015 17:13, Ur@nuz пишет: static struct LogerInfo { string func; int line; void write(T...)(T data) { import std.stdio; import std.algorithm: splitter; import std.range: retro; import std.range:

Re: DLanguage IntelliJ plugin released

2015-12-25 Thread Kingsley via Digitalmars-d-announce
On Friday, 25 December 2015 at 11:09:01 UTC, Vadim Lopatin wrote: On Friday, 25 December 2015 at 10:41:26 UTC, Kingsley wrote: Hi I have released an initial attempt at an IntelliJ plugin for D to the jetbrains plugin repository. It's DLanguage version 1.2 It has basic syntax highlighting,

Re: Graphics/font/platform backends with common interfaces?

2015-12-25 Thread Rikki Cattermole via Digitalmars-d-learn
On 26/12/15 3:46 AM, thedeemon wrote: On Wednesday, 23 December 2015 at 23:34:58 UTC, Rikki Cattermole wrote: So far I've been implementing windowing and image libraries for Phobos. Right now windowing works on Windows minice eventing. Once eventing is done it is ready for the first stage of

Re: DMD -L Flag, maybe a bug?

2015-12-25 Thread Bubbasaur via Digitalmars-d-learn
On Friday, 25 December 2015 at 23:45:42 UTC, anonymous wrote: ... That means a .lib file, right? Yes. The GtkD docs say to use -L though [2], so I suppose that should work too. Maybe show your exact complete command line, if you want to find out why it doesn't work for you. It's almost

Re: Mockup of my doc dream ideas

2015-12-25 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 25 December 2015 at 17:00:05 UTC, default0 wrote: Aren't these usually called tutorials? Or am I misunderstanding what you mean here? Oh maybe, I've heard "tutorial" used in a lot of contexts and a lot of meanings though, so I wanted to be more specific. This is literally one of

Re: Three Cool Things about D

2015-12-25 Thread Joakim 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/ https://www.facebook.com/dlang.org/posts/1192267587453587 https://twitter.com/D_Programming/status/678989872367988741