December 23, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Walter Bright | On Wednesday, 23 December 2015 at 01:07:57 UTC, Walter Bright wrote:
> On 12/22/2015 10:29 AM, David Nadlinger wrote:
>> Not sure about how it arrives at the crazily unrolled loop, but no recursion in
>> sight anymore.
>
> It's doing tail recursion optimization, which turns the recursion into a loop.
> Then the loop is unrolled 8 times.
You can't to tail recursion in it's basic form because there is a multiplication at the end.
|
December 23, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Monday, 21 December 2015 at 17:28:51 UTC, Andrei Alexandrescu wrote: > https://www.reddit.com/r/programming/comments/3xq2ul/codedive_2015_talk_three_cool_things_about_d/ > > https://www.facebook.com/dlang.org/posts/1192267587453587 > > https://twitter.com/D_Programming/status/678989872367988741 > > > Andrei A clip of the comedian that Andrei refers to can be seen here: https://www.youtube.com/watch?v=uEY58fiSK8E |
December 23, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Abdulhaq | On 12/23/2015 09:06 AM, Abdulhaq wrote:
> A clip of the comedian that Andrei refers to can be seen here:
>
> https://www.youtube.com/watch?v=uEY58fiSK8E
I love that bit! -- Andrei
|
December 26, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu | On Monday, 21 December 2015 at 17:28:51 UTC, Andrei Alexandrescu wrote:
> https://www.reddit.com/r/programming/comments/3xq2ul/codedive_2015_talk_three_cool_things_about_d/
>
> https://www.facebook.com/dlang.org/posts/1192267587453587
>
> https://twitter.com/D_Programming/status/678989872367988741
>
>
> Andrei
Just watched the whole video, even though I've seen a prior version of this talk. It was different enough in the jokes and delivery that I still enjoyed it. Some notes:
1. Saying "Anywho" to segue to a new topic seems to be a verbal tic of Andrei's now.
2. It's claimed that scoped imports sped up D compilation: has this been measured? It would help if measurements were cited, as done for compile-time regex performance at the end.
3. It's better that you show usage examples of a PEGGED grammar now, as opposed to a previous talk that ended with the mixin slide, but I think it'd be best if you actually worked a toy example out and showed the generated D code, to really drive the point home. Even better if it wasn't something you could trivially write in D itself, like the arithmetic example you gave.
|
December 26, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Joakim | On 12/26/15 12:29 AM, Joakim wrote:
>
> 1. Saying "Anywho" to segue to a new topic seems to be a verbal tic of
> Andrei's now.
>
> 2. It's claimed that scoped imports sped up D compilation: has this been
> measured? It would help if measurements were cited, as done for
> compile-time regex performance at the end.
>
> 3. It's better that you show usage examples of a PEGGED grammar now, as
> opposed to a previous talk that ended with the mixin slide, but I think
> it'd be best if you actually worked a toy example out and showed the
> generated D code, to really drive the point home. Even better if it
> wasn't something you could trivially write in D itself, like the
> arithmetic example you gave.
Thanks for the feedback! I'll keep it in mind. -- Andrei
|
December 26, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu Attachments:
| I have a full Jade template parser in Pegged that I just need to finish the d code gen part, could it be an interesting example? On 26 Dec 2015 20:10, "Andrei Alexandrescu via Digitalmars-d-announce" < digitalmars-d-announce@puremagic.com> wrote: > On 12/26/15 12:29 AM, Joakim wrote: > >> >> 1. Saying "Anywho" to segue to a new topic seems to be a verbal tic of Andrei's now. >> >> 2. It's claimed that scoped imports sped up D compilation: has this been measured? It would help if measurements were cited, as done for compile-time regex performance at the end. >> >> 3. It's better that you show usage examples of a PEGGED grammar now, as opposed to a previous talk that ended with the mixin slide, but I think it'd be best if you actually worked a toy example out and showed the generated D code, to really drive the point home. Even better if it wasn't something you could trivially write in D itself, like the arithmetic example you gave. >> > > Thanks for the feedback! I'll keep it in mind. -- Andrei > |
December 26, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Rory McGuire | On 12/26/15 1:35 PM, Rory McGuire via Digitalmars-d-announce wrote:
> I have a full Jade template parser in Pegged that I just need to finish
> the d code gen part, could it be an interesting example?
Yes. How well-known is Jade? -- Andrei
|
December 26, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu Attachments:
| https://strongloop.com/strongblog/compare-javascript-templates-jade-mustache-dust/ Andrei Alexandrescu via Digitalmars-d-announce <digitalmars-d-announce@puremagic.com> napsal So, pro 26, 2015 v 8∶58 : > On 12/26/15 1:35 PM, Rory McGuire via Digitalmars-d-announce wrote: >> I have a full Jade template parser in Pegged that I just need to >> finish >> the d code gen part, could it be an interesting example? > > Yes. How well-known is Jade? -- Andrei |
December 27, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Andrei Alexandrescu Attachments:
| On 26 Dec 2015 22:00, "Andrei Alexandrescu via Digitalmars-d-announce" < digitalmars-d-announce@puremagic.com> wrote: > > On 12/26/15 1:35 PM, Rory McGuire via Digitalmars-d-announce wrote: >> >> I have a full Jade template parser in Pegged that I just need to finish the d code gen part, could it be an interesting example? > > > Yes. How well-known is Jade? -- Andrei It is well known. I thought handlebars was used more but those github numbers say different. Vibe.d had a template engine called diet which is almost like Jade. It is also completed so you might prefer that as an example. |
December 27, 2015 Re: Three Cool Things about D | ||||
---|---|---|---|---|
| ||||
Posted in reply to Daniel Kozak | On 12/26/15 4:17 PM, Daniel Kozak via Digitalmars-d-announce wrote:
> https://strongloop.com/strongblog/compare-javascript-templates-jade-mustache-dust/
>
> Andrei Alexandrescu via Digitalmars-d-announce
> <digitalmars-d-announce@puremagic.com> napsal So, pro 26, 2015 v 8∶58 :
>> On 12/26/15 1:35 PM, Rory McGuire via Digitalmars-d-announce wrote:
>>
>> I have a full Jade template parser in Pegged that I just need to
>> finish the d code gen part, could it be an interesting example?
>>
>> Yes. How well-known is Jade? -- Andrei
That looks pretty cool! -- Andrei
|
Copyright © 1999-2021 by the D Language Foundation