Comments (13)
from bytecount.
Ah dangit, thanks so much for reporting this. I'm guessing the issue is
let mask = !(!0 >> ((utf8_chars.len() % chunksize) * 8));
and I have a patch at PR #54. I'm installing some cross platform testing stuff and should have confirmation soon.
from bytecount.
Yep, I can repro the issue and the fix works for me. Thanks again!
@llogiq We should CI this.
from bytecount.
Is there a CI that gives us native big-endian machines? Or do we need to setup qemu on a Travis job?
from bytecount.
https://github.com/japaric/trust looks nice. Looking through it mostly just seems to wrap https://github.com/rust-embedded/cross, which is what I used locally (so maybe just use cross?).
from bytecount.
The fix works for me over here too, thanks for the quick response!
from bytecount.
version 0.5.1 with the fix will be published soon.
from bytecount.
0.5.1 is published to crates.io.
from bytecount.
What architectures should we add to CI?
from bytecount.
I used mips, but any big-endian arch should be fine. https://github.com/BurntSushi/byteorder/blob/64c03fb383289f8e42b2892bf72297879777a238/.travis.yml#L8
from bytecount.
ppc64 and s390x if available are typically much faster than mips.
from bytecount.
Looking at that travis patch, does CROSS_TARGET
actually run the tests? I would not have normally expected so... the bad code does compile successfully, but the test fails.
from bytecount.
FWIW, travis recently gained s390x support, so testing there should be easy-ish.
from bytecount.
Related Issues (20)
- Add method to count UTF-8 chars HOT 16
- Replace `Iterator::sum()` with `fold` HOT 5
- How does this work? HOT 2
- Update LICENSE.MIT file
- "avx-accel" not available HOT 4
- Failed to parse manifest HOT 3
- Add no_std support HOT 1
- benchmark -C codegen-units=N HOT 2
- CI: run clippy if it's available
- CLI version HOT 6
- The last version cannot bench on 1.20 anymore HOT 7
- understanding SIMD intrinsics HOT 2
- Needs crates.io release HOT 1
- bytecount::num_chars returns wrong value if cpu doesn't support avx2 feature HOT 6
- Optimisation question: fold vs count HOT 4
- Documentation, naive_count_32 vs naive_count HOT 5
- AArch64 support?
- SSE2 path uses SSE4.1 intrinsic HOT 1
- Version 0.6.5 is broken on wasm targets (version 0.6.3 worked) HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bytecount.