r/ProgrammingLanguages • u/faiface • May 04 '26
Par has a new home at par.run, plus packages, docs, and new language features
https://par.runHi, everyone! It's been a while since I gave you an update on Par. The work has been happening more under the radar recently, but there's been a lot of it!
Par is an experimental programming language with linear types. It is automatically concurrent, total by default, and supports several styles of programming, including functional programming and a unique object-oriented style. It is based on process calculi, with programs corresponding to classical linear logic proofs via Curry-Howard.
The biggest update is that Par has a new home!
Homepage: https://par.run
Aside from being a cute homepage, it contains:
- The Book
- Auto-generated docs for the standard library
- The Playground! (it really is quite interactive)
I hope you'll enjoy it, and I hope it can help Par reach more people.
Aside from that, there's been some pretty big additions to the language:
- Packages & Modules, including a package manager that resolves dependencies:
par new,par add,par update, and so on. Versioning is still out of scope, but that's gonna come later. The ecosystem is also still non-existent, but that takes time. - Doc generator: just run
par docand see the docs for your package, and your dependencies. The result for the standard library is posted on the homepage. - Infix operators. Nope, no custom ones, not overridable. Just the bread & butter arithmetic operators
+,-,*,/, and comparison operators<,>,<=,>=,==,!=. But, they work fairly generically! The arithmetic ones work for all number types, and the comparison ones for all data types. - Type constraints. For the arithmetic and comparison operators to work generically, we've added type constraints, something like type classes, but structural and you cannot add your own. These are
box(all non-linear types),data,number,signed. - Loads of improvements to the standard library. Sure, there's still some rough edges and some way to go, but we've got maps with any data keys, list sorting functions, list and result/option combinators, and more.
This progress would not be possible without my relentless fellow contributors, so thanks a lot to them!
Let me know what you think :)
10
u/JaSuperior May 04 '26
I guess I'll be the first to say it.... this is so cool. love the website too. I've only given it a glance, but I like some of the ideas you're exploring. I do have a question though, is this a scripting or compiled language? I dont think I see it defined anywhere.
2
u/RascarCapack May 05 '26
Impressive language you got there ! The website is lovely too. This gives me a lot to read on (never heard of linear logic before), thanks. I'd be curious to get insights on your approach to generating documentation, that's a quite interesting feature. Have you written anything about that ?
1
u/kredditacc96 May 05 '26
I'm sleepy, so I only skimmed your docs.
Your language has totality, "forall types" which are explicit and first-class, and maybe more. Which reminds me of formal verification. Well, your docs don't mention dependent types though.
1
u/BoomGoomba Jun 02 '26
I love the way you treat codata as a main idiomatic concept instead of a toy feature