A Gambas Compiler
Posted
#1
(In Topic #1001)
Enthusiast

I was wondering if Gambas which is such a powerful and amazing language would have a compiler that allows a Gambas program to run without any runtime and if a program works it will always work because it is independent of any interpreter. MS has compilers for visual basic. C and C++ and C# all have compilers like that. Wouldn't it be great if Gambas had one?
Is this something we can look into and see if it can happen?
Posted
Regular

Posted
Enthusiast

Posted
Guru

Add support for AppImage automous package (!298) · Merge requests · Gambas / gambas · GitLab
Posted
Regular

Here is a url for Gambas and appimages: https://appimage-build…est/examples/gambas3.html
Posted
Enthusiast

I would love this if for no other reason than that nearly every time a new Gambas version is released I end up with it and there are things broken that adversely affect my already working projects and then I have to stress and run around fixing things, or impatiently wait for the fix. I understand this is normal and it happens, I have done it myself. But with app image or a full compiler it will not impact production environments like it does now. It will only affect the development and that is easier to deal with.
I am not trying to say anything bad, I love Gambas and think it is amazing. I just think that compilers and or app image would make it better. Lessen impact of errors in the interpreter too. If my clients have to deal with an error or problem in software I want it to be my fault and something I can go fix rather than having to wait for the interpreter to be fixed and another update. Fedora is very slow to push the updates out and even now I am waiting on the 3.18.1 to hit fedora to fix problems.
Posted
Guru

The sorts of problems you are talking about are rare if you stick with stable branch.
The rollercoaster of instability you make it sound like does not happen that much in dev branch either to be fair.
There was a major change recently that had something to do with overflow ,, i do not know what but the situation was that the interpreter was wrong , then it got fixed ,
now some of our programs did not error but they are also wrong and should do.
some just needed a simple re-compile of the binaries.
Posted
Enthusiast

Let me give my current issue. I have a project that uses large fonts on the screen for visual impaired and for longer distance visibility. The interpreter has been updated in the repo and now drag and drop is not working. That is rather important feature. Also the font size of the combo box is large as it should be but if you click to select, the font size goes back to normal size rather than the size of the font selected. You can see the selected item in full size but the other options are not. I am told all that is fixed in the next interpreter 3.18.1 while I have 3.18.0 but I have to wait for it to go thru the fedora repo before everybody using it can get that functionality back.
Prior to that we lost the ability to control window placement which crippled a point of sale system that uses multiple monitors so window placement and moving was crucial. The problems are addressed and fixed but the time involved hurts.
I count myself lucky that it is only these 2 problems in about 2 years but even those uncommon problems cause me grief. The compiler or app image could stop that from ever happening. Perhaps it is just my bad luck but the rare problems seem to cause me alot of issue when they happen.
Please keep the amazing work going but please add this app image or compiler feature so that even the rare problems can be caught and never reach production. You guys are amazing.
Posted
Regular

Writing one that produced optimized code, even more difficult, and its already been done by gobs of people.
I think the best approach would be a translator from Gambas to C++ source code, then submit that to g++. This would require a few support libraries at runtime, yada, yada. It would also make Gambas a valid prototyping tool for "real systems", where the translated code is simply a foundational starting point.
Nobody has mentioned the Gambas JIT in this either. I have never employed it.
.... and carry a big stick!
1 guest and 0 members have just viewed this.


