Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

What are the general compilation tools in big data that can solve the dependency problem automatically?

Shulou Source: shulou.com Published: 2022-06-01 17:26:27 10月04日 Update

In this issue, the editor will bring you about the general compilation tools that can automatically solve dependency problems in big data. The article is rich in content and analyzes and narrates it from a professional point of view. I hope you can get something after reading this article.

A general compilation tool for Fac-- to automatically solve dependency problems

If the dependencies are not specified correctly when compiling the project, Fac can compile the project successfully after several attempts.

The project was founded in 2014, was originally written in C, and has been using rust since 2017.

Fac is inspired by the general compilation tool make, which uses ptrace to enumerate all dependencies and adds all source files to the (git) repo. An important feature of Fac is its ability to automatically handle dependencies without reporting errors on project dependencies like traditional compilation tools. Currently, fac can only run on Linux systems, but it is very easy to use.

Read More: https://github.com/droundy/fac http://physics.oregonstate.edu/~roundyd/fac

Selective anti-aliasing pixel algorithm

The consistent application of anti-aliasing images is very resource-intensive, so this process can be easily automated through this algorithm.

The general steps are as follows:

A complete line for a given pixel

Calculate the length and direction of each 1 px wide block

Change part of the color of a certain length to another color for each pixel block

/ selectively anti-alias a pixel perfect line

/ / each segment of length l contains floor (lumbk) number of $alt_color pixels

Pub fn selective_antialias (path: & mut Pixels, k: F64, alt_color: Color) {

Let mut chunks = vec! []

Let mut start_idx = 0

For (I, (pi,pj)) in path.iter () .zip (path.iter () .skip (1)) .enumerate () {

/ / if consecutive pixels not connected

If (pi.point.x! = pj.point.x) & & (pi.point.y! = pj.point.y) {

Let start_pix = path.0.get_index (start_idx). Unwrap ()

Let dir = start_pix.dir (& pi)

Chunks.push ((I-start_idx, dir))

Start_idx = I + 1

}

}

Let start_pix = path.0.get_index (start_idx). Unwrap ()

Let dir = start_pix.dir (path.iter (). Last (). Unwrap ())

Chunks.push ((path.len ()-start_idx-1), dir))

Assert_eq! (chunks.iter () .map (| I | i.0 + 1) .sum:: (), path.len ())

Let mut idx = 0

For (l, dir) in chunks {

For j in 0.. rooml {

/ / xor with dir to keep orientation of coloring

/ / example:

/ / o o

/ / o o

/ / x x

/ / x x

/ / ooxx

If (j)

Tags: Compilation systems data problems pixels tools projects sequences events information content modules users algorithms threads processes aliasing length color analysis Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno NVidia Shulou Technology Huawei Microsoft Linux