Displaying 1 to 20 from 33 results

microstates.js - Composable State Primitives for JavaScript

  •    Javascript

Microstates makes working with pure functions over immutable data feel like working with the classic, mutable models we all know and love. But, most imporantly, Microstates makes working with state fun.

partial.lenses - Partial lenses is a comprehensive, high-performance optics library for JavaScript

  •    Javascript

We ultimately want to present the user with a rich enough editor, with features such as undo-redo and validation, for manipulating the content represented by those JSON objects. The titles property is really just one tiny part of the data model, but, in this tutorial, we only look at it, because it is sufficient for introducing most of the basic ideas. Furthermore, when updating, inserting, and removing texts, we'd like the operations to treat the JSON as immutable and create new JSON objects with the changes rather than mutate existing JSON objects, because this makes it trivial to support features such as undo-redo and can also help to avoid bugs associated with mutable state.




focal - Program user interfaces the FRP way.

  •    TypeScript

Type safe, expressive and composable state management for React applications. You can play with this example online on CodeSandbox.

putting-lenses-to-work - A presentation for BayHac 2017 on how I uses lenses at work

  •    Haskell

A presentation on practical uses of lens, in the ways I'm currently using them at work in nearly every project. Also means as a reference of sorts, and the Lenses.hs file contains a slew of tests to serve both as a reminder, and a source for cargo-culting certain use patterns.

glsl-film-grain - natural looking film grain using noise functions

  •    Javascript

Natural looking film grain using 3D noise functions. Inspired by Martins Upitis.This is a fairly expensive technique to achieve film grain, but it looks more realistic than a hash function and also produces better motion.


nanoscope - A Lens Library for Javascript

  •    CSS

View more examples and the API documentation at the official nanoscope website. Feature requests, pull requests, code reviews, comments and concerns are more than welcome. If you have an issue with nanoscope, please file it on github. When submitting pull requests, please create a feature branch and explain in detail what you've changed and why.

lenses - Composable kmett style lenses

  •    Javascript

Composable kmett style lenses

goggles - Pleasant, yet principled Scala optics DSL

  •    Scala

Optics libraries are either too limited, or too hard to use. Goggles builds on Scala's powerful Monocle library, making immutability easy, fun, and boring, like it should be. You already know how to use it.

microlens-aeson - Lenses and Traversals for Aeson, based on Microlens.

  •    Haskell

microlens-aeson provides Traversals for the Aeson library's Value type, while obeying the Traversal laws. microlens-aeson is derived from lens-aeson, but is based upon microlens to reduce the amount of dependencies involved.

objektiv - Functional lenses in JavaScript

  •    Javascript

Objektiv.attr('field') Object attribute accessor. Objektiv.at(index) Array element accessor. lens.then(otherLens, ...) Lens composition can take many arguments. lens.traversal([filter]) Returns traversal, optionally filtered. Array elements can be traversed by calling .traversal([predicate]) on a lens that references an array. You can pass predicate in traversal to filter elements of an array or chain .traversal()).filter(predicate) function. Several .filter() functions can be chained one after another.

dot-lens - :mag: Fast, compiled dot lenses for javascript

  •    Javascript

Extremely fast dot lenses. Generated lenses are compiled javascript functions. The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

react-lensed-state - React mixin, for this.linkState ('model.user.name')

  •    Javascript

Adds react opportunity to work with the state in a hierarchical notation, for example this.linkState ('model.user.name') will point to the part of the object state. Work of lens are immutable, that is, after changing the value will create a new state object.

optika - Optics library for JavaScript

  •    Javascript

The updateIn isn't powerful enough to make the drilling less boilerplaty (and less error-prone).

monocle-ts - Functional optics: a (partial) porting of Scala monocle to TypeScript

  •    TypeScript

Modifying immutable nested object in JavaScript is verbose which makes code difficult to understand and reason about. Here modify lift a function string => string to a function Employee => Employee. It works but it would be clearer if we could zoom into the first character of a string with a Lens. However, we cannot write such a Lens because Lenses require the field they are directed at to be mandatory. In our case the first character of a string is optional as a string can be empty. So we need another abstraction that would be a sort of partial Lens, in monocle-ts it is called an Optional.

purescript-lens - PureScript implementation of lens

  •    PureScript

This started as an indirect port of @ekmett's lens library in PureScript. It has since been broken apart and simplified substantially. The core idea is that these are just van Laarhoven lenses. Read about them as they were called functional references. SPJ gave a brilliant introductory talk about them here. If you're confused, I'd recommend SPJ's talk first. @ekmett has talked about them many times, here's one. For more documentation, you should look at lens and any of the lens resources online. to install it.

domemaster-stereo-shader - Repository for the domemaster stereo shader (all versions)

  •    Mathematica

As life happens, both Andrew Hazelden and I (Roberto Ziche) need to move on and slow down the amount of the time we spend volunteering on the development of the Domemaster Stereo Shader. It was a nice project and had a surprisingly good adoption rate since my original experiment in mental ray ( http://www.robertoziche.com/domemaster/ ) back in 2010. And I have to thank Andrew for building an amazing Domemaster3D toolset around it, for regularly posting updates of the toolset with Windows/Linux/Mac based installer packages, and promoting it for all these years. Since both the Domemaster and Latlong lens shaders still include some unique functionality for omni-directional stereo rendering that no one else provides at the moment, we are hoping that production users who need these tools going forward could join the GitHub project as a contributor to help pick up the development effort on creating bug fixes and to assist with the end user support especially for the stereo 3D planetarium production community that this toolset was designed for.






We have large collection of open source products. Follow the tags from Tag Cloud >>


Open source products are scattered around the web. Please provide information about the open source projects you own / you use. Add Projects.