Giter VIP home page Giter VIP logo

Comments (4)

borkdude avatar borkdude commented on June 12, 2024

Something like this for the JVM might work:

(run! #(alter-var-root % (fn [_] nil)) (vals (ns-publics 'aoc.y2018.d01.borkdude)))

from advent-of-cljc.

borkdude avatar borkdude commented on June 12, 2024

For CLJS the following might work:

(gobject/remove (goog.getObjectByName (munge (namespace sym))) (munge (name sym)))

from advent-of-cljc.

mfikes avatar mfikes commented on June 12, 2024

Under :advanced namespaces and vars get flattened. For example, with :pseudo-names true, aoc.y2018.d05.mfikes/part-2 gets flattened to $aoc$y2018$d05$mfikes$part_2$$.

The vars themselves still exists as separate objects. So for example the attached tests end up looking like:

$aoc$y2018$d05$mfikes$part_2$$.$cljs$lang$test$

The trick would be to somehow find the vars retaining data. (I don't think there is a way to remove an entire namespace.)

from advent-of-cljc.

borkdude avatar borkdude commented on June 12, 2024

Closing because running all the tests is not necessary anymore for comparing test timings.

from advent-of-cljc.

Related Issues (7)

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.