Re: Google Summer of Code

2016-04-22 Thread rikki cattermole via Digitalmars-d-announce

On 23/04/2016 10:43 AM, CraigDillabaugh wrote:

I am pleased to announce that the D Foundation has been awarded 4 slots
for the 2016 Google Summer of Code.

https://summerofcode.withgoogle.com/organizations/5078256051027968/

Congratulations to

Lodovico Giaretta
A replacement of std.xml for the Phobos standard library


YUS!


Sebastian Wilzbach
Science for D - a non-uniform RNG

Jeremy DeHaan
Precise Garbage Collector


YUS!


Wojciech Szęszoł
Improvements for dstep

on their successful proposals.

They faced very stiff competition, and unfortunately we had to turn down
a number of very good proposals.  Perhaps we should have been more
greedy and asked for six or seven slots.

I hope the community will extend a warm welcome to these students, and
we welcome all of your efforts in helping these students achieve success
in the coming months.

Finally, thanks to all our mentors who put in hours of work in
evaluating the proposals to this point.


To the students, please post github repos when ready!
I want to keep track.



Re: DlangUI on Android

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

On Friday, 22 April 2016 at 18:49:24 UTC, Laeeth Isharc wrote:
This is a very exciting development.  (And impressive in the 
'consequent' department, as the Germans say - you said you 
would have DlangUI ported to Android some weeks after the 
working compiler, and that's what you did!).


It took about one week to make DlangUI android backend once I 
managed to build NativeActivity example by Joakim's instructions.


I would say it will take a week or too to make iOS backend once 
we have working compiler for iOS (in my estimations it will have 
1K-2K lines of D code and 1K-2K lines of obj-c code.


Unfortunately, I have no experience with objective C neither with 
iOS programming.


Android port was easy for me because DlangUI was a kind of 
port/reimplementation of my C++ cross platform GUI library I used 
for my CoolReader GL project (e-book reader).


Might be useful for me to port some D code for internal 
enterprise apps to Android that currently runs on linux (I 
recognise how experimental it is, but I'm okay with that since 
mobile is just nice to have, and not yet necessary).
Please let me know issue you face when using DlangUI for mobile 
development.



Will you be at dconf?

No, I'm not planning to participate.
D is just a hobby for me.




Re: DlangUI on Android

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

On Friday, 22 April 2016 at 18:48:26 UTC, David Nadlinger wrote:

This is a reality now mostly due to Joakim's great LDC work.


Yes, it's really GREAT work!
I just took his NativeActivity example and modified a bit to make 
dlangui's platform class implementation.


I would be nice to have all Joakim's patches in upstream LDC and 
druntime/phobos.




Re: Google Summer of Code

2016-04-22 Thread Bill Baxter via Digitalmars-d-announce
Well done!  Congrats to you all!

--bb

On Fri, Apr 22, 2016 at 3:43 PM, CraigDillabaugh via Digitalmars-d-announce
 wrote:

> I am pleased to announce that the D Foundation has been awarded 4 slots
> for the 2016 Google Summer of Code.
>
> https://summerofcode.withgoogle.com/organizations/5078256051027968/
>
> Congratulations to
>
> Lodovico Giaretta
> A replacement of std.xml for the Phobos standard library
>
> Sebastian Wilzbach
> Science for D - a non-uniform RNG
>
> Jeremy DeHaan
> Precise Garbage Collector
>
> Wojciech Szęszoł
> Improvements for dstep
>
> on their successful proposals.
>
> They faced very stiff competition, and unfortunately we had to turn down a
> number of very good proposals.  Perhaps we should have been more greedy and
> asked for six or seven slots.
>
> I hope the community will extend a warm welcome to these students, and we
> welcome all of your efforts in helping these students achieve success in
> the coming months.
>
> Finally, thanks to all our mentors who put in hours of work in evaluating
> the proposals to this point.
>
>
>
>
>
>
>


Google Summer of Code

2016-04-22 Thread CraigDillabaugh via Digitalmars-d-announce
I am pleased to announce that the D Foundation has been awarded 4 
slots for the 2016 Google Summer of Code.


https://summerofcode.withgoogle.com/organizations/5078256051027968/

Congratulations to

Lodovico Giaretta
A replacement of std.xml for the Phobos standard library

Sebastian Wilzbach  
Science for D - a non-uniform RNG

Jeremy DeHaan   
Precise Garbage Collector

Wojciech Szęszoł
Improvements for dstep

on their successful proposals.

They faced very stiff competition, and unfortunately we had to 
turn down a number of very good proposals.  Perhaps we should 
have been more greedy and asked for six or seven slots.


I hope the community will extend a warm welcome to these 
students, and we welcome all of your efforts in helping these 
students achieve success in the coming months.


Finally, thanks to all our mentors who put in hours of work in 
evaluating the proposals to this point.









Re: DlangUI on Android

2016-04-22 Thread David Nadlinger via Digitalmars-d-announce

On Friday, 22 April 2016 at 18:48:26 UTC, David Nadlinger wrote:

This is a reality now mostly due to Joakim's great LDC work.


(the fact that we can deploy stuff to Android in the first place, 
that is – obviously, the UI layer is a whole separate story)


Re: DlangUI on Android

2016-04-22 Thread Laeeth Isharc 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.


Congratulations, Vadim.

This is a very exciting development.  (And impressive in the 
'consequent' department, as the Germans say - you said you would 
have DlangUI ported to Android some weeks after the working 
compiler, and that's what you did!).


Might be useful for me to port some D code for internal 
enterprise apps to Android that currently runs on linux (I 
recognise how experimental it is, but I'm okay with that since 
mobile is just nice to have, and not yet necessary).


Will you be at dconf?


Re: DlangUI on Android

2016-04-22 Thread David Nadlinger via Digitalmars-d-announce

On Thursday, 21 April 2016 at 14:48:40 UTC, ANtlord wrote:
Am I sleeping? Can we develop UI applications for Android on D? 
It's great!


Yes – cool, right?

This is a reality now mostly due to Joakim's great LDC work.

 — David


Re: DlangUI on Android

2016-04-22 Thread TheGag96 via Digitalmars-d-announce

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

(snip)


Wow, really nice stuff! I wasn't even aware we could write D for 
Android at all...




Re: DlangUI on Android

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

On Friday, 22 April 2016 at 15:02:32 UTC, FrankLike wrote:
You can downlowd sample APK: 
https://sourceforge.net/projects/crengine/files/DlangUI/


DlangUI Tetris example now works ok on Android (arm, 
android4.4+)


Android5.02 ,Not ok, sorry.


Does it crash instantly or shows app GUI for some time?
Is your smartphone arm-based?
Couldn't you collect logs with `adb logcat`?



Re: DlangUI on Android

2016-04-22 Thread FrankLike via Digitalmars-d-announce

On Friday, 22 April 2016 at 12:05:52 UTC, Vadim Lopatin wrote:

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

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/


DlangUI Tetris example now works ok on Android (arm, 
android4.4+)


Android5.02 ,Not ok, sorry.


Re: DlangUI on Android

2016-04-22 Thread FrankLike 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.

[...]


Congratulations!


Re: DlangUI on Android

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

On Friday, 22 April 2016 at 13:41:52 UTC, Mike Parker wrote:
I was late, but I have since gotten this taken care of, so it's 
all golden.


FYI, for anyone facing a similar problem in the future and is 
hung up waiting on me to merge a pull request, the base loader 
in DerelictUtil allows overriding the default library names. So 
instead of a library like DLangUI requiring a patched Derelict 
package, you could do this:


version(Derelict_OS_Android)
DerelictFT.load("libft2.so");

You can pass multiple library names as a single, 
comma-separated string:


DerelictFT.load("libft2.so,libfreetype.so");

Or as an array (which is what the above is converted to 
internally anyway):


DerelictFT.load(["libft2.so", "libfreetype.so"]);


Thank you for your help! I've updated dlangui dub.json with 
latest DerelictFT.




Re: DlangUI on Android

2016-04-22 Thread Mike Parker via Digitalmars-d-announce

On Thursday, 21 April 2016 at 15:49:32 UTC, Vadim Lopatin wrote:

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




I was late, but I have since gotten this taken care of, so it's 
all golden.


FYI, for anyone facing a similar problem in the future and is 
hung up waiting on me to merge a pull request, the base loader in 
DerelictUtil allows overriding the default library names. So 
instead of a library like DLangUI requiring a patched Derelict 
package, you could do this:


version(Derelict_OS_Android)
DerelictFT.load("libft2.so");

You can pass multiple library names as a single, comma-separated 
string:


DerelictFT.load("libft2.so,libfreetype.so");

Or as an array (which is what the above is converted to 
internally anyway):


DerelictFT.load(["libft2.so", "libfreetype.so"]);


Re: XDG-APP and D

2016-04-22 Thread John Colvin 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.


Can someone explain to me how xdg-app provides a significantly 
different experience to static linking (in a language like C or 
D)? I guess there's the old "what about libc?".


Re: XDG-APP and D

2016-04-22 Thread Anonymouse via Digitalmars-d-announce

On Friday, 22 April 2016 at 10:24:08 UTC, Dicebot wrote:

On 04/21/2016 11:30 PM, Karabuta wrote:
This whole sandbox apps seem interesting. Canonical also 
talking about snaps :)


Meh, I can see why this concept is tempting for desktop systems 
but it makes me feel that 5 years from now I'll have to build 
my own Linux-From-Scratch distro to preserve kind of user 
experience I initially loved Linux for (minimal overhead, 
running same system on both your tiny media server and power 
desktop). "A runtime can be thought of as a /usr filesystem 
with fixed contents. When a bundled app gets run, the runtime 
it needs gets mounted at /usr." :(


I don't know at what point dynamic libraries came to be 
considered harmful, but it certainly seems to be the case now. 
And even if they are dynamic inside the container, every program 
shipping an individual copy of the libs means they might as well 
be statically compiled into it.


Re: XDG-APP and D

2016-04-22 Thread Dicebot via Digitalmars-d-announce
On 04/21/2016 11:30 PM, Karabuta wrote:
> This whole sandbox apps seem interesting. Canonical also talking about
> snaps :)

Meh, I can see why this concept is tempting for desktop systems but it
makes me feel that 5 years from now I'll have to build my own
Linux-From-Scratch distro to preserve kind of user experience I
initially loved Linux for (minimal overhead, running same system on both
your tiny media server and power desktop). "A runtime can be thought of
as a /usr filesystem with fixed contents. When a bundled app gets run,
the runtime it needs gets mounted at /usr." :(


Re: XDG-APP and D

2016-04-22 Thread FreeSlave 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.


How did he get build that weighs less than megabyte? When 
building with dub -b release and after stripping binary terminix 
still weighs 9 MB on my debian. And it's just a single binary, 
without resources and dynamic dependencies.