Comments (5)
I guess you could reference matklad's post on the topic unless you really want to write your own take.
from hypher.
I was definitely going to mention matklad as the inspiration since I originally got the idea from steveklabnik/semver-parser#50, but I think the post you linked to underemphasizes that people should avoid build scripts where possible, and overemphasizes the idea of magic code insertion, where in my experience just generating code into a directory hierarchy in src works well and maybe even better for most of the cases I've encountered (so far I've contributed changes like this to about 5 or 6 projects).
from hypher.
Thanks for the kind words! I'll have a look at this soon.
from hypher.
@djc I see where you're coming from, but it's kind of painful. I just attempted this and the code-generating test doesn't compile because the crate does not build without the generated code. Is there a typical workaround for this? In general, I share the sentiment not to inflict unnecessary bloat on the downstream users, but I'm not sure if the win is that big here, as hypher's build process does not have any dependencies.
from hypher.
I usually commit the generated code in the repo. If you accidentally botch some part of the code generation process such that the generated code doesn't build, I usually just comment out a bunch of stuff to make it work again. In my experience, the code generation code doesn't change very often so it's not a big deal -- IMO it's worth not inflicting the extra compile time on downstream users (even without extra dependencies).
from hypher.
Related Issues (10)
- Support loading any/all locales individually HOT 1
- "Strange" Behaviour HOT 5
- Support for Malayalam (ml) Language - Hyphenation HOT 2
- Feature `norwegian` is always mandatory HOT 1
- Support for Polish (pl) Language - Hyphenation HOT 2
- Support language loading at runtime HOT 2
- Incorrect hyphen right after apostrophe in French
- Forgotten changes in edfa5f9
- Variable penalty? HOT 2
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 hypher.