Re: [Freedos-devel] Calculator for DOS with GUI
The BASIC language was chosen because the tutorial is (like all tutorials) for educational purposes, and the BASIC language is much simpler to assimilate by the inexperienced compared to C, however, that does not mean that the BASIC language is not suitable for other things, many important programs were made using it, and Pascal was also created to teach programming. On the other hand, there are other free environments for BASIC, a certain number of them, and many multiplatform. I don't know if Turbo Basic is paid because Borland offered several outdated environments for free. The case of the keyboard comes from the same thing, it is not that this GUI cannot have keyboard support, it is that as part of the tutorial, and since short steps are taken in it, it had not yet been included when the calculator was made, so that still has a long way to go, and since it is not a GUI intended to be used but rather a software for demonstration purposes of how a GUI could be made. The calculator was an intermediate so as not to make the tutorial too boring, and its usefulness in FreeDOS would also be educational, not as just another program to be used. I have nothing against Pascal or C, I can use those languages and it would even be easier to do some things with them, but it seemed to me that it would be more complicated for others to understand based on my experience, and as I say it is a tutorial on how a GUI could be made. El lun, 9 oct 2023 a las 7:22, Liam Proven via Freedos-devel (< freedos-devel@lists.sourceforge.net>) escribió: > On Mon, 9 Oct 2023 at 09:06, Danilo Pecher via Freedos-devel > wrote: > > > > Neither Microsofts Quickbasic, nor Borlands Turbo-Basic are free > > software, so the amount of people who would be able to compile it, is > > probably dwindingly small. > > How about porting it to FreeBASIC? > > https://www.freebasic.net/ > > That is meant to be a compatible dialect. > > As it happens, in the same batch of new emails this morning as this > email of comment, I got the notification of a new release of QB64. > https://github.com/QB64-Phoenix-Edition/QB64pe/releases/tag/v3.9.1 > > Languages in the MS BASIC family are alive and well as FOSS. I saw a > new benchmark a week ago where one of the single fastest compiled > programs on test was from FBC, and it was several orders of magnitude > faster than Python even using extensions such as NumPy to offload the > hard stuff. > > -- > Liam Proven ~ Profile: https://about.me/liamproven > Email: lpro...@cix.co.uk ~ gMail/gTalk/FB: lpro...@gmail.com > Twitter/LinkedIn: lproven ~ Skype: liamproven > IoM: (+44) 7624 277612: UK: (+44) 7939-087884 > Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053 > > > ___ > Freedos-devel mailing list > Freedos-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-devel > ___ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel
Re: [Freedos-devel] Calculator for DOS with GUI
On Mon, 9 Oct 2023 at 09:06, Danilo Pecher via Freedos-devel wrote: > > Neither Microsofts Quickbasic, nor Borlands Turbo-Basic are free > software, so the amount of people who would be able to compile it, is > probably dwindingly small. How about porting it to FreeBASIC? https://www.freebasic.net/ That is meant to be a compatible dialect. As it happens, in the same batch of new emails this morning as this email of comment, I got the notification of a new release of QB64. https://github.com/QB64-Phoenix-Edition/QB64pe/releases/tag/v3.9.1 Languages in the MS BASIC family are alive and well as FOSS. I saw a new benchmark a week ago where one of the single fastest compiled programs on test was from FBC, and it was several orders of magnitude faster than Python even using extensions such as NumPy to offload the hard stuff. -- Liam Proven ~ Profile: https://about.me/liamproven Email: lpro...@cix.co.uk ~ gMail/gTalk/FB: lpro...@gmail.com Twitter/LinkedIn: lproven ~ Skype: liamproven IoM: (+44) 7624 277612: UK: (+44) 7939-087884 Czech [+ WhatsApp/Telegram/Signal]: (+420) 702-829-053 ___ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel
Re: [Freedos-devel] Calculator for DOS with GUI
I've had a look at it, and I doubt there's much use for it on FreeDOS. The most glaring obstacle is the choice of programming language. Neither Microsofts Quickbasic, nor Borlands Turbo-Basic are free software, so the amount of people who would be able to compile it, is probably dwindingly small. Also, Basic is not really a language that lends itself to large scale projects as it is by its own definition more of an educational nature. The second problem is the reliance on the mouse. Although I doubt too many people out there don't have one, a GUI without proper keyboard support is dysfunctional at best. I better not repeat the sort of replies we got from the accounting department 15 years ago when we presented them with a shiny new GUI for their invoice processing software that had moved many functions from hotkeys to mouse clicks. The program works as a tool to show that you can write GUI programs with BASIC, but in the grand scheme of things that amounts to proving that you can use a driving instruction car as a mini cab. I think the whole tutorial concept would work a lot better if you ported it to one of the free languages that come with FreeDOS, like FreePascal or Watcom C. cheers, Danilo On Mon, 9 Oct 2023 at 06:41, Pedro Luis Carballosa Mass via Freedos-devel wrote: > > Thanks for the suggestion (https://www.gnu.org/licenses/gpl-howto.en.html). > > The author of the mouse subroutines (Andreas Andersson) does not ask to be > contacted, only mentioned, and that is why I mention him in the tutorial. > > He says: > > "If you use any of this code in your programs, please give me a credit". > > The code to manipulate the mouse is not difficult to make, but there was no > point in doing it again if it was going to be the same. > > Indeed, the calculator is an example, and it still does not contain all the > updates, nor all the components, it was an intermission so as not to make the > tutorial too boring. > > > > El dom, 8 oct 2023 a las 16:33, Paul Dufresne via Freedos-devel > () escribió: >> >> Le sam., 07 oct. 2023 20:08:05 -0400 Pedro Luis Carballosa Mass via >> Freedos-devel a écrit >> > Indeed, but that line can be changed (consider it GNU license), as author >> I guarantee that the code can be used to be improved if that serves for >> something to someone. >> Then I would suggest you read/use >> https://www.gnu.org/licenses/gpl-howto.en.html >> >> > Note: The calculator also use a bit of code shared by others (mouse >> subroutines by Andreas Andersson (alhambr...@hotmail.com)) as I mencioned in >> the tutorial >> (https://cubansolutions.blogspot.com/2022/11/diseno-e-implementacion-de-una-gui.html). >> If it was me, I would probably then only publish the .bas file with that >> part removed... unless you are able to contact him and get the permission to >> publish it. >> >> The code is likely to be interesting to build graphical programs other than >> a calculator, as the calculator seems to mostly be an example of GUI >> routines. >> >> ___ >> Freedos-devel mailing list >> Freedos-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/freedos-devel > > ___ > Freedos-devel mailing list > Freedos-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/freedos-devel ___ Freedos-devel mailing list Freedos-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freedos-devel