Skip to content

Commit 561d7b8

Browse files
authored
Merge pull request #27 from tertsdiepraam/zola
Zola
2 parents 8e77b54 + 2622246 commit 561d7b8

File tree

12 files changed

+349
-486
lines changed

12 files changed

+349
-486
lines changed

.github/workflows/docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,13 +62,18 @@ jobs:
6262
run: |
6363
cd findutils
6464
oranda build
65+
66+
- name: Run Zola
67+
uses: shalzz/zola-deploy-action@v0.18.0
68+
env:
69+
BUILD_DIR: uutils.github.io
70+
BUILD_ONLY: true
6571

6672
- name: Collect results into `public` folder
6773
run: |
68-
mkdir public
74+
cp -r uutils.github.io/public public
6975
cp -r coreutils/public public/coreutils
7076
cp -r findutils/public public/findutils
71-
cp -r uutils.github.io/homepage/* public
7277
7378
- name: Upload artifact for checking the output
7479
uses: actions/upload-artifact@v4

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/public/

config.toml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# The URL the site will be built for
2+
base_url = "https://uutils.github.io"
3+
4+
title = "uutils"
5+
6+
description = ""
7+
8+
default_language = "en"
9+
10+
paginate_by = 10
11+
12+
[markdown]
13+
highlight_code = true
14+
highlight_theme = "OneHalfLight"

content/_index.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
+++
2+
+++
3+
4+
<header>
5+
<img src="logo.svg" alt="uutils" class="logo" />
6+
<h1 class="title">uutils</h1>
7+
</header>
8+
9+
The uutils project reimplements ubiquitous command line utilities in
10+
Rust. Our goal is to modernize the utils, while retaining full
11+
compatibility with the existing utilities.
12+
13+
## Projects
14+
15+
<div class="projects">
16+
<a class="project" href="/coreutils">
17+
<span aria-hidden="true">&gt;</span>
18+
coreutils
19+
</a>
20+
<a class="project" href="/findutils">
21+
<span aria-hidden="true">&gt;</span>
22+
findutils
23+
</a>
24+
<a class="project" href="/diffutils">
25+
<span aria-hidden="true">&gt;</span>
26+
diffutils
27+
</a>
28+
</div>
29+
30+
## Crates
31+
32+
We maintain a variety of public crates to support our projects,
33+
which are published on [crates.io](https://crates.io/).
34+
35+
- [`platform-info`](https://github.com/uutils/platform-info)
36+
- [`parse_datetime`](https://github.com/uutils/parse_datetime)
37+
- [`uutils-term-grid`](https://github.com/uutils/uutils-term-grid)
38+
39+
## Contributing
40+
41+
You can help us out by:
42+
43+
- Contributing code
44+
- Contributing documentation
45+
- Reporting bugs (e.g. incompatibilities with GNU utilities)
46+
- Triaging bugs
47+
- [Sponsoring uutils on GitHub](https://github.com/sponsors/uutils)
48+
49+
You can join our [Discord server](https://discord.gg/wQVJbvJ) to discuss or ask anything concerning uutils. We're happy to help you get started with contributing!
50+
51+
## Friends of uutils
52+
53+
We collaborate with and build upon many other projects in the Rust
54+
community, either by using or providing crates. We highly recommend
55+
giving these projects a look!
56+
57+
- [`nushell`](https://www.nushell.sh/)
58+
- [`ripgrep`](https://github.com/burntsushi/ripgrep)
59+
- [`eza`](https://github.com/eza-community/eza)

content/gsoc.md

Lines changed: 219 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,219 @@
1+
+++
2+
title = "GSOC"
3+
+++
4+
5+
# Uutils at GSOC
6+
7+
Google summer of code is:
8+
9+
> Google Summer of Code is a global, online program focused on bringing
10+
> new contributors into open source software development. GSoC
11+
> Contributors work with an open source organization on a 12+ week
12+
> programming project under the guidance of mentors.
13+
14+
If you want to know more about how it works, check out the links below.
15+
16+
**Useful links**:
17+
* [GSOC Contributor Guide](https://google.github.io/gsocguides/student/)
18+
* [GSOC FAQ](https://developers.google.com/open-source/gsoc/faq)
19+
* [GSOC Timeline](https://developers.google.com/open-source/gsoc/timeline) (important for deadlines!)
20+
21+
# What is it about?
22+
23+
The [uutils project](https://github.com/uutils/) is aiming at rewriting key Linux utilities in Rust, targeting [coreutils](https://github.com/uutils/coreutils), [findutils](https://github.com/uutils/findutils), [diffutils](https://github.com/uutils/diffutils), [procps](https://github.com/uutils/procps), [util-linux](https://github.com/uutils/util-linux), and [bsdutils](https://github.com/uutils/bsdutils). Their goal is to create fully compatible, high-performance drop-in replacements, ensuring reliability through upstream test suites. Significant progress has been made with coreutils, diffutils, and findutils, while the other utilities are in the early stages of development.
24+
25+
# How to get started
26+
27+
Here are some steps to follow if you want to apply for a GSOC project
28+
with uutils.
29+
30+
1. **Check the requirements.** You have to meet
31+
[Google's requirements](https://developers.google.com/open-source/gsoc/faq#what_are_the_eligibility_requirements_for_participation) to apply. Specifically for uutils, it's best if you at
32+
least know some Rust and have some familiarity with using the
33+
coreutils and the other tools.
34+
1. **Reach out to us!** We are happy to discuss potential projects and help you find a meaningful project for uutils. Tell us what interests you about the project and what experience you have and we can find a suitable project together. You can talk to the uutils maintainers on the [Discord server](https://discord.gg/wQVJbvJ). In particular, you can contact:
35+
* Sylvestre Ledru (@sylvestre on GitHub and Discord)
36+
* Terts Diepraam (@tertsdiepraam on GitHub and @terts on Discord)
37+
2. **Get comfortable with uutils.** To find a good project you need to understand the codebase. We recommend that you take a look at the code, the issue tracker and maybe try to tackle some [good-first-issues](https://github.com/uutils/coreutils/issues?q=is%3Aopen+is%3Aissue+label%3A%22good+first+issue%22). Also take a look at our [contributor guidelines](https://github.com/uutils/coreutils/blob/main/CONTRIBUTING.md).
38+
3. **Find a project and a mentor.** We have a [list of potential projects](https://github.com/uutils/coreutils/wiki/GSOC-Project-Ideas) you can adapt or use as inspiration. Make sure discuss your ideas with the maintainers! Some project ideas below have suggested mentors you could contact.
39+
4. **Write the application.** You can do this with your mentor. The application has to go through Google, so make sure to follow all the advice in Google's [Contributor Guide](https://google.github.io/gsocguides/student/writing-a-proposal).
40+
41+
# Tips
42+
43+
- Make sure the project is concrete and well-defined.
44+
- Communication is super important!
45+
- Try to tackle some simple issues to get familiar with uutils.
46+
47+
# Project Ideas
48+
49+
This page contains project ideas for the Google Summer of Code for
50+
uutils. Feel free to suggest project ideas of your own.
51+
52+
53+
[Guidelines for the project list](https://google.github.io/gsocguides/mentor/defining-a-project-ideas-list)
54+
55+
Summarizing that page, each project should include:
56+
- Title
57+
- Description
58+
- Expected outputs
59+
- Skills required/preferred
60+
- Possible mentors
61+
- Size (either ~175 or ~350 hours)
62+
- Difficulty (easy, medium or hard)
63+
64+
## Implement `stty`
65+
The `stty` utility is currently only partially implemented and should be expanded.
66+
67+
See issues: [#3859](https://github.com/uutils/coreutils/issues/3859), [#3860](https://github.com/uutils/coreutils/issues/3860), [#3861](https://github.com/uutils/coreutils/issues/3861), [#3862](https://github.com/uutils/coreutils/issues/3862), [#3863](https://github.com/uutils/coreutils/issues/3863).
68+
69+
- Difficulty: Medium
70+
- Size: 175 or 350 depending on the scope
71+
- Mentors: Terts Diepraam
72+
- Required skills:
73+
- Rust
74+
- Basic knowledge about the terminal
75+
76+
## Localization
77+
Support for localization for formatting, quoting & sorting in various utilities, like `date`, `ls` and `sort`. For this project, we need to figure out how to deal with locale data. The first option is to use the all-Rust `icu4x` library, which has a different format than what distributions usually provide. In this case a solution _could_ be to write a custom `localedef`-like command. The second option is to use a wrapper around the C `icu` library, which comes with the downside of being a C dependency.
78+
79+
This is described in detail in [issue #3997](https://github.com/uutils/coreutils/issues/3997).
80+
81+
And was also discussed in [#1919](https://github.com/uutils/coreutils/issues/1919#issuecomment-846471073), [#3584](https://github.com/uutils/coreutils/issues/3584).
82+
83+
- Difficulty: Hard
84+
- Size: TBD
85+
- Mentors: TBD
86+
- Required skills:
87+
- Rust
88+
89+
## `procps`: Development of Process Management and Information Tools in Rust
90+
91+
This project focuses on creating Rust-based implementations of process management and information tools: `ps`, `pgrep`, `pidwait`, `pkill`, `skill`, and `snice`. The goal is to ensure full compatibility with all options and successful passing of GNU tests, maintaining the functionality and reliability of these essential tools.
92+
93+
- **Description:** Develop Rust-based versions of key process management and information tools, ensuring compatibility with all options and GNU tests.
94+
- **Expected Outputs:** Efficient, reliable tools with full option compatibility and passing GNU tests.
95+
- **Skills Required/Preferred:** Proficiency in Rust, understanding of Linux process management, experience with GNU testing methodologies.
96+
- **Possible Mentors:** [To be determined]
97+
- **Size:** ~350 hours.
98+
- **Difficulty:** Medium.
99+
100+
## `procps`: Development of System Monitoring and Statistics Tools in Rust
101+
102+
This project involves the Rust-based development of system monitoring and statistics tools: `top`, `vmstat`, `tload`, `w`, and `watch`. The objective is to achieve full compatibility with all options and to pass GNU tests, ensuring these tools provide accurate and reliable system insights.
103+
104+
- **Description:**: Create Rust versions of system monitoring and statistics tools, with a focus on full option compatibility and passing GNU tests.
105+
- **Expected Outputs:**: Robust tools for system monitoring and statistics, fully compatible with existing options and verified by GNU tests.
106+
- **Skills Required/Preferred:**: Rust expertise, knowledge of system performance metrics, familiarity with GNU testing frameworks.
107+
- **Possible Mentors:**: [To be determined]
108+
- **Size:**: ~350 hours.
109+
- **Difficulty:**: Medium.
110+
111+
## `procps`: Development of Memory and Resource Analysis Tools in Rust
112+
113+
The aim of this project is to develop Rust-based versions of memory and resource analysis tools: `pmap` and `slabtop`. The project will focus on ensuring full compatibility with all options and passing GNU tests, providing in-depth and reliable analysis of memory usage and kernel resources.
114+
115+
- **Description:**: Implement Rust versions of memory and resource analysis tools, with emphasis on option compatibility and passing GNU tests.
116+
- **Expected Outputs:**: Advanced tools for memory and resource analysis, fully compatible with existing options and validated by GNU tests.
117+
- **Skills Required/Preferred:**: Proficiency in Rust, deep understanding of memory management and kernel resources, experience with GNU testing methodologies.
118+
- **Possible Mentors:**: [To be determined]
119+
- **Size:**: ~175 hours.
120+
- **Difficulty:**: Medium.
121+
122+
## Code refactoring for `procps`, `util-linux`, and `bsdutils`
123+
124+
Refactoring the Rust-based versions of procps, util-linux, and bsdutils to reduce code duplication.
125+
126+
- **Title:**: Code Optimization and Refactoring for procps, util-linux, and bsdutils in Rust
127+
- **Description:**: This project involves optimizing and refactoring the Rust-based versions of procps, util-linux, and bsdutils. The focus will be on eliminating duplicated code across these utilities, particularly in areas like uudoc, the test framework, and support for single/multicall binaries.
128+
- **Expected outputs:**: A streamlined codebase with reduced duplication, improved maintainability for procps, util-linux, and bsdutils.
129+
- **Skills required/preferred:**: Proficiency in Rust programming, understanding of Linux utilities, experience with code optimization and refactoring.
130+
- **Possible mentors:**: Sylvestre
131+
- **Size:**: 175 hours
132+
- **Difficulty:**: Medium
133+
134+
## A multicall binary and core library for `findutils`
135+
136+
`findutils` currently exists of a few unconnected binaries. It would be nice to have a multicall binary (like
137+
`coreutils`) and a library of shared functions (like `uucore`).
138+
139+
This also might require thinking about sharing code between coreutils and findutils.
140+
141+
- **Difficulty**: Medium
142+
- **Size**: 175 hours
143+
- **Mentors**: TBD
144+
- Required skills:
145+
- Rust
146+
147+
## Implementation of GNU Test Execution for `procps`, `util-linux`, `diffutils`, and `bsdutils`
148+
149+
The project aims at integrating the GNU test suite execution using the Rust-based versions of `procps`, `util-linux`, `diffutils`, and `bsdutils`, ensuring compatibility, crucial for seamless drop-in replacement integration. We have been doing such operation successfully for the Coreutils using [GitHub Actions](https://github.com/uutils/coreutils/blob/main/.github/workflows/GnuTests.yml), a [build script](https://github.com/uutils/coreutils/blob/main/util/build-gnu.sh) and a [run script](https://github.com/uutils/coreutils/blob/main/util/run-gnu-test.sh).
150+
151+
- **Description:**: Run the GNU test suite on the Rust-based versions of procps, util-linux, diffutils, and bsdutils
152+
- **Expected Outputs:**: The GNU test suite execution for each utility, ensuring functionality meets expected standards
153+
- **Skills Required/Preferred:**: GitHub action understanding, Proficiency in Rust, experience with GNU testing methodologies, familiarity with Linux system utilities, and understanding of software testing principles.
154+
- **Possible Mentors:**: Sylvestre
155+
- **Size:**: ~175 hours
156+
- **Difficulty:**: Medium
157+
158+
## Refactoring `factor`
159+
160+
The uutils `factor` is currently significantly slower than
161+
GNU `factor` and only supports numbers up to 2^64-1. See [issue 1559](https://github.com/uutils/coreutils/issues/1559)
162+
and [issue 1456](https://github.com/uutils/coreutils/issues/1456) for more information.
163+
164+
- Difficulty: Hard
165+
- Size: 175 hours
166+
- Mentors: TBD
167+
- Required skills:
168+
- Rust
169+
- Optimization techniques
170+
- Mathematics
171+
172+
## Symbolic/Fuzz Testing and Formal Verification of Tool Grammars
173+
174+
See [Using Lightweight Formal Methods to Validate a Key Value Storage Node In Amazon S3](https://www.amazon.science/publications/using-lightweight-formal-methods-to-validate-a-key-value-storage-node-in-amazon-s3).
175+
176+
Most KLEE scaffolding was done for [KLEE 2021](https://project-oak.github.io/rust-verification-tools/2021/07/14/coreutils.html).
177+
178+
Start with `wc`, formalize the command line grammar. Get it working under AFL++ and Klee. Add several proofs of resource use and correctness - especially proofs about operating system calls and memory/cache usage. Generalize to other tools. Try to unify the seeds for the fuzzer and KLEE so they can help each other find new paths. Use QEMU to test several operating systems and architectures. Automate detection of performance regressions - try to hunt for [accidentally quadratic](https://accidentallyquadratic.tumblr.com) behavior.
179+
180+
Specific to `wc` - formalize the inner loop over a UTF-8 buffer into a finite state automata with counters that can generalize into SIMD width operations like [simdjson](https://simdjson.org). Further generalize into a monoid so K processors can combine results.
181+
182+
- Difficulty: Mixed
183+
- Size: Mixed
184+
- Mentors: TBD - informally @chadbrewbaker
185+
- Required skills:
186+
- Rust
187+
- KLEE
188+
- Fuzzers like AFL++
189+
- Grammar testing frameworks like [LARK](https://github.com/ligurio/lark-grammars/tree/master/lark_grammars/grammars)
190+
- /usr/bin/time -v (and similar tools for Widows/OSX).
191+
- Alloy, TLA+, [P](https://github.com/p-org/P)
192+
- System call tracing with [strace](https://jvns.ca/blog/2014/02/17/spying-on-ssh-with-strace/), [uftrace](https://github.com/namhyung/uftrace) etc.
193+
- SMT solvers like [Z3](https://www.philipzucker.com/programming-and-interactive-proving-with-z3py/) and CVC5 for superoptimization and proofs of automata equivalence.
194+
- [SOUPER](https://github.com/google/souper) and [CompilerExplorer](https://godbolt.org)
195+
- Basic statistics on quantiles (histograms) for outlier detection. The math is simple as generalizing from one to k medians but the formal notation is [complex](https://aakinshin.net/posts/thdqe-hdi/).
196+
- [MPI-IO](https://wgropp.cs.illinois.edu/courses/cs598-s16/lectures/lecture32.pdf), just enough to read a file into k parts and combine "wc" outputs to understand multicore scaling.
197+
198+
## Development of advanced terminal session recording and replay tools in Rust
199+
200+
This project involves creating Rust-based implementations of `/usr/bin/script`, `/usr/bin/scriptlive`, and `/usr/bin/scriptreplay`. The `/usr/bin/script` command will record terminal sessions, `/usr/bin/scriptlive` will offer real-time recording features, and `/usr/bin/scriptreplay` will be used to replay recorded sessions.
201+
202+
The work will happen in https://github.com/uutils/bsdutils.
203+
204+
- **Description:**: Develop Rust-based versions of `/usr/bin/script`, `/usr/bin/scriptlive`, and `/usr/bin/scriptreplay` for terminal session recording and replaying.
205+
- **Expected Outputs:**: Robust and cross-platform terminal session recording and replay tools, with real-time features in `scriptlive`.
206+
- **Skills Required/Preferred:**: Proficiency in Rust, understanding of terminal emulation, experience with cross-platform development.
207+
- **Possible Mentors:**: [To be determined]
208+
- **Size:**: ~175 hours
209+
- **Difficulty:**: Medium
210+
211+
## Official Redox support</h2>
212+
We want to support the Redox operating system, but are not actively testing against it. Since the last round of fixes in [#2550](https://github.com/uutils/coreutils/pull/2550), many changes have probably been introduced that break Redox support. This project would involve setting up Redox in the CI and fixing any issues that arise and porting features over.
213+
214+
- Difficulty: Medium
215+
- Size: 175 hours
216+
- Mentors: TBD
217+
- Required skills:
218+
- Rust
219+

0 commit comments

Comments
 (0)