Re: D repl

2013-07-01 Thread Daniel Murphy
"bearophile" wrote in message news:aknmrnhodledtmfyp...@forum.dlang.org... > Dicebot: > >> Can you link his comment? That sounds weird. > > It was years ago, maybe more than three years ago. It's not easy to find. > I have found discussions about this topic, but not comments from Walter: > > htt

Re: D repl

2013-06-30 Thread Jacob Carlborg
On 2013-06-30 20:00, deadalnix wrote: Compiler as a library, usual rant, no need to repeat. Agree. -- /Jacob Carlborg

Re: D repl

2013-06-30 Thread Dicebot
Well, at least point about testing does not really matter anymore - it is automated ;) I wonder what Walter does think about it now - libclang has pretty much proven how awesome compiler front-end as library can be. Was one of main reasons for me to switch from gcc for daily C++ stuff. On Sun

Re: D repl

2013-06-30 Thread deadalnix
On Sunday, 30 June 2013 at 15:31:19 UTC, SomeDude wrote: On Sunday, 30 June 2013 at 13:31:02 UTC, bearophile wrote: cal: I uploaded a small demo of a D repl i've been playing with, In past I have seen D repls, they come and then they fade away, regardless how much work they have required to

Re: D repl

2013-06-30 Thread bearophile
Dicebot: Can you link his comment? That sounds weird. It was years ago, maybe more than three years ago. It's not easy to find. I have found discussions about this topic, but not comments from Walter: http://www.digitalmars.com/d/archives/digitalmars/D/D_Compiler_as_a_Library_164027.html

Re: D repl

2013-06-30 Thread David
Am 30.06.2013 18:36, schrieb bearophile: > David: > >> Crazy idea... CTFE is basically done with a D interpreter isn't it? >> Can't this be used as library to implement a REPL? > > In a REPL you want persistent state too. CTFE deletes its state once > it's done. Yeah I know, but having a complet

Re: D repl

2013-06-30 Thread Dicebot
On Sunday, 30 June 2013 at 16:36:42 UTC, bearophile wrote: And in a past request of mine I've seen that Walter is against the idea of "compiler as a library" (as in C#). Can you link his comment? That sounds weird.

Re: D repl

2013-06-30 Thread bearophile
David: Crazy idea... CTFE is basically done with a D interpreter isn't it? Can't this be used as library to implement a REPL? In a REPL you want persistent state too. CTFE deletes its state once it's done. And in a past request of mine I've seen that Walter is against the idea of "compile

Re: D repl

2013-06-30 Thread David
Am 30.06.2013 15:31, schrieb bearophile: > cal: > >> I uploaded a small demo of a D repl i've been playing with, > > In past I have seen D repls, they come and then they fade away, > regardless how much work they have required to be created, or how much > refined they are. The fact they have appe

Re: D repl

2013-06-30 Thread SomeDude
On Sunday, 30 June 2013 at 15:35:11 UTC, bearophile wrote: SomeDude: It's cool, but it's yet another tool to maintain. Thus their lack of enthusiasm I guess. Unless someone comes forward and is ready to maintain the repl, in which case I think everyone would applaud. I understand and I agre

Re: D repl

2013-06-30 Thread bearophile
SomeDude: It's cool, but it's yet another tool to maintain. Thus their lack of enthusiasm I guess. Unless someone comes forward and is ready to maintain the repl, in which case I think everyone would applaud. I understand and I agree, thank you for putting me back on the ground. Also, I rem

Re: D repl

2013-06-30 Thread SomeDude
On Sunday, 30 June 2013 at 13:31:02 UTC, bearophile wrote: cal: I uploaded a small demo of a D repl i've been playing with, In past I have seen D repls, they come and then they fade away, regardless how much work they have required to be created, or how much refined they are. The fact they

Re: D repl

2013-06-30 Thread MattCoder
On Sunday, 30 June 2013 at 13:31:02 UTC, bearophile wrote: cal: I uploaded a small demo of a D repl i've been playing with, In past I have seen D repls, they come and then they fade away, regardless how much work they have required to be created, or how much refined they are. The fact they

Re: D repl

2013-06-30 Thread bearophile
cal: I uploaded a small demo of a D repl i've been playing with, In past I have seen D repls, they come and then they fade away, regardless how much work they have required to be created, or how much refined they are. The fact they have appeared more than once shows some persons desire them

Re: D repl

2013-06-26 Thread cal
On Thursday, 27 June 2013 at 00:13:29 UTC, bearophile wrote: cal: What compiler version are you using? I'm not seeing any problems with 2.063, I haven't tried a more recent version yet. I am using dmd, and I compile it almost daily. I suspect it's not a matter of compiler version, but it's a

Re: D repl

2013-06-26 Thread bearophile
cal: What compiler version are you using? I'm not seeing any problems with 2.063, I haven't tried a more recent version yet. I am using dmd, and I compile it almost daily. I suspect it's not a matter of compiler version, but it's a matter of dub using or not using -property in compiling code

Re: D repl

2013-06-26 Thread David
Am 26.06.2013 04:47, schrieb cal: > I uploaded a small demo of a D repl i've been playing with, might be of > some interest. It's not a robust bit of code, and is not my idea of a > proper repl, but shows some possibilities. The video shows the repl > running as a web server (using vibe) with a bro

Re: D repl

2013-06-26 Thread cal
On Wednesday, 26 June 2013 at 12:19:35 UTC, bearophile wrote: - is type x the same as print typeof(x) ? No, when it first compiles a user-defined type, the repl recursively maps out the type's structure. It does this to allow using 'print/type' without needing to do a compile, since these

Re: D repl

2013-06-26 Thread bearophile
Sönke Ludwig: Do you have the latest version of DUB installed? I have installed it right to try the D repl. I have installed the latest Windows version here, precompiled binaries (I think that it's better to show only the latest versions in a table, and all the older versions in a different

Re: D repl

2013-06-26 Thread Sönke Ludwig
Am 26.06.2013 14:19, schrieb bearophile: > Running dmd (compile)... > ...\dub\packages\pegged-master\pegged\dynamic\grammar.d(245): Error: not a property eps > ...\dub\packages\pegged-master\pegged\dynamic\grammar.d(418): Error: not a property fail Do you have the latest version of DUB install

Re: D repl

2013-06-26 Thread bearophile
It looks very nice. I like the interactive shell in Python and Haskell. Even languages like Scala enjoy it. The importance of a good REPL can't be underestimated. I'd like a good repl in the standard D distribution (despite the installation with dub is easy). Notes: - Regarding the input and

Re: D repl

2013-06-25 Thread cal
On Wednesday, 26 June 2013 at 04:29:31 UTC, Tyro[17] wrote: You suggest that it is not your idea of a proper repl. Is there plans of returning to the drawing board to develop that idea from scratch? I think a better solution IMO is to hook up a D front-end to LLVM's jit compiler, but I don't

Re: D repl

2013-06-25 Thread Tyro[17]
On 6/25/13 10:47 PM, cal wrote: I uploaded a small demo of a D repl i've been playing with, might be of some interest. It's not a robust bit of code, and is not my idea of a proper repl, but shows some possibilities. The video shows the repl running as a web server (using vibe) with a browser cli