Facilis - A Low Level Functional Language
CSharpIsGud (918)

Facilis is a strongly typed functional language that aims to be low level. Facilis uses a hand-written recursive descent parser made with love.

Factorial Example

impure foreign putchar(c of u8) -> void
impure foreign tostr(num of void*) -> string

impure write(str of string, start of i32) -> void {

	if start != str.length() {
		write(str, start + 1)

pure fact(i of i32) -> i32 {
	if i == 1 {
		return i

	return i * fact(i - 1)

impure main() -> i32 {
    write(tostr(fact(6)), 0)

Demo: https://repl.it/@Facilislang/FacilisDemo#README.md
^ Has a user/password login program loaded by default. Read the README!

Source: https://repl.it/@Facilislang/Facilis
^ 2072 lines of C++!

@CSharpIsGud @Subarashi @xxpertHacker

You are viewing a single comment. View All
xxpertHacker (784)

@fuzzyastrocat Yeah, it definitely could be memory, considering how much we allocated memory, because we started off by using plenty of std::strings instead of something like static std::string_views, meaning a good amount of memory is allocated, which may be problematic for large programs.
But if we ever wanted to work on this, we would have to do a full rewrite.

(Also, there is a whole memory leak we didn't do anything about...)