Re: DlangIDE

2015-02-17 Thread Vadim Lopatin via Digitalmars-d-announce

On Friday, 6 February 2015 at 14:03:07 UTC, Vadim Lopatin wrote:

Hello,

I'm working on cross-platform D language IDE - DlangIDE.
It's written in D using DlangUI based GUI.

Project on GitHub: https://github.com/buggins/dlangide

It's in alpha stage but already allows:

* Open DUB based projects
* Edit source files
* Build and run projects using DUB
* D source code syntax highlight

Requires DUB for building projects.

Features missing so far:

* Debugging support
* Code completion
* Code folding
* Go to definition
* Smart indentation

Best regards,
   Vadim


Created thread DlangIDE in D.IDE for discussion.
http://forum.dlang.org/thread/lfcyzzjcavedxhici...@forum.dlang.org



Re: New book: Developing with compile time in mind

2015-02-17 Thread Andrei Alexandrescu via Digitalmars-d-announce

On 2/17/15 8:22 AM, Russel Winder via Digitalmars-d-announce wrote:

OK so AsciiDoc is the future for book writing.


Guess I better find out what AsciiDoc is then. Wee, it has macros: 
http://www.methods.co.nz/asciidoc/asciidoc.css-embedded.html#_macros


Andrei


Re: New book: Developing with compile time in mind

2015-02-17 Thread Russel Winder via Digitalmars-d-announce
On Tue, 2015-02-17 at 08:08 -0800, Andrei Alexandrescu via 
Digitalmars-d-announce wrote:
 On 2/17/15 3:49 AM, Russel Winder via Digitalmars-d-announce wrote:
  
[…]
  My prejudice is that you need XeLaTeX or AsciiDoc for large 
  document writing, especially when targeting press PDF.
 
 Mine too. However, PDF is for fixed layout and any future book 
 should aim at flexible format or at least multiple fixed layouts.

Print requires best possible formatting for press PDF, other formats 
generally need reflow which is a different set of constraints. Sadly 
XeLaTeX hasn't really caught up on the epub formats. 

 I think Markdown's use for a book is works, won't ever win an 
 interior design contest.

OK so AsciiDoc is the future for book writing.

 
[…]
-- 
Russel.
=
Dr Russel Winder  t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


signature.asc
Description: This is a digitally signed message part


Re: New book: Developing with compile time in mind

2015-02-17 Thread Andrei Alexandrescu via Digitalmars-d-announce

On 2/17/15 3:49 AM, Russel Winder via Digitalmars-d-announce wrote:

On Tue, 2015-02-17 at 16:40 +1300, Rikki Cattermole via Digitalmars-d-announce 
wrote:



[…]

Just let me know any improvements that could be made. Updates are
free after all! (Leanpub is amazing, what with markdown writing and
all).


How did you find Markdown for writing a book?

My prejudice is that you need XeLaTeX or AsciiDoc for large document
writing, especially when targeting press PDF.


Mine too. However, PDF is for fixed layout and any future book should 
aim at flexible format or at least multiple fixed layouts.


I think Markdown's use for a book is works, won't ever win an interior 
design contest.


TDPL's second edition will most likely use ddoc macros to generate 
LaTeX, HTML, and a couple of ebook formats.



Andrei



Re: DlangIDE

2015-02-17 Thread Vadim Lopatin via Digitalmars-d-announce

On Tuesday, 17 February 2015 at 10:42:18 UTC, Chris wrote:
On Monday, 16 February 2015 at 09:11:19 UTC, Vadim Lopatin 
wrote:

On Thursday, 12 February 2015 at 14:24:05 UTC, ketmar wrote:
i don't want to give you any orders, but i think that it's 
better to make
shortcuts user-definable ASAP. you may skip GUI for that now 
and just
make a keymap file of some kind, and it will still be much 
better than

hard-coded shourtcuts.


Keyboard shortcuts settings support is added.

For linux and macos settings are placed in file
~/.dlangide/shortcuts.json

For Windows,
C:\Users\user\AppData\Roaming\.dlangide\shortcuts.json

If no such file exists, it's being created on DlangIDE start, 
filling with default values to simplify configuration.


Great stuff. Just occured to me that font size, tab width and 
colors are very important too. I for my part prefer a dark 
background. It's easier on the eye, when you spend a lot of 
time looking at the screen. Texatadept and other editors have 
themes to choose from (and allow custom themes). That would be 
a great addition further down the road.


Dark theme and settings editors are planned for nearest future.



Re: DlangIDE

2015-02-17 Thread Vadim Lopatin via Digitalmars-d-announce

On Friday, 6 February 2015 at 14:03:07 UTC, Vadim Lopatin wrote:

Hello,

I'm working on cross-platform D language IDE - DlangIDE.
It's written in D using DlangUI based GUI.

Project on GitHub: https://github.com/buggins/dlangide

It's in alpha stage but already allows:

* Open DUB based projects
* Edit source files
* Build and run projects using DUB
* D source code syntax highlight

Requires DUB for building projects.

Features missing so far:

* Debugging support
* Code completion
* Code folding
* Go to definition
* Smart indentation

Best regards,
   Vadim


Project update:

Hans-Albert Maritz (Freakazo) sent pull request with 
implementation of DCD integration.


Now DlangIDE supports autocompletion (Ctrl+Space or Ctrl+Shift+G) 
and GoToDefinition (Ctrl+G or F12).


DlangIDE becomes real IDE :)

For using of autocompletion, you need to install DCD.
DlangIDE starts its own copy of daemon on port 9167.
dcd-client and dcd-server must be in the same directory as 
dlangide executable or in one of PATH dirs.


Now most wanted feature is debugging support (IMHO).



Re: DlangIDE

2015-02-17 Thread Vadim Lopatin via Digitalmars-d-announce

On Tuesday, 17 February 2015 at 17:53:56 UTC, extrawurst wrote:
On Tuesday, 17 February 2015 at 13:48:27 UTC, Vadim Lopatin 
wrote:

Project update:

Hans-Albert Maritz (Freakazo) sent pull request with 
implementation of DCD integration.


Now DlangIDE supports autocompletion (Ctrl+Space or 
Ctrl+Shift+G) and GoToDefinition (Ctrl+G or F12).


DlangIDE becomes real IDE :)

For using of autocompletion, you need to install DCD.
DlangIDE starts its own copy of daemon on port 9167.
dcd-client and dcd-server must be in the same directory as 
dlangide executable or in one of PATH dirs.


Now most wanted feature is debugging support (IMHO).


I think soo too. Whats the way to go there for targeting all 
these platforms ?


It looks like we need to develop some universal debugger library.
For linux, it can use gdb as a backend.
For windows - I'm not sure. Is there any console debugger which 
can debug dmd generated executables? I've checked windbg shipped 
with dmd, but it looks like it is GUI, and cannot be used as 
backend via console.
Trying to play with my own implementation of debugger using win32 
API.


Probably there is already some debugger interface written in D?


Re: DlangIDE

2015-02-17 Thread data man via Digitalmars-d-announce

On Tuesday, 17 February 2015 at 13:48:27 UTC, Vadim Lopatin wrote:

For using of autocompletion, you need to install DCD.
DlangIDE starts its own copy of daemon on port 9167.
dcd-client and dcd-server must be in the same directory as 
dlangide executable or in one of PATH dirs.


Now most wanted feature is debugging support (IMHO).


Thank you very much!

And why not use the libdparse library directly?
It will give much more possibilities.


[NEEDING HELP] Translation of Ali Cehreli's book in French

2015-02-17 Thread Raphaël Jakse via Digitalmars-d-announce

(sorry for the cross posting, fu2 digitalmars.D)

Hello everybody,

I'm the current translator of Ali Cehreli's book in French. You can find
it there:

http://dlang-fr.org/cours/programmer-en-d/

So far, I translated 48 chapters, and I began the 49th.

My work is versioned here:

SSH:   g...@gitorious.org:programmez-en-d/programmez-en-d.git
HTTPS: https://gitorious.org/programmez-en-d/programmez-en-d.git

I write here today to announce that despite my efforts, I'm afraid I
can't find enough time and energy to keep translating the book anymore.
There are just too many things to get done beside this project.

I am willing to organize a translation group to finish the translation
to get this wonderful piece of work within French speaking people's reach.

Is anybody interested? Don't hesitate to send me an email if you are
willing to get involved, even for the smallest task. There are no small
tasks when a work is to get completed. I will tell you how to help.

ps: Due to technical reasons, I lost corrections people brought by using
the correction module present on the page. I'm really sorry for this.
This mean there are known errors in the current translation. This also
mean proofreading is also absolutely needed.

If there is anything you need, don't hesitate to tell me, I'll try to
answer the best I can do.

Thanks for your attention,

Cheers,
Raphaël.




Re: DlangIDE

2015-02-17 Thread extrawurst via Digitalmars-d-announce

On Tuesday, 17 February 2015 at 13:48:27 UTC, Vadim Lopatin wrote:

On Friday, 6 February 2015 at 14:03:07 UTC, Vadim Lopatin wrote:

Hello,

I'm working on cross-platform D language IDE - DlangIDE.
It's written in D using DlangUI based GUI.

Project on GitHub: https://github.com/buggins/dlangide

It's in alpha stage but already allows:

* Open DUB based projects
* Edit source files
* Build and run projects using DUB
* D source code syntax highlight

Requires DUB for building projects.

Features missing so far:

* Debugging support
* Code completion
* Code folding
* Go to definition
* Smart indentation

Best regards,
  Vadim


Project update:

Hans-Albert Maritz (Freakazo) sent pull request with 
implementation of DCD integration.


Now DlangIDE supports autocompletion (Ctrl+Space or 
Ctrl+Shift+G) and GoToDefinition (Ctrl+G or F12).


DlangIDE becomes real IDE :)

For using of autocompletion, you need to install DCD.
DlangIDE starts its own copy of daemon on port 9167.
dcd-client and dcd-server must be in the same directory as 
dlangide executable or in one of PATH dirs.


Now most wanted feature is debugging support (IMHO).


I think soo too. Whats the way to go there for targeting all 
these platforms ?


Re: DlangIDE

2015-02-17 Thread Chris via Digitalmars-d-announce

On Monday, 16 February 2015 at 09:11:19 UTC, Vadim Lopatin wrote:

On Thursday, 12 February 2015 at 14:24:05 UTC, ketmar wrote:
i don't want to give you any orders, but i think that it's 
better to make
shortcuts user-definable ASAP. you may skip GUI for that now 
and just
make a keymap file of some kind, and it will still be much 
better than

hard-coded shourtcuts.


Keyboard shortcuts settings support is added.

For linux and macos settings are placed in file
~/.dlangide/shortcuts.json

For Windows,
C:\Users\user\AppData\Roaming\.dlangide\shortcuts.json

If no such file exists, it's being created on DlangIDE start, 
filling with default values to simplify configuration.


Great stuff. Just occured to me that font size, tab width and 
colors are very important too. I for my part prefer a dark 
background. It's easier on the eye, when you spend a lot of time 
looking at the screen. Texatadept and other editors have themes 
to choose from (and allow custom themes). That would be a great 
addition further down the road.


Re: New book: Developing with compile time in mind

2015-02-17 Thread Russel Winder via Digitalmars-d-announce
On Tue, 2015-02-17 at 16:40 +1300, Rikki Cattermole via Digitalmars-d-announce 
wrote:
 
[…]
 Just let me know any improvements that could be made. Updates are 
 free after all! (Leanpub is amazing, what with markdown writing and 
 all).

How did you find Markdown for writing a book?

My prejudice is that you need XeLaTeX or AsciiDoc for large document 
writing, especially when targeting press PDF.

-- 
Russel.
=
Dr Russel Winder  t: +44 20 7585 2200   voip: sip:russel.win...@ekiga.net
41 Buckmaster Roadm: +44 7770 465 077   xmpp: rus...@winder.org.uk
London SW11 1EN, UK   w: www.russel.org.uk  skype: russel_winder


signature.asc
Description: This is a digitally signed message part


Re: DlangIDE

2015-02-17 Thread Vadim Lopatin via Digitalmars-d-announce

On Tuesday, 17 February 2015 at 17:55:14 UTC, data man wrote:
On Tuesday, 17 February 2015 at 13:48:27 UTC, Vadim Lopatin 
wrote:

For using of autocompletion, you need to install DCD.
DlangIDE starts its own copy of daemon on port 9167.
dcd-client and dcd-server must be in the same directory as 
dlangide executable or in one of PATH dirs.


Now most wanted feature is debugging support (IMHO).


Thank you very much!

And why not use the libdparse library directly?
It will give much more possibilities.


Good idea. Let me check it.


Re: DlangIDE

2015-02-17 Thread extrawurst via Digitalmars-d-announce

On Tuesday, 17 February 2015 at 19:41:10 UTC, Vadim Lopatin wrote:

On Tuesday, 17 February 2015 at 17:53:56 UTC, extrawurst wrote:
On Tuesday, 17 February 2015 at 13:48:27 UTC, Vadim Lopatin 
wrote:

Project update:

Hans-Albert Maritz (Freakazo) sent pull request with 
implementation of DCD integration.


Now DlangIDE supports autocompletion (Ctrl+Space or 
Ctrl+Shift+G) and GoToDefinition (Ctrl+G or F12).


DlangIDE becomes real IDE :)

For using of autocompletion, you need to install DCD.
DlangIDE starts its own copy of daemon on port 9167.
dcd-client and dcd-server must be in the same directory as 
dlangide executable or in one of PATH dirs.


Now most wanted feature is debugging support (IMHO).


I think soo too. Whats the way to go there for targeting all 
these platforms ?


It looks like we need to develop some universal debugger 
library.

For linux, it can use gdb as a backend.
For windows - I'm not sure. Is there any console debugger which 
can debug dmd generated executables? I've checked windbg 
shipped with dmd, but it looks like it is GUI, and cannot be 
used as backend via console.
Trying to play with my own implementation of debugger using 
win32 API.


Probably there is already some debugger interface written in D?


maybe this helps:
http://wiki.dlang.org/Debuggers


Re: New book: Developing with compile time in mind

2015-02-17 Thread Rikki Cattermole via Digitalmars-d-announce

On 18/02/2015 5:08 a.m., Andrei Alexandrescu wrote:

On 2/17/15 3:49 AM, Russel Winder via Digitalmars-d-announce wrote:

On Tue, 2015-02-17 at 16:40 +1300, Rikki Cattermole via
Digitalmars-d-announce wrote:



[…]

Just let me know any improvements that could be made. Updates are
free after all! (Leanpub is amazing, what with markdown writing and
all).


How did you find Markdown for writing a book?

My prejudice is that you need XeLaTeX or AsciiDoc for large document
writing, especially when targeting press PDF.


Mine too. However, PDF is for fixed layout and any future book should
aim at flexible format or at least multiple fixed layouts.

I think Markdown's use for a book is works, won't ever win an interior
design contest.

TDPL's second edition will most likely use ddoc macros to generate
LaTeX, HTML, and a couple of ebook formats.


Andrei


Idk Makura version (leanpub's specification) is pretty nice.
You really don't think about formatting much. You just make the content 
and let it do the rest.


Everything you put into the markdown documents themselves are pretty 
straight forward easy to read and understand e.g.


{title=On top of code snippet text}
```D
void main() {
import std.stdio;
writeln(Hello World!);
}
```

And yes it support D code blocks :D Much better then my previous method 
of using images. In fact this is a requirement for me.


You can configure Makura's generation via a config file which includes 
output page size. So right now leanpub is generating pdf's that can be 
used on lulu.com. There is some modifications need to be done e.g. blank 
last page. But that's about it. Specifically for a pocketbook.


I would highly recommend giving leanpub a go. I absolutely fell in love 
with it.


In fact I'm seriously considering implementing Makura in D once I have a 
good pdf generation library. I know we already have a markdown library 
but I might just make my own.


Re: D Lecture in Tel Aviv, Israel

2015-02-17 Thread Liran Zvibel via Digitalmars-d-announce

On Monday, 2 February 2015 at 20:56:29 UTC, Walter Bright wrote:

On 2/2/2015 3:56 AM, Omri Palmon wrote:
Weka.IO is proud to host a lecture about D, sharing our 
experience of

implementing a trailblazing distributed storage system in D.
Lecture will take place on Sunday, February 15th, 19:00,  at 
Weka.IO offices,

Beit Shamai 10 Tel Aviv.
Please confirm your participation at
https://www.eventbrite.com/e/d-evening-at-wekaio-tickets-15087370732

For questions, Email dev...@weka.io


Dang, wish I could be there!


It was a great talk, and many stayed later to discuss further.
I hope we'll be able to start a D community here.

You can find my slides here:
http://www.slideshare.net/LiranZvibel/d-talk



Re: DlangIDE

2015-02-17 Thread Chris via Digitalmars-d-announce

On Friday, 13 February 2015 at 14:47:08 UTC, Vadim Lopatin wrote:

On Friday, 13 February 2015 at 10:00:33 UTC, Chris wrote:
On Thursday, 12 February 2015 at 14:16:49 UTC, Vadim Lopatin 
wrote:

On Thursday, 12 February 2015 at 09:55:53 UTC, Chris wrote:
On Wednesday, 11 February 2015 at 17:49:53 UTC, Vadim 
Lopatin Got an error message after cloning and running dub 
run


Compiling using dmd...
Error: cannot read file 
../../.dub/packages/dlangui-master/examples/helloworld/bin/helloworld.d
FAIL 
.dub/build/application-debug-linux.posix-x86_64-dmd_2066-51E212BAD4DDA2DE13262C4DBFEB2E69/ 
dlangide executable

Error executing command run: dmd failed with exit code 1.

I used dmd 2.066.1

Btw, have you thought of integrating the version manager dvm 
somehow. I find it extremely useful, especially when 
upgrading my code to a new version of dmd.


I'm really looking forward to using this IDE for my D 
projects one day.


Following works for me:

dub fetch dlangui
dub run dlangui:helloworld
dub run dlangui:example1
dub run dlangui:tetris

I see no errors.
DMD is v2.066.0 and DUB is 0.9.22


That works for me too, but the error I got was from this:

git clone https://github.com/buggins/dlangide.git
cd dlangide
dub run

Building dlangide 0.2.1 configuration application, build 
type debug.

Compiling using dmd...
Error: cannot read file 
../../.dub/packages/dlangui-master/examples/helloworld/bin/helloworld.d
FAIL 
.dub/build/application-debug-linux.posix-x86_64-dmd_2066-51E212BAD4DDA2DE13262C4DBFEB2E69/ 
dlangide executable

Error executing command run: dmd failed with exit code 1.

(dmd 2.066.0)


Looks like DUB issue. It selects dlangui:helloworld instead if 
dlangui



git clone https://github.com/buggins/dlangide.git
cd dlangide
dub run


It's working for me.

$ dub run
WARNING: A deprecated branch based version specification is 
used for the dependency dlangui. Please use numbered version
s instead. Also note that you can still use the 
dub.selections.json file to override a certain dependency to 
use a branc

h instead.
Building dlib ~master configuration library, build type debug.
Running dmd...
Target derelict-util 1.9.1 is up to date. Use --force to 
rebuild.

Target derelict-ft 1.0.2 is up to date. Use --force to rebuild.
Target derelict-sdl2 1.9.2 is up to date. Use --force to 
rebuild.
Target derelict-gl3 1.0.12 is up to date. Use --force to 
rebuild.
Building dlangui ~master configuration library, build type 
debug.

Running dmd...
Building dlangide 0.2.3 configuration application, build type 
debug.

Compiling using dmd...
Linking...
Copying files for dlangui...
Running .\bin\dlangide.exe

Try
dub upgrade --force-remove

As well, check your DUB version.
0.9.22 should work ok.


dub upgrade --force-remove

This worked, thanks. I think I had this issue before, maybe you 
could add it as a note on your github page.


My dub version is:

DUB version 0.9.22, built on Sep 16 2014



Re: New book: Developing with compile time in mind

2015-02-17 Thread Rikki Cattermole via Digitalmars-d-announce

On 18/02/2015 12:49 a.m., Russel Winder via Digitalmars-d-announce wrote:

On Tue, 2015-02-17 at 16:40 +1300, Rikki Cattermole via Digitalmars-d-announce 
wrote:



[…]

Just let me know any improvements that could be made. Updates are
free after all! (Leanpub is amazing, what with markdown writing and
all).


How did you find Markdown for writing a book?

My prejudice is that you need XeLaTeX or AsciiDoc for large document
writing, especially when targeting press PDF.


Rather enjoyable.
I loved that I could just write my content. Maybe splash some hashes or 
{pagebreak} in there.


Although I lost a lot of control especially since leanpub's system isn't 
opensource unfortunately. But I intend to fix that one day ;)