Git Product home page Git Product logo

okasaki's Introduction

Okasaki

Functional data structures in C++

okasaki's People

Contributors

bartoszmilewski avatar sastaachar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

okasaki's Issues

Garbage collection

I thought I'd leave this comment here:
I've been playing around with implementing an opt-in garbage collector as a library for C++.

I think this would be a pretty interesting tool for implementing more efficient functional data structures. Basically, there would be a opaque pointer type that would be produced by an allocation routine. Then root objects would be registered with the garbage collector. Each garbage-collectable type would have a reflection method that allowed the garbage collector to walk the object tree.

This way, things like bump-pointer allocation (allocations are only one addition operation!) and GC compaction could be implemented.

There's really no way to have garbage collection for all of C++. And we wouldn't want that. But, sometimes there's a much higher performance cost to certain abstractions in C++ than there would be with a garbage collector. I think this would quite a few useful use cases in a distributed task parallelism library I've been working on based around futures, IVars and LVars. I think there a lot of other embedded DSL use cases. While this isn't traditionally the domain of C++, I don't see why it shouldn't be...

Any thoughts?

Cheers,
Ben

Persistent List destruction size limit

Hy,

The list implementation is simple/nice but it imposes a limit on number of stored elements because of "additional effect" of recursive destruction. A garbage collector would be very nice indeed, without it I don't know if using a "production persistent List" is really possible.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.