Are there any libraries that bring refs, atoms and agents to C code?
Are there also structural sharing libraries for C to accompany?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
To my knowledge no.
Even if there was, IMHO it wouldn’t be a particularly good fit for C code:
swap!for updating an atom is itself a higher order function.While I’m not saying that you can’t write functional-style STM code in C if you are determined enough…. it’s not a good fit though, and you’d probably end up reinventing something like Lisp anyway. I’m reminded of Greenspun’s tenth rule of programming:
Basically, use the right tool for the job 🙂