www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.announce - Alexa Skill written in D

reply extrawurst <stephan extrawurst.org> writes:
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
Jan 07 2017
next sibling parent reply docandrew <x x.com> writes:
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
Jan 08 2017
parent extrawurst <stephan extrawurst.org> writes:
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
Jan 08 2017
prev sibling next sibling parent Andre Pany <andre s-e-a-p.de> writes:
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é
Jan 08 2017
prev sibling next sibling parent reply Walter Bright <newshound2 digitalmars.com> writes:
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!
Jan 08 2017
parent reply extrawurst <stephan extrawurst.org> writes:
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
Jan 08 2017
parent reply Walter Bright <newshound2 digitalmars.com> writes:
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.
Jan 08 2017
next sibling parent reply extrawurst <stephan extrawurst.org> writes:
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!
Jan 08 2017
parent reply Walter Bright <newshound2 digitalmars.com> writes:
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.
Jan 08 2017
next sibling parent reply extrawurst <stephan extrawurst.org> writes:
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 ?
Jan 08 2017
parent reply Mike Parker <aldacron gmail.com> writes:
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.
Jan 08 2017
parent reply Mike Parker <aldacron gmail.com> writes:
On Monday, 9 January 2017 at 02:44:33 UTC, Mike Parker wrote:
 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.
Done: https://www.reddit.com/r/programming/comments/5mxm25/alexa_skill_written_in_d/
Jan 09 2017
parent extrawurst <stephan extrawurst.org> writes:
On Monday, 9 January 2017 at 13:26:04 UTC, Mike Parker wrote:
 On Monday, 9 January 2017 at 02:44:33 UTC, Mike Parker wrote:
 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.
Done: https://www.reddit.com/r/programming/comments/5mxm25/alexa_skill_written_in_d/
Awesome! Thanks
Jan 09 2017
prev sibling parent bachmeier <no spam.net> writes:
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.
Jan 08 2017
prev sibling parent reply Chris <wendlec tcd.ie> writes:
On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:

 Yes. I can't because anything I post gets autobanned.
Why is that?
Jan 11 2017
parent reply Walter Bright <newshound2 digitalmars.com> writes:
On 1/11/2017 2:09 AM, Chris wrote:
 On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:
 Yes. I can't because anything I post gets autobanned.
Why is that?
Probably because I posted links to articles I wrote myself. I didn't know at the time it was against their rules.
Jan 11 2017
parent reply Chris <wendlec tcd.ie> writes:
On Wednesday, 11 January 2017 at 19:26:06 UTC, Walter Bright 
wrote:
 On 1/11/2017 2:09 AM, Chris wrote:
 On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:
 Yes. I can't because anything I post gets autobanned.
Why is that?
Probably because I posted links to articles I wrote myself. I didn't know at the time it was against their rules.
In that case it might help to talk to them and explain that you weren't aware of that rule at the time. It will also clear your name in case anyone wants to attack you personally ("Walter Bright how got banned from ...").
Jan 12 2017
parent Walter Bright <newshound2 digitalmars.com> writes:
On 1/12/2017 2:08 AM, Chris wrote:
 On Wednesday, 11 January 2017 at 19:26:06 UTC, Walter Bright wrote:
 On 1/11/2017 2:09 AM, Chris wrote:
 On Sunday, 8 January 2017 at 22:54:58 UTC, Walter Bright wrote:
 Yes. I can't because anything I post gets autobanned.
Why is that?
Probably because I posted links to articles I wrote myself. I didn't know at the time it was against their rules.
In that case it might help to talk to them and explain that you weren't aware of that rule at the time. It will also clear your name in case anyone wants to attack you personally ("Walter Bright how got banned from ...").
I'm not worried about it, I'm happy to let others post.
Feb 12 2017
prev sibling parent reply Laeeth Isharc <laeethnospam nospam.laeeth.com> writes:
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
Thank you for doing this - really happy about it. A perfect open source moment - I was wondering about how to go about getting Alexa working. But I had shared the AWS Lambda stuff which proved useful for you, and now you solved the problem for me and helped others on top. Laeeth.
Jan 10 2017
parent reply extrawurst <stephan extrawurst.org> writes:
On Tuesday, 10 January 2017 at 11:46:22 UTC, Laeeth Isharc 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:

 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
Thank you for doing this - really happy about it. A perfect open source moment - I was wondering about how to go about getting Alexa working. But I had shared the AWS Lambda stuff which proved useful for you, and now you solved the problem for me and helped others on top. Laeeth.
Hi Laeeth, thanks again for your post about aws lambda + D - wouldn't have thought about this whole thing otherwise. I wanted to ask you if you thought about using another platform aswell. I was wondering if it is a performance difference to use them instead ?! Looking forward to your input. Cheers, Stephan
Jan 11 2017
next sibling parent reply Laeeth Isharc <laeethnospam nospam-kaleidic.io> writes:
On Wednesday, 11 January 2017 at 12:16:06 UTC, extrawurst wrote:
 On Tuesday, 10 January 2017 at 11:46:22 UTC, Laeeth Isharc 
 wrote:
 On Saturday, 7 January 2017 at 13:17:35 UTC, extrawurst wrote:
 Thank you for doing this - really happy about it.  A perfect 
 open source moment - I was wondering about how to go about 
 getting Alexa working.  But I had shared the AWS Lambda stuff 
 which proved useful for you, and now you solved the problem 
 for me and helped others on top.


 Laeeth.
Hi Laeeth, thanks again for your post about aws lambda + D - wouldn't have thought about this whole thing otherwise. I wanted to ask you if you thought about using another platform aswell. I was wondering if it is a performance difference to use them instead ?! Looking forward to your input. Cheers, Stephan
Hi Stephan. was. I don't know those languages so well, but if someone would like to try and see if it makes a difference, I would be happy to grant them rights to co-maintain the repo and add those as options. If I recall right, there shouldn't be a performance difference - in those respects given time needed to start the VM? Laeeth.
Feb 11 2017
parent extrawurst <stephan extrawurst.org> writes:
On Sunday, 12 February 2017 at 07:06:00 UTC, Laeeth Isharc wrote:
 On Wednesday, 11 January 2017 at 12:16:06 UTC, extrawurst wrote:
 [...]
 [...]
Hi Stephan. was. I don't know those languages so well, but if someone would like to try and see if it makes a difference, I would be happy to grant them rights to co-maintain the repo and add those as options. If I recall right, there shouldn't be a performance difference better in those respects given time needed to start the VM? Laeeth.
That is exactly what I want to find out. After all lambda is pay as you use (memory/cpu) and if either vm (jvm, .net or node) starts up faster or with a smaller footprint it pays off. Ceers, Stephan
Feb 12 2017
prev sibling parent Chris Turner <j.chris.turner gmail.com> writes:
On Wednesday, 11 January 2017 at 12:16:06 UTC, extrawurst wrote:
 I wanted to ask you if you thought about using another platform 

 aswell. I was wondering if it is a performance difference to 
 use them instead ?!
 Looking forward to your input.

 Cheers,
 Stephan
I'm not sure about actual performance differences, but I found an interesting project for running Go in lambda, that uses the Python runtime, using C bindings. Might be a good fit here. https://github.com/eawsy/aws-lambda-go-shim Chris
Feb 21 2017