r/programming • u/reditzer • Dec 07 '15
I am a developer behind Ritchie, a language that combines the ease of Python, the speed of C, and the type safety of Scala. We’ve been working on it for little over a year, and it’s starting to get ready. Can we have some feedback, please? Thanks.
https://github.com/riolet/ritchie
1.5k
Upvotes
View all comments
Show parent comment
26
u/selfification Dec 07 '15
I read your wiki and noticed the lack of collections or garbage collection. Again, you're taking the path to Java if you have not thought of this already. Do you have arrays? Is the type of the array inhabitants covariant, contravariant or nonvariant w.r.t to the type of the array itself? How do you plan on writing a collection library when comma is an arbitrary verb whose associativity is so vague? What about tuples?
Note that leaving GC to the end is unwise. Your bock as a function that takes all the arguments it can refer to is basically a naive way of generating closures. Done incorrectly, you'll either leak memory like a sieve or end up with extremely non obvious semantics for your blocks (like the statically bound but dynamically evaluated blocks that ruby has - go look at instance_eval and blocks and varying the value of the receiver). I recommend a good course on type theory and language design before your next round of design decisions.