Re: So, You Want To Write Your Own Programming Language?

2014-02-04 Thread Gary Willoughby
On Tuesday, 4 February 2014 at 07:43:36 UTC, Walter Bright wrote: On 1/21/2014 8:29 PM, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Just showed up on Hacker News: https://news.ycombinator.com/item?id=7172971 A

Re: So, You Want To Write Your Own Programming Language?

2014-02-04 Thread Andrei Alexandrescu
On 2/4/14, 8:59 AM, Gary Willoughby wrote: On Tuesday, 4 February 2014 at 07:43:36 UTC, Walter Bright wrote: On 1/21/2014 8:29 PM, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Just showed up on Hacker News:

Re: So, You Want To Write Your Own Programming Language?

2014-02-04 Thread Walter Bright
On 2/4/2014 10:54 AM, Andrei Alexandrescu wrote: On 2/4/14, 8:59 AM, Gary Willoughby wrote: On Tuesday, 4 February 2014 at 07:43:36 UTC, Walter Bright wrote: On 1/21/2014 8:29 PM, Walter Bright wrote:

Re: So, You Want To Write Your Own Programming Language?

2014-02-04 Thread Andrei Alexandrescu
On 2/4/14, 12:52 PM, Walter Bright wrote: On 2/4/2014 10:54 AM, Andrei Alexandrescu wrote: On 2/4/14, 8:59 AM, Gary Willoughby wrote: On Tuesday, 4 February 2014 at 07:43:36 UTC, Walter Bright wrote: On 1/21/2014 8:29 PM, Walter Bright wrote:

Re: So, You Want To Write Your Own Programming Language?

2014-02-03 Thread Walter Bright
On 1/21/2014 8:29 PM, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Just showed up on Hacker News: https://news.ycombinator.com/item?id=7172971

Re: So, You Want To Write Your Own Programming Language?

2014-01-31 Thread Kagamin
On Tuesday, 28 January 2014 at 00:48:48 UTC, Chris Cain wrote: It doesn't make sense for someone to walk up (or be given a ride to by a friend) to the DMV wait 30 minutes and once they do all the work to get the license say Wait, no, I refuse this after all. Pretty dramatic action, if he,

Re: So, You Want To Write Your Own Programming Language?

2014-01-27 Thread Kagamin
On Thursday, 23 January 2014 at 10:24:23 UTC, Chris wrote: A good example are headlines. A classic is Driver refused license. Now, everybody will assume that it was not the driver who refused the license (default assumption or the _unmarked case_). Why it's not a driver who refused a

Re: So, You Want To Write Your Own Programming Language?

2014-01-27 Thread Chris Cain
On Monday, 27 January 2014 at 09:19:25 UTC, Kagamin wrote: On Thursday, 23 January 2014 at 10:24:23 UTC, Chris wrote: A good example are headlines. A classic is Driver refused license. Now, everybody will assume that it was not the driver who refused the license (default assumption or the

Re: So, You Want To Write Your Own Programming Language?

2014-01-24 Thread Chris
On Thursday, 23 January 2014 at 20:11:15 UTC, Nick Sabalausky wrote: On 1/23/2014 5:24 AM, Chris wrote: I find it extremely interesting how the human mind (not just language) is reflected in programming languages. They way I usually see it is that the human mind HAS to be reflected in

Re: So, You Want To Write Your Own Programming Language?

2014-01-24 Thread Mike James
On Thursday, 23 January 2014 at 10:24:23 UTC, Chris wrote: On Wednesday, 22 January 2014 at 18:46:06 UTC, Walter Bright wrote: On 1/22/2014 3:40 AM, Chris wrote: Syntax is getting simplified due to the fact that the listener knows what we mean, e.g. buy one get one free. I wonder to what

Re: So, You Want To Write Your Own Programming Language?

2014-01-24 Thread Steve Teale
On Wednesday, 22 January 2014 at 04:29:05 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Nice Walter. You're almost as down-to-earth as me. I love what you have achieved.

Re: So, You Want To Write Your Own Programming Language?

2014-01-24 Thread Walter Bright
On 1/24/2014 9:56 AM, Steve Teale wrote: On Wednesday, 22 January 2014 at 04:29:05 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Nice Walter. You're almost as down-to-earth as me. I love what you have achieved.

Re: So, You Want To Write Your Own Programming Language?

2014-01-23 Thread Chris
On Wednesday, 22 January 2014 at 18:46:06 UTC, Walter Bright wrote: On 1/22/2014 3:40 AM, Chris wrote: Syntax is getting simplified due to the fact that the listener knows what we mean, e.g. buy one get one free. I wonder to what extent languages will be simplified one day. But this is a

Re: So, You Want To Write Your Own Programming Language?

2014-01-23 Thread Nick Sabalausky
On 1/23/2014 5:24 AM, Chris wrote: I find it extremely interesting how the human mind (not just language) is reflected in programming languages. They way I usually see it is that the human mind HAS to be reflected in programming languages as that's the whole point. We already knew how to

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Jacob Carlborg
On 2014-01-22 05:29, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ From the article: Regex is just the wrong tool for lexing and parsing. I'm wonder why is there so many books about implementing compilers that

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread bearophile
Walter Bright: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Thank you for the simple nice article. The poisoning approach. [...] This is the approach we've been using in the D compiler, and are very pleased with the results. Yet,

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Uplink_Coder
On Wednesday, 22 January 2014 at 10:36:31 UTC, Jacob Carlborg wrote: I'm wonder why is there so many books about implementing compilers that spends, usually, quite a large chapter about regular expressions? I wonder about that too. For anything halfway useful regex has too much

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Chris
On Wednesday, 22 January 2014 at 04:29:05 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ A good syntax needs redundancy in order to diagnose errors and give good error messages. This is also true of natural

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Paulo Pinto
On Wednesday, 22 January 2014 at 04:29:05 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Great article!

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread bearophile
Chris: A good syntax needs redundancy in order to diagnose errors and give good error messages. I'd like to measure this statement experimentally: are error messages in Go and Scala any worse because of the optional use of semicolons? My initial supposition is that the answer is negative.

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Don
On Wednesday, 22 January 2014 at 04:29:05 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Great article. I was surprised that you mentioned lowering positively, though. I think from DMD we have enough experience

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Casper Færgemand
On Wednesday, 22 January 2014 at 11:59:30 UTC, bearophile wrote: I'd like to measure this statement experimentally: are error messages in Go and Scala any worse because of the optional use of semicolons? My initial supposition is that the answer is negative. Error messages in SML are either

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Dejan Lekic
On Wednesday, 22 January 2014 at 10:38:40 UTC, bearophile wrote: In Haskell the GHC compiler goes one step further, it translates all the Haskell code into an intermediate code named Core, that is not the language of a virtual machine, it's still a functional language, but it's simpler, lot

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Don
On Wednesday, 22 January 2014 at 10:38:40 UTC, bearophile wrote: Walter Bright: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Thank you for the simple nice article. The poisoning approach. [...] This is the approach we've been using

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Walter Bright
On 1/22/2014 4:53 AM, Don wrote: On Wednesday, 22 January 2014 at 04:29:05 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Great article. I was surprised that you mentioned lowering positively, though. I think

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Walter Bright
On 1/22/2014 3:40 AM, Chris wrote: Syntax is getting simplified due to the fact that the listener knows what we mean, e.g. buy one get one free. I wonder to what extent languages will be simplified one day. But this is a topic for a whole book ... There was this article recently:

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread bearophile
Don: Could you give an example? We've tried very hard to avoid useless error messages, there should only be one error message for each bug in the code. Parser errors still generate a cascade of junk, and the cannot deduce function from argument types message is still painful -- is that what

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Paulo Pinto
Am 22.01.2014 14:28, schrieb Dejan Lekic: On Wednesday, 22 January 2014 at 10:38:40 UTC, bearophile wrote: In Haskell the GHC compiler goes one step further, it translates all the Haskell code into an intermediate code named Core, that is not the language of a virtual machine, it's still a

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Andrei Alexandrescu
On 1/22/14 4:53 AM, Don wrote: On Wednesday, 22 January 2014 at 04:29:05 UTC, Walter Bright wrote: http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/ Great article. I was surprised that you mentioned lowering positively, though. I think from

Re: So, You Want To Write Your Own Programming Language?

2014-01-22 Thread Walter Bright
On 1/22/2014 3:21 PM, Andrei Alexandrescu wrote: My understanding is that your concern is related to the stage at which lowering is performed, which I'd agree with. I also think we did a slap-dash job of it, not that the concept is wrong.

So, You Want To Write Your Own Programming Language?

2014-01-21 Thread Walter Bright
http://www.reddit.com/r/programming/comments/1vtm2l/so_you_want_to_write_your_own_language_dr_dobbs/