Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

1,291 karma · joined Mar 27, 2019 (7y ago) · 867 submissions

Submissions

271.

Rich Hickey – Design in Practice [video](youtube.com ↗)

3 points · by funcDropShadow · 2y ago · discuss

comment 2y ago · link · parent

Gathering the data might change the gut feeling.

comment 2y ago · link · parent

Human decency has been investigate, discussed, analyzed, dramatised since millenia, however not by using numbers.

comment 2y ago · link · parent

> Cache locality is good toward the leaves and bad everywhere else.

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

> but being a culture that tends to tear-down fences has the second-order effect of being more adaptable.

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

In Chesterton's fable the people entrusted to road and fence maintenance couldn't find a reason for the fence while being in a world with the fence. Chesterton argues to try look at it from the world without the fence. If that has been done, fine, tear it down. If the total risk is miniscule, bulldoze it immediately. But, be aware that the risk for a vc funded startup might be tiny, compared to the risk of changing the rules of society.

comment 2y ago · link · parent

> Isn’t that what XWayland does, except for the fact that it runs X Windows windows inside a full screen Wayland window?

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

Chesterton's fence might not be ideal for a fast moving startup. Perhaps it is a better strategy to question the wisdom of anything that existed only for a few month/years. But if we are talking about society-wide or nation-wide changes, Chesterton's fence seams to be quite relevant. It is rather easy to destroy a society, but it is so damn hard to create a prospering society.

comment 2y ago · link · parent

On the contrary, I am convinced many taboos that persisted for millenia had very practical reasons. The world has changed dramatically since the industrialization. Therefore many reasons don't apply anymore. But that doesn't change the value propositions of those taboos in the dark age or the stone age.

comment 2y ago · link · parent

> I’m not disagreeing with the premise of the fence, just pointing out that at times, even doing all of the due diligence to understand the fence isn’t enough to remove it.

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

I guess GP meant, if Alice doesn't know about the edge case, she can't analyze it.

comment 2y ago · link · parent

How does xwayland help here? In order to see what xsnow is about look here [1]. From my understanding such a program is fundamentally against wayland design philosophy. I feed it will be just impossible with Wayland unless you implement it as part of the display server.

[1]: https://www.youtube.com/watch?v=T2Mzg2i6t0I

comment 2y ago · link · parent

> 2. What if it's something like an IDE that reads the surrounding directories?

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 consider sending anything up to the cloud without user's consent is pretty hostile.

If not illegal.

comment 2y ago · link · parent

Java is not becoming Scala and that is good. I am saying that as someone earning his bread with mostly writing Scala and SQL nowadays. Scala's underlying type theory is quite different from Java and that lead to many of its pitfalls.

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

> There is nothing programmers get more fiery about than language syntax. Nothing.

According to Wadler's Law [1], there is something: Syntax of comments.

[1]: https://wiki.c2.com/?WadlersLaw

comment 2y ago · link · parent

> but it looks like vim really has undo/redo "solved"

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

Calling for the genocide of Jews is context-dependent, but misgendering is always a hate crime?

comment 2y ago · link · parent

Could you give us a name of such a service?

comment 2y ago · link · parent

Is there an alternative to list the dependencies, that doesn't have this risk?

comment 2y ago · link · parent

People and businesses are learning that good intentions don't guarantee good outcomes. It is about time.

comment 2y ago · link · parent

The browser is highly security critical, because of its exposure to the internet, as well as, because of the high-value assets it stores, security tokens, session keys, passwords, browser history, etc. Therefore, I prefer tools that don't extend that attack surface and that I don't have to trust that they observe every move I make on the web.

comment 2y ago · link · parent

Actually, systemd is also better for users that want to highly specialize their systems.

It is only bad for people who love debugging race-conditions between shell scripts that run very early in their boot process.

comment 2y ago · link · parent

> The systemd ideology, ... , dumb down computers into appliancies.

> 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 2y ago · link · parent

Why is that a browser extension instead of a separate application? How does it extend the browsing experience?

comment 3y ago · link · parent

Why did the Github support add an ssh key, though?

comment 3y ago · link · parent

DDD usually stands for domain-driven design.[0]

[0]: Or in earlier times for the Data-Display Debugger.

comment 3y ago · link · parent

Rich didn't say it, if I remember correctly. But there are problems where a more general algorithm is simpler than a more specific straight-forward algorithm. Usually because you change the way you model the problem.

Otherwise, I have to take your word for it, because I cannot see your specific example.

comment 3y ago · link · parent

> I don't know if adding a new language would/will help emacs or not but it's _plausible_ something like that would work.

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.

comment 3y ago · link · parent

Or in Emacs for 40 years.
1
91011
29