Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Saturday, 11 June 2016 at 12:19:52 UTC, Jonathan M Davis wrote: LOL. 10x that would be cheap in the US, and I don't think that your average school will let folks sit in on courses (though some will). For your average college in the US, I would only expect anyone to take classes if they're

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-11 Thread ketmar via Digitalmars-d
On Friday, 10 June 2016 at 15:35:32 UTC, jmh530 wrote: On Friday, 10 June 2016 at 15:14:02 UTC, ketmar wrote: 1. this is heavily OT. ;-) I didn't forget to mark it! :-) 2. you may take a look at my gml engine. it has clearly separated language parser and AST builder (gaem.parser), and

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-11 Thread Jonathan M Davis via Digitalmars-d
On Saturday, June 11, 2016 08:06:21 Ola Fosheim Grøstad via Digitalmars-d wrote: > On Friday, 10 June 2016 at 18:59:02 UTC, Jonathan M Davis wrote: > > then as it is later. In some ways, it would actually be very > > beneficial to actually go back to school to study that stuff > > after having

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-11 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 10 June 2016 at 18:59:02 UTC, Jonathan M Davis wrote: then as it is later. In some ways, it would actually be very beneficial to actually go back to school to study that stuff after having programmed professionally for a while, but that's a pain to pull off time-wise, and the

[OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread Jonathan M Davis via Digitalmars-d
On Friday, June 10, 2016 17:20:29 Ola Fosheim Grøstad via Digitalmars-d wrote: > On Friday, 10 June 2016 at 15:27:03 UTC, Jonathan M Davis wrote: > > Most developers have titles like "Software Engineer" or "Senior > > Softweer Engineer." They'e frequently called programmers and/or > > software

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread jmh530 via Digitalmars-d
On Friday, 10 June 2016 at 17:59:15 UTC, Adam D. Ruppe wrote: What's the PrototypeObject sc I see everywhere doing? sc is short for "scope" - it refers to the chain of local variables. So consider the following: [snip] Cool. Thanks.

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 10 June 2016 at 17:36:02 UTC, jmh530 wrote: Ah, it produces mixin("1+2") and evaluates that. Sort of, 1 and 2 are both runtime variables there so it really produces mixin("a+b") after setting a = 1 and b = 2 above. But yeah, that's the idea - it just hoists that mixin to runtime

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread jmh530 via Digitalmars-d
On Friday, 10 June 2016 at 17:02:06 UTC, Adam D. Ruppe wrote: https://github.com/adamdruppe/arsd/blob/master/script.d#L879 The function is pretty simple: interpret the left hand side (here it is 1, so it yields int(1)), interpret the right hand side (yields int(2)), combine them with the

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 10 June 2016 at 15:03:30 UTC, jmh530 wrote: Let's say you have something simple like 1+2, you would build an AST that looks something like + / \ 1 2 What would be the next step? https://github.com/adamdruppe/arsd/blob/master/script.d#L879 The function is pretty simple:

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread Adam D. Ruppe via Digitalmars-d
On Friday, 10 June 2016 at 15:35:32 UTC, jmh530 wrote: On Friday, 10 June 2016 at 15:14:02 UTC, ketmar wrote: 1. this is heavily OT. ;-) I didn't forget to mark it! :-) Well, yeah, we should start a new thread, but compiler programming isn't really off topic at all on a forum where we

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread jmh530 via Digitalmars-d
On Friday, 10 June 2016 at 15:40:45 UTC, Wyatt wrote: He linked it earlier: http://repo.or.cz/gaemu.git/tree/HEAD:/gaem/parser -Wyatt Cheers.

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread Wyatt via Digitalmars-d
On Friday, 10 June 2016 at 15:35:32 UTC, jmh530 wrote: On Friday, 10 June 2016 at 15:14:02 UTC, ketmar wrote: 2. you may take a look at my gml engine. it has clearly separated language parser and AST builder (gaem.parser), and AST->VM compiler (gaem.runner/compiler.d). I couldn't for the

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread jmh530 via Digitalmars-d
On Friday, 10 June 2016 at 15:14:02 UTC, ketmar wrote: 1. this is heavily OT. ;-) I didn't forget to mark it! :-) 2. you may take a look at my gml engine. it has clearly separated language parser and AST builder (gaem.parser), and AST->VM compiler (gaem.runner/compiler.d). I couldn't for

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread Ola Fosheim Grøstad via Digitalmars-d
On Friday, 10 June 2016 at 15:03:30 UTC, jmh530 wrote: On Friday, 10 June 2016 at 14:25:37 UTC, Adam D. Ruppe wrote: To make an interpreter, you can just add a method to the AST objects that interprets and gives a result boom, it works! Given my limited knowledge of

Re: [OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread ketmar via Digitalmars-d
On Friday, 10 June 2016 at 15:03:30 UTC, jmh530 wrote: On Friday, 10 June 2016 at 14:25:37 UTC, Adam D. Ruppe wrote: To make an interpreter, you can just add a method to the AST objects that interprets and gives a result boom, it works! Given my limited knowledge of

[OT] Re: Andrei's list of barriers to D adoption

2016-06-10 Thread jmh530 via Digitalmars-d
On Friday, 10 June 2016 at 14:25:37 UTC, Adam D. Ruppe wrote: To make an interpreter, you can just add a method to the AST objects that interprets and gives a result boom, it works! Given my limited knowledge of compilers/interpreters, this part kind of seems like magic. Let's say you