r/ProgrammingLanguages • • Sep 25 '26

Any interest in a language made for physicists that mimics writing equations in a notebook?

Developed the early stages of fermium (a programming language tailor-made for physics) and have been testing it myself, still some lumps but it runs more beautifully than I thought it would at this stage. Would love if some people tested it out and gave feedback — built using Python frontend, currently working on switching the compiler to Rust

3 Upvotes

8 comments sorted by

10

u/nvcook42 Sep 25 '26

Sounds a lot like https://www.wolfram.com/mathematica/

Its quite a nice system. As a physics major who used Mathematica a bunch for class work I always found Mathematica cumbersome compared to other more traditional programming languages. But as it's basically a language plus IDE plus runtime all baked into one product it's hard to separate out just the language as it's own thing.

6

u/perlgeek Sep 26 '26

I'd like to add that, contrary to ordinary/regular programming languages, Mathematica offers symbolic calculation, not just numerical ones. For example, you can Solve[x² - 2x == a, x] and get two solutions for x which still depend on a.

8

u/Inconstant_Moo 🧿 Pipefish Sep 25 '26

No link?

2

u/benjamin-crowell Sep 25 '26

I'm a retired physicist. For this sort of thing, what I've been using for decades is essentially MediaWiki plus MathJax. The combination of those two markup languages (or approximations to or subsets of them) is all I need. I guess other people use systems like Jupyter. If you think you've come up with something better, which people would actually want to use, you could tell us about it. I think a lot of people will be reluctant to hitch their wagon to such a thing if it's done by an independent developer.

1

u/EggplantExtra4946 Sep 26 '26

mimics writing equations in a notebook?

You mean like a computer algebra system?

1

u/thmprover Sep 27 '26

Cadabra springs to mind, but it depends on what you mean by "a programming language tailor-made for physics".

1

u/WalkerCodeRanger Azoth Language Sep 29 '26

Check out Fortress