r/ProgrammingLanguages • u/SergeAzel • Jul 02 '26
Community projects?
I've had a hard time telling just from casual browsing of the sub, what languages here are considered community projects, if any. Looking for places open to contribution.
Replaced original text to both get to the point, and avoid disparaging peoples personal projects, that's not my intention.
15
Upvotes
View all comments
Show parent comment
1
u/Inconstant_Moo 🧿 Pipefish Jul 03 '26
Cool!
That's a term with a lot of undeserved baggage. It doesn't mean that it's weakly typed or that we can't do compile-time typechecking, we can do a lot of that. It's essentially an implementation detail --- a language is dynamically typed if its semantics mean that its values have to be tagged with their types for the benefit of the runtime. Lots of languages are semi-dynamic: think of Java's objects or Go's interfaces.
Pipefish gives you a bit more flexibility than that, it allows duck-typing and multiple dispatch rather than requiring explicit casts. What this adds up to is that it will fail to compile if it can prove that you must get a type error at runtime.
So if we have e.g. a function:
... then if
xis a variable, the expressions1 + foo(x)andfoo(x) + " split"would compile under the assumption that the user knows what they're doing and if they don't it will crash at runtime. OTOH, if you put e.g.1 + foo(2)orfoo(true)then it catches it at compile time.This means that the compiler (and eventually, when we have them, the red wiggly lines in the IDE) provide most of the ergonomic aspects of a static type system: it catches 95% of the normal boneheaded type errors one makes while coding. But it doesn't supply you with a proof of correctness in the same way that a static type system could (nor can it ever, however much I worked on it, 'cos of Rice's theorem).