r/ProgrammingLanguages • u/Certain-Swordfish-32 • Mar 15 '26
Looking for feedback on my language tour / overview
Hey all :)
I've been working on a programming language for a while now, and I've finally decided to put together something resembling documentation. I don't think it's very good at the moment, and I'm struggling to improve it. Any feedback would be greatly appreciated! (my primary concern is the introductory docs, but feedback regarding the language itself is certainly welcome as well)
The intro docs in question can be found here: https://based.lol/tour
The run buttons don't do anything atm, but there's a playground thing at https://based.lol/ (previously the closest thing I had to documentation) in case you did wanna test anything out
And the GitHub repository: https://github.com/marchelzo/ty
5
u/Athas Futhark Mar 15 '26
My thoughts while reading the intro docs:
The intro paragraph says it's like Python and Ruby and describes it as dynamically typed and and imperative. Crowded field. What's the (eventual) main improvements? I understand that in its present state Ty may not be "better" than Python, but it would still be nice to talk about why one might some day want to pick it.
I think you should link the Playground before you ask me to curl random scripts.
You should mention the gradual type system earlier. That's certainly an interesting and somewhat unusual feature. Why would I want to disable the type checker?
You say that types have no effect on run-time behaviour, but it seems like I can retrieve the type of variables with the
typeoffunction. Could I not then make logic decisions based on the type?What is the meaning of question marks in function parameters?
I Ty has threads. How are they executed? Since Ty is imperative, what is the memory model, that is, how do I write correct multithreaded code in the presence of side effects?
4
u/Relevant_South_1842 Mar 15 '26
I like it. Lots of features implemented. I have no idea when to use a comma or semicolon in your language - colon too. I feel like if I was going to use a language slower than Python, that I would want it to be more consistent and dynamic (like Smalltalk or Io).
1
u/dist1ll Mar 15 '26
Really good language tour. The text and code snippets are easy to read, and the examples are great. Minor nitpick: in the pattern matching chapter, I would maybe start with an example that only uses
match, and then mention that you can combineforandmatchinto one construct.1
u/mark-sed github.com/mark-sed/moss-lang/ Mar 16 '26
Design-wise I like it and I like the interactivity, but the opening page is too detailed imo. I would not go about describing the type system as one of the first things, I think one can run hello world without knowing it. I would go with having the hello world the first thing a person sees, but a very simple version of a hello world to not overwhelm and to teach how to run programs and then have some installation guide followed with how to run the hello world the person has written.