Re: Official dub packages for Debian and Ubuntu

2016-04-21 Thread Joseph Rushton Wakeling via Digitalmars-d-announce
On Thursday, 21 April 2016 at 20:13:07 UTC, Joseph Rushton 
Wakeling wrote:

On Monday, 18 April 2016 at 21:54:43 UTC, Matthias Klumpp wrote:
Unfortunately it FTBFSes... Hopefully we can get the patch for 
that in as well: 
https://github.com/ldc-developers/ldc/commit/cb709bfc0a0a3ee8a730c0a99fa53198b6d75364.patch

(I'm working on that)


I see you succeeded -- many thanks again :-)


Might amuse you to know: I just did a fresh 16.04 install this 
evening, and ldc was the first package I installed, followed by 
dub ;-)


Both seem to work like a charm.  And besides the packages, thanks 
for the updated new ldc description!


Re: XDG-APP and D

2016-04-21 Thread Karabuta via Digitalmars-d-announce

On Thursday, 21 April 2016 at 18:55:23 UTC, Gerald wrote:
For those not familiar, xdg-app is a Linux virtualization 
system targeted at desktop apps, it's been under pretty heavy 
development and is available for use in Gnome 3.20.


Mathias Clausen recently wrote a blog entry about creating his 
first xdg-app and the application he chose to play with was 
Terminix, a terminal emulator, which is written in D. He had 
some D specific challenges to deal with which may be 
interesting to others looking to support xdg-app.


You can read his blog entry here:

https://blogs.gnome.org/mclasen/2016/04/15/my-first-xdg-app.



This whole sandbox apps seem interesting. Canonical also talking 
about snaps :)


Re: Official dub packages for Debian and Ubuntu

2016-04-21 Thread Joseph Rushton Wakeling via Digitalmars-d-announce

On Monday, 18 April 2016 at 21:54:43 UTC, Matthias Klumpp wrote:
Unfortunately it FTBFSes... Hopefully we can get the patch for 
that in as well: 
https://github.com/ldc-developers/ldc/commit/cb709bfc0a0a3ee8a730c0a99fa53198b6d75364.patch

(I'm working on that)


I see you succeeded -- many thanks again :-)


XDG-APP and D

2016-04-21 Thread Gerald via Digitalmars-d-announce
For those not familiar, xdg-app is a Linux virtualization system 
targeted at desktop apps, it's been under pretty heavy 
development and is available for use in Gnome 3.20.


Mathias Clausen recently wrote a blog entry about creating his 
first xdg-app and the application he chose to play with was 
Terminix, a terminal emulator, which is written in D. He had some 
D specific challenges to deal with which may be interesting to 
others looking to support xdg-app.


You can read his blog entry here:

https://blogs.gnome.org/mclasen/2016/04/15/my-first-xdg-app.


Re: Computer Vision Library in D

2016-04-21 Thread Relja Ljubobratovic via Digitalmars-d-announce

On Thursday, 21 April 2016 at 16:13:31 UTC, Bill Baxter wrote:
Fortran has some linear algebra functions in the standard 
library.  :-)
Java and many other modern languages are pretty much actively 
hostile to

doing numerical computation,
so including a linear algebra package in the standard library 
of those

languages would just highlight how bad they are at it.
C++ has a tradition of not having a standard library for 
anything you might
actually need to get work done, so I wouldn't follow their 
example.


--bb


Nice point about the Fortran, and also about the C++. :)

I'd have to say I'm convinced - if there's a vote about such 
module joining Phobos, count me in! :)


But really, when you look at it - the ndslice has made it to the 
Phobos, now it's probably natural to have some more extensive use 
of it in the standard library. Linear algebra stuff could be 
build nicely on top of the ndslice, you agree?




Live streaming of DConf 2016: confirmed

2016-04-21 Thread Dicebot via Digitalmars-d-announce
Have just got a confirmation that there will both live stream and 
high quality recording for later publishing during DConf 2016 @ 
Berlin - not being able to attend is not a reason to not 
participate! ;)


I will also forward any questions asked online to speakers (if 
time allows). To make sure your question gets noticed please 
submit it (when the time comes) either via Twitter using 
#askdconf hash tag or via official D IRC channel (#d @ 
irc.freenode.net), preferrably mentioning the same hash tag.


Only bit that is still decided upon is platform choice for 
primary stream source - will update this topic when it gets 
settled.


See you soon in Berlin!


Re: DlangUI on Android

2016-04-21 Thread Dmitry via Digitalmars-d-announce

On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:

I've implemented initial support of Android in DlangUI.


It's great! Thank you!
And congrats with it!


Re: Computer Vision Library in D

2016-04-21 Thread Bill Baxter via Digitalmars-d-announce
On Wed, Apr 20, 2016 at 9:26 PM, rikki cattermole via
Digitalmars-d-announce  wrote:

> On 20/04/2016 7:46 PM, Relja Ljubobratovic wrote:
>
>> On Wednesday, 20 April 2016 at 06:14:58 UTC, rikki cattermole wrote:
>>
>>> I was thinking std.math.linalg kinda seems like the right place once
>>> std.math is split up.
>>> There is an isolated one other than gfm.math. gl3n but I don't have
>>> permission to relicense to Boost. Its mostly ready unfortunately.
>>>
>>
>> I agree it sounds nice to have linalg package in the standard library.
>> Although I'm still not sure about it - I've never seen such package in
>> any other language's standard library. I'm not saying it's not right,
>> just a bit strange to me.
>>
>
Fortran has some linear algebra functions in the standard library.  :-)
Java and many other modern languages are pretty much actively hostile to
doing numerical computation,
so including a linear algebra package in the standard library of those
languages would just highlight how bad they are at it.
C++ has a tradition of not having a standard library for anything you might
actually need to get work done, so I wouldn't follow their example.

--bb


Re: LDC now supports Windows MSVC x86/x64 as first class targets

2016-04-21 Thread Vadim Lopatin via Digitalmars-d-announce

On Monday, 28 March 2016 at 05:56:07 UTC, Joakim wrote:

On Monday, 28 March 2016 at 05:52:34 UTC, Corey Lubin wrote:

On Saturday, 19 March 2016 at 13:23:48 UTC, kinke wrote:

[...]


Truly great news. Thank you Rainer, if you're reading this. (I 
don't think you ever take a break, do you? :])


Awesome progress, LDC team. Your challenging work is much 
appreciated.



(P.S.: On a related front, any news on the Android on ARM 
work? Last I read, my understanding was that the problem you 
were running into was a lack of proper LLVM TLS support for 
the platform? Is my recollection correct?)


Try it out, beta coming up:

https://github.com/joakim-noah/android/releases


Great work!

I've used it for Android support in DlangUI

http://forum.dlang.org/post/cdekkumjynhqoxvmg...@forum.dlang.org




Re: DlangUI on Android

2016-04-21 Thread Vadim Lopatin via Digitalmars-d-announce

On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:

Hello,

I've implemented initial support of Android in DlangUI.



Forgot to add that DerelictFT patch is required for 
DlangUI/Android.

(Freetype library has name libft2.so on Android)

PR is submitted, but not yet integrated into DerelictFT:

https://github.com/DerelictOrg/DerelictFT/pull/9


PS:
Current build is using android-19 API (Android 4.4 Kitkat) due to 
GLES3 dependency.

Will provide support of older platforms later, if needed.



Re: DlangUI on Android

2016-04-21 Thread Vadim Lopatin via Digitalmars-d-announce

On Thursday, 21 April 2016 at 14:48:40 UTC, ANtlord wrote:

On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:

Hello,

I've implemented initial support of Android in DlangUI.


Am I sleeping? Can we develop UI applications for Android on D? 
It's great!


Yes, and the same code may run on both desktops and Android.



Re: DlangUI on Android

2016-04-21 Thread ANtlord via Digitalmars-d-announce

On Thursday, 21 April 2016 at 13:28:18 UTC, Vadim Lopatin wrote:

Hello,

I've implemented initial support of Android in DlangUI.


Am I sleeping? Can we develop UI applications for Android on D? 
It's great!


DlangUI on Android

2016-04-21 Thread Vadim Lopatin via Digitalmars-d-announce

Hello,

I've implemented initial support of Android in DlangUI.

Only armv7a architecture is supported so far.

You can downlowd sample APK: 
https://sourceforge.net/projects/crengine/files/DlangUI/



How to add support of Android to your DlangUI project.
=

Copy dlangui/android/android_project directory to you DlangUI 
project directory.



Probably you will want to change android package name in 
AndroidManifest.xml and application display name in 
res/values/strings.xml



Modify android_app.mk, android_build_config.mk

android_app.mk
==

Update LOCAL_SRC_FILES to include all your project's files.


android_build_config.mk
===

Update paths to Android NDK, SDK, DlangUI source directory.

Default values:
export DLANGUI_DIR=$HOME/src/d/dlangui
export NDK=$HOME/android-ndk-r11c
export SDK=$HOME/android-sdk-linux
export LDC=$HOME/ldc2-android-arm-0.17.0-alpha2-linux-x86_64
export NDK_ARCH=x86_64


Use LDC cross compiler for armv7a build according instructions

https://wiki.dlang.org/Build_LDC_for_Android#Build_a_sample_OpenGL_Android_app_ported_to_D




Re: Blog post: PGO: Optimizing D's virtual calls

2016-04-21 Thread Johan Engelen via Digitalmars-d-announce

On Wednesday, 20 April 2016 at 22:10:53 UTC, Marco Leise wrote:


7% is quite a bit more than any other option like -cpu=native 
could achieve. If feasible I'd enjoy if ldc2 shipped with a pgo 
configuration option. If you use the compiler in a lot of 
edit/compile cycles it will pay off.


This was the use-case I was optimizing for, and so I will add an 
option to pass a PGO profile to the CMake script :-)
Note that it is a 7% improvement in the D part of LDC. The 
optimizer (LLVM, C++) takes most of the time during compilation 
and so the overall performance increase is smaller.