Coder Social home page Coder Social logo

absolut's People

Contributors

fuzzypixelz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

amdahl-rs

absolut's Issues

Add lookup functions for select ISAs

The SimdTable trait provides a lookup table in the form of two raw byte arrays: SimdTable::LO and SimdTable::HI without any convenient way to use them.

Ideally, lookup function implementations would be provided for SSE, AVX, AVX-512, NEON and SIMD128.

However, the user should be left with the freedom to either (1) not use any of the provided lookup functions or (2) use a lookup function for a specific ISA or (4) use a statically-dispatched lookup function or (5) use a dynamically dispatched lookup function.

Thus the SimdTable trait might look like the following:

trait SimdTable<const N: usize> {
  const LO: [usize; N];
  const HI: [usize; N];

  unsafe fn lookup_sse(output: &mut [u8; N]);
  unsafe fn lookup_avx(output: &mut [u8; N]);
  unsafe fn lookup_avx512(output: &mut [u8; N]);
  unsafe fn lookup_neon(output: &mut [u8; N]);
  unsafe fn lookup_sve3(output: &mut [u8; N]);
  unsafe fn lookup_simd128(output: &mut [u8; N]);

  fn lookup(output: &mut [u8; N]);
  fn lookup_dyn(output: &mut [u8; N]);
  fn lookup_fallback(output: &mut [u8; N]);
}

Yeet Z3

Version 0.1 of absolut depends on Z3 to solve for byte tables.

  1. When using the z3 crate (and by extension the z3-sys crate) the Z3 library will have to be system-installed (thus the user will need to fiddle with package managers) or vendored (resulting in long compile times) as a git submodule; neither option is ideal for a procedural macro.

  2. Aside from dependency management, using an SMT solver makes it quite hard to reason about failure to solve for a table.

Add documentation

Currently there is neither Rust documentation for the public items nor a README file to explain the design and utility of absolut.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.