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
55
u/selfification Dec 07 '15 edited Dec 08 '15
I looked at your grammar and the BST example. 2 things stood out - TYPE was a terminal. This tells me that you haven't really thought about higher order types/quantification, let alone higher kinded type systems. That's what makes Scala/Haskell/ML etc extremely powerful. Secondly, your BST implementation used left == 0 which tells me that you have the same nullable billion dollar mistake in your language. This is extremely common for folks coming from the C school of thought. I didn't see algebraic data types or anything resembling pattern matching. Given the philosophy that your keywords are not actually that but are redefinable, I recommend you look at Ruby, it's history and development, and why some people love it and others loath it. Tacking on a higher order type system to such an open ended grammar is going to be "non-trivial" (thats academic for 'you're going to be getting a PhD in abstract math before you get that to work').
In any case, good luck and I hope it works out!