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 - Mentore

Pages: [1] 2 3 ... 14
1
Programming / Re: Classic, Regina, Object and Open Object Rexx
« on: October 03, 2024, 08:17:29 am »
Is Open Object Rexx (by RexxLA) what was/called NetRexx? I vaguely remember some presentation on some Warpstock Europe some time ago...

AFAIK, Andi, NetRexx was/is (?) something related to Java: quoting the NetRexx website
"NetRexx is a general-purpose programming language inspired by two very different programming languages, Rexx and Java."

Though I feel Netrexx and ooRexx have many things in common, ISTR there is also a converter from / to Netrexx under OS/2.

Mentore

2
Internet / Re: HTTPS server?
« on: October 02, 2024, 08:56:34 am »
I don't think there are any choices on OS/2 other than apache2

Did anyone take a look at nginx?
(I should go look at it, BTW - it's really good for things like reverse proxy).

Mentore

3
Programming / Re: Classic, Regina, Object and Open Object Rexx
« on: October 02, 2024, 08:00:32 am »
Fairly complete description, Jan-Erik. Thanks.
Some of these details I didn't know very well - as far as I can remember, Object REXX was heavily criticized on Warp 4 and almost never used - I stayed on Classic REXX, like many of us.
I also used DrDialog and GPF Rexx (too bad they're discontinued) to build some fancy apps for my theatre activities and boy, was it fun.

I'm currently too involved in porting OS/2 apps from the open source entourage so I don't have time, but in the future I'm willing to write some other useful GUI application in REXX, mostly for my activities as a musician and electronic engineer.

The interesting part of REXX on OS/2 is its integration with the system and SOM - I see many similarities between {OS/2, SOM, REXX} and the .NET environment on Windows and Linux with its Powershell scripting language, though I prefer the more elegant REXX syntax (Powershell can really be a drag). So yes, being able to integrate Regina or ooRexx with OS/2 (and SOM) would give us a big step forward.

Mentore

4
Programming / Re: [GCC] Unable to define getMemorySize()
« on: October 01, 2024, 08:14:11 am »
Last update: yes, getrusage is available in our libc. Compiling it - will test this binary asap and - if it works as I expect - it's going to HobbesArchive.
Mentore

Seems like our getrusage does not return any memory size information, only use of time ("ru_utime", "ru_stime").
I suspect this is not what you are looking for.
As to memory: Rich Walsh has elaborated somewhere in this forum about what the various memory sizes mean and how they play together:

https://www.os2world.com/forum/index.php/topic,3445.msg41758.html#msg41758

It would be nice if we could get that added to "getrusage".

This is pretty interesting. I did a little testing of the executable and found it works (at least to some extent), but - since it still doesn't launch any graphical interface like gnuplot - I'll surely have to get back to it.
What's sure is that I need to know what actually getrusage does (or, for what's worth, GetProcessInfo from the Win32 counterpart) - the other methods in that function involve using the /proc interface which OS/2 allegedly doesn't implement.

Mentore

5
Programming / Re: [GCC] Unable to define getMemorySize()
« on: September 30, 2024, 12:19:06 pm »
Last update: yes, getrusage is available in our libc. Compiling it - will test this binary asap and - if it works as I expect - it's going to HobbesArchive.
Mentore

6
Programming / Re: [GCC] Unable to define getMemorySize()
« on: September 30, 2024, 11:58:26 am »

You guys are invaluable  8)

It's compiling... Will let you know.
Mentore

Compiled. Had to circumvent other two problems though:
  • In get_resident_set_size.c there are some calls to get the memory used by the process. I don't know if we have getrusage available, so I  remembered processes on OS/2 were limited to 512MB and decided to return a fixed size of 400MB. I'm almost sure it's a stupid idea 8) but will try it. I have to search for getrusage in libc.
  • BOOL is defined as unsigned int, conflicting with os2.h definition. Corrected.
  • There was another reference to getMemorySize() in another .c file, also tackled this.

Now ngspice-42.exe is available under OS/2 as beta - will try and see if I can use rusage instead of reporting a fixed 400MB memory used by the process.
Mentore

7
Programming / Re: [GCC] Unable to define getMemorySize()
« on: September 30, 2024, 09:56:12 am »
#if defined(_WIN32)
#undef BOOLEAN
#include <windows.h>

#elif defined(__unix__) || defined(__unix) || defined(unix) || (defined(__APPLE__) && defined(__MACH__))
#include <unistd.h>
#include <sys/types.h>
#include <sys/param.h>
#if defined(BSD) && defined(HAVE_SYS_SYSCTL_H)
#include <sys/sysctl.h>
#endif
#if defined(__APPLE__) && defined(__MACH__)
#import <mach/mach.h>
#import <mach/mach_host.h>
#endif
#elif defined(__OS2__)
#define INCL_BASE
#include <os2.h>
#else
#error "Unable to define getMemorySize( ) for an unknown OS."
#endif

...
unsigned long long getAvailableMemorySize(void)
{
...
#elif defined(__OS2__)
unsigned long mem_got;
if (NO_ERROR == DosQuerySysInfo(QSV_TOTAVAILMEM,QSV_TOTAVAILMEM,&mem_got,sizeof(mem_got)))
{
    return (unsigned long long)mem_got;
}
return 0L;
...

You guys are invaluable  8)

It's compiling... Will let you know.
Mentore

8
Programming / Re: [GCC] Unable to define getMemorySize()
« on: September 26, 2024, 12:38:34 pm »
Looks like you will have to write an OS/2 get_avail_mem_size.

Oh, that may be actual fun :) guess I'll give it a go asap.
Mentore

9
Programming / [GCC] Unable to define getMemorySize()
« on: September 25, 2024, 02:25:59 pm »
Hiya all,

Trying to port NGSpice 4.2 (3.1 compiled just fine). Everything right until this:

get_avail_mem_size.c:26:2: error: #error "Unable to define getMemorySize( ) for an unknown OS."

Where can I find the definition of getMemorySize() under OS/2? Or should I try and clear this OS definition in configuring the environment?
TIA
Mentore

10
Events / Re: Warpstock 2024: Coming? Not Coming? Why?
« on: September 11, 2024, 08:14:14 am »
Rather than try to discuss this in the Warpstock forums, which are lightly trafficked, I thought I'd ask this here.

Some may not be familiar with Pittsburgh, or have misconceptions about its charm. I suggest a quick trip to Wikipedia for a refresher. Pittsburgh is rich with history and culture, and there is an excellent technology museum there (we're working on a potential evening outing there during the event - no promises, but we can always do something impromptu).

Another thing is the hotel group rate.

<-- snip -->


So, if you are coming to Warpstock this year, please mention why. If not, please go into some detail as to your reasons for not making the trip (travel cost, hassle of getting there, registration cost, bad timing, lack of enthusiasm for the location, etc.). We want to know.

Thanks!

As much as I'd love to meet other OS/2 enthusiasts like me, I'm afraid Warpstock and Warpstock Europe are all off limits for me.
The only thing I don't lack is enthusiasm, both for the platform and the events. I don't have time nor resources to afford the trip, and having a wife, a two-and-a-half years old son, a full time job and other jobs, there's really too much to do here for me to leave for a few days.
I'll try to follow the recordings as soon as I have the time to do so. Yes it's a second choice, but alas, there's nothing else available.

A quick note on involving youngsters: I totally agree in saying there should be something to do with students. I feel OS/2 has really much to say in STEM fields, where its stability can rival with other platforms and a more coherent user interface may guarantee a better user experience than its most relevant competitor (which is surely Linux: Windows is too far). This should be the most important point to stress out, since Linux is unbeatable when it comes to money (but still, not free - you have a steep learning curve even with the most "windows-ish" distributions).

Hope everyone attending this year's Warpstock will have a great time.
Mentore

11
General Discussion / Re: Introduction post....
« on: August 14, 2024, 11:17:03 pm »
First time posting on this forum though I've been an OS/2 user since 1995. Today I rely on different Linux distros to do most work as platform of choice. I have a rugged laptop that I use for my copy of ArcaOS which I have setup to operate and look as OS/2 Warp once did.

I've been in the email chain and on the Facebook OS/2 groups for a while. In a subsequent post I will put a link out in these forums about establishing an OS/2 Warp Appreciation Day set for October 11th 2024, 30 years since the IBM release of OS/2 Warp 3.0. Folks will get to know me better as my participation here grows with you all.

Thank You and My Regards,

Jason Page

Hi Jason,
welcome to the forum.
We are eager to look at your contributions! :)

Mentore

12
Programming / Re: GCC - updates
« on: July 11, 2024, 11:15:03 am »
Hey Mentore,

I've deliberately set this up to easily work *with* rpm gcc 9.2.0.

Unzip it to the root of the same drive you have rpm installed on. To switch to a newer gcc, 'set path=c:\usr\local1330\bin;%path%' (or whatever the path is).  GCC 9.2.0 will still be installed into c:\usr\bin and it's easy to change between them.

Cheers,

Paul.

Fantastic job Paul, as usual.
Thanks!

Mentore

13
Programming / Re: GCC - updates
« on: July 10, 2024, 08:02:18 am »
More testing to be done, but https://smedley.id.au/tmp/gcc-13.3.0-os2-20240710.zip seems to correctly create debug symbols...

GCC 14.1.0  is giving some errors builing libgcc with debug code:
Code: [Select]
during RTL pass: final
../.././libgcc/libgcc2.c: In function '__muldi3':
../.././libgcc/libgcc2.c:538:1: internal compiler error: in eliminate_regs, at reload1.cc:2938
  538 | }

As usual, fantastic job Paul.
May I ask if it is possible to directly substitute this over, say, GCC 9.2.0 from the netlabs YUM/RPM repository?
Mentore (still reinstalling ArcaOS beta to work on the italian NLS)

14
Programming / Re: Strange autoconf / autoreconf / configure behavior
« on: June 24, 2024, 03:30:34 pm »
after playing around trying to update binutils, I have to say how much I hate autotools....

 ;D

When it works it's a breeze. But when it doesn't...

Mentore

15
Programming / Re: Strange autoconf / autoreconf / configure behavior
« on: June 24, 2024, 09:23:07 am »
You can just reinstall the YUM/RPM stuff. Should backup your package list first with ANPM, Manage-->Yum Tools-->Export package List.
Basically, go to d:\usr\lib, run unlock *.dll. Move d:\usr, d:\var, d:\etc out of the way, forget if a reboot should be done, I think not. Run ANPM to bootstrap the RPM system. I'd suggest not enabling netlabs-exp at first. You can import your packages or manually install them. Test, eventually enable netlabs-exp and see if things keep working.

This is something I'll surely try when I get back to my VM. Thanks Dave, I really need to know better RPM/YUM and ANPM strategy.
I'll also have to install the latest ArcaOS beta to try and work on the Italian version, so most probably I'll go both ways.

Thanks all - will report ASAP.

Mentore

Pages: [1] 2 3 ... 14