9,428 karma · joined Jul 10, 2015 (11y ago) · 3,276 submissions
comment 11y ago · link · parent
comment 11y ago · link · parent
No, it's not copy on write in the sense that COW means in other languages. Data in clojure is persistent, so usually even an altered piece of data is not actually copied, only the tiny bit that changed is added, if necessary. This is very different than, for example, Swift that implements copy on write, but the whole data structure is copied even if the change is minor.
Additionally, you say:
>When we're dealing with sequential tasks, mutating data is much faster than allocating new data structures
That would be true in cases where the entire data piece is new; but so much of what you do in any language involves interative changes over existing data, and again because of clojure's persistence, new allocations are often not happening at all in many cases.
...However, I do agree with most of your other points :)
3186.
NASA: Inevitable, irreversible 3-foot minimum sea level rise(edition.cnn.com ↗)
1 points · by hellofunk · 11y ago · discuss
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
This is not an easy statement to make, nor particularly accurate. There are many, many prolog systems available. Perhaps the free prolog compilers out there are not stellar in performance, but commercial production prolog systems are not likely going to be slower than what is proposed here, and yet will still probably be more feature-rich.
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
Update: I missed the part further down in the article where the Playgrounds were indeed mentioned. Whoops.
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent
comment 11y ago · link · parent