Deimos bindings for MPFR

2016-12-23 Thread Guillaume Chatelet via Digitalmars-d-announce

I just created D bindings[1] for the MPFR library[2].

It also contains a D type[3] that wraps call to the library.

---
1. http://code.dlang.org/packages/deimos-mpfr
2. http://www.mpfr.org/
3. 
https://github.com/gchatelet/deimos-mpfr/blob/master/source/mpfrd.d


Joakim's Interview with Dicebot

2016-12-23 Thread Mike Parker via Digitalmars-d-announce
A couple of weeks ago, Joakim sent me a fantastic interview he 
did with Dicebot, which I had intended to publish last Friday. 
I'm a week late, but it's live now. The relevant links are below.


This isn't going to be the last post of the year. I've got a 
Project Highlight of a cool little game I stumbled across planned 
for next Wednesday. That's the one that will send us into the New 
Year, on the other side of which is a post related to some of 
Andrei's recent work.


Merry Christmas to those of you who celebrate it, Happy Holidays 
or Have a Nice Weekend to the rest!


The post:
https://dlang.org/blog/2016/12/23/perspectives-on-d-mihails-strasuns/

Reddit:
https://www.reddit.com/r/programming/comments/5jwwve/perspectives_on_d_an_interview_with_a_dlang/


Re: Many documentation examples can now be run online

2016-12-23 Thread Mark via Digitalmars-d-announce

On Monday, 19 December 2016 at 17:50:17 UTC, Seb wrote:
On Monday, 19 December 2016 at 17:44:29 UTC, Andrei 
Alexandrescu wrote:
Take a look e.g. at 
https://dlang.org/phobos-prerelease/std_algorithm_iteration.html. Examples now have "Edit" and "Run" buttons that allow you to play with them online and see what they output. Changes for the ddox version forthcoming.


Related: https://github.com/dlang/dlang.org/pull/1297, 
https://issues.dlang.org/show_bug.cgi?id=16984, 
https://issues.dlang.org/show_bug.cgi?id=16985.


Many thanks to Sebastian Wilzbach who took this to completion, 
and to Damian Ziemba for working on the online compiler code!



Andrei


I would like to add that this is in an experimental/testing 
stage and hopefully will get stable with the next release ;-)


Awesome.


Re: Many documentation examples can now be run online

2016-12-23 Thread Johan Engelen via Digitalmars-d-announce

On Tuesday, 20 December 2016 at 07:04:38 UTC, Seb wrote:


https://github.com/dlang/dlang.org/pull/1527


Nice. It's pretty awesome!

When clicking the "edit" button, a new box appears with the 
example's code in it but editable. Then when clicking "run", the 
editted code disappears (it's saved for future use, pfew!).


How about this: when clicking _either_ "edit" or "run", the 
non-editable code box disappears, and the edittable code box 
appears and stays there forever.


(also, the height of the editable-code-box is too small; should 
fit the whole example's code?)


cheers,
  Johan



Re: Many documentation examples can now be run online

2016-12-23 Thread Seb via Digitalmars-d-announce

On Friday, 23 December 2016 at 23:52:48 UTC, Johan Engelen wrote:

On Tuesday, 20 December 2016 at 07:04:38 UTC, Seb wrote:


https://github.com/dlang/dlang.org/pull/1527


Nice. It's pretty awesome!

When clicking the "edit" button, a new box appears with the 
example's code in it but editable. Then when clicking "run", 
the editted code disappears (it's saved for future use, pfew!).


How about this: when clicking _either_ "edit" or "run", the 
non-editable code box disappears, and the edittable code box 
appears and stays there forever.


(also, the height of the editable-code-box is too small; should 
fit the whole example's code?)


cheers,
  Johan


Hehe, that's already in the queue:

https://github.com/dlang/dlang.org/pull/1529


Re: Many documentation examples can now be run online

2016-12-23 Thread Saurabh Das via Digitalmars-d-announce

On Saturday, 24 December 2016 at 00:04:54 UTC, Seb wrote:
On Friday, 23 December 2016 at 23:52:48 UTC, Johan Engelen 
wrote:

On Tuesday, 20 December 2016 at 07:04:38 UTC, Seb wrote:


https://github.com/dlang/dlang.org/pull/1527


Nice. It's pretty awesome!

When clicking the "edit" button, a new box appears with the 
example's code in it but editable. Then when clicking "run", 
the editted code disappears (it's saved for future use, pfew!).


How about this: when clicking _either_ "edit" or "run", the 
non-editable code box disappears, and the edittable code box 
appears and stays there forever.


(also, the height of the editable-code-box is too small; 
should fit the whole example's code?)


cheers,
  Johan


Hehe, that's already in the queue:

https://github.com/dlang/dlang.org/pull/1529


This is really wonderful. An excellent feature for new users – 
lowers the cost of "just try it out".


Feedback:

1. It will be aesthetically better if the edit/run buttons are 
inside the code box, say just inside the right top corner.


2. Could we add a "open in an external website/new window" 
icon/button (for example: 
http://findicons.com/files/icons/2315/default_icon/256/open_in_new_window.png ) to open the example in say a dpaste window or an equivalent playground.


Thanks,
Saurabh



Re: Many documentation examples can now be run online

2016-12-23 Thread safety0ff via Digitalmars-d-announce

On Saturday, 24 December 2016 at 06:08:49 UTC, Saurabh Das wrote:


Feedback:

1. It will be aesthetically better if the edit/run buttons are 
inside the code box, say just inside the right top corner.


I agree the button placement should be improved, I think they 
should be immediately to the right of "Examples:"


e.g. "Examples: [Edit][Run]"

Which makes it more clear that the examples can be run & edited.


Re: Many documentation examples can now be run online

2016-12-23 Thread safety0ff via Digitalmars-d-announce

On Saturday, 24 December 2016 at 06:15:16 UTC, safety0ff wrote:


I agree the button placement should be improved, I think they 
should be immediately to the right of "Examples:"


e.g. "Examples: [Edit][Run]"

Which makes it more clear that the examples can be run & edited.


I didn't see that there could be text between the "Examples:" 
line and the code box. Anyways, I agree with the feedback that 
the buttons off to the right is difficult to notice.


Re: Many documentation examples can now be run online

2016-12-23 Thread Seb via Digitalmars-d-announce

On Saturday, 24 December 2016 at 06:08:49 UTC, Saurabh Das wrote:

On Saturday, 24 December 2016 at 00:04:54 UTC, Seb wrote:

Hehe, that's already in the queue:

https://github.com/dlang/dlang.org/pull/1529


This is really wonderful. An excellent feature for new users – 
lowers the cost of "just try it out".


Feedback:


Thanks for your feedback :)

1. It will be aesthetically better if the edit/run buttons are 
inside the code box, say just inside the right top corner.


Sure - that should be fairly trivial.

2. Could we add a "open in an external website/new window" 
icon/button (for example: 
http://findicons.com/files/icons/2315/default_icon/256/open_in_new_window.png ) to open the example in say a dpaste window or an equivalent playground.


Yes, that would be pretty nice to have.
Unfortunately the maintainer of DPaste has been quite 
unresponsive in the past, so it's not possible with DPaste (e.g. 
we would need a simple POST API which returns a URL).
If someone is planning to reboot sth. like DPaste (e.g. with DUB 
support, fast caches, ...), please let us know!


Re: Silicon Valley D Meetup - December 22, 2016 - "The Curse of Knowledge: Et tu, D?" by Adam Wilson

2016-12-23 Thread Ali Çehreli via Digitalmars-d-announce

On 12/15/2016 12:20 AM, Ali Çehreli wrote:


  https://www.meetup.com/D-Lang-Silicon-Valley/events/236253882/


The slides: 
http://files.meetup.com/18234529/The%20Curse%20of%20Knowledge.pptx


The video: http://youtu.be/XjnBMfVTI0k

(There is no audio on the recording until 45:45.)

Ali