Compare commits

...

2 Commits

Author SHA1 Message Date
6ae10586de Updated .gitignore.
Some checks failed
isspam build / build (push) Failing after 1m48s
2024-12-02 15:10:58 +01:00
64e8004e5a Updated build config. 2024-12-02 15:10:18 +01:00
78 changed files with 417 additions and 1 deletions

View File

@ -15,3 +15,9 @@ jobs:
run: |
ls ${{ gitea.workspace }}
- run: source $HOME/.cargo/env && make
- run: make build
- run: make run
- run: make build_risspam
- run: make run_risspam
- run: make benchmark
- run: make publish

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
.vscode
publish
books
__pycache__

View File

@ -0,0 +1,157 @@
#![feature(let_chains)]
use rayon::prelude::*;
//use rayon::prelude::*;
use std::{env, fs};
fn clean_content(content: &str) -> String {
let alloed_ichars = "01234567891abcdefghijklmnopqrstuvwxyz \n.,!?";
let clean_content = content.chars()
.filter(|&c| alloed_ichars.contains(c))
.collect::<String>();
clean_content
}
fn get_sentences(content: &str) -> usize {
let sentences = content.split('.')
.map(|s| s.trim_start()) // Remove leading whitespace
.count();
// // Remove last "sentence" if didn't end with a dot
// if let Some(last) = sentences.last() && !last.ends_with('.') {
// sentences.pop();
// }
sentences
}
fn get_words(content: &str, words: &mut usize, caps: &mut usize, fw: &mut usize) {
fn check_forbidden(w: &str) -> bool {
FORBIDDEN_WORDS.iter()
.find(|fw| str::eq_ignore_ascii_case(w, fw))
.is_some()
}
for word in content.split_whitespace() {
*words += 1;
if is_fully_capitalized_word(word) {
*caps += 1;
}
if check_forbidden(word) {
*fw += 1;
}
}
}
fn is_fully_capitalized_word(word: &str) -> bool {
word.chars()
.all(|c| !c.is_ascii_alphanumeric() || c.is_ascii_uppercase())
}
//fn get_capitalized_words(content: &str) -> usize {
// let sentences = get_sentences(content);
//// let mut cap_words = vec![];
// let mut count = 0;
//
// for sentence in sentences {
// // Always skip the first word since sentences start with
// for word in get_words(sentence).skip(1) {
// if is_fully_capitalized_word(word) {
// count += 1;
// }
// }
// }
//
// count
//}
fn get_numbers(clean_content: &str) -> usize {
clean_content.split(|c: char| !c.is_ascii_digit())
.count()
}
//fn get_forbidden_words(content: &str) -> usize {
// fn check_forbidden(w: &str) -> bool {
// FORBIDDEN_WORDS.iter()
// .find(|fw| str::eq_ignore_ascii_case(w, fw))
// .is_some()
// }
//
// get_words(content)
// .filter(|w| check_forbidden(w))
// .collect()
//}
fn analyze(data: &str) {
let clean_data = clean_content(data);
// drop(clean_data); // You aren't actually using clean_data :O
// All capitalized words
let mut words = 0;
let mut fw = 0;
let mut cap_words = 0;
get_words(&clean_data, &mut words, &mut fw, &mut cap_words);
println!("All capitalized words: {}", cap_words);
// All sentences
let sentences = get_sentences(data);
println!("Sentences: {}", sentences);
// All words
println!("Words: {}", words);
// Numbers
let numbers = get_numbers(&clean_data);
println!("Numbers: {}", numbers);
// Forbidden words
println!("Forbidden words: {}", fw);
if sentences > 0 {
let word_count_per_sentence = words / sentences;
println!("Word count per sentence: {}", word_count_per_sentence);
}
}
fn main() {
// Read in files from args
let mut files = Vec::with_capacity(env::args().len());
let mut do_parallel = false;
for arg in env::args().skip(1) { // skip program arg
if arg == "-p" {
do_parallel = true;
} else {
files.push(arg);
}
}
// Do the work
let work = |file| {
let Ok(text) = fs::read_to_string(&file) else {
eprintln!("{file} isn't a valid file or couldn't be read");
return;
};
analyze(&text);
};
if !do_parallel {
files.iter().for_each(work);
} else {
files.par_iter().for_each(work)
}
}
static FORBIDDEN_WORDS: &'static [&'static str] = &[
"recovery", "techie", "http", "https", "digital", "hack", "::", "//", "com",
"@", "crypto", "bitcoin", "wallet", "hacker", "welcome", "whatsapp", "email", "cryptocurrency",
"stolen", "freeze", "quick", "crucial", "tracing", "scammers", "expers", "hire", "century",
"transaction", "essential", "managing", "contact", "contacting", "understanding", "assets", "funds"
];

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"[\"default\", \"std\"]","declared_features":"[\"default\", \"std\"]","target":15878351248853952023,"profile":8864407476722025557,"path":11272947995469734555,"deps":[[13029015263761501439,"crossbeam_utils",false,14067491263864578968],[17638357056475407756,"crossbeam_epoch",false,13299227649126765713]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/crossbeam-deque-2dda0e8c8adaa09c/dep-lib-crossbeam_deque","checksum":false}}],"rustflags":[],"metadata":14304628380895324452,"config":2202906307356721367,"compile_kind":0}

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"[\"alloc\", \"std\"]","declared_features":"[\"alloc\", \"default\", \"loom\", \"loom-crate\", \"nightly\", \"std\"]","target":3011025219128477647,"profile":8864407476722025557,"path":2144046578742159444,"deps":[[13029015263761501439,"crossbeam_utils",false,14067491263864578968]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/crossbeam-epoch-5b20c0a0587fa03b/dep-lib-crossbeam_epoch","checksum":false}}],"rustflags":[],"metadata":8562320424510714295,"config":2202906307356721367,"compile_kind":0}

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"[\"default\", \"std\"]","declared_features":"[\"default\", \"loom\", \"nightly\", \"std\"]","target":17763872635700314276,"profile":17448234865441663590,"path":271604838124260648,"deps":[[13029015263761501439,"build_script_build",false,6106247131210478683]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/crossbeam-utils-76d68688d9a22164/dep-lib-crossbeam_utils","checksum":false}}],"rustflags":[],"metadata":1609393243086812936,"config":2202906307356721367,"compile_kind":0}

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"[\"default\", \"std\"]","declared_features":"[\"default\", \"loom\", \"nightly\", \"std\"]","target":9652763411108993936,"profile":9250313928772495090,"path":4917352724713626466,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/crossbeam-utils-89a436b202ce1536/dep-build-script-build-script-build","checksum":false}}],"rustflags":[],"metadata":1609393243086812936,"config":2202906307356721367,"compile_kind":0}

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[13029015263761501439,"build_script_build",false,4536350733001942995]],"local":[{"RerunIfChanged":{"output":"release/build/crossbeam-utils-9c757eb71ba2d0d5/output","paths":["no_atomic.rs"]}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"[]","declared_features":"[\"default\", \"serde\", \"use_std\"]","target":10829531579163655734,"profile":8864407476722025557,"path":1883079978833514601,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/either-7c57e4087620802a/dep-lib-either","checksum":false}}],"rustflags":[],"metadata":14516623572814205243,"config":2202906307356721367,"compile_kind":0}

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"","declared_features":"","target":0,"profile":0,"path":0,"deps":[[10618402922884942723,"build_script_build",false,17218091529197559880]],"local":[{"RerunIfChanged":{"output":"release/build/rayon-core-2a0ed97c4320c1dc/output","paths":["build.rs"]}}],"rustflags":[],"metadata":0,"config":0,"compile_kind":0}

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"[]","declared_features":"[\"web_spin_lock\"]","target":9652763411108993936,"profile":3742506382397567361,"path":6127636580977020660,"deps":[],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/rayon-core-412fdfc3b69ba62f/dep-build-script-build-script-build","checksum":false}}],"rustflags":[],"metadata":14590378261418540923,"config":2202906307356721367,"compile_kind":0}

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"[]","declared_features":"[\"web_spin_lock\"]","target":759009288358699041,"profile":8864407476722025557,"path":8102980474510446164,"deps":[[10618402922884942723,"build_script_build",false,14300264644975216946],[13029015263761501439,"crossbeam_utils",false,14067491263864578968],[17516414546981198098,"crossbeam_deque",false,14336591195698465706]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/rayon-core-8cfcbcc105dcd0da/dep-lib-rayon_core","checksum":false}}],"rustflags":[],"metadata":14590378261418540923,"config":2202906307356721367,"compile_kind":0}

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1 @@
ea1a13d9ce2f3ca8

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"[]","declared_features":"[\"web_spin_lock\"]","target":15340428944421145304,"profile":8864407476722025557,"path":7990184197366143812,"deps":[[7459069637002492900,"either",false,11886999607845575687],[10618402922884942723,"rayon_core",false,17514872318923706954]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/rayon-dc977fc3a8b42ed5/dep-lib-rayon","checksum":false}}],"rustflags":[],"metadata":16007375514346065096,"config":2202906307356721367,"compile_kind":0}

View File

@ -0,0 +1 @@
{"rustc":7959095874983568062,"features":"[]","declared_features":"[]","target":10519780086885261595,"profile":8294345896200518926,"path":10602529704205407992,"deps":[[17775862536196513609,"rayon",false,12122616862426209002]],"local":[{"CheckDepInfo":{"dep_info":"release/.fingerprint/risspam-d4d23922c0d57469/dep-bin-risspam","checksum":false}}],"rustflags":[],"metadata":7797948686568424061,"config":2202906307356721367,"compile_kind":0}

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1,9 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/build/crossbeam-utils-89a436b202ce1536/build_script_build-89a436b202ce1536: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/build.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/no_atomic.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/build-common.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/build/crossbeam-utils-89a436b202ce1536/build_script_build-89a436b202ce1536.d: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/build.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/no_atomic.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/build-common.rs
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/build.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/no_atomic.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/build-common.rs:
# env-dep:CARGO_PKG_NAME=crossbeam-utils

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1,2 @@
cargo:rerun-if-changed=no_atomic.rs
cargo:rustc-check-cfg=cfg(crossbeam_no_atomic,crossbeam_sanitize_thread)

View File

@ -0,0 +1 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/build/crossbeam-utils-9c757eb71ba2d0d5/out

View File

@ -0,0 +1 @@
This file has an mtime of when this was started.

View File

@ -0,0 +1 @@
cargo:rerun-if-changed=build.rs

View File

@ -0,0 +1 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/build/rayon-core-2a0ed97c4320c1dc/out

View File

@ -0,0 +1,5 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/build/rayon-core-412fdfc3b69ba62f/build_script_build-412fdfc3b69ba62f: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/build.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/build/rayon-core-412fdfc3b69ba62f/build_script_build-412fdfc3b69ba62f.d: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/build.rs
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/build.rs:

View File

@ -0,0 +1,8 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/libcrossbeam_deque-2dda0e8c8adaa09c.rmeta: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-deque-0.8.5/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-deque-0.8.5/src/deque.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/libcrossbeam_deque-2dda0e8c8adaa09c.rlib: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-deque-0.8.5/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-deque-0.8.5/src/deque.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/crossbeam_deque-2dda0e8c8adaa09c.d: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-deque-0.8.5/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-deque-0.8.5/src/deque.rs
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-deque-0.8.5/src/lib.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-deque-0.8.5/src/deque.rs:

View File

@ -0,0 +1,18 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/libcrossbeam_epoch-5b20c0a0587fa03b.rmeta: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/atomic.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/collector.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/deferred.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/epoch.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/guard.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/internal.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/list.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/once_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/queue.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/default.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/libcrossbeam_epoch-5b20c0a0587fa03b.rlib: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/atomic.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/collector.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/deferred.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/epoch.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/guard.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/internal.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/list.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/once_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/queue.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/default.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/crossbeam_epoch-5b20c0a0587fa03b.d: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/atomic.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/collector.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/deferred.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/epoch.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/guard.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/internal.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/list.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/once_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/queue.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/default.rs
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/lib.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/atomic.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/collector.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/deferred.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/epoch.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/guard.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/internal.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/list.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/once_lock.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/sync/queue.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-epoch-0.9.18/src/default.rs:

View File

@ -0,0 +1,19 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/libcrossbeam_utils-76d68688d9a22164.rmeta: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/seq_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/atomic_cell.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/consume.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/cache_padded.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/backoff.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/once_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/parker.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/sharded_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/wait_group.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/thread.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/libcrossbeam_utils-76d68688d9a22164.rlib: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/seq_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/atomic_cell.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/consume.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/cache_padded.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/backoff.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/once_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/parker.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/sharded_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/wait_group.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/thread.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/crossbeam_utils-76d68688d9a22164.d: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/seq_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/atomic_cell.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/consume.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/cache_padded.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/backoff.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/once_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/parker.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/sharded_lock.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/wait_group.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/thread.rs
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/lib.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/seq_lock.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/atomic_cell.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/atomic/consume.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/cache_padded.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/backoff.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/once_lock.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/parker.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/sharded_lock.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/sync/wait_group.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/crossbeam-utils-0.8.20/src/thread.rs:

View File

@ -0,0 +1,9 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/libeither-7c57e4087620802a.rmeta: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/iterator.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/into_either.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/libeither-7c57e4087620802a.rlib: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/iterator.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/into_either.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/either-7c57e4087620802a.d: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/iterator.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/into_either.rs
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/lib.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/iterator.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/either-1.13.0/src/into_either.rs:

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,29 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/librayon_core-8cfcbcc105dcd0da.rmeta: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/private.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/broadcast/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/broadcast/test.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/job.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/join/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/latch.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/registry.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/scope/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/sleep/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/sleep/counters.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/spawn/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/thread_pool/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/thread_pool/test.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/unwind.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race1.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race2.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race3.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/rc_return.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/rc_upvar.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/test.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/librayon_core-8cfcbcc105dcd0da.rlib: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/private.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/broadcast/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/broadcast/test.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/job.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/join/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/latch.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/registry.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/scope/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/sleep/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/sleep/counters.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/spawn/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/thread_pool/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/thread_pool/test.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/unwind.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race1.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race2.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race3.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/rc_return.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/rc_upvar.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/test.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/rayon_core-8cfcbcc105dcd0da.d: /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/lib.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/private.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/broadcast/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/broadcast/test.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/job.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/join/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/latch.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/registry.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/scope/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/sleep/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/sleep/counters.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/spawn/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/thread_pool/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/thread_pool/test.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/unwind.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/mod.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race1.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race2.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race3.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/rc_return.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/rc_upvar.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs /home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/test.rs
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/lib.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/private.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/broadcast/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/broadcast/test.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/job.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/join/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/latch.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/registry.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/scope/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/sleep/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/sleep/counters.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/spawn/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/thread_pool/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/thread_pool/test.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/unwind.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/mod.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race1.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race2.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/quicksort_race3.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/rc_return.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/rc_upvar.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/compile_fail/scope_join_bad.rs:
/home/retoor/.cargo/registry/src/index.crates.io-6f17d22bba15001f/rayon-core-1.12.1/src/test.rs:

View File

@ -0,0 +1,5 @@
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/risspam-d4d23922c0d57469: src/main.rs
/home/retoor/projects/spam/12bitfloat_rust/risspam/target/release/deps/risspam-d4d23922c0d57469.d: src/main.rs
src/main.rs:

View File

@ -1,7 +1,7 @@
CC = gcc
CFLAGS = -Wall -Werror -Wextra -Ofast -std=c2x
all: build run valgrind build_risspam run_risspam benchmark
all: build run valgrind build_risspam run_risspam
build:
@echo "Compiling retoor_c project.".
@ -40,6 +40,14 @@ run_not_spam_risspam:
valgrind: build
valgrind ./isspam ./spam/*.txt
publish:
wget https://retoor.molodetz.nl/api/packages/retoor/generic/env.py/1.0.0/env.py
wget https://retoor.molodetz.nl/api/packages/retoor/generic/publish/1.0.0/publish
chmod +x publish
./publish isspam
./publish risspam
rm publish
rm env.py
benchmark:
-@rm -rf books
echo "Extracting books."