Re: Can D be Interpreted?

2014-02-11 Thread Martin Nowak
On Friday, 27 December 2013 at 15:28:36 UTC, Jacob Carlborg wrote: On 2013-12-27 01:43, Martin Nowak wrote: You mean like Dscanner: https://github.com/Hackerpilot/Dscanner/ This worked for now, but in the longer term I'm aiming at integrating the REPL with the compiler. That is make it a

Re: Can D be Interpreted?

2014-02-11 Thread Sean Kelly
On Thursday, 26 December 2013 at 22:01:40 UTC, Manu wrote: In my experience with vibe.d, it's a massive pain in the arse that it's compiled. It seems to me that web dev involves squillions of micro-changes and tweaks, and it's bloody annoying to compile and reboot the server every time.

Re: Can D be Interpreted?

2014-01-06 Thread deadalnix
On Wednesday, 1 January 2014 at 22:52:34 UTC, Ola Fosheim Grøstad wrote: On Wednesday, 1 January 2014 at 22:44:31 UTC, David Nadlinger wrote: Not really. You'd probably still need a powerful constant folder/interpreter to avoid firing up the LLVM JIT for every single trivial CTFE invocation.

Re: Can D be Interpreted?

2014-01-06 Thread Ola Fosheim Grøstad
On Monday, 6 January 2014 at 14:58:58 UTC, deadalnix wrote: Also JITing for trivial thing that could be constant folded is much slower. You don't need a powerful interpreter to fold trivial things (+-*/?:). If it is a separate pass there is no reason for not being able to building a

Re: Can D be Interpreted?

2014-01-06 Thread deadalnix
On Monday, 6 January 2014 at 15:20:32 UTC, Ola Fosheim Grøstad wrote: On Monday, 6 January 2014 at 14:58:58 UTC, deadalnix wrote: Also JITing for trivial thing that could be constant folded is much slower. You don't need a powerful interpreter to fold trivial things (+-*/?:). If it is a

Re: Can D be Interpreted?

2014-01-05 Thread deadalnix
On Wednesday, 1 January 2014 at 22:44:31 UTC, David Nadlinger wrote: On Wednesday, 1 January 2014 at 10:27:48 UTC, Ola Fosheim Grøstad wrote: Why doesn't D support some kind of partial evaluation instead? With llvm you get to JIT for free, seems to be an overall simpler solution than having an

Re: Can D be Interpreted?

2014-01-01 Thread Manu
On 27 December 2013 09:37, Joseph Rushton Wakeling joseph.wakel...@webdrake.net wrote: On Thursday, 26 December 2013 at 22:01:40 UTC, Manu wrote: In my experience with vibe.d, it's a massive pain in the arse that it's compiled. It seems to me that web dev involves squillions of

Re: Can D be Interpreted?

2014-01-01 Thread Manu
On 27 December 2013 09:55, Adam D. Ruppe destructiona...@gmail.com wrote: On Thursday, 26 December 2013 at 23:37:07 UTC, Joseph Rushton Wakeling wrote: Could it be workable to have a minimal server + plugins design akin to what you did with Remedy for game functionality? You could also

Re: Can D be Interpreted?

2014-01-01 Thread Ola Fosheim Grøstad
On Wednesday, 1 January 2014 at 09:40:45 UTC, Manu wrote: Compile times are very slow even in my simple web applications when there are lots of templates sadly. Hopefully CTFE gets much faster in the future. Why doesn't D support some kind of partial evaluation instead? With llvm you get to

Re: Can D be Interpreted?

2014-01-01 Thread David Nadlinger
On Wednesday, 1 January 2014 at 10:27:48 UTC, Ola Fosheim Grøstad wrote: Why doesn't D support some kind of partial evaluation instead? With llvm you get to JIT for free, seems to be an overall simpler solution than having an interpreter in the compiler (or equally complex, but more powerful)

Re: Can D be Interpreted?

2014-01-01 Thread Ola Fosheim Grøstad
On Wednesday, 1 January 2014 at 22:44:31 UTC, David Nadlinger wrote: Not really. You'd probably still need a powerful constant folder/interpreter to avoid firing up the LLVM JIT for every single trivial CTFE invocation. Why is that? You could just aggregate them and execute them in a single

Re: Can D be Interpreted?

2013-12-27 Thread ponce
In my experience with vibe.d, it's a massive pain in the arse that it's compiled. It seems to me that web dev involves squillions of micro-changes and tweaks, and it's bloody annoying to compile and reboot the server every time. vibe.d apps should be compiled for deployment, but a JIT option

Re: Can D be Interpreted?

2013-12-27 Thread Jacob Carlborg
On 2013-12-27 01:43, Martin Nowak wrote: On 12/26/2013 08:15 PM, Iain Buclaw wrote: I've been tempted to implement D in Guile - which is a cool extension language platform. Implementing D ontop of its VM would make it effectively a REPL (with one or two features missing). But when will I ever

Can D be Interpreted?

2013-12-26 Thread Jeroen Bollen
Are there any programs allowing to interpret D and run it similarly to how you would run a Python application? It doesn't need to have the whole Window support, just console application using just the standard Phobos library is more than enough.

Re: Can D be Interpreted?

2013-12-26 Thread Jernej Krempus
On Thu, 26 Dec 2013 18:50:25 +, Jeroen Bollen wrote: Are there any programs allowing to interpret D and run it similarly to how you would run a Python application? It doesn't need to have the whole Window support, just console application using just the standard Phobos library is more

Re: Can D be Interpreted?

2013-12-26 Thread Iain Buclaw
On 26 December 2013 18:50, Jeroen Bollen jbin...@gmail.com wrote: Are there any programs allowing to interpret D and run it similarly to how you would run a Python application? It doesn't need to have the whole Window support, just console application using just the standard Phobos library is

Re: Can D be Interpreted?

2013-12-26 Thread thedeemon
On Thursday, 26 December 2013 at 18:50:27 UTC, Jeroen Bollen wrote: Are there any programs allowing to interpret D and run it similarly to how you would run a Python application? If you don't mean interactively, then rdmd prog.d will act just as python prog.py or ruby prog.rb etc.

Re: Can D be Interpreted?

2013-12-26 Thread Rémy Mouëza
To execute a D source file as one would do with a Python script, you can use rdmd. On Linux, you can make your can directly execute D source file by changing its mode (chmod u+x file.d) and adding a shebang first line like: #!/usr/bin/rdmd --shebang -I/path/to/libs -L-L/path/to/libs

Re: Can D be Interpreted?

2013-12-26 Thread bearophile
Rémy Mouëza: There also have been several projects to make a D REPL, I'd like a good REPL in the default distributions, because it's an useful tool to speed up coding, to test and try things, it's very useful if you want to use D for exploratory coding, and it's kind of standard if you

Re: Can D be Interpreted?

2013-12-26 Thread Manu
On 27 December 2013 06:59, bearophile bearophileh...@lycos.com wrote: Rémy Mouëza: There also have been several projects to make a D REPL, I'd like a good REPL in the default distributions, because it's an useful tool to speed up coding, to test and try things, it's very useful if you

Re: Can D be Interpreted?

2013-12-26 Thread Joseph Rushton Wakeling
On Thursday, 26 December 2013 at 22:01:40 UTC, Manu wrote: In my experience with vibe.d, it's a massive pain in the arse that it's compiled. It seems to me that web dev involves squillions of micro-changes and tweaks, and it's bloody annoying to compile and reboot the server every time.

Re: Can D be Interpreted?

2013-12-26 Thread Adam D. Ruppe
On Thursday, 26 December 2013 at 23:37:07 UTC, Joseph Rushton Wakeling wrote: Could it be workable to have a minimal server + plugins design akin to what you did with Remedy for game functionality? You could also just use CGI, which doesn't require any restart for changes, and can also easily

Re: Can D be Interpreted?

2013-12-26 Thread Martin Nowak
On 12/26/2013 11:01 PM, Manu wrote: In my experience with vibe.d, it's a massive pain in the arse that it's compiled. It seems to me that web dev involves squillions of micro-changes and tweaks, and it's bloody annoying to compile and reboot the server every time. vibe.d apps should be compiled

Re: Can D be Interpreted?

2013-12-26 Thread Martin Nowak
On 12/26/2013 08:15 PM, Iain Buclaw wrote: I've been tempted to implement D in Guile - which is a cool extension language platform. Implementing D ontop of its VM would make it effectively a REPL (with one or two features missing). But when will I ever get time to do this? Probably never.:)