jxxcarlson
jxxcarlson on Hacker News
Also, brilliant.org and exosphere.app, both with large and active Elm code bases. I worked for brilliant for a time and now work for exosphere.
Also, my own project, https://scripta.io. About 45kloc of code split between the app (lamdera/elm) and the MicroLaTex-to-HTML compiler (elm).
Have been working with Elm for five years and have been happy with both the experience and the results. E.g. radical refactors of core data structures are simply no big deal.
I've been using lamdera regularly for a over a year. Having a full-stack, one-language solution makes development so much more pleasant and efficient.
https://minilatex.lamdera.app
My own two cents worth on Elm.
I've worked with many languages, beginning with Fortran in my student days that I had to punch my own cards, then doing Basic, Pascal, C, C++, Python, Ruby, Javascript, Lisp, Scheme, some Haskell, not necessarily in that order. I've never had more fun and felt more productive than with Elm. The ability to do "extreme refactoring" and come out on the other side with everything working is liberating, exhilarating, and makes code maintainable and growable over the long term.
Been using it now for three years.
I wrote a library that parses a subset of LaTeX and renders it as HTML. See
https://demo.minilatex.app/ or more at
https://minilatex.io I was astonished by what is possible to do with Elm. This is a continuing project. It is easy to go back to the code even after leaving it untouched for several months. I've engaged in "extreme refactoring" many times. No fears!
I've also written a bunch of small mathy apps, e.g. https://jxxcarlson.io/apps/
Elm has been a joy to work with.
Yes, something like that. Almost everyone who writes Elm code uses elm-format which is very "spacey". So foo = 1 is formatted with foo = on one line and 1 on the next, with some leading space.
Posted by
jxxcarlson on Tuesday June 04, 2019 @09:19AM
from the medium.com dept.
One more point. Writing something like the MiniLatex parser would be somewhere between impossible altogether and nightmarish without an expressive type system. Below is the definition of the type of the abstract syntax tree (AST) for MiniLatex. Just eleven lines of code. Yes, I know. No typeclasses in Elm. But Elm's type system is surprisingly expressive, and with it one can do some rather sophisticated work. I've been very happy with it.
type LatexExpression
= LXString String
| Comment String
| Item LatexExpression
| InlineMath String
| DisplayMath String
| SMacro String (List LatexExpression) (List LatexExpression) LatexExpression
| Macro String (List LatexExpression) (List LatexExpression)
| Environment String (List LatexExpression) LatexExpression
| LatexList (List LatexExpression)
| LXError (List DeadEnd)
At present, Elm compiles to javascript. But when the time is right, it will have other compilation targets as well, e.g Webaassmebly
Posted by
jxxcarlson on Friday July 13, 2018 @09:26AM
from the jxxcarlson.github.io dept.
Posted by
jxxcarlson on Saturday July 07, 2018 @05:15PM
from the jxxcarlson.github.io dept.
Posted by
jxxcarlson on Thursday May 31, 2018 @09:23PM
from the medium.com dept.
I've been working on a project, now at
http://www.knode.io for quite some time. It went from Rails to an Elixir back end with an Angular 1 frontend, then a brief experiment with an Angular 2 frontend, and finally to an Elm frontend. It is a complex project with JS interop using ports to render (a) mathematical text and (b) Asciidoc. Plus, there is a Latex-to-Html parser-differ-renderer package that I wrote entirely in Elm (2K of code).
I couldn't be happier with Elm in this project. Many major refactors: instead of the usual white-knuckle experience with prior languages/frameworks, it was, like, zen.
Yes, move faster, then pay the price later when stuff is broken and hard to fix.
Posted by
jxxcarlson on Monday April 09, 2018 @11:00PM
from the medium.com dept.
Posted by
jxxcarlson on Monday April 09, 2018 @02:11PM
from the medium.com dept.
Posted by
jxxcarlson on Monday March 12, 2018 @07:05AM
from the minilatex.com dept.
Posted by
jxxcarlson on Monday February 12, 2018 @12:06PM
from the minilatex.com dept.
Here is an example:
$$
\newcommand{\bra}{\left<}
\newcommand{\ket}{\right>}
$$
$$
\bra a | b \ket
$$
If you go to https://jxxcarlson.github.io/app/minilatex/src/index.html, press the "Clear" button, then paste the above text, then press "Render", you should see the macros \bra and \ket properly rendered.
Hi, I am the developer of MiniLatex. Overleaf looks like a fantastic tool.
I'm looking into KaTeX to see if it will work with my setup (Elm) & give better results. Thanks!
Thanks very much for the correction!
Posted by
jxxcarlson on Saturday January 27, 2018 @04:45PM
from the hackernoon.com dept.
Posted by
jxxcarlson on Friday January 26, 2018 @03:32PM
from the jxxcarlson.github.io dept.
Posted by
jxxcarlson on Monday November 20, 2017 @12:47AM
from the jxxcarlson.github.io dept.
Posted by
jxxcarlson on Wednesday November 01, 2017 @08:39AM
from the medium.com dept.
Thank you very much for your kind words -- and for the link to the Tufte-CSS site. Very good material there, as you would expect from Tufte. You may also enjoy this:
http://practicaltypography.com/why-theres-no-e-book-or-pdf.h....
I use postgres for persistency -- mostly throgh Hanami's model component, though I do some parts directly in sequel.
My (limited)experience is that when a rails app gets too big, it becomes hard to manage. That was my case, anyway. The architecture of hanami promotes longterm developer sanity. The fact that views are objects and the existence of interactors is a real plus. See this old Uncle Bob video re interactors:
https://www.youtube.com/watch?v=WpkDN78P884