TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Emacs with the SpiderMonkey garbage collector

183 pointsby nochover 7 years ago

5 comments

ciesover 7 years ago
I came across this some time ago, may be of interest:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;Wilfred&#x2F;remacs" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;Wilfred&#x2F;remacs</a><p>It&#x27;s a port of the EmacsOS to Rust, should be able to run all your elisp code at some point.
评论 #15803348 未加载
评论 #15804872 未加载
marktangotangoover 7 years ago
<i>The main difference between the current mark-and-sweep garbage collector and the SpiderMonkey garbage collector is that the latter is a copying garbage collector and precise, meaning that objects may change address during GC and that only typed values, not memory locations that might or might not be, must be trace</i><p>Out of all the types of gc out there going to a copying gc seems not very compelling. Mark and sweep is not bad at all (well understood, straight forward to implement), and you don&#x27;t have to worry about double dereferencing pointers (ie some implementations of Cheneys, I don&#x27;t know if spidermonkey refercences are indirect pointers to one of two buffers).
评论 #15803359 未加载
评论 #15802778 未加载
评论 #15804280 未加载
评论 #15803693 未加载
S4Mover 7 years ago
Could someone explain, for someone not familiar with low level programming, what would be the advantages of using another garbage collector in Emacs?
评论 #15802645 未加载
评论 #15803096 未加载
dilapover 7 years ago
my emacs gc strategy: disable the gc. do manual collections by restarting every now and then.
评论 #15803133 未加载
fusiongyroover 7 years ago
Wow! My gut instinct would have been to try Boehm, but I have no idea why one would prefer one GC over another with Emacs.
评论 #15805194 未加载