Page 1 of 3

GitHub - QL Sources

Posted: Thu Nov 10, 2016 9:50 am
by RWAP
I was wondering if it would be worth someone setting up a GitHub for QL Software - where existing source codes are available, these could be uploaded and then people could more easily see the code behind various programs and it may attract new people to start programming in SuperBASIC or 68008 code - even if only to make small improvements to existing programs, toolkits etc.

For example, with the recently released sources for the ProForma colour ESC/P2 drivers, this could attract any C officienados who may be able to improve the code further (and maybe implement the 1440dpi mode, or even 2880dpi !).

I have created a SinclairQL organisation on GitHub and uploaded the ESC/P2 drivers:

https://github.com/SinclairQL

This is public access, and if anyone else wants to be a member of the organisation to create and add new projects, then please just let me know!

Re: GitHub - QL Sources

Posted: Thu Nov 10, 2016 1:43 pm
by RWAP
I have uploaded both the ESC/P2 Proforma drivers and SToQL for now.

We need some system of getting github to recognise SuperBASIC as a language - having spoken to them, you need an open source Textmate-style language grammar defining for it to get it added.

I wonder if we can pull the other QL related projects on GitHub under this one to make it easier?

Re: GitHub - QL Sources

Posted: Thu Nov 10, 2016 4:15 pm
by georgeo
Is there a straightforward way to transfer code (such as SuperBASIC listings) between a QL and GitHub - e.g. is importing/ exporting ASCII source reliable?

Re: GitHub - QL Sources

Posted: Thu Nov 10, 2016 4:29 pm
by RWAP
I normally use the TotalEdit editor which is fine for editing QL files (and re-saving them) without corrupting characters or line endings.

Re: GitHub - QL Sources

Posted: Thu Nov 10, 2016 9:20 pm
by NormanDunbar
Evening All,

GitHub and git software has options to either ignore line endings, convert to Linux/QL or convert to windows style. I've got mine set to "do not bloody change line endings!" as the SuperBasic Manual sources were getting flagged as changed when I checked out the latest code at work - Windows - or at home - Linux. It drove me nuts.

I found the setting, which I obviously can't remember at the moment (I'm in the bath!) But I'll have a look later if I remember, and since I put it on, no problems. Mind you, I also changed to using Notepad++ at work. I have that configured to save in Linux format anyway, so that helped too. It also has recordable macros which came in very handy for the conversion to RST. (ReStructuredText)

I'll see about getting the manual sources IP on the new repository as soon as I can. I think there's an import option on github.


Cheers,
Norm.

Re: GitHub - QL Sources

Posted: Sun Nov 13, 2016 2:28 pm
by tcat
Hi,

I like the idea of sharing QL programs' sources on GIT.

I have two early sources of InfoZIP programs ZIP and UNZIP.
`zip19p1.tar.Z'
`unzip50.tar.Z'

I have so far ported ZIP v1.19 to QL under `qdos-gcc' compiler.
The idea is to learn, improve, and have some fun with C coding.
It is not meant to replace existing work of Jonathan Hudson's, from whose sources I learn a great deal.

My ZIP requires less memory, is v1.9 , does not support level-2 directories, and is generally better suited to bare QLs with minimum extended memory.

Please follow in separate thread at S/W section, any comments from C-coder's better than myself (must be anybody here I guess) are welcome.

Cheers
Tomas
InfoZIP ZIP v1.9 1992
InfoZIP ZIP v1.9 1992

Re: GitHub - QL Sources

Posted: Sun Nov 13, 2016 2:40 pm
by RWAP
Great - if you are already registered on GitHub - pm me your username and I will add you to the SinclairQL team...

Re: GitHub - QL Sources

Posted: Sun Nov 13, 2016 4:32 pm
by tcat
Rich,

Thank you, just registered and thank you for adding me to the project.

I am inexperienced with GIT, so far I used on Linux only to get files with command `git-clone', need to study commands for uploading, annotating, syncing, ...?

Tomas

Re: GitHub - QL Sources

Posted: Sun Nov 13, 2016 11:24 pm
by NormanDunbar
In case anyone is wondering about this "git" thing, you might be interested to know that "The Git Book" aka "Pro Git" bt Scott Chacon is available for free download - the joys of Open Source - at https://git-scm.com/book/en/v2.

Formats available are pdf, mobile, html and epub.

Enjoy.

Cheers,
Norm.

Re: GitHub - QL Sources

Posted: Mon Nov 14, 2016 11:56 am
by XorA
I have two QL projects already on github

https://github.com/slimlogic/qltools
https://github.com/slimlogic/uqlx-fork

Quite happy if you want to add them to SinclairQL team!