Ask coding questions

← Back to all posts
How to include a dependency if compiler is being killed?

This is my first non-trivial project using Replit. I am making a Literate Programming REPL, and using a forked tool written in D. I can clone the Literate repo but when I cd into it and make, cc1d is being killed. From searching the error, it looks like the D compiler hit a limit, probably too much memory.

The REPL is for C++, but I am going to be using the (D) lit tool to preprocess the program and output the .cpp files.

What's the best way to solve this problem? I've tried uploading the compiled lit and tangle binaries from my local machine, but they are missing shared libraries.

I remember Amjad tweeting that Replit uses the Nix package manager. Should I learn Nix and import it as a package?


If you're willing to try it, switching to Nix might not be a bad idea. Especially since you're working with D, since D isn't natively supported on Replit.


@SixBeeps Sounds good, I'll work on making a nix package.


@SixBeeps I did it, I needed to fork a nix repl, but it works: