linear-base
linear-builder
linear-base | linear-builder | |
---|---|---|
10 | 5 | |
333 | 87 | |
0.6% | - | |
5.9 | 7.1 | |
23 days ago | 4 days ago | |
Haskell | Haskell | |
MIT License | BSD 3-clause "New" or "Revised" License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
linear-base
-
What I don't do is look at flour, water and salt, then map them all through an anonymous function, which gives me unstirred dough while leaving the original ingredients unchanged.
lol no Data.Dough.Destination
- Linear Types in Haskell
-
What is the longterm status of -XLinearTypes ?
Thanks for your interest in linear types. The sort of overarching answer is that the Covid crisis has put a serious wrench in our plans. There has been very little progress on the implementation in the past 2 years, I'm afraid. I hope to slowly pick up the pace again this year. But I make no promise as to specific plans just yet. When we have more visibility, we will publish a roadmap. This is not to say that nothing has happened at all: linear-base is getting a pretty significant release any day now, David Feuer (no affiliated with Tweag) has created linear-generics, an implementation of Generic which is compatible with linear types (there is a surprisingly subtle issue with Generic1, in particular, that I don't understand very well, so won't try to explain), we co-wrote two academic articles as well.
-
Does Haskell allow pure functions to use *encapsulated* impurity
See here for a linear quicksort implementation.
-
Monthly Hask Anything (March 2021)
Handle is defined in terms of UnsafeResource (in linear-base). This is where the linearity checking "stops". If you pattern match an UnsafeResource then you have to make sure that you correctly close/free it. Luckily, this only has to be implemented once in an internal module and is not exported in the public interface.
-
Tweag - linear-base makes writing Linear Haskell easy and fun
The optics sublibrary is not very developed yet. Because our arrays, which are one of the principal use-case, require a special kind of lens which we haven't managed to produce without too much code duplication yet. The design space is discussed in this issue.
-
Monthly Hask Anything (January 2021)
So to write a function f :: a %1 -> () you have to traverse the whole datatype a, see the Data.Unrestricted.Internal.Consumable and Data.Unrestricted.Internal.Instances, which introduces a type class consumable which implements exactly this functionality.
-
Ephemeral Purely Functional Data Structure And
Trying to run empty Ur shouldn't typecheck, because the Ur constructor is not linear. This seems to be an idiom used in other places of linear-base.
linear-builder
- New release of Builder with linear types, now renderable both to Text and ByteString
-
High-Performance Haskell?
Another interesting area of performance optimisation is linear types. It's already possible to take advantage of them in libraries https://github.com/Bodigrim/linear-builder with real world performance gains and in the future in GHC. More about this here https://www.reddit.com/r/haskell/comments/5z6mxb/linear_types_make_performance_more_predictable/?utm_source=share&utm_medium=ios_app&utm_name=iossmf
- Linear Text Builder: up to 20x faster than alternatives
-
Strict Text builder with linear types, up to 10x faster than Data.Text.Lazy.Builder
I've been toying with a strict Text builder, backed by linear types, and benchmarks look very good, up to 10x faster than Data.Text.Lazy.Builder. I'd like to collect more feedback before releasing it, so I'd appreciate people taking a look at https://github.com/Bodigrim/linear-builder/ or rendered haddocks.
-
Seeking feedback for Text Builder with linear types
I've been playing around with linear types, attempting to design a strict Text builder. Admittedly I know too little about both topics, so I'd appreciate some feedback about my ramblings, because benchmarks look suspiciously good: https://github.com/Bodigrim/linear-builder/
What are some alternatives?
koka - Koka language compiler and interpreter
emoji - emoji utility for haskell
juvix - Juvix empowers developers to write code in a high-level, functional language, compile it to gas-efficient output VM instructions, and formally verify the safety of their contracts prior to deployment and execution.
text - Haskell library for space- and time-efficient operations over Unicode text.
text-rope - A wrapper around Text for fast line/column navigation and logarithmic concatenation
mikail-khan.com - Personal website using Haskell's Servant framework and Blaze-HTML
text-short - Memory-efficient representation of Unicode text strings
ShellCheck - ShellCheck, a static analysis tool for shell scripts
countwords - Playing with counting word frequencies (and performance) in various languages.
linear-generics - Support for linearly-typed generics in Haskell