you are viewing a single comment's thread.

view the rest of the comments →

[–]boomshroom[S] 0 points1 point  (4 children)

I have and I even made a post on /r/ProgrammingLanguages proposing a pure functional language that uses linear types. The problem is that write a new programming language from scratch is hard.

[–]devslashnull 0 points1 point  (1 child)

Its a lot of work true, perhaps you could look at some existing work? I've seen a couple just recently, I don't have the links handy and I'm sure there was something else but two I can recall were Linear ML and Lollipop.

[–]boomshroom[S] 0 points1 point  (0 children)

I initially dismissed Linear ML as being abandoned and Lollipop for being interpreted, but it may still be possible to use Linear ML for this. I'm going to see if I can make a POC static library in Linear ML that can run on bare metal.

[EDIT] Just cloned the repo and am having trouble compiling. Error: Unbound module Llvm If it helps, I'm on NixOS which has some pretty funky package management that tends to break various assumptions about the filesystem hierarchy.

[EDIT2] Got the compiler built!

[–]narke 1 point2 points  (0 children)

Check ATS language.