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 - agena@alex

Pages: 1 [2] 3
16
Programming / Re: kbhit C implementation for eCS GCC ?
« on: September 08, 2014, 04:57:47 pm »
Hello,

unfortunately, I found no `[Kk]bd*` functions in the header files of various GCC distributions.

Yes, I came across the Watcom OS/2 port.

I hoped that at least the i286 assembler code I found on the Watcom source distribution site could be compiled, but failed. Also, the Watcom licence somehow does not fit to the MIT licence, but I should check this again.

There is also a kbhit clone in the sources of the Harbour 3.0 language, but found them quite difficult to try.

Alex

17
Programming / Agena 2.3.0 has been released for eComStation
« on: September 08, 2014, 04:45:29 pm »
Hello,

I have just uploaded a WarpIN installer of Agena 2.3.0 RC 1 for eComStation:

   http://sourceforge.net/projects/agena/files/Binaries/Agena%202.3.0%20RC%201/agena-2.3.0RC1-ecs.os2.wpi/download

Although `RC 1` may sound like `beta`, it is a stable version of Agena. The eCS version currently does not feature the `net`,
`gdi`,  `fractals`, and `xml` packages. I also did not have time to update the manual, yet.

You may find the sources at:

   http://sourceforge.net/projects/agena/files/Sources/agena-2.3.0RC1-ecs.os2.src.tar.gz/download

A crash course on the language is available here:

   http://sourceforge.net/projects/agena/files/Manuals/agena-crashcourse.pdf/download

Any feedback would be nice.

Alex

18
Programming / kbhit C implementation for eCS GCC ?
« on: September 08, 2014, 04:33:14 pm »
Hello,

yesterday, I searched for hours for an alternative C implementation of kbhit which checks whether
a key on the keyboard has been pressed, and which just returns a Boolean 0 or 1 but does not
write anything to stdout.

The eCS GCC conio header files unfortunately miss this non-ANSI C function.

Do you have a hint ? Thank you.

Alex


19
Programming / Re: Agena programming language
« on: September 08, 2014, 04:14:14 pm »
Hello,

I have just uploaded a WarpIN installer of Agena 2.3.0 RC 1 for eComStation:

   http://sourceforge.net/projects/agena/files/Binaries/Agena%202.3.0%20RC%201/agena-2.3.0RC1-ecs.os2.wpi/download

Although `RC 1` may sound like `beta`, it is a stable version of Agena. The eCS version currently does not feature the `net`,
`gdi`,  `fractals`, and `xml` packages. I also did not have time to update the manual, yet.

You may find the sources at:

   http://sourceforge.net/projects/agena/files/Sources/agena-2.3.0RC1-ecs.os2.src.tar.gz/download

A crash course on the language is available here:

   http://sourceforge.net/projects/agena/files/Manuals/agena-crashcourse.pdf/download

Any feedback would be nice.

Alex

20
Programming / Re: eCS 2.2 C API documentation
« on: September 05, 2014, 04:28:48 pm »
Martin,

I am currently extending os/IO-specific functions according to your very fine API documentation.

Alex

21
> Yes, Germany (...) live(s) in prosperity (...)

No, we will not be prosperous.

Speaking for the Rhineland, at least.

How about fixing the SIGFPE problem presumably inherent to eCS/libc065.dll, so that this great
platform might exist for many further years ?

Concerning the heated discussion on this former thread - I just only wanted to ask for an up-to-date
C API eCS documentation.

OS/2 world.com should not become a political forum.

Instead, the whole OS/2 community should join to get great things done - just now with all
this frightening and albern `Cold War` revival.

Alex

22
Programming / GCC: Request for help on IPv4 `shutdown` function
« on: September 05, 2014, 10:40:00 am »
Hello,

I am currently searching for the eCS pendants of constants that are used by C's
`shutdown` function.

The constants SD_* and SHUT_* do not seem to exist in eCS.

Would you please help me ?

Thank you,

Alex


#ifdef _WIN32
#  define SHUTDOWN_RD SD_RECEIVE
#  define SHUTDOWN_WR SD_SEND
#  define SHUTDOWN_RDWR SD_BOTH
#else
#  define SHUTDOWN_RD SHUT_RD
#  define SHUTDOWN_WR SHUT_WR
#  define SHUTDOWN_RDWR SHUT_RDWR
#endif
 

static int net_shutdown (lua_State *L) {
  const char *mode;
  int r, m;
  AGN_SOCKET sock;
  STATUS *s;
  sock = luaL_checkinteger(L, 1);
  checksocket(L, sock, AGN_NET_SHUTDOWN);
  s = getsocketattribs(L, sock, AGN_NET_SHUTDOWN);
  if (!s->connected) {
    agn_neterrorfail(L, "socket not connected");
  }
  mode = luaL_checkstring(L, 2);
  if (strcmp(mode, "read") == 0) {
    r = shutdown(sock, SHUTDOWN_RD); m = SHUTDOWN_RD;
  } else if (strcmp(mode, "write") == 0) {
    r = shutdown(sock, SHUTDOWN_WR); m = SHUTDOWN_WR;
  } else if (strcmp(mode, "readwrite") == 0) {
    r = shutdown(sock, SHUTDOWN_RDWR); m = SHUTDOWN_RDWR;
  } else {
    m = r = -MAX_INT;
    luaL_error(L, "Error in " LUA_QS ": unknown shutdown mode `%s`." AGN_NET_SHUTDOWN, mode);
  }
  if (r == 0) {
    s->shutdown = m;
    if (treeupdate(socketattribs, sock, s) != 0) {
      luaL_error(L, "Error in " LUA_QS ": could not assign socket to administration table.", AGN_NET_SHUTDOWN);
    }
  }
  lua_pushboolean(L, r == 0);
  return 1;
}

23
Programming / Re: Agena programming language
« on: September 05, 2014, 10:22:39 am »
Hello,

due to Dave Yeo's very kind help, I may publish a stable eCS version of Agena next week at Sourceforge.

Alex
http://agena.sourceforge.net

24
Hello,

I had been wondering last night how anybody can port current OpenSource projects
to eCS with this very substantial (libc06*.dll ?) bug.

Without Dave's help, I would have surrendered.

Alex

25
Dave,

gosh !  Your fix works great - no FPU exceptions any longer and the interpreter
has become super-fast now, as well.

Thank you very much,

Alex

26
Hello,

I am currently porting an interpreter to eCS 2.2 using various GCC compilers (4.4.x, 4.5.x, 4.7.x)
kindly provided by Paul Smedley. I run eCS on Sun VirtualBox 4.3.12.

In my regression tests, I notice various SIGFPE crashes obviously issued via libc065 when trying
to call C's trunc, cosh, and sinh functions (thus far). Is this a known issue with eCS/GCC ?

The interpreter heavily relies on the use of doubles in numerical loops, etc. Although it never has
been fast on my late native OS/2 Warp 4 machine many years ago, the interpreter is running
unbearably slow now on eCS. When compiling, I use the following switches:

os2static:
   $(MAKE) all MYCFLAGS="-O2 -static-libgcc -fomit-frame-pointer -D__ST_MT_ERRNO__ (+ some Agena/Lua non-numerical switches)"

Is there an approriate switch to speed up double arithmetic ?

Thank you,

Alex

27
guzzi,

> Not a clue if it has anything to do with it, bat afak the latest gcc we have on os/2 via yum/rpm is 4.7.3. Paul Smedley has built a 4.9.0, are you using that?

Sure I do.

alex

28
Hi,

> ... wrote> I'm sorry Alexander that your forum thread got hi-jacked [...]

Our current thread reminds me of what I have been enduring for the last 17 years in my professional IT business life:

IT orthology everywhere: `Agile`, `Waterfall`, `Constistence`, `Closed`, `Open`, etc.

I dare a humble philosophical Zwischenschnitt aus dem Rheinland:

In Sun VirtualBox 4.3.12 on a MacBook, I still cannot compile Agena with our eCS Demo CD with a plugged-in virtual FAT16 2GB hard disk at IDE primary slave residing my GCC 4.9.0 devenv.

Please tell me what am I doing wrong ?

Alex
http://agena.sourceforge.net


with U: everywhere changed to C:

[C:\]usr\local490\gcc490

[C:\]make

Killed by SIGSEGV
pid=0x011b ppid=0x011a tid=0x0001 slot=0x0051 pri=0x0200 mc=0x00
C:\USR\BIN\MAKE.EXE
LIBC065 0:0005dfdc
cs:eip=005b:1de9dfdc      ss:esp=0053:0014f480      ebp=0014f498
 ds=0053      es=0053      fs=150b      gs=0000     efl=00010246
eax=00000047 ebx=00027c31 ecx=00027c67 edx=00027c47 edi=00027c31
Process dumping was disabled, use DUMPPROC / PROCDUMP to enable

29
Hi,

I do not think it is fair to take MIT sources and convert the project based on them to this virus-like GPL.

The effort, however, is significant: studying legal comments on mixing sources with different licences,
publishing separated source trees accordingly, searching days for MIT C solutions (`hopefully this one fits
to MIT`), studying complicated math books to develop code for math functions although respective GPL C
implementations have been existing already for a long time and which are much better, etc.

Alex

30
Hi,

Martin wrote: `That is an interesting case [on the Win8+ start menu application]`.

Please read: classicshell.net/faq/#general_oss

Ivo Beltchev's essence is: `Some people have taken the code wholesale and are selling their own copies of the start menu with little to no modification. While this is allowed under the licensing terms, it was against the spirit of my intent.`

Alex

Pages: 1 [2] 3