repls for d

monkyyy crazymonkyyy at gmail.com
Thu Oct 31 23:41:47 UTC 2024


On Thursday, 31 October 2024 at 22:16:03 UTC, Stefan Koch wrote:
> On Thursday, 31 October 2024 at 21:48:24 UTC, monkyyy wrote:
>> So I like repl programming, Im aware of dlang.io and the 
>> project on dub; I ussally use dlang.io despite the blind 
>> theme, it often being out of date, and slow. But today I 
>> needed it to be in the terminal, so I made an another terrible 
>> solution
>>
>> https://gist.github.com/crazymonkyyy/bd90fe3e7a9372cbe5c644cce11c1b9e
>>
>> Its an ed like line editer... so terrible, truely awful. Maybe 
>> someone else cares tho.
>>
>> Are there other solutions or some travail improvement?
>
> yeah you can build shared libraries and use them to load new 
> versions of the code dynamically.
> There is a drepl project which used this IIRC.
> However maybe it won't compile anymore?

adr also suggested dll hacks, and I still dont understand it
d compiler is fast enough that you can just copy a 100 lines in 
and out of memory and have it compile effectly instantly; if it 
didnt Id be blaming the std before the code the copyed such a 
comparably small string


More information about the Digitalmars-d mailing list