Does D supports REPL

Carl via Digitalmars-d digitalmars-d at puremagic.com
Tue May 24 17:55:52 PDT 2016


On Wednesday, 25 May 2016 at 00:12:24 UTC, Seb wrote:
> On Tuesday, 24 May 2016 at 23:26:27 UTC, jmh530 wrote:
>> On Tuesday, 24 May 2016 at 20:44:57 UTC, Seb wrote:
>>> Maybe we just need to move it to the dlang github namespace, 
>>> s.t. it gets properly maintained and maybe even released with 
>>> dmd/dub?
>>
>> Integration with Jupyter would be cool as well, but I have 
>> basically no idea how to accomplish that.
>
>
> Yep I would love to have a D Jupyter kernel - there is already 
> PydMagic [1], which looks great (I haven't tried it yet), but 
> all those other languages (C, C++, Scala, Java, Tcl, Brainfuck, 
> Clojure, Ocaml, Erlang, Go, FSharp, Haskell and on the dynamic 
> end: Python, JavaScript, CoffeeScript, Ruby, PHP, Perl, Octave, 
> Bash, PowerShell, Lua, Julia, Prolog, J, etc.) [2] managed to 
> get a working Jupyter kernel, so why don't we :O
> I opened an issue at d-repl [3], maybe that's a good place to 
> start a focussed discussion.
>
> [1] https://github.com/DlangScience/PydMagic
> [2] 
> https://github.com/ipython/ipython/wiki/IPython-kernels-for-other-languages
> [3] https://github.com/MartinNowak/drepl/issues/37

It's worth noting that some of those Jupyter kernels are pretty 
quirky/limited. For example in the C kernel, every cell is an 
isolated program with a main function.

Which is not to say it wouldn't be great to have D integration, 
just that it's trickier than it may seem at first glance.



More information about the Digitalmars-d mailing list