Re: Alexa Skill written in D
On Wednesday, 11 January 2017 at 12:16:06 UTC, extrawurst wrote: I wanted to ask you if you thought about using another platform but nodejs wrap the D exe in lambda. They support java and C# 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
Re: Alexa Skill written in D
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. I think at the time C# was not possible, and not sure if java 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 - just a question of latency to start. Will Java or C# be 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
Re: Alexa Skill written in D
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.
Re: Alexa Skill written in D
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 but nodejs wrap the D exe in lambda. They support java and C# aswell. I was wondering if it is a performance difference to use them instead ?! Looking forward to your input. Cheers, Stephan Hi Stephan. I think at the time C# was not possible, and not sure if java 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 - just a question of latency to start. Will Java or C# be better in those respects given time needed to start the VM? Laeeth.
Re: Alexa Skill written in D
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 ...").
Re: Alexa Skill written in D
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.
Re: Alexa Skill written in D
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 but nodejs wrap the D exe in lambda. They support java and C# aswell. I was wondering if it is a performance difference to use them instead ?! Looking forward to your input. Cheers, Stephan
Re: Alexa Skill written in D
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?
Re: Alexa Skill written in D
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.
Re: Alexa Skill written in D
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
Re: Alexa Skill written in D
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/
Re: Alexa Skill written in D
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
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
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
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: Alexa Skill written in D
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
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: Alexa Skill written in D
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
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
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
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: Alexa Skill written in D
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
Alexa Skill written in D
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