Re: So You Want To Write Your Own Language

2015-12-28 Thread Jacob Carlborg via Digitalmars-d-announce
On 2015-12-27 00:55, Walter Bright wrote: Many of the lowerings require semantic information that is not available from ASTs. Hence the "in theory" ;). It's hard to tell what would be possible to implement with AST macros without implementing the complete macro system and use it. Of course

Re: So You Want To Write Your Own Language

2015-12-26 Thread Jacob Carlborg via Digitalmars-d-announce
On 25/12/15 04:25, Jakob Jenkov wrote: I think it depends a lot on your personal preference. For instance, I am always annoyed about immutable types being forced upon me (okay, they wouldn't be forced, but I'd have to work to get rid of them). I like mutable types. Yeah, we don't need to flip

Re: So You Want To Write Your Own Language

2015-12-26 Thread Walter Bright via Digitalmars-d-announce
On 12/26/2015 4:05 AM, Jacob Carlborg wrote: There's a lot of stuff that Java doesn't have ;). In theory, all the lowerings that the compiler already does could be implemented with AST macros. "scope" is lowered to try-catch-finally, "foreach" is lowered to a "for" loop and so on. Many of the

Re: So You Want To Write Your Own Language

2015-12-24 Thread The Old One via Digitalmars-d-announce
On Thursday, 24 December 2015 at 16:37:29 UTC, Jacob Carlborg wrote: On 24/12/15 02:08, Walter Bright wrote: This has resurfaced on Reddit: https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/ In the comments, about the cluttered syntax. For the

Re: So You Want To Write Your Own Language

2015-12-24 Thread Joakim via Digitalmars-d-announce
On Friday, 25 December 2015 at 02:56:31 UTC, Walter Bright wrote: On 12/24/2015 5:25 AM, Joakim wrote: Ah, I see you have it here instead: https://www.digitalmars.com/articles/b90.html Any idea why it's not indexed? It's in the menu on the left. Never mind, I looked some more and it is in

Re: So You Want To Write Your Own Language

2015-12-24 Thread Walter Bright via Digitalmars-d-announce
On 12/24/2015 5:25 AM, Joakim wrote: Ah, I see you have it here instead: https://www.digitalmars.com/articles/b90.html Any idea why it's not indexed? It's in the menu on the left.

Re: So You Want To Write Your Own Language

2015-12-24 Thread Jakob Jenkov via Digitalmars-d-announce
On Thursday, 24 December 2015 at 16:37:29 UTC, Jacob Carlborg wrote: On 24/12/15 02:08, Walter Bright wrote: This has resurfaced on Reddit: https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/ In the comments, about the cluttered syntax. For the

Re: So You Want To Write Your Own Language

2015-12-24 Thread The Old One via Digitalmars-d-announce
On Thursday, 24 December 2015 at 13:03:03 UTC, Walter Bright wrote: On 12/23/2015 7:35 PM, Joakim wrote: On Thursday, 24 December 2015 at 01:08:38 UTC, Walter Bright wrote: Time to give your old articles a better home, I think, assuming you have the copyright or can get it.

Re: So You Want To Write Your Own Language

2015-12-24 Thread Jacob Carlborg via Digitalmars-d-announce
On 24/12/15 02:08, Walter Bright wrote: This has resurfaced on Reddit: https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/ In the comments, about the cluttered syntax. For the attributes, due to legacy reasons, it seems like D got all the defaults

Re: So You Want To Write Your Own Language

2015-12-24 Thread Jakob Jenkov via Digitalmars-d-announce
On Thursday, 24 December 2015 at 01:08:38 UTC, Walter Bright wrote: This has resurfaced on Reddit: https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/ Hi Walther, interesting article. I guess it's like with entrepreneurship in general. It's a lot of

Re: So You Want To Write Your Own Language

2015-12-24 Thread Joakim via Digitalmars-d-announce
On Thursday, 24 December 2015 at 13:21:45 UTC, Joakim wrote: On Thursday, 24 December 2015 at 13:03:03 UTC, Walter Bright wrote: On 12/23/2015 7:35 PM, Joakim wrote: [...] https://www.digitalmars.com/articles/b89.html That's a different article, the Gimli one, not the one with practical

Re: So You Want To Write Your Own Language

2015-12-24 Thread Walter Bright via Digitalmars-d-announce
On 12/23/2015 7:35 PM, Joakim wrote: On Thursday, 24 December 2015 at 01:08:38 UTC, Walter Bright wrote: This has resurfaced on Reddit: https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/ Will you be moving that article and your other work to your

Re: So You Want To Write Your Own Language

2015-12-24 Thread Walter Bright via Digitalmars-d-announce
On 12/24/2015 3:43 AM, Jakob Jenkov wrote: I am working on a cloud project where we will also need to implement a little language that can run inside our cloud. The constraints are quite different from a general purpose language in terms of compilation / interpretation time, memory usage etc. so

Re: So You Want To Write Your Own Language

2015-12-24 Thread Joakim via Digitalmars-d-announce
On Thursday, 24 December 2015 at 13:03:03 UTC, Walter Bright wrote: On 12/23/2015 7:35 PM, Joakim wrote: On Thursday, 24 December 2015 at 01:08:38 UTC, Walter Bright wrote: This has resurfaced on Reddit:

Re: So You Want To Write Your Own Language

2015-12-23 Thread BLM768 via Digitalmars-d-announce
On Thursday, 24 December 2015 at 01:08:38 UTC, Walter Bright wrote: This has resurfaced on Reddit: https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/ I might end up using this. It seems like there aren't many better ways to really learn about

Re: So You Want To Write Your Own Language

2015-12-23 Thread Joakim via Digitalmars-d-announce
On Thursday, 24 December 2015 at 01:08:38 UTC, Walter Bright wrote: This has resurfaced on Reddit: https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/ Will you be moving that article and your other work to your own domain? One reddit commenter says

So You Want To Write Your Own Language

2015-12-23 Thread Walter Bright via Digitalmars-d-announce
This has resurfaced on Reddit: https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/

Re: So You Want To Write Your Own Language

2015-12-23 Thread Minas Mina via Digitalmars-d-announce
On Thursday, 24 December 2015 at 01:08:38 UTC, Walter Bright wrote: This has resurfaced on Reddit: https://www.reddit.com/r/programming/comments/3xya5v/so_you_want_to_write_your_own_language/ Very good article, thanks!