Better HN
topnewbestaskshowjobs
Log inSign up

funcDropShadow

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

Submissions

comment 3y ago · link · parent

I've been using Unison [1] to sync two and more computers for years. I can't recommend it enough.

[1]: https://github.com/bcpierce00/unison

comment 3y ago · link · parent

Do you have that test in a public repo somewhere?

comment 3y ago · link · parent

Finite state machines are an ideal mechanism to with concurrency if you put a concurrent queue in front of them. Such a program is easily coded with Akka's FSM trait. It even adds the possibility to trigger transition based on timer. As soon as you are in the realm of time sensitive programs, i.e. because of network requests, this is a very powerful and easy to understand way to program complicated parts of programs.

comment 3y ago · link · parent

It is not about hate. If there is tool, perhaps GPT-3, that is really good a summarizing code diffs. It should be integrated in your IDE or other tooling to summarize diffs on the fly, when I need that summarization. Not when I commit a diff. Thereby, we could all profit from improvements of that tool over time, and everybody could use it in his or her own language. That is strictly better than running that tool once and integrating it hard with the source code.

comment 3y ago · link · parent

But that is neither the purpose of a commit message, nor is it the why a commit was made.

comment 3y ago · link · parent

It could even continue filling Slack.

comment 3y ago · link · parent

But the PROJ-12345 at the beginning of the first line of the commit is very common in many entreprise projects.

comment 3y ago · link · parent

brew repositories are hosted at Github. According the linked article Github did a full scan on all repositories whether those attacks were already in use and implemented mitigations to make it impossible to push attacks to Github. I.e. it should be safe to run brew upgrade.

comment 3y ago · link · parent

Your uneasiness is understandable, but often it is far simpler to check the correctness of a result than to find it in the first place. Then property-based testing really shines.

Even outside that special case it is always possible to generate just some input data and check for the absence of runtime errors or exceptions. That approach can be improved by adding assertions, pre- and postconditions to your code under test.

Additionally, there a different ways to come up with good properties, see: https://www.youtube.com/watch?v=zvRAyq5wj38

comment 3y ago · link · parent

Then you should build one. E.g. gitlab can create special git references for every deployment it ever made.

comment 3y ago · link · parent

But aren't micro-service specifically designed to be able to split responsibility of a large system between multiple teams. If everybody debugs and fixes bugs across the whole landscape, than everybody has to be familiar with everything, which means you are loosing the benefits. Occasionally, it might be helpful to debug the whole stack at once. But I wouldn't trust a landscape where that is needed too often. I might be that the chosen abstractions don't fit well.

comment 3y ago · link · parent

To solve this properly you need to store the deployed/executed commit id of any service. That could be in the logs, in the a label/annotation of a kubernetes object or somewhere else. But this has nothing to do whether you use a monorepo or multiple smaller repositories. In some projects of me, we use the commit of the source repo as docker tag. And we make sure that the docker image build is as reproducible as possible. I.e. we don't always build with the latest commit of an internal library, but with the one that is mentioned in the dependency manifest of our build tool. Since updating all those internal dependencies is a hassle, that is updated automatically. It means there is an auto-generated merge requests to update a dependency for every downstream project. Therefore all the downstream pipelines can run their test suites before an update gets merged. Once in a while that fails, then a human has to adapt the downstream project to its latest dependencies. In a monorepo that work has to be done as well. But for all downstream projects at once.

comment 3y ago · link · parent

This should happen on monorepos as well as per-service repos. So it is not argument for any side of that discussion.

comment 3y ago · link · parent

You mean like the car itself?

comment 3y ago · link · parent

What about those billions of devices running software in gadgets, phones, TVs, routers, dishwashers, etc ?

comment 3y ago · link · parent

They are defined to be non-nestable. Any appearance of */ terminates the comment.

comment 3y ago · link · parent

Long distance trade is not the same as globalization. Globablization is the trend to optimize production capacities on a global scale. Even during times that followed the opposite trend --- if I remember correctly France did that in the 18th or 17th century --- long distance trade existed.

comment 3y ago · link · parent

Really? Only one application of computers --- Bitcoin --- wastes countries' energy usage and yet it doesn't make sense to optimize software for ecologic reasons?

comment 3y ago · link · parent

ANSI coloring and tailing is supported by less. Press F to start tailing. Many programs detect if they are redirected to a pipe and then stop to emit ANSI color codes.

comment 3y ago · link · parent

> Truly Great Artists Ship, Listen, and Adapt.

Many great artists, think painters, couldn't care less whether other people liked their works or not.

comment 3y ago · link · parent

> I don’t know why Wiktionary includes that list item, and I don’t know how Firefox knows not to display it.

The empty list item gets the CSS property display:none from the class "mw-empty-elt". So it is correct that Firefox doesn't display it. Eww would need to handle CSS to render this properly.

[edit: spelling fixed]

comment 3y ago · link · parent

This is a typical research book, it is a collection of chapters/articles by different researchers. So judging the whole collection by sampling one page of one article seems to be of dubious value to me. There are some well known researchers of the field in the list of authors.

comment 3y ago · link · parent

for systemd logs this works for me

    journalctl -o json | lnav

comment 3y ago · link · parent

In practice, I run `systemctl list-timers` to see all the timers that exist. That could be implemented with timers in a section of the unit file as well. But by being a separate file, you can have package that installs the unit and another that installs the timer. You can use symlinks to enable the timer and delete the symlink to remove the timer.

comment 3y ago · link · parent

And they are absolutely sure that you need a physical modification to adapt to a socially constructed norm. And at the same time they demand medical procedures while denying that it is a medical condition, whose treatment needs to be studied with scientific rigor. Instead they say the affected persons know their best treatment.

Just imagine applying that same approach to addicts.

comment 3y ago · link · parent

"Plümo" is definitely used in other cities on the west side of the Rhein. At least in Koblenz and Mainz.

comment 3y ago · link · parent

Although nix predates docker by a couple years.

comment 3y ago · link · parent

My desktop development workstation is running on NixOS. I am always updating it as soon as possible because I know I can revert everything. That is damn nice.

comment 3y ago · link · parent

That reminds me of this comic [1] about future-proofing a data model.

[1]: https://geek-and-poke.com/geekandpoke/2013/7/22/future-proof...

comment 3y ago · link · parent

But "Reason" is absolutely thinkable in the U.S.
1
151617
29