1,291 karma · joined Mar 27, 2019 (7y ago) · 867 submissions
271.
Rich Hickey – Design in Practice [video](youtube.com ↗)
3 points · by funcDropShadow · 2y ago · discuss
comment 2y ago · link · parent
1. That depends on the operation performed. I'd say cache-locality is near perfect for depth-traversal.
2. Whether the effective performance of the cache is good or bad depends on the alternative. If the alternative is adding two 64 bit pointer to every 32 bit value in the tree node. And each of those node may be spread through out the heap. Then this representation starts to look quite good.
comment 2y ago · link · parent
By killing many. In biology, species with higher rates of genetic diversity in their offspring sacrifice most of there offspring. E.g. trees fall into that category. Their seeds have more genetic diversity, when compared to children of mammals. But a single tree can produce tens of thousands of seeds in one year. And the environment conditions can change drastically every few meters for those seeds. Therefore, it is a successful strategy. But most seeds never grow into mature trees. Do we want to model human cultures on that strategy?
comment 2y ago · link · parent
comment 2y ago · link · parent
I don't know. But if it does so, how does it integrate wayland windows with X windows? How does it stop X programs from observing the window contents of wayland programs?
comment 2y ago · link · parent
comment 2y ago · link · parent
comment 2y ago · link · parent
I don't understand this. Implementing billing from scratch and running it in parallel to the old code is a form of doing due diligence. I.e. it is an application of Chesterton's fence. It might be an expensive application but it is one.
To me, this anecdote shows the value of documenting the why of software. I've read some time ago, to add code to systems such that, it is simple to remove it again. This discussion deepened that insight for me. This is preparing for Chesterton's fence.
comment 2y ago · link · parent
comment 2y ago · link · parent
Reading the directory in a software running on your computer is not the problem. The question is, is data from the surrounding directories transmitted to somebody else's computer, a.k.a. The Cloud?
comment 2y ago · link · parent
I really admire Brian Goetz's slow and steady hand to extend Java piece by piece with those language constructs, that are understood well enough. Scala started as an experiment to unify a functional language with an object-oriented language. Thereby, they created this monstrosity of a type systems which fails to give the guarantees of Haskell 98 types, but provides all the bells and whistles of Haskell 2010 + GADT + UndecidableInstances. And at the same time the type systems is shoehorned into the type system of the JVM. All that is quite an engineering achievement. And it was/is an extremely valuable research experiment. But it is far from simple.
I hope Java continues to walk the path well trodden. Then it can continue to be the boring technology, the safe choice, the reliable tool it is. Although it is evolving faster than ever.
comment 2y ago · link · parent
Does it support restricting undo/redo to a selection? In Emacs you can select any region of text and just apply the undo history of the selection. That is extremely useful. Imagine working on to functions in the same file. You have are working on g() and realize you want to undo some change on f(), that you did before. Most editors don't support that. In Emacs you can just select the code of f() and press undo (C-_).
Several popular undo extension libraries break this feature.
comment 2y ago · link · parent
comment 2y ago · link · parent
> Shells and sysvinit sure have their problems as the implementation. But at least they let me use my system as a general purpose computer.
Why are you sure, you're perceived limitations of systemd compared to sysvinit are based on systemd's shortcommings instead of yours? I don't want to attack you personally, but I've had this conversation lot's of times before. Most of the time, people just had no clue how systemd works. In my experience it simplified lots of use-cases. And I have yet to find a use-case that was possible with sysvinit, but is not with systemd.
comment 3y ago · link · parent
Otherwise, I have to take your word for it, because I cannot see your specific example.
comment 3y ago · link · parent
I don't think it is plausible. Emacs extensibility and power stems from the fact you can see and change almost everything. You can add advice, i.e. modify, any function there is. And you can inspect any object that exists in the heap. If you add another language into the mix, these two languages either have to share an object/data structure model or they have to bridge them somehow. In vim you have plugins that add new commands, or hook into some callbacks. But in emacs you can extend every third-party functionality with another third-party library. Fragmenting the ecosystem into two language camps would probably diminish this advantage.