Okay, system / skeleton merge is nearly complete, just adc left to sort out, comments regarding that are on the PR.
If it gets merged it will end up breaking any code from outside the repo (e.g. Orca and the MIDI input for earthsea), I’m happy to help get those working again. (The changes should be trivial.)
Now that that is nearly out of the way, I hope I can make a little constructive criticism…
1. Indentation
If you were to get forensic about the code, you can see it’s been written by 2 people with different text editor settings, @zebra (the original author) favours 2 space indentation, @tehn goes with tabs (and occasional 8 spaces). Lots of trailing spaces too. This makes my 2 text editors light up will all sorts of warnings. Even GCC will be getting in the act soon. Messed up indentation leads to serious bugs. It also makes doing diffs a pain (and I know should know!)
Can we standardise on one set please. Perhaps we could add a .editorconfig to the repo. Maybe in the future we could go with a .clangformat. As an aside what text editor is everyone using?
Please don’t go and change all the formatting now though, as it will lead to problems with…
2. Git blame
If you’ve never used it, the git blame command (or on GitHub) is really useful for tracking down why changes were made, but it works best if people make smaller commits (with sensible commit messages). Not everyone likes this style of using git, if you have a big project you can end up with a very large commit history, but I think for us it would be a good idea.
(rant over)
Are we ready to start thinking about merging skeleton and avr32_lib then?
I think we’ve got 3 options:
- A new repo for the
newlib, but with no tracked link to the projects using it. e.g.
cd ~/Projects/mod/teletype
export NEWLIB_HOME=~/Projects/newlib
make
-
A new repo for newlib, but linked in using either submodules or subtrees.
-
One giant repo with both the aleph and the modular source code (and maybe Orca if @scanner_darkly wants to).
If we do decide to chop things up into a few interlinked repos, we might need a new GitHub org, @tehn had mentioned moving the aleph repo to the monome org, but it might be a bit confusing having the modules in there as there are already meadowphysics and teletype repos.