Is BlackBox 1.8 incompatible to BlackBox 1.7?

BlackBox for Windows / Linux / OpenBSD / FreeBSD
https://github.com/bbcb/bbcp https://blackbox.oberon.org/download

Re: Is BlackBox 1.8 incompatible to BlackBox 1.7?

Postby X512 » Sun Apr 25, 2021 7:46 pm

Мне подход через хук кажется неверным, так как процедуры будут работать то одним способом, то другим... как-то это не способствует надежности...


Translated:
To me, the hook approach seems to be wrong, since the procedures will work in one way, then in another ... somehow this does not contribute to reliability...


This is already so, because different implementations are used for Windows and *NIX. To avoid this problem, Unicode module should be implemented in Component Pascal without using DLL/SO calls.
X512
 
Posts: 71
Joined: Sat Feb 07, 2015 2:51 pm

Re: Is BlackBox 1.8 incompatible to BlackBox 1.7?

Postby Ivan Denisov » Mon Apr 26, 2021 4:30 am

X512 wrote:
Мне подход через хук кажется неверным, так как процедуры будут работать то одним способом, то другим... как-то это не способствует надежности...


Translated:
To me, the hook approach seems to be wrong, since the procedures will work in one way, then in another ... somehow this does not contribute to reliability...


This is already so, because different implementations are used for Windows and *NIX. To avoid this problem, Unicode module should be implemented in Component Pascal without using DLL/SO calls.

Yes, this is done! So I am suggesting to import Unicode to the Kernel, and use it inside Kernel.
User avatar
Ivan Denisov
 
Posts: 320
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: Is BlackBox 1.8 incompatible to BlackBox 1.7?

Postby Ivan Denisov » Mon Apr 26, 2021 4:34 am

Actually, I think, that it will be good to make some steps back in 1.8 like Helmut suggests and fix it as beta.
Then to change version to 2.0 and change interfaces as it will more suitable for cross platform version.
There will be several Host folders for target OSes like HostWin32GUI HostWin32Console, HostLinuxGUI, HostLinuxConsole, HostFreeBSDGUI etc. Ivan Kuzmitski and Peter Kushnir did such successful experiments some years ago.
https://gitlab.molpit.org/Ikuzmitsky/bl ... 0150328.7z
User avatar
Ivan Denisov
 
Posts: 320
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: Is BlackBox 1.8 incompatible to BlackBox 1.7?

Postby Zinn » Tue Apr 27, 2021 4:31 pm

Ivan Denisov wrote:There will be several Host folders for target OSes like HostWin32GUI HostWin32Console, HostLinuxGUI, HostLinuxConsole, HostFreeBSDGUI etc.


Does somewhere exist an interface definition about HostWin32GUI and HostWin32Console?
Is the interface definition of HostLinuxGUI the same as the interface definition of HostWin32GUI?
Is the interface definition of HostLinuxConsole the same as the interface definition of HostWin32Console?

Where can I find them?

-Helmut
Zinn
 
Posts: 103
Joined: Mon Nov 24, 2014 10:47 am
Location: Frankfurt am Main

Re: Is BlackBox 1.8 incompatible to BlackBox 1.7?

Postby Ivan Denisov » Wed Apr 28, 2021 4:16 am

The modules from the Host folders shall not be used in users projects, so the interfaces somehow are irrelevant.
These modules now are spreading in the folders of the repository https://github.com/bbcb/bbcp/tree/master/BlackBox
So it is hard to maintain repository and to make cross-compilation. This issue is about reorganization of Host for easier support of cross-platform development.
User avatar
Ivan Denisov
 
Posts: 320
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: Is BlackBox 1.8 incompatible to BlackBox 1.7?

Postby X512 » Fri Apr 30, 2021 5:13 am

Ivan Denisov wrote:Yes, this is done! So I am suggesting to import Unicode to the Kernel, and use it inside Kernel.


Unicode support code is big and it should be an option to run Kernel and String modules without it by assuming ASCII and IsAlpha(ch) = TRUE if ch >= 100X.

Also where Unicode module source can be found?
Last edited by X512 on Fri Apr 30, 2021 5:19 am, edited 1 time in total.
X512
 
Posts: 71
Joined: Sat Feb 07, 2015 2:51 pm

Re: Is BlackBox 1.8 incompatible to BlackBox 1.7?

Postby X512 » Fri Apr 30, 2021 5:16 am

Ivan Denisov wrote:HostLinuxGUI, ..., HostFreeBSDGUI


Is there a difference between Linux and BSD GUI? Maybe it is better to name it HostGtk2GUI?
X512
 
Posts: 71
Joined: Sat Feb 07, 2015 2:51 pm

Re: Is BlackBox 1.8 incompatible to BlackBox 1.7?

Postby Ivan Denisov » Fri Apr 30, 2021 1:17 pm

X512 wrote:
Ivan Denisov wrote:Yes, this is done! So I am suggesting to import Unicode to the Kernel, and use it inside Kernel.


Unicode support code is big and it should be an option to run Kernel and String modules without it by assuming ASCII and IsAlpha(ch) = TRUE if ch >= 100X.

Also where Unicode module source can be found?

https://github.com/bbcb/bbcp/blob/dev18 ... nicode.odc
The .ocf file is 42KB. That is not very big for PC. For some MCU, maybe. However BlackBox is not used a lot with MCU now, as I know. There should be more optimizations for MCU anyway.
User avatar
Ivan Denisov
 
Posts: 320
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Re: Is BlackBox 1.8 incompatible to BlackBox 1.7?

Postby Ivan Denisov » Fri Apr 30, 2021 1:20 pm

X512 wrote:
Ivan Denisov wrote:HostLinuxGUI, ..., HostFreeBSDGUI


Is there a difference between Linux and BSD GUI? Maybe it is better to name it HostGtk2GUI?

There are some differences in libraries and in memory manage (Kernel), so there should be some separate Host for FreeBSD and OpenBSD . I think, that they can import HostLinux modules for their been reused.
User avatar
Ivan Denisov
 
Posts: 320
Joined: Tue Sep 17, 2013 12:21 am
Location: Krasnoyarsk, Russia

Previous

Return to BlackBox Cross-Platform

Who is online

Users browsing this forum: No registered users and 1 guest

cron