Re: Alexa Skill written in D

2017-01-08 Thread bachmeier via Digitalmars-d-announce

On Monday, 9 January 2017 at 01:28:22 UTC, Walter Bright wrote:

On 1/8/2017 2:58 PM, extrawurst wrote:

On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:

On 1/8/2017 1:15 PM, extrawurst wrote:
On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright 
wrote:

On 1/7/2017 5:17 AM, extrawurst wrote:
the last 2 weeks I jumped on a new toy project: An Alexa 
Skill written in D.


Post this to reddit!


Isn't it better someone else does that?


Yes. I can't because anything I post gets autobanned.


Someone shared it now:
https://www.reddit.com/r/d_language/comments/5msngh/alexa_skill_written_in_d/

Thanks bachmeier!


Unfortunately, it would be better off in the programming 
subreddit.


Definitely. I wasn't going to post it on a Sunday afternoon 
though.


Re: Alexa Skill written in D

2017-01-08 Thread Mike Parker via Digitalmars-d-announce

On Monday, 9 January 2017 at 01:46:18 UTC, extrawurst wrote:



Unfortunately, it would be better off in the programming 
subreddit.


Volunteers to post it there aswell ?


I'll do it in about 10 hours or so.


Re: Alexa Skill written in D

2017-01-08 Thread extrawurst via Digitalmars-d-announce

On Monday, 9 January 2017 at 01:28:22 UTC, Walter Bright wrote:

On 1/8/2017 2:58 PM, extrawurst wrote:

On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:

On 1/8/2017 1:15 PM, extrawurst wrote:
On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright 
wrote:

On 1/7/2017 5:17 AM, extrawurst wrote:
the last 2 weeks I jumped on a new toy project: An Alexa 
Skill written in D.


Post this to reddit!


Isn't it better someone else does that?


Yes. I can't because anything I post gets autobanned.


Someone shared it now:
https://www.reddit.com/r/d_language/comments/5msngh/alexa_skill_written_in_d/

Thanks bachmeier!


Unfortunately, it would be better off in the programming 
subreddit.


Volunteers to post it there aswell ?


Re: Alexa Skill written in D

2017-01-08 Thread Walter Bright via Digitalmars-d-announce

On 1/8/2017 2:58 PM, extrawurst wrote:

On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:

On 1/8/2017 1:15 PM, extrawurst wrote:

On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote:

On 1/7/2017 5:17 AM, extrawurst wrote:

the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D.


Post this to reddit!


Isn't it better someone else does that?


Yes. I can't because anything I post gets autobanned.


Someone shared it now:
https://www.reddit.com/r/d_language/comments/5msngh/alexa_skill_written_in_d/

Thanks bachmeier!


Unfortunately, it would be better off in the programming subreddit.


Re: Reminder - DConf 2017 is May 4-6 !!

2017-01-08 Thread Adam Wilson via Digitalmars-d-announce

On 1/6/17 4:46 PM, Walter Bright wrote:

It's 2017 already - sharpen your pencils and start on a proposal for a
presentation! Time is moving fast!


Just sent mine in!

--
Adam Wilson
IRC: LightBender
import quiet.dlang.dev;


Re: It's alive! D building D building D, all on Android

2017-01-08 Thread Ignacious via Digitalmars-d-announce
Just reporting here that I was able to get a hello world working 
using windows and UoW.


Some issues I had:

1. Had issues with outdated libraries. (ncurses, gcc, etc)
2. UoW Aniversary is based on Ubuntu 14, I was able to upgrade to 
16.04 following online sources. Lots of snags but eventually 
worked. (had to remove an file like 
50unattended-upgrades.ucf-dist to get everything to finish 
upgrading)


Basically search for solutions of each error online and 
eventually one will work. If anyone does this they could document 
it a bit better for others.


3. Installed android NDK without too much trouble.

4. Building with ldc2 works but must link with something like

$NDK/toolchains/llvm/prebuilt/linux-x86_64/bin/clang 
-Wl,-z,nocopyreloc --sysroot=$NDK/platforms/android-9/arch-arm 
-lgcc -gcc-toolchain 
$NDK/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64 
-target armv7-none-linux-androideabi -no-canonical-prefixes 
-fuse-ld=bfd -Wl,--fix-cortex-a8 -Wl,--no-undefined 
-Wl,-z,noexecstack -Wl,-z,relro -Wl,-z,now -fPIE -pie -mthumb 
-Wl,--export-dynamic -lc -lm test.o lib/libphobos2-ldc.a 
lib/libdruntime-ldc.a -o test


5. Push to android device and make sure to make executable or it 
will fail silently(e.g., chmod 755 test). Install a terminal 
emulator, obviously.


Haven't tried more complex examples but all the hard work seems 
to be paying off.


Thanks.




Re: Vision document for H1 2017

2017-01-08 Thread Jonathan M Davis via Digitalmars-d-announce
On Sunday, January 08, 2017 18:06:53 Brian via Digitalmars-d-announce wrote:
> On Wednesday, 4 January 2017 at 19:22:33 UTC, Andrei Alexandrescu
>
> wrote:
> > We release a brief Vision document summarizing the main goals
> > we plan to pursue in the coming six months. This half we are
> > focusing on three things: safety, lifetime management, and
> > static introspection.
> >
> > https://wiki.dlang.org/Vision/2017H1
> >
> >
> > Andrei
>
> I hope dlang can support QT5 binding

Binding to Qt in general is really nasty in comparison to a lot of C++ code,
since Qt does stuff like have its own preprocessor to generate additional
code so that signals and slots work. We had qtd (which did Qt4), but it
seems to have lost all its contributors and died off a few years ago, and it
seems to have used Qt Jambi stuff (or at least been based on it) and Qt
Jambi doesn't seem to have ever made the transition to Qt5. So, I don't know
how possible it would be to get qtd to work with Qt5, even if the original
contributors were still working on it (but it doesn't seem to compile now,
so it's not even currently viable for Qt4). I think that someone put up a
solution on code.dlang.org that involves QML, but I have no idea how well it
works or how complete it is (personally, I have less than zero interest in
QML).

I've actually started work on a solution for binding Qt5 to D, because I
have something I'm working on that uses Qt, and I'm sick of doing the GUI
portion in C++. So, I may end up releasing a Qt5 bindings project at some
point here, but I'm making no promises.

- Jonathan M Davis



Re: Alexa Skill written in D

2017-01-08 Thread extrawurst via Digitalmars-d-announce

On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:

On 1/8/2017 1:15 PM, extrawurst wrote:

On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote:

On 1/7/2017 5:17 AM, extrawurst wrote:
the last 2 weeks I jumped on a new toy project: An Alexa 
Skill written in D.


Post this to reddit!


Isn't it better someone else does that?


Yes. I can't because anything I post gets autobanned.


Someone shared it now: 
https://www.reddit.com/r/d_language/comments/5msngh/alexa_skill_written_in_d/


Thanks bachmeier!


Re: Alexa Skill written in D

2017-01-08 Thread Walter Bright via Digitalmars-d-announce

On 1/8/2017 1:15 PM, extrawurst wrote:

On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote:

On 1/7/2017 5:17 AM, extrawurst wrote:

the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D.


Post this to reddit!


Isn't it better someone else does that?


Yes. I can't because anything I post gets autobanned.



Re: Linker-hacking out the D runtime

2017-01-08 Thread Iain Buclaw via Digitalmars-d-announce
On 20 December 2016 at 12:24, Mike via Digitalmars-d-announce
 wrote:
> On Monday, 19 December 2016 at 19:53:06 UTC, Iain Buclaw wrote:
>
>> The compiler doesn't actually generate any code that peeks inside
>> TypeInfo.  It only generates the reference to the right typeinfo to pass to
>> library runtime functions -  or on request via typeid().  It doesn't
>> actually care about the data stored inside.  And that's the angle I've taken
>> when laying out the actual data - if you provide the fields we want to
>> populate, then we'll populate them.  If you omit a few, then the compiler
>> won't bother with them.  Because at the end of the day, it's druntime
>> library that uses and makes sense of the TypeInfo data provided.  The
>> compile just says: "Well, this is as much as I'm willing to tell you about
>> the type."
>
>
> Ok, that's interesting, but what if you don't want TypeInfo at all?  Can you
> omit the TypeInfo structure entirely from object.d?  Or perhaps you still
> need to declare it in object.d, but since the compiler doesn't find any
> fields to populate, it results in an empty struct?  I'd really hate to have
> to add empty TypeInfo_XXX classes to my object.d though.
>

Yeah, there are two logical steps that need ratifying.

1) -fno-rtti should be a flag that is honoured by the compiler.
2) Runtime functions that "lower" to a C function call should not
generate RTTI if all information about the type is known at
compile-time.

There are ideas floating around to improve [2], but for the time being
however, marking all functions as @nogc catches almost all cases where
this happens.


Re: Alexa Skill written in D

2017-01-08 Thread extrawurst via Digitalmars-d-announce

On Sunday, 8 January 2017 at 18:51:45 UTC, Walter Bright wrote:

On 1/7/2017 5:17 AM, extrawurst wrote:
the last 2 weeks I jumped on a new toy project: An Alexa Skill 
written in D.


Post this to reddit!


Isn't it better someone else does that?

~Stephan


Re: Alexa Skill written in D

2017-01-08 Thread Walter Bright via Digitalmars-d-announce

On 1/7/2017 5:17 AM, extrawurst wrote:

the last 2 weeks I jumped on a new toy project: An Alexa Skill written in D.


Post this to reddit!


Re: Alexa Skill written in D

2017-01-08 Thread extrawurst via Digitalmars-d-announce

On Sunday, 8 January 2017 at 16:22:09 UTC, docandrew wrote:

On Saturday, 7 January 2017 at 13:17:35 UTC, extrawurst wrote:

Hi guys,
the last 2 weeks I jumped on a new toy project: An Alexa Skill 
written in D.


It is a skill that allows me to voice control my TV receiver 
with commands like:



[...]


The project and all the source code sits on github:
https://github.com/Extrawurst/alexa-openwebif

I created two new dub libraries that this app uses:
https://github.com/Extrawurst/openwebif-client-d
https://github.com/Extrawurst/alexa-skill-kit-d

*openwebif-client-d* is the REST api that my receiver speaks.
*alexa-skill-kit-d* is the base class and the types that 
amazon throws at when the user activated your skill.


you can find the blog post here:
http://blog.extrawurst.org/programming/dlang/alexa/2017/01/06/alexa-in-d.html

Feel free to share, to spread the word about using D for this 
fancy new tech.


~Stephan


Good work! I've been using my Echo for a little while now and 
it's great to know I can start using D with it! Great write-up 
on the project, thanks for sharing this.


-Doc


Nice, good to know there are just two problems with that:
1) I am on Mac, so no luck here
2) I needed to be as close to the Amazon Linux as possible and 
that unfortunately is rhel based :( did not test Ubuntu though


~stephan


Re: Alexa Skill written in D

2017-01-08 Thread Andre Pany via Digitalmars-d-announce

On Saturday, 7 January 2017 at 13:17:35 UTC, extrawurst wrote:

Hi guys,
the last 2 weeks I jumped on a new toy project: An Alexa Skill 
written in D.


It is a skill that allows me to voice control my TV receiver 
with commands like:



Alexa, ask Telly to go to standby
Alexa, ask Telly what is currently running


The project and all the source code sits on github:
https://github.com/Extrawurst/alexa-openwebif

I created two new dub libraries that this app uses:
https://github.com/Extrawurst/openwebif-client-d
https://github.com/Extrawurst/alexa-skill-kit-d

*openwebif-client-d* is the REST api that my receiver speaks.
*alexa-skill-kit-d* is the base class and the types that amazon 
throws at when the user activated your skill.


you can find the blog post here:
http://blog.extrawurst.org/programming/dlang/alexa/2017/01/06/alexa-in-d.html

Feel free to share, to spread the word about using D for this 
fancy new tech.


~Stephan


Very interesting article, thanks for sharing. For your info, you 
can directly compile linux binaries from windows 10 by using the 
ubuntu sub system. No need to use vagrant.


Kind regards
André


Re: Vision document for H1 2017

2017-01-08 Thread Brian via Digitalmars-d-announce
On Wednesday, 4 January 2017 at 19:22:33 UTC, Andrei Alexandrescu 
wrote:
We release a brief Vision document summarizing the main goals 
we plan to pursue in the coming six months. This half we are 
focusing on three things: safety, lifetime management, and 
static introspection.


https://wiki.dlang.org/Vision/2017H1


Andrei


Dlang should strive to improve the standard library, such as 
Python, go, rust.


Re: Vision document for H1 2017

2017-01-08 Thread bitwise via Digitalmars-d-announce

On Saturday, 7 January 2017 at 19:55:30 UTC, Martin Nowak wrote:

On 01/05/2017 11:00 AM, Basile B. wrote:
I don't known what did you decide in intern but when the 
discussion
between users was hot (just after version 2.071.1 I think) 
I've proposed

that:
https://github.com/BBasile/DIPs/blob/3d5e3f81c541c6e23c69555a230b4d42a7bb6de6/DIPs/DIP8484.md


This is superfluous by now. We figured that allowing access to 
private
fields wouldn't clash with important optimizations, so it can 
be allowed

via traits.
The visibility of allMembers was adjusted in
https://github.com/dlang/dmd/pull/6078.
All access checks will go away once the visibility changes have 
been
fully deprecated. So far those changes were adopted fairly slow 
(not
even phobos has fixed them all), hence we haven't yet switched 
over to

the new visibility semantics.

-Martin


Awesome!

I tried to write a whole-module reflection tool, but was unable 
to finish satisfactorily due to the requirement that code 
actually be included in the module itself in order to reflect all 
it's members.


Re: Alexa Skill written in D

2017-01-08 Thread docandrew via Digitalmars-d-announce

On Saturday, 7 January 2017 at 13:17:35 UTC, extrawurst wrote:

Hi guys,
the last 2 weeks I jumped on a new toy project: An Alexa Skill 
written in D.


It is a skill that allows me to voice control my TV receiver 
with commands like:



Alexa, ask Telly to go to standby
Alexa, ask Telly what is currently running


The project and all the source code sits on github:
https://github.com/Extrawurst/alexa-openwebif

I created two new dub libraries that this app uses:
https://github.com/Extrawurst/openwebif-client-d
https://github.com/Extrawurst/alexa-skill-kit-d

*openwebif-client-d* is the REST api that my receiver speaks.
*alexa-skill-kit-d* is the base class and the types that amazon 
throws at when the user activated your skill.


you can find the blog post here:
http://blog.extrawurst.org/programming/dlang/alexa/2017/01/06/alexa-in-d.html

Feel free to share, to spread the word about using D for this 
fancy new tech.


~Stephan


Good work! I've been using my Echo for a little while now and 
it's great to know I can start using D with it! Great write-up on 
the project, thanks for sharing this.


-Doc


Re: Reminder - DConf 2017 is May 4-6 !!

2017-01-08 Thread Nordlöw via Digitalmars-d-announce

On Saturday, 7 January 2017 at 01:06:49 UTC, Stefan Koch wrote:

new CTFE engine or the future my plan for O(N log N) templates!


What do you mean?
A performance improvement?
From quadratic?