cucapra / dahlia

Time-sensitive affine types for predictable hardware generation
https://capra.cs.cornell.edu/dahlia
MIT License
134 stars 8 forks source link

Character type for input data #151

Closed tedbauer closed 5 years ago

tedbauer commented 5 years ago

For the nw MachSuite app (Needleman–Wunsch, "a dynamic programming algorithm for optimal sequence alignment"), the input data consists of characters. (See here.) Would it be worth adding support for this?

rachitnigam commented 5 years ago

Chars can be encoded as ints. I guess this would be useful for the c++ backend.

sampsyo commented 5 years ago

A reasonable approach would be to have a special-case parser for characters that produces arrays of bit<8>s.

rachitnigam commented 5 years ago

Closing this for now since @tedbauer mentioned using cast to int works fine.