DEV Community

Cover image for Asking Copilot About Writing a New Programming Language
Jesse Warden
Jesse Warden

Posted on • Originally published at jessewarden.com

Asking Copilot About Writing a New Programming Language

Jesse: “Yo Copilot, if you were going to write a soundly typed language with managed effects that compiles to JavaScript, which language would you choose to write the compiler in?”

Copilot: :: Recommends Haskell, OCaml, ReasonML, and Rust with a list of various good pro’s/con’s. ::

Jesse: “Why not Zig?”

Copilot: :: Lists a large list of pro’s/con’s as to why not ::

Jesse: :: notices one of the tradeoffs is Zig’s lack of garbage collection, and Managed Effects / Monads means lots of memory usage, and constant churn, resulting in a need for Garbage Collection ::

“Zig is compiling to JavaScript, which means the runtime is in JavaScript, which means you don’t need to care about garbage collection in Zig. Does that change anything about your previous summary?”

Copilot :: describes why the lack of GC is no longer a con, but still cites the other, good reasons, as to why it’s not a good choice ::

Human in the Loop my foot, more like requires a “non-moron to read pages of good prose looking to remove parts intermingled with dangerous hallucinations”. I’m a map function for filtering bs via me being a RAG who knows what the heck he’s talking about, with a larger Context Window.

MongoDB Atlas runs apps anywhere. Try it now.

MongoDB Atlas runs apps anywhere. Try it now.

MongoDB Atlas lets you build and run modern apps anywhere—across AWS, Azure, and Google Cloud. With availability in 115+ regions, deploy near users, meet compliance, and scale confidently worldwide.

Start Free

Top comments (0)

Feature flag article image

Create a feature flag in your IDE in 5 minutes with LaunchDarkly’s MCP server 🏁

How to create, evaluate, and modify flags from within your IDE or AI client using natural language with LaunchDarkly's new MCP server. Follow along with this tutorial for step by step instructions.

Read full post

👋 Kindness is contagious

Explore this insightful piece, celebrated by the caring DEV Community. Programmers from all walks of life are invited to contribute and expand our shared wisdom.

A simple "thank you" can make someone’s day—leave your kudos in the comments below!

On DEV, spreading knowledge paves the way and fortifies our camaraderie. Found this helpful? A brief note of appreciation to the author truly matters.

Let’s Go!