r/purescript • u/paf31 • Apr 05 '17
What are you using PureScript for?
This is a continuation of the previous thread, but I thought we could make it a little more general.
Do you have an interesting PureScript project that you'd like to share?
18
Upvotes
2
u/GamerNebulae Apr 05 '17
At the moment, I am still learning about PureScript and how it internally works (prior Elm experience) and I am building a compiler which uses PureScript.
2
u/newlandsvalley May 14 '17
I have been porting my music-related projects from Elm. These include a MIDI library and an editor for the abc notation which is a method of representing musical scores in text.
9
u/alexmingoia Apr 30 '17
I use PureScript for web development. I'm the author of purescript-pux, which I used to build the web app at my last company. Currently using it to build an open-source in-browser DAW, which should be released soon.
Thanks for everything Phil!
5
u/albtzrly Apr 18 '17
I just recently finished the Quarto board game I was working on in PureScript. Code's on github. The graphics are mostly via the FFI, but I used PureScript for the logic, most of the menu system, and for the AI.
4
u/berdario May 20 '17 edited May 20 '17
I finally deployed in "production" this small project:
https://github.com/berdario/optimizelys-harsh-mistress
It's a couple of AWS lambda functions: their job is to poll optimizely for all our experiments, count how many tests are running at a 100%/0% split (which means aren't well-behaved ab tests) and try to roll them back to their previous percentages, if the number of such experiments is over a certain threshold
It's not a very interesting application by itself, but there aren't any public examples of any recent AWS lambda projects written in Purescript, and to implement it I also created a couple of libraries, which I tried to make as type safe as possible:
https://github.com/berdario/purescript-optimizely-api
https://github.com/berdario/purescript-dynamodb
3
u/t-b Apr 08 '17
I currently use a primitive embedded domain specific language (EDSL) with javascript host for stimulating ex vivo mouse retina using HTML5 canvas (no software to install for the researcher). I like how easy it is to asynchronously yield control between client & server using ES7 await/async, but today my EDSL only supports a small number baked-in stimuli like a bar moving across the screen or a checkerboard pattern. Adding a new stimulus requires changes on both client and server.
I've been exploring a rewrite of the codebase in Purescript to allow for arbitrary stimulation patterns to be defined in the EDSL and made renderable by making a new pattern an instance of a typeclass, thus removing the need for backend / client-side changes.
For anyone that's interested, here's some basic code I put together to explain Purescript to colleagues: https://pastebin.com/achmX06v
3
u/IHeartMustard Apr 12 '17
I'm learning it to get more into ML style languages, and learning about types and the like. I'm trying to write whatever little projects I can in it, when I get the time.
1
u/sudhirvkumar Jun 30 '17
We are using it to build web application and mobile applications with react native.
Loving it... Thanks Phil