r/purescript • • Dec 15 '20

UI Developer Position at Awake Security (acquired by Arista)

13 Upvotes

We've opened up a new position at Awake Security for a UI Developer. Awake Security was recently acquired by Arista (ANET), operating as our own division.

  • We are currently a team of 4 all writing PureScript full-time.

  • It's a single UI product, built with React/Redux.

  • Our codebase is mixed, but JS is only very old legacy components we haven't replaced yet. All development is done in PureScript (well over 100K LOC).

  • Typed API bindings for all development. No hand-written codecs!

  • This position is remote friendly, but we are currently only able to offer a position in the countries where Arista has a presence: USA, Canada, India, Ireland.

https://jobs.smartrecruiters.com/AristaNetworks/743999723781920-software-engineer-ui-remote-

I'm happy to answer any questions about the position and company (as best I can).


r/purescript • • Jun 04 '20

Drawing Fractals with PureScript

Thumbnail blog.drewolson.org
13 Upvotes

r/purescript • • Apr 16 '20

Coming to PureScript from Haskell/ Reflex/ Nix

Thumbnail
srid.ca
13 Upvotes

r/purescript • • Nov 13 '19

Advice on greenfield PureScript + React?

13 Upvotes

I want to write a new PureScript app which will render as a React component in a JupyterLab extension.

This application will be very interactive with lots of drag-and-drop.

My question is: what would you, expert and opinionated PureScript developer, choose for your dependencies to start project like this?

  1. thermite?

  2. purescript-react-basic + purescript-react-dnd-basic?

  3. purescript-react?

Reference: https://www.reddit.com/r/purescript/comments/a3jguv/ui_library_question/


r/purescript • • Oct 22 '19

How does the continuation monad work?

Thumbnail maxhallinan.com
13 Upvotes

r/purescript • • Apr 26 '18

A Discourse instance for PureScript

13 Upvotes

Currently linked from here: https://purescript-users.ml/

I saw that the NixOS people set one up to try out: https://www.reddit.com/r/NixOS/comments/8ertef/discourse_to_replace_the_nixdevel_mailinglist/

I've (and I've heard others complain about it) been concerned for a long time about great bits of knowledge disappearing into the ether because so much discussion and Q&A occurs in Slack which has messages deleted after just a few days (b/c it's on a shared instance). Discourse seems to have the engagement of Slack with the search-ability and organization of a knowledge-base. Also, it's open-source software, which I like to support.

So I think it's worth a try! LMK about any improvements you see we can make. I've never used Discourse before.


r/purescript • • Feb 20 '18

The authors of the PureScript web3 library will be holding an AMA next Wednesday. Ask them about their work on the library, what they are working on at FOAM, or anything!

Thumbnail
self.foamprotocol
13 Upvotes

r/purescript • • Feb 07 '18

Hot Reloading A PureScript Halogen UI With Minimal Configuration

Thumbnail qwan.eu
13 Upvotes

r/purescript • • Dec 15 '17

I created a new web framework called Proact (looks and feels like OOP)

13 Upvotes

Hi everyone,

So I created a new web framework that allows you to write Purescript code in an imperative style very similar to what Object Oriented Programming looks like.

I don't know what would be the technical name of the architecture but it feels very similar to using vanilla React just by itself, where you would subscribe to events and then respond to them by immediately updating the state of your component. Proact however, will preserve the purity and immutability of your state :D

This is very different to other frameworks like Elm or Redux where I believe you're forced to define "messages" and write a decent amount of boilerplate code just to get the message routing right.

The main requisites that you need to use the framework are having some idea of how to use Monads and Lenses. I believe these are concepts very easy to get used to once you complete the ramp-up period that everybody goes through when learning something new.

Below is the link to the project in github:

https://github.com/alvart/proact

And here's a tutorial I wrote that explains using Proact to build a simple to-do application:

https://github.com/alvart/proact/tree/master/examples/todo

And here's a starter kit for proact + webpack that includes hot-reloading, bundling, routing and enzyme testing:

https://github.com/alvart/proact-starter


r/purescript • • Nov 06 '17

Some extra examples of Simple-JSON usage

13 Upvotes

We don't have enough posts on here in general, so I'll go over some stuff I've been writing in the last couple of days.

People have been asking on Slack/Github/Twitter how to parse some non-obvious things with Simple-JSON, so I wrote up some examples.

Parsing to a different type and modifying the field https://github.com/justinwoo/parse-you-a-thingy-with-imperfect-json-that-you-convert-bad-properties-from/blob/master/src/Main.purs

This example takes advantage of the purescript-record constraints so that we can modify the parsed value in a field, doing automatic deserialization with a record with a field Nullable (Array String), which is then modified to provide a default value.

Untagged sum type parsing https://github.com/justinwoo/untagged-sum-decode-simple-json-example/blob/master/src/Main.purs

This example shows how you might use alt to try a bunch of different sum type member arguments to decode an untagged union. This might also be a good spot to use Variant instead, if you so wish.

This could be done automatically, but in order to not have divergent implementations between row-typed decoding and Rec/Field generics-rep decoding, we will have to wait for the 0.12 release.

Date parsing to JS Date in Eff https://github.com/justinwoo/date-parsing-simple-json-example/blob/master/src/Main.purs

This is essentially the same as the first example, except this uses Eff functions to do parsing (as JSDate parsing is effectful as it uses locale information and is impure/a giant mess). Parses the date field to a String first, and then makes a JSDate. Also see the example below using formatters.

Enum-style sum type parsing https://github.com/justinwoo/enum-sum-generics-example-simple-json/blob/master/src/Main.purs

This example parses a string literal to the constructor name of a sum type member, using the reflected symbol to check for a match. By writing a typeclass with instances for generics-rep Sum and No-Arguments Constructor, I'm able to make this work with any enum-style sum type.

Hopefully this comes in handy for anyone wondering how to do some of these things, or piques your interest on how you might approach similar problems.

Edit:

Change a field name from the parsed JSON https://github.com/justinwoo/change-field-name-simple-json-example/blob/master/src/Main.purs

This example uses the same techniques to parse the JSON with a different field name, and then allows you to rename that field to put into your record type.

Edit 2:

Parse a date using purescript-formatters to set the field value after parsing https://github.com/justinwoo/formatters-date-parsing-simple-json-example/blob/master/src/Main.purs

Practically the same as the other examples, where we have the row types set to parse a string first, and then use that string to run through purescript-formatters to parse the date out.


r/purescript • • Oct 28 '17

Upgrade from Bower to Psc-Package

Thumbnail
qiita.com
13 Upvotes

r/purescript • • Sep 27 '17

YouTube - Hello World with Pulp and Psc-Package

Thumbnail
youtube.com
13 Upvotes

r/purescript • • Aug 06 '17

Purescript waterslide, a library to share your data type definitions between Rust and Purescript (X-post /r/rust)

Thumbnail
github.com
13 Upvotes

r/purescript • • Jun 26 '17

Differences of Purescript from Elm - Qiita

Thumbnail
qiita.com
13 Upvotes

r/purescript • • Apr 17 '17

purescript-run: an extensible-effects implementation

Thumbnail
github.com
13 Upvotes

r/purescript • • Apr 04 '17

A Chrome Extension that creates direct links to Pursuit docs on every import declaration in GitHub .purs files

Thumbnail
fiatjaf.alhur.es
13 Upvotes

r/purescript • • Mar 26 '17

I want to start my first frontend project. What are the current tradeoffs between frameworks?

13 Upvotes

Hi all, so I've done a few react/redux apps in the past, and (mostly) read through the purescript by example book.

One of the main things that excites me about purescript is the ability to bring a badass type system into react-style apps. I feel like 99% of my javascript frustrations would melt away if I had a strong type system to do some static analysis for me.

I have a frontend project that I'm embarking on soon that I want to do in purescript, but I'm having some trouble figuring out the distinctions between frameworks like thermite, halogen, and pux. I'm hoping that someone who has walked these roads before can give me some starting advice on what I'm getting into. Mostly I'm looking for something with:

  • ongoing development and community support

  • interoperability with react or angular (so that I can pull in 3rd party libraries as I need them)

  • represents current understanding of "the right way" to build a production-ready purescript application.

I've looked at pux, thermite, and halogen so far, but I don't entirely understand their structure. I wanted to ask some experts (you guys) before investing the time to really learn one of them. For all I know, there's another framework out there that's an even better fit.


r/purescript • • Feb 05 '17

PureScript Unscripted - Next Saturday: Nate Faubion will present halogen-vdom and (hopefully) Free and Cofree as well

Thumbnail gathering.purescript.org
13 Upvotes

r/purescript • • Mar 23 '16

Announcing purescript-bridge - Map your Haskell types to PureScript types

13 Upvotes

I just finished a very early version of a Haskell to PS type converter. It seems to work as expected - I hope it is useful to someone else but just me ;-)

Currently missing in the docs - the modules created in your purescript root directory mirror the hierarchy in your Haskell project by default.

Almost forgot the link:

http://hackage.haskell.org/package/purescript-bridge

In comparison to typed-wire, you can directly translate your Haskell types. This is especially useful if some of your types are created using Template Haskell, like it is the case if you are using persistent.


r/purescript • • Oct 07 '15

Elm vs PureScript II: The Elm Architecture in PureScript

Thumbnail
parsonsmatt.org
13 Upvotes

r/purescript • • Sep 30 '15

Using PureScript for work?

13 Upvotes

I'd like to collect some experience reports from developers using PureScript for real-world work. Please share your experience below. Thanks!


r/purescript • • Apr 28 '15

Two PureScript projects accepted for GSOC 2015

13 Upvotes

r/purescript • • Dec 02 '24

My new book, Pragmatic Type-Level Design, is now completed and released!

Thumbnail reddit.com
12 Upvotes

r/purescript • • May 09 '23

PureScript Domains is now PureScript *Domain*.

12 Upvotes

I'm happy to announce some changes to PureScript Domains that I think will make the service much more useful going forward.

First, subdomains have been replaced by subpaths. For example, the documentation for my purescript-tecton library can be found at purescri.pt/tecton. Accordingly, PureScript Domains is now PureScript Domain (although previously-registered subdomains remain active).

Second, a purescri.pt URL will automatically be activated for any package added to purescri.pt/registry. By default, it will redirect to the corresponding GitHub repository, but you can change this behavior or opt out through a simple pull request.

If you would like to participate, please visit purescri.pt for details.

Thanks for reading!


r/purescript • • Dec 01 '21

MLabs is hiring Haskellers/Purescript Developers! (Full remote, worldwide)

12 Upvotes

Mlabs | Haskell / Haskell Developer / | Remote | Full-time, https://mlabs.city/

MLabs is a rapidly growing, globally distributed software consultancy, working with Haskell, Rust, and Python.

Currently we are looking to fill a position with a great opportunity to use both Haskell and Purescript.

You will be a part of an established team and work collaboratively to come up with solutions, on an ongoing contract basis.

Experience and/or interest with any of the below technologies/business fields are an asset:-

- Blockchain, Especially Cardano or Ergo - Functional programming - Finance - Consultancies/Agencies - NFTs - Web Stack - Formal Methods, Dependant types, theorem provers - Sales engineering - Cybersecurity

We offer competitive salaries and varied shift patterns to suit everyone. Whether you want to work one day or a week or five we want to hear from you!

For more information about these roles and applications, check <https://apply.workable.com/mlabs/j/63DAAA4AEF/>

In case of any questions please send an email to: [email protected]

We will get back to you as soon as possible!