Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8841189
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T10:39:04+00:00 2026-06-14T10:39:04+00:00

I would to use something like a weak reference in clojure. I want to

  • 0

I would to use something like a weak reference in clojure.

I want to keep track of the return of a particular function. Currently I am doing this using a map which is on the end of a ref. This seems to work quite well. But I would like to keep only those which are not referenced from elsewhere.

In Java I would use a weak reference, or a weak hashtable. I can’t find a similar data structure in clojure. It is possible? Or should I just use a WeakHashMap from java? The values in question are clojure records. I guess I can put these into a java collection?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T10:39:06+00:00Added an answer on June 14, 2026 at 10:39 am

    one of the guiding principals in Clojure is to embrace the host platform where it solves the problem. with that in mind it makes a lot of sense not to wrap the normal Java weak hash map. don’t wrap for wrapping sake

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I would like to use something like the following: SELECT city FROM cities WHERE
Should I use something like maven for this? Or would finding them as they
I would like to do something like this i.e., use wild card characters in
Normally you would use something like attr_accessible :name, :email to allow for mass assignment
Previously in SQL I would use something like this to rank my search results:
A long time ago, I would use something like the tag to align things
for example, in ant i would use something like fileset dir=src/tests includes=${test.includes} excludes=${test.excludes}/> in
I just would like to know what format and codec would use the least
I'm guessing that most built in random generators return something like this: [0.0, 1.0)
I would use a multi dimensional gaussian modell for regression. Rasmussen has a book

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.