Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Li Keqing

Pages: [1]
1
Programming / Re: Can 64-bit programs run on OS/2?
« on: December 28, 2021, 02:17:28 pm »
Would it be pretty cool if OS/2 can run 64 bit programs? ;D
Why? Which programs? Which 64 bit program will work in the given 4GB address space? Moreover which 64 bit program is of any use in our restricted address space?

Guess you need to think a bit more about the constraints of our OS before dreaming about running 'any' 64 bit programs on OS/2. And think a bit more about the advantage of this specific 64 bit program which you think you need on OS/2.
Exactly there is no 64 bit program on OS/2 yet, but more and more softwares on other platforms is dropping 32 bit support, and the most common used Linux distros are also dropping x86-32 support.
Some of the greatest developers are porting Qt5-based browser to OS/2 platform, right? AFAK the blink engine used in that browser is a giant memory eater, will 4GB address space be enough for future usage?
It's not necessary to support 64 bit or some other 'new' technology although, Arca Noae is working on UEFI support even while there are lots of virtualization solution to run OS/2 on modern PCs. Should OS/2 just stick to 4.52 and say 'yeah, we don't need to move on'? I can't agree.

I now think you don't wanted to ask 'Can 64-bit programs run on OS/2' but 'can OS/2 be extended with a 64 bit *nix compatible subsystem'. Or 'can 64 bit *nix applications which are 64 bit for good reasons be ported to OS/2'. --> No.
No, I think the '*nix compatible system' and EMX are both s*ck, it should only be a temporary transient proposal in my opinion. Why don't I use Linux, BSD or Mac directly?

In fact I just be inspired by the rare 'OS/2 Warp 3.0 PowerPC Edition'.
It uses an advanced microkernel design, it's portable like *nix and Windows NT, it can run DOS and Win16 applications, it uses the de facto standard and extendable ELF format instead of the proprietary LX which can only contain 32 bit codes.
It's a pretty powerful OS/2 with tons of bugs and glitches, but I do really really like it.
I hope it can do more than it currently can, 64 bit computing is a direction I think.

2
Programming / Re: Can 64-bit programs run on OS/2?
« on: December 28, 2021, 11:44:03 am »
Would it be pretty cool if OS/2 can run 64 bit programs? ;D
Why? Which programs? Which 64 bit program will work in the given 4GB address space? Moreover which 64 bit program is of any use in our restricted address space?

Guess you need to think a bit more about the constraints of our OS before dreaming about running 'any' 64 bit programs on OS/2. And think a bit more about the advantage of this specific 64 bit program which you think you need on OS/2.
Exactly there is no 64 bit program on OS/2 yet, but more and more softwares on other platforms is dropping 32 bit support, and the most common used Linux distros are also dropping x86-32 support.
Some of the greatest developers are porting Qt5-based browser to OS/2 platform, right? AFAK the blink engine used in that browser is a giant memory eater, will 4GB address space be enough for future usage?
It's not necessary to support 64 bit or some other 'new' technology although, Arca Noae is working on UEFI support even while there are lots of virtualization solution to run OS/2 on modern PCs. Should OS/2 just stick to 4.52 and say 'yeah, we don't need to move on'? I can't agree.

3
Programming / Re: Can 64-bit programs run on OS/2?
« on: December 28, 2021, 10:13:12 am »
It may also be worth mentioning, from what Arca Noae has said, anything touching the kernel seems to fall into some kind of odd legal territory with IBM and won't always be allowed.
Well... I want to know whether I just hook and insert some functions while running instead of patching the kernel offline in binary form is illegal...

4
Programming / Re: Can 64-bit programs run on OS/2?
« on: December 28, 2021, 10:05:22 am »
Would it be pretty cool if OS/2 can run 64 bit programs? ;D

5
Programming / Re: Can 64-bit programs run on OS/2?
« on: December 28, 2021, 07:00:08 am »
No. The only way I could see it working, like on the Mac is if that 32 bit kernel has some 64 bit support.
Maybe a driver can help via injecting some codes into kernel...?

6
Programming / Can 64-bit programs run on OS/2?
« on: December 28, 2021, 06:31:41 am »
While there are tons of extenders can be used to run 32-bit programs on DOS, is there any extenders can be used to run 64 programs on OS/2?
It should be technically possible since Mac OS X 10.5 supports running 64-bit apps upon a 32-bit kernel, but what about OS/2.

7
Programming / Re: Asynchronous IO or non-blocking IO on OS/2?
« on: October 22, 2020, 08:47:37 am »
I've found libaio, libpoll-devel and (maybe related) libevent as RPM packages.
Thanks for your reply!
It seems that those libraries are just simulate async io or nonblocking io but not do async io or nonblocking io operation natively.

8
Programming / Asynchronous IO or non-blocking IO on OS/2?
« on: October 20, 2020, 09:24:10 am »
Is there any asynchronous I/O or non-blocking I/O on OS/2, like IOCP on Windows NT or EPOLL on Linux?

9
Hardware / Re: How to select audio output device?
« on: September 21, 2020, 08:36:16 am »
I would try the /A: option. From README.TXT:
Code: [Select]
/A:n - Use audio adapter n where the first adapter is 0.
Thanks for your reply! I'll have a try!

10
Programming / Re: How can I place a progress bar inside a window?
« on: September 21, 2020, 08:16:52 am »
eToolkit allows show progress-bar,
progres..dll
http://os2.guru/projects/developer/toolkit/?action=toolkit
ArcaOS, eComStation 2.0 include the runtime so it will work on any  OS/2 computer running tpday.

example, circular:

Thanks for your reply! But I'd like to make the app runs on OS/2 2.0, so it may not be an acceptable choice.

11
Hardware / How to select audio output device?
« on: September 19, 2020, 11:06:59 am »
It seems that the uniaud driver automatically select my graphics card as audio output via HDMI cable, but my monitor does not have any speaker.
How can I switch the audio output port to a loudspeaker or my usb headphone?

12
Programming / Re: How can I place a progress bar inside a window?
« on: September 19, 2020, 06:40:10 am »
The PM slider control has a 'ribbon' mode which allows it to be used as a (crude) progress bar. 

Otherwise there is no built-in "pure" PM progress bar control, but various different GUI toolkits provide their own.

XWPHelpers is an open source example. It provides lots of additional controls like progress bar, tooltips, etc.  However you generally have to compile the library yourself which can be a bit complicated to set up (and IIRC you need the IBM compiler for that).
http://trac.netlabs.org/xwphelpers/browser/branches/branch-1-0

The AFCUTIL library originally written for Styler/2 has various controls too, including a 'progress dialog'. This is also open source but unfortunately not really documented (and the source comments are mostly in Italian...)
https://github.com/OS2World/UTIL-WPS-Styler_2/tree/master/utildll

There used to be commercial libraries that had controls like this. I presume IBM's OpenClass library had one. There were others too.
Thanks for you detailed reply! 'Ribbon' mode slider may be okay, I will have a try.

13
Programming / How can I place a progress bar inside a window?
« on: September 19, 2020, 03:38:34 am »
Hi folks!
It seems that OS/2 does not provide such a control natively. I can emulate a progress bar using STATIC, but I have to write tons line of code to make it usable.
Do you have any better idea about it?

Pages: [1]