Comments (7)
@guillaume-roche Fantastic!
@postspectacular Thanks again for the suggestion. I think this is going to be very helpful.
from ziglings.
Thanks @postspectacular! Sounds like branches would be ideal so long as they're correctly described in the README.
@guillaume-roche , that's a really good point about the official releases like 0.8.1, especially since those are what's linked right on the ziglang.org homepage.
Since it sounds like you already have a start on it, I've created a v0.8.1 branch and put a note on its README:
https://github.com/ratfactor/ziglings/blob/v0.8.1/README.md
I would be delighted if you could contribute the changes to make it work with that version. ❤️
(As an aside, you don't have to build the master branch from source (I'm lazy too, ha ha) - there are nightly builds here: https://ziglang.org/download/)
from ziglings.
@ratfactor no, THANK YOU, for this amazing resource!
from ziglings.
@postspectacular Thanks a lot for this idea! I am very sympathetic to those who have their own compiled builds of Zig, especially since I'd like to be in that club soon myself (32bit RPI, exactly like your example).
Tagging version bumps wouldn't be hard (the hard part would be remembering to do it).
My only concern is that old tagged commits could never get bug fixes, improvements, and new exercises.
What I've been wondering about (since I saw your proposal come in 3 days ago) is if it would be worth doing this with branches instead. In theory, it's no harder to make a branch than a tag, but would still let me make updates.
It seems to me that worst case, I decide it's too hard to maintain 5 old versions and just stop updating the old version branches. That'd be the same as having tagged commits, right?
I'm trying to think of a downside. Can you think of anything?
from ziglings.
Hey @ratfactor - sorry for the delay. I'm glad to hear you're not opposed to it & personally I think it's still better to have some examples working at all (buggy or not) rather than missing out entirely. I also do agree that branches are a somewhat better solution, though I too think you can help your future self by explicitly pointing out in the readme that these branches are merely constituting passively maintained snapshots compatible with the stated versions of the language and that only the tip of this repo is being actively maintained. Something along these lines will just help to set expectations. If other people want to contribute fixes for some of the branches, so be it - at least you provide the necessary mechanism/setup...
from ziglings.
Hi, thanks for this repo!
Interesting discussion. If I may, I think also that branches would be better. I just installed latest 0.8.1 zig release, and then I found out about this repo to learn it. As I'm lazy, I preferred to find local fixes to make it work with 0.8.1, rather than building from sources.
For now, I really didn't have to change much, we will see as I make progress in the ziglings. I guess we could say this is a "meta-zigling" to handle.
Anyway, I would be happy to contribute to an eventual 0.8.1 branch.
from ziglings.
Thanks @ratfactor , I just opened a PR, with a slight typo in my branch name, I hope it's good enough.
(As an aside, you don't have to build the master branch from source (I'm lazy too, ha ha) - there are nightly builds here: https://ziglang.org/download/)
Thanks for the tip. I didn't really check the download page, as I installed Zig with my package manager. ;)
from ziglings.
Related Issues (20)
- Use `role` instead of `class` for struct related exercises HOT 1
- error on build with latest zig 0.11.0-dev.4229 HOT 1
- 062_loop_expressions comptime-only type error HOT 1
- expected 2 arguments and 1 found HOT 6
- Explain abbreviation `lhs`
- 101: More details for SoA vs AoS HOT 4
- Exercise 18 fails in new version (0.12.0) HOT 2
- How do you prevent ziglings from running previously solved exercises? HOT 4
- Zigling 045 HOT 1
- [Exercise 48] Can anyone explain what is happening here? HOT 1
- Announcement! We've moved to Codeberg HOT 16
- Excercise to perform input via console HOT 1
- Ziglings broken by latest Master HOT 2
- Understanding Exercise 40 note
- Failing compilation for 0.12.0-dev.1632+acf9de376 HOT 2
- Set up GitHub mirror HOT 6
- Cannot build with "zig build" HOT 4
- Mistake in 094? HOT 2
- exercise/065_builtins2.zig not compiling HOT 2
- Adding JSON & Hashmap Ziglings HOT 1
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 ziglings.