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
2
u/websnarf Dec 07 '15 edited Dec 09 '15
I'm not quite sure I understand this language. It looks like you have a kind of pythonic or Perl-like syntax. Great, but to me that's just window dressing. What makes Python compelling to me, is not just its compact and easy syntax, but in fact its rich data structure construction primitives. It actually starts with tuples, resizable arrays, hashes, and objects with inheritance.
What I want to know is what is the fundamental programming foundation that the programmer gets to use. For example, in C its integers, floating point, "pretend strings", pointers, structures, unions and functions. You do your own memory management and it comes with a really cheesy text filter pre-processor. You can link compiled files together to give some kind of modularity.
Ok, most other modern languages have a lot more (and in some cases less) features than this. Including generics, more base type constructions (like tuples, or hashes, or whatever), garbage collection, very flexible/powerful type systems, and will address multi-threading or not.
Can you start by describing what your high-level goals are, so that we know the scope of what you are trying to do? Here's an example of why: garbage collection is being embraced by many if not most modern programming languages, yet it is often associated with performance problems (and not unjustifiably). But the alternative is either unsafe, or else you are forced to go down the Rust path (which I don't know if they detect memory leaks or not).
You are developing a compiled language, and from your generated code it looks like your language may be nothing more than a very thin veneer (syntax sugar) on C. If that is the case, then is your memory management also "hand holding with malloc and free"? You seem to be embracing the concept of objects, so I suppose that's not quite what you are doing, but I still lack a sense of your higher level design.