News for hackers. Stuff that matters.
Re:HAL/S Syntax by doctor_eval on Sunday June 19, 2022 @06:05PM (#31803998)
It would be so great if we could write mathematical expressions such as

  y := x²
in regular code. Is this the case in any modern language?
Re:HAL/S Syntax by cmrdporcupine on Sunday June 19, 2022 @10:09PM (#31805578)
If I recall Guy Steele's (discontinued) Fortress scientific programming language was supposed to be like this. It was designed to have "syntactic stylesheets" and was meant to be rendered out into LaTeX, Unicode, etc. and the goal was to have some common mathematical notation in the syntax and also to make the syntax look a bit like the pseudocode that often appears in scientific and research papers.

https://web.archive.org/web/20160304052722/https://java.net/...

Re:HAL/S Syntax by gjvnq on Sunday June 19, 2022 @10:02PM (#31805530)
Wolfram Mathematica allows for this and perhaps you can do this in Haskell with some advanced trickery.
Re:HAL/S Syntax by taktoa on Sunday June 19, 2022 @06:51PM (#31804292)
Agda
Re:HAL/S Syntax by ubq323 on Monday June 20, 2022 @10:39AM (#31810884)
raku