Comments (5)
@winterland1989 Can you provide a link?
from bytestring-lexing.
This is 7years ago issue, I can't really find it any more lol.
from bytestring-lexing.
The main idea is in the type, feel free to close it if it's not useful.
from bytestring-lexing.
The only case I can see for introducing partial results (in a lexer) is if the token spans the boundaries between input buffers. For integral lexing, it's quite easy (albeit annoying) to patch things up after the fact; whereas for non-integrals, although it can be patched up after the fact, it's a lot more involved (since you'd need to copy stuff over into a new buffer and try again from the beginning).
Since the behavior only differs at end-of-buffer, it should be doable to add support for partial inputs without introducing any slowdown in the main loop. I'll take a look, though I'll also have to figure out some decent benchmarks in order to ensure that the different return type doesn't introduce some unexpected overhead
from bytestring-lexing.
Related Issues (13)
- Get TravisCI to work
- Move benchmarks to the main cabal file
- Native support for bytestring >=0.11
- Build failure in v0.3.0 with GHC 7.10.3 HOT 7
- Performance regression in packDecimal/numDecimalDigits HOT 1
- Add fast lexers for Integer and Natural
- CI failing for GHC 9.0.1 HOT 3
- Support GHC-9.6 HOT 1
- cannot run benchmarks HOT 1
- Update instructions for running tests HOT 1
- Consider integrating @juspay's fork
- Improve coverage
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 bytestring-lexing.