GithubHelp home page GithubHelp logo

Comments (4)

bsless avatar bsless commented on May 29, 2024 1

A heuristic is better than nothing.
Dropping this here for reference, it can be adapted for a solution: https://github.com/bsless/impedance

from clj-fast.

bsless avatar bsless commented on May 29, 2024

Your intuition here is correct, I've done something similar in the past which can be generalized to this. The idea is to build a trie then derive an execution model from it.
Good find :)

from clj-fast.

yuhan0 avatar yuhan0 commented on May 29, 2024

I guess there's also the assumption that individual keys are referentially transparent, and can actually be combined like so:

(inline/assoc-in {}
  [(rand) :x] :oh
  [(rand) :y] :no)

The above transform would change the behavior:

(let [m {}
      r (get m (rand))]
  (assoc m (rand)
    (-> r
      (assoc :x :oh)
      (assoc :y :no))))

unless we use a heuristic that only atomic keys (keywords/symbols/numbers/strings) can be tested for equality and combined safely.

from clj-fast.

bsless avatar bsless commented on May 29, 2024

@yuhan0 I opened a PR which should provide this feature, you're welcome to take a look

from clj-fast.

Related Issues (20)

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.