{"action":"created","issue":{"url":"https://api.github.com/repos/micropython/micropython/issues/1907","repository_url":"https://api.github.com/repos/micropython/micropython","labels_url":"https://api.github.com/repos/micropython/micropython/issues/1907/labels{/name}","comments_url":"https://api.github.com/repos/micropython/micropython/issues/1907/comments","events_url":"https://api.github.com/repos/micropython/micropython/issues/1907/events","html_url":"https://github.com/micropython/micropython/issues/1907","id":141245167,"number":1907,"title":"RFC: Expansion of code base to support more ports","user":{"login":"dpgeorge","id":6187689,"avatar_url":"https://avatars.githubusercontent.com/u/6187689?v=3","gravatar_id":"","url":"https://api.github.com/users/dpgeorge","html_url":"https://github.com/dpgeorge","followers_url":"https://api.github.com/users/dpgeorge/followers","following_url":"https://api.github.com/users/dpgeorge/following{/other_user}","gists_url":"https://api.github.com/users/dpgeorge/gists{/gist_id}","starred_url":"https://api.github.com/users/dpgeorge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dpgeorge/subscriptions","organizations_url":"https://api.github.com/users/dpgeorge/orgs","repos_url":"https://api.github.com/users/dpgeorge/repos","events_url":"https://api.github.com/users/dpgeorge/events{/privacy}","received_events_url":"https://api.github.com/users/dpgeorge/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/micropython/micropython/labels/rfc","name":"rfc","color":"FF66CC"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2016-03-16T11:28:52Z","updated_at":"2016-03-17T20:48:03Z","closed_at":null,"body":"MicroPython is growing larger and there needs to be a way to sustainably increase the size of the code base.  The main increases in size come from new ports, especially when vendor HAL code is included.  For example #1855 (port to rtl8195a) brings in 10k new lines of code, and #1890 (port to STM32Lxxx) brings in 12k lines.  There are also plans to port uPy to MCUs from other vendors that we don't yet support.\r\n\r\nWe could just include everything in this repository, with a new top-level dir per port.  But I think that is too large a burden.  People interested in vendor X don't want/need the entire HAL of vendor Y.\r\n\r\nI'd like to keep this main repository as lean as possible, so that it's not too large to clone (currently around 60mb), so that the commits are focused on development of the core, and so that other projects/ports/etc can include this repository as a cohesive and self-contained component.\r\n\r\nIdeally this repo would contain just the core components, and all MCU ports (stmhal, cc3200, esp8266, pic16bit) would move to individual repositories, eg micropython-stmhal (or just micropython-st), and this core repo would become a git submodule of each port.  But maybe that's too big a change to aim for right now.\r\n\r\nBut for new ports like rtl8195a (#1855), I think we should put them straight away into a dedicated repository, eg micropython-rtl.  Then development can happen there at its own pace.\r\n\r\nFor the case of STM32Lxxx support, that's a bit different.  Two options are:\r\n\r\n1. We could start a micropython-st repo now and put this code there, along with any new ST ports (eg F0xx, F2xx).  stmhal/ may or may not eventaully migrate there.\r\n2. We include the STM32Lxxx HAL files as a git submodule within this repo.\r\n\r\nThis is an RFC issue so please make your opinions known, thanks!"},"comment":{"url":"https://api.github.com/repos/micropython/micropython/issues/comments/198076498","html_url":"https://github.com/micropython/micropython/issues/1907#issuecomment-198076498","issue_url":"https://api.github.com/repos/micropython/micropython/issues/1907","id":198076498,"user":{"login":"prusnak","id":42201,"avatar_url":"https://avatars.githubusercontent.com/u/42201?v=3","gravatar_id":"","url":"https://api.github.com/users/prusnak","html_url":"https://github.com/prusnak","followers_url":"https://api.github.com/users/prusnak/followers","following_url":"https://api.github.com/users/prusnak/following{/other_user}","gists_url":"https://api.github.com/users/prusnak/gists{/gist_id}","starred_url":"https://api.github.com/users/prusnak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/prusnak/subscriptions","organizations_url":"https://api.github.com/users/prusnak/orgs","repos_url":"https://api.github.com/users/prusnak/repos","events_url":"https://api.github.com/users/prusnak/events{/privacy}","received_events_url":"https://api.github.com/users/prusnak/received_events","type":"User","site_admin":false},"created_at":"2016-03-17T20:48:02Z","updated_at":"2016-03-17T20:48:02Z","body":"@dpgeorge I see. What you say makes sense to me now. Thanks for your explanation."}}