r/purescript • • Nov 12 '16

Purescript Crypto

11 Upvotes

Hey all,

I'm relatively new to pure functional programming, as well as purescript, but am really enjoying working with purescript thus far.

I think FP has big advantages when it comes particularly to cryptography, as it is easier to reason about other people's code, as well as verify the correctness and non-underhandedness of programs where privacy or security is critical.

I've recently written a wrapper around TweetNaCl.js (https://github.com/dchest/tweetnacl-js) for purescript, as I think NaCl is a good, small, standard of cryptographic primitives upon which a lot can be built (saltpack, much of the signal protocol, etc.).

You can check out my library here (it's my first library i've pushed to Pursuit as well): https://github.com/throughnothing/purescript-crypt-nacl

I'd love to get any feedback the community has about my code, style, direction, etc., as I'm new to FP and purescript like I mentioned. I think it'd be great to eventually get some native crypto primitives into purescript, but starting with relatively well trusted/used implementations from javascript seems like a good start.

I've also got a SHA hash + hmac wrapper around jsSHA in progress here: https://github.com/throughnothing/purescript-sha

Thanks for taking the time to look, and thanks for the great community + tools :)


r/purescript • • Oct 31 '16

Purescript-jack: QuickCheck with shrinking for free

Thumbnail
github.com
11 Upvotes

r/purescript • • Jul 20 '16

Supercharged Types - Useful application of Row Polymorphism

Thumbnail rtpg.co
11 Upvotes

r/purescript • • May 11 '16

Ludum Dare 35 post-mortem - Things learnt using PureScript

Thumbnail gilmi.xyz
11 Upvotes

r/purescript • • Feb 28 '16

Neon: An alternative PureScript prelude

Thumbnail
taylor.fausak.me
11 Upvotes

r/purescript • • Oct 20 '15

PureScript Compiler v0.7.5 with Typed Binders, Parallel Builds and more

Thumbnail
github.com
11 Upvotes

r/purescript • • Oct 11 '15

Elm Architecture in PureScript IV: Effects (last one for a while, I promise)

Thumbnail
parsonsmatt.org
11 Upvotes

r/purescript • • Sep 13 '15

Announcing the first release of psc-ide - Editor Support for PureScript

Thumbnail
github.com
11 Upvotes

r/purescript • • Jun 29 '15

Truffled PureScript - PureScript on the JVM

Thumbnail
github.com
11 Upvotes

r/purescript • • Dec 01 '22

What is wrong with my case match in my do-block?

Post image
10 Upvotes

r/purescript • • Jan 03 '22

MLabs is hiring Haskellers/Purescript Developers! (Full remote, worldwide) https://mlabs.city/

10 Upvotes

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

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!


r/purescript • • Nov 19 '21

Released my first open-source library

10 Upvotes

I'm new to FP and I absolutely love Haskell and PureScript. purescript-amazons is my first open-source project and it needs a lot of refactoring/testing. Any helping hand would be appreciated 😄.

Thanks in advance and feel free to DM me!


r/purescript • • Oct 18 '21

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

10 Upvotes

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

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!


r/purescript • • Feb 27 '21

How do you deal with the giant bundle sizes from purescript builds?

10 Upvotes

I was trying purescript out and the bundle size generated from a single halogen counter example is already at around 500KB (with minification and tree-shaking). Is there a way to optimize the build better?


r/purescript • • Sep 17 '20

xc-jp/purescript-protobuf

Thumbnail
github.com
10 Upvotes

r/purescript • • May 19 '20

Medea - a json schema language

Thumbnail
github.com
10 Upvotes

r/purescript • • Nov 20 '19

How does callCC work?

Thumbnail
maxhallinan.com
10 Upvotes

r/purescript • • May 17 '19

Haskell-like range in PureScript?

10 Upvotes

Is there a native function that behaves like Haskell's range?

I found out that 2..1 returns a list [2, 1] in PureScript, unlike Haskell's [2..1] returning an empty list []. After Googling around, I found the behavior is written in the Differences from Haskell documentation, but it doesn't give a rationale behind.

In my opinion, this behavior is somewhat inconvenient/unintuitive since 0 .. (len - 1) doesn't give an empty list when len is zero, and this could possibly lead to cryptic bugs.

  1. Is there a way to obtain the expected array (i.e. range of length len incrementing from 0) without handling the length == 0 case every time?

  2. Also, why did PureScript decide to make range behave like that?

P.S. How I ran into this question: I wanted to write a getLocalStorageKeys function, which gets all keys from the local storage. My implementation gets the number of keys using the length function, creates a range from 0 to numKeys - 1, and then traverses it with the key function. However, the range didn't behave as I expected.


r/purescript • • Feb 17 '19

Write applicatives for concurrent actions

Thumbnail
medium.com
10 Upvotes

r/purescript • • Dec 07 '18

PureScript-to-PureScript websockets with simple-json and low-level cowboy bindings

Thumbnail nwolverson.uk
10 Upvotes

r/purescript • • Oct 19 '18

Type classes: pattern matching for types - Talk from PureScript Helsinki

Thumbnail
speakerdeck.com
10 Upvotes

r/purescript • • Aug 20 '18

Halogen best practices: How small should child components be?

10 Upvotes

Is there a difference in performance/design philosophy/etc. for when to break down a component into child components? For example, if I have a list of posts and a panel on the side to filter the posts, I don't know if I'm supposed to structure it as:

  1. A single component for both, keeping the filter settings in its state

  2. A parent component with a child for the filter panel and a child for the posts, which retrieves filters from the filter panel and passes them to the posts

  3. Like 2, but the post container is also a parent component and each post is a child component

Is this just a matter of personal preference, or are there reasons to prefer one approach over the others?


r/purescript • • May 16 '18

Simple Routing based on parsing type-level strings - Qiita

Thumbnail
qiita.com
10 Upvotes

r/purescript • • Apr 25 '18

Well made Tortellini with PureScript -- slides from my talk at NY PureScript

Thumbnail
speakerdeck.com
10 Upvotes

r/purescript • • Mar 20 '18

purescript-pathy v5.0.0 is released 🎉, it's safer and simpler!

Thumbnail
github.com
10 Upvotes