maelstrom
spotless
maelstrom | spotless | |
---|---|---|
14 | 10 | |
2,779 | 4,175 | |
2.0% | 1.4% | |
5.4 | 9.7 | |
24 days ago | 5 days ago | |
Clojure | Java | |
Eclipse Public License 1.0 | Apache License 2.0 |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
maelstrom
- Maelstrom: A workbench for learning distributed systems
-
The Raft Consensus Algorithm
Maelstrom [1], a workbench for learning distributed systems from the creator of Jepsen, includes a simple (model-checked) implementation of Raft and an excellent tutorial on implementing it.
Raft is a simple algorithm, but as others have noted, the original paper includes many correctness details often brushed over in toy implementations. Furthermore, the fallibility of real-world hardware (handling memory/disk corruption and grey failures), the requirements of real-world systems with tight latency SLAs, and a need for things like flexible quorum/dynamic cluster membership make implementing it for production a long and daunting task. The commit history of etcd and hashicorp/raft, likely the two most battle-tested open source implementations of raft that still surface correctness bugs on the regular tell you all you need to know.
The tigerbeetle team talks in detail about the real-world aspects of distributed systems on imperfect hardware/non-abstracted system models, and why they chose viewstamp replication, which predates Paxos but looks more like Raft.
[1]: https://github.com/jepsen-io/maelstrom/
[2]: https://github.com/tigerbeetle/tigerbeetle/blob/main/docs/DE...
-
zio-maelstrom
I've tried to run the echo example and I'me getting some problems. I assume it works as the same example in the maelstrom's getting started ready (https://github.com/jepsen-io/maelstrom/blob/main/doc/01-getting-ready/index.md).
- Ask HN: Projects to do to get better at distributed systems
- Resources about distributed systems in go
- FLiPN-FLaNK Stack for March 6, 2023
-
Gossip Glomers: Fly.io Distributed Systems Challenges
Love it. Thanks for putting this together! The actual challenges here [0].
Though I'm curious: are these different from the chapters in the Maelstrom documentation [1]? There seems to be a bit of overlap anyway.
[0] https://fly.io/dist-sys/
[1] https://github.com/jepsen-io/maelstrom#documentation
spotless
- FLiPN-FLaNK Stack for March 6, 2023
-
Programming Breakthroughs We Need
Some code formatters such as Spotless (https://github.com/diffplug/spotless/tree/main/plugin-gradle...) allow you to format code only in files that have changes against some designated branch such as `master`. So, you check out your feature branch, make changes, do some commits, and run spotless. Only the files which have some changes between your workspace and the master branch will be formatted. This allows you to gradually format the project as and when files would be changed anyways.
- What supporting tools (linting, style/formatting, etc) are you using nowadays?
-
How does Apache ShardingSphere standardize and format code? We use Spotless
As a Top-Level Apache open source project, ShardingSphere has 400 contributors as of today. Since most developers do not have the same coding style, it is not easy to standardize the project’s overall code format in a GitHub open collaboration model. To solve this issue, ShardingSphere uses Spotless to unify code formatting.
-
Use semantic indenting
But please just use an code formatter like spotless. Or better yet set it as a pre commit hook. You will thank yourself later, and so will all of your coworkers.
-
Zero Config Code Formatter?
I use Spotless but it’s not as opiniotated as Prettier or Black
-
The obligatory braces and if/else questions
I use Spotless and it works quite well, but there are many other options. Also good IDEs can reformat your code.
- Java Cheatsheet to refresh the basic concepts of Java
- Is there any actively maintained Java library to format code?
-
diKTat 0.4.0 is released - kotlin linter and static analyzer
We are working on different ways to run diktat, however. For example, the integration into spotless is on its way. In the future we might consider adding support for Intellij, and if someone decides to contribute it - it will be very welcome as well.
What are some alternatives?
nosqlbench - The open source, pluggable, nosql benchmarking suite.
Checkstyle - Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program.
kaocha - Full featured next gen Clojure test runner
google-java-format - Reformats Java source code to comply with Google Java Style.
titanoboa - Titanoboa makes complex workflows easy. It is a low-code workflow orchestration platform for JVM - distributed, highly scalable and fault tolerant.
prettier-java - Prettier Java Plugin
bond - spying for tests
palantir-java-format - A modern, lambda-friendly, 120 character Java formatter.
openai-python - The official Python library for the OpenAI API
prettier - Prettier is an opinionated code formatter.
unilm - Large-scale Self-supervised Pre-training Across Tasks, Languages, and Modalities
git-code-format-maven-plugin - A maven plugin that automatically deploys code formatters as pre-commit git hook