www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Any working REPL program on windows? DREPL doesn't compile

reply John Xu <728308756 qq.com> writes:
Anybody know any working REPL program? I failed to find a working 
one.

https://github.com/dlang-community/drepl
can't compile on my Windows 10, dub reports:

src\drepl\engines\dmd.d(258,16): Error: undefined identifier 
`dlsym`
Mar 23 2023
parent reply matheus <matheus gmail.com> writes:
On Thursday, 23 March 2023 at 09:39:40 UTC, John Xu wrote:
 Anybody know any working REPL program? I failed to find a 
 working one.

 https://github.com/dlang-community/drepl
 can't compile on my Windows 10, dub reports:
 ...
According to their Readme:
 Supported OS
 Works on any OS with full shared library support by DMD 
 (currently linux, OSX, and FreeBSD).
Matheus.
Mar 23 2023
parent reply jmh530 <john.michael.hall gmail.com> writes:
On Thursday, 23 March 2023 at 11:46:48 UTC, matheus wrote:
 On Thursday, 23 March 2023 at 09:39:40 UTC, John Xu wrote:
 Anybody know any working REPL program? I failed to find a 
 working one.

 https://github.com/dlang-community/drepl
 can't compile on my Windows 10, dub reports:
 ...
According to their Readme:
 Supported OS
 Works on any OS with full shared library support by DMD 
 (currently linux, OSX, and FreeBSD).
Matheus.
OP, would you be able to try using drepl with Windows Subsystem for Linux (WSL) and reporting back? There's a lot of value in getting drepl working on Windows (I believe DMD shared library support needs to be improved, not sure also whether drepl would work with other D compilers) and in good enough shape to be used with Jupyter. Unfortunately, it's beyond my skills set to contribute to this effort and the only way things like this get completed is if people are willing and able to work on them. That being said, I also get a lot of use out of run.dlang.io for trying out small ideas. It's not a Jupyter replacement, but the way it is working now significantly reduces my need for something like Jupyter. What it can't handle is if you have some project locally that you want to import. So long as you're just trying something out that uses a few well known set of D projects, it works well.
Mar 23 2023
parent John Xu <728308756 qq.com> writes:
On Thursday, 23 March 2023 at 13:27:00 UTC, jmh530 wrote:

I've composed a simple gui, partially solved my problem:
to compile/test simple codes quickly:
https://github.com/xucs007/dln
May 11 2023