Forscape – A Language and Editor for Scientific Computation
11–20 of 35 posts
Re: Forscape – A Language and Editor for Scientific Computation
#12Code typography is such a neglected area, I'm glad to see any projects that touch on that. This reminds me of Suns Fortress language, which was designed also for scientific computing (afaik more in HPC sense), and also allowed rendering code into pdf with improved typography. Unfortunately lot of the original Fortress resources have linkrotted away, but there are some examples in this presentation (by Guy Steele!) ht…
Arguably the most successful effort in this space is: http://literateprogramming.com/ I use it in a current project using LaTeX: https://github.com/WillAdams/gcodepreview
[1] https://github.com/WillAdams/gcodepreview/blob/main/gcodepre...
Re: Forscape – A Language and Editor for Scientific Computation
#13This is super cool! Recently, I've been musing about the potential ergonomics of programming directly with rich typography, and here Forscape's kind of gone and done it. The project seems to be specifically targeting working scientists, but I think there's real potential for using mathematical and math-like notation in a general programming language. The array language family does adopt a few of the affordances from…
One particularly nice thing about it is that it's completely optional sugar over a lispy "FullForm" syntax, and it's easy to convert between the two.
I'd encourage everyone to play with it, but it's sadly non-free.
Re: Forscape – A Language and Editor for Scientific Computation
#14This is super cool! Recently, I've been musing about the potential ergonomics of programming directly with rich typography, and here Forscape's kind of gone and done it. The project seems to be specifically targeting working scientists, but I think there's real potential for using mathematical and math-like notation in a general programming language. The array language family does adopt a few of the affordances from…
Mathematica also has some fairly advanced typographic syntax. Matrices, subscripts, integral signs, with a decent input system to match. Type dint to get a definite integral with placeholders. One particularly nice thing about it is that it's completely optional sugar over a lispy "FullForm" syntax, and it's easy to convert between the two. I'd encourage everyone to play with it, but it's sadly non-free.
Re: Forscape – A Language and Editor for Scientific Computation
#15Earlier quoted context omitted.
If you asking this, you are the wrong audience. All academic journals accept submissions in Microsoft Word, this is a similar tool targeted at the WYSIWYG crowd.
you both are missing the main point here, Forscape is not for writing documents, but for writing executable code.
Re: Forscape – A Language and Editor for Scientific Computation
#16Re: Forscape – A Language and Editor for Scientific Computation
#17Re: Forscape – A Language and Editor for Scientific Computation
#18Earlier quoted context omitted.
Arguably the most successful effort in this space is: http://literateprogramming.com/ I use it in a current project using LaTeX: https://github.com/WillAdams/gcodepreview
I checked the linked PDF[1] as an example, and the codeblocks are still just basic plain monospaced blocks with practically no typesetting done to them; very different from something like Fortress, or indeed this Forscape [1] https://github.com/WillAdams/gcodepreview/blob/main/gcodepre...
If you know of a better LaTeX package to use, or better settings for Python or languages like OpenSCAD I'd be glad of them.
Mostly I need the LP stuff for managing multiple files, and the overview of the PDF and hyperlinked ToC and Index and so forth.
Re: Forscape – A Language and Editor for Scientific Computation
#19Re: Forscape – A Language and Editor for Scientific Computation
#20Code typography is such a neglected area, I'm glad to see any projects that touch on that. This reminds me of Suns Fortress language, which was designed also for scientific computing (afaik more in HPC sense), and also allowed rendering code into pdf with improved typography. Unfortunately lot of the original Fortress resources have linkrotted away, but there are some examples in this presentation (by Guy Steele!) ht…
Those slides are my introduction to Fortress. Sounds nice, sorry to hear it's discontinued. I'm struck by how very similar to Julia it is (which is officially inspired by Fortress), for example the focus on performance and maths, zero-cost abstractions, type specialisation, very similar syntax, ASCIIUnicode equivalence, encouragement of unicode identifiers and operators, and some (small) amount of eliding '*' for multiplication. (You can write "2(a + 1)a^2" but not "(a+1)(a+2)" because the latter is a function call. Whitespace between multiplicands not allowed.)
It seems it would be easy to write a package to display Julia code as HTML or Latex, although I didn't find one. There's already a library to print expressions as Latex, and of course in a Jupyter notebook results are displayed in HTML.