Login
Username:

Password:

Remember me



Lost Password?

Register now!

Sections

Who's Online
207 user(s) are online (138 user(s) are browsing Forums)

Members: 2
Guests: 205

trixie, balaton, more...

Headlines

Forum Index


Board index » All Posts (jaokim)




Some news
Just popping in
Just popping in


It's been a bit quiet from me lately, but now I've actually dusted of the old AWT code, and got it to run!

See the blog for details: http://jamiga2.blogspot.com/2015/10/mind-sweeped.html

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Jamiga presentation in Sweden
Just popping in
Just popping in


Thank you for your kind comments! I've actually held basically the same presentation on a few other occasions. Both for Java-developers and general nerds. The general impression is that people have very fond memories of Amiga, and they're mostly unaware of the existence of new computers.

I once started by showing the "Only Amiga makes it possible"-video and overheard someone in the crowd saying "it was really true, only Amiga made it possible".

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Jamiga presentation in Sweden
Just popping in
Just popping in


@zzd10h
I created the subtitles in amara.org: http://www.amara.org/sv/videos/QOzN34rxAl14/en/1110095/

From there you can download subtitle files; perhaps itt's possible to use those in SMTube?

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Mysterious mem corruption from some standard C code???
Just popping in
Just popping in


Do you get a stack trace when it crashes?

Given that the code you pasted only contain a few calls, and neither of them are strange and rather basic, it's unlikely they're at fault to be honest.

There's no long/int conversion thing that goes wrong? I'm thinking that perhaps the -1 should be something like -1L.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Mysterious mem corruption from some standard C code???
Just popping in
Just popping in


@ChrisH

Ah, ok, I missunderstood then.

One possibility might be that the code you think is at fault (FileLength) isn't. Could it be that something before or after doesn't clear or allocates memory as it should, and that the FileLength-call you changed to somehow manages to clear the memory. I'm thinking that some pointer accidently gets used twice somewhere, or something like that.

You say memory corruption, how do you know that? (I'm not implying you're wrong, I'm merely seeking more information.)

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Mysterious mem corruption from some standard C code???
Just popping in
Just popping in


@ChrisH
Quote:
it was being called on two paths


Could it be that fopen doesn't handle directories very well? According to a stack overflow thread:
Quote:
Directories do not exist in the C99 standard (or the C2011 one). So by definition, fopen-ing a directory is either implementation specific or undefined behavior.


Is perhaps errno set to something indicating you're dealing with a directory?
Or could you perhaps use stat() to determine if it really is a file?

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Support forum: JAmiga
Just popping in
Just popping in


@voxel

Hi, thanks for testing!

The error is due to the AWT packages (I.e. Graphics) not being implemented yet... Don't know if I'll add them this incarnation of Jamiga, or focus on getting Jamiga upto the official Oracle OpenJDK level.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: reactive library & autodoc
Just popping in
Just popping in


According to the comments section, it's only for internal, private use. Why it then is on os4depot I don't know.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Updated Gnu compiler?
Just popping in
Just popping in


When I built version 4.9, the version in trunk didn't build right away. Instead you have to check out the tagged version 4.9, and also change some makefiles.

I used salas00 guide: http://www.os4coding.net/blog/salass0 ... -compiler-adtools-project and also made minor changes to the version used in the makefiles. Think I only had to change in two places; where it CD'ed to "trunk", I changed to "4.9.x", or something like that.

This is however the cross-compiler. But I guess that could be used in order to compile a PPC version, on the cross-compile system.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Odyssey enabling java & local storage
Just popping in
Just popping in


@JosDuchIt
Currently Jamiga doesn't support Java web applets.
Java applets require AWT support (I.e. GUI and graphics), and even if Jamiga had that (which it doesn't), there are some glue libraries required.

So, no Java applets for now. :(

It might be possible to execute the jar file by itself, but I doubt you'll find anything interesting, since the functionality you want (reading/writing local files from the web browser) won't be reachable from within the web browser when executing it outside.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Any News?
Just popping in
Just popping in


No real progress nor news, but something to read, just to say I'm still here : http://jamiga2.blogspot.se/2015/03/in ... platform-but-missing.html

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Code.google.com is closing I guess it's SF.Net that is best for SVN.
Just popping in
Just popping in


Github seems to have support for SVN clients: https://help.github.com/articles/support-for-subversion-clients/

The question is, does it work as it should, and will they support it for as long as Amiga have no Git client?
I've no experience in either Sourceforge or Github, but it seems that Github is all the hype, and I've always thought Sourceforge's web-UI looks a bit... boring. And the simple Google code Github one-button-export is tempting.

Has anyone exported their stuff to either service and can give a short review?

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Any News?
Just popping in
Just popping in


@Raziel

Hi, thanks for asking! I'm still "working" on Jamiga, yes. However, lately (i.e. the last few months) it's been a lot less working then I'd want to. This has several reasons, mostly involving things people tend to describe as "life"; bought a new house, super busy at work, Christmas, Mardi Gras, Amiga sent to Amigakit for repair and such.
I have however nowhere given up hope on getting at least parts of a modern JVM (tbth we already have a modern JVM, we just need a modern JDK) working.
I'm currently on vacation, but I hope that things at work will be doable in eight hours a day when I come back. And now I have a lovely new home office, so I'm hoping that Jamiga will get some well needed attention.

So, in summary: still working on it, no news though.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Amiga OS4 audio system
Just popping in
Just popping in


@AmigaBlitter

Its not my intention to be evil or discouraging against these sort of efforts. I just don't see the point in adding yet another un(der)used framework, or standard, when there's little practical benefit. In theory it's a great project. But if developers today can circumvent AHI's lacking features by developing the features themselves, it must be possible to extract those functions into a generic set of opensource functions, or even include them in a library?


Quote:
I found this open source audio libraries:

http://en.wikipedia.org/wiki/OpenAL

Apparently the talented mr Spot/Up Rough has already an implentation of that library for OS4: http://os4depot.net/index.php?functio ... ibrary/audio/freealut.lha


Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Amiga OS4 audio system
Just popping in
Just popping in


Why not just take the simplest route, and try to set together a collection of easy-to-use functions for the "low-latency mixing routines to audio data routing and FX processing" that's currently lacking?

I mean, when embarking what seems to be a huge project, one have to take into consideration what the benefits are. What would we get with a new sound system, that can't be achieved today? One or two more supported sound cards, a great sound system, unused by most applications, and potentially incompatible with AHI?

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: ARexxability - but how?
Just popping in
Just popping in


@JosDuchIt

Do you have a more direct link? I downloaded the sources and browsed around, but couldn't find any examples, not any interpreter source of interest (I have to admit, I was very lazy).

Currently I'm just looking for input on how one would want to call Java from ARexx, not so much how to solve it technically (although suggestions based on what is possible would be welcome).

Perhaps my aim is a bit high. I should perhaps just settle with a simple sort of Java-bean based approach, to enable simple ARexx communication, possibly requiring some Java code to be written, rather than fully utilise Java from ARexx.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


ARexxability - but how?
Just popping in
Just popping in


I've always had the aim to add ARexx support for JAmiga. I however haven't decided on how it should look. How would one want to call Java code from an ARexx script?

I've been looking at the twitter4j API, and how that could be utilised from ARexx.
For instance how should this Java code be written in ARexx?

01    import twitter4j.TwitterFactory;
02    import twitter4j.Twitter;
03    import twitter4j.Status;
04    import java.util.List;
    ...
10    Twitter twitter TwitterFactory.getSingleton();
11    List<Statusstatuses twitter.getHomeTimeline();
12    System.out.println("Showing home timeline.");
13    for (Status status statuses) {
14        System.out.println(status.getUser().getName() + ":" +
15                           status.getText());
16    }


My initial aim was to not require any Java code to be written to utilise any arbitrary Java JAR. But this might prove too difficult. The main aim should be an easy to use approach.

One option is to expose the JNI layer using ADDLIB("jni"), creating something like:

01  CALL ADDLIB("jamiga", -20)    /* expose JNI layer*/
02  factory GetStaticFieldID("twitter4j.TwitterFactory")
03  twitter CallObjectMethod(factory"getSingleton")
04  say "Showing home timeline."
05  statuses CallObjectMethod(twitter"getHomeTimeline")
06  DO i=0 TO CallIntMethod(statuses"size")
07      user CallObjectMethod(statuses"getUser")
08      
name CallObjectMethod(user"getName")
09      
text CallObjectMethod(user"getStatus")
10      say name ":" text
11  END


As you see, this gets very chatty and clunky. It is however extremely powerful, as it allows you do much anything. However, you need to know your JNI, and if you do, you're probably better off just writing it in Java. There are also lots of stuff not covered, for isntance exceptions. This can probably be a real nightmare to use.

So, what I would like to achieve is something more in the lines of:

01  ADDRESS JAMIGA
02  CALL ADDLIB
("jamiga", -20/* add JAmiga functions, like JCALL */
03  
04  twitter 
JCALL("twitter4j.TwitterFactory""getSingleton")
05  statuses twitter.homeTimeline    /* translates to twitter.getHomeTimeline() */
06  DO i=0 TO statuses.size
07      say statuses
.i.user.name ":" status.i.text
08  END


This is much more convenient to write, and even makes sense if you just know ARexx. It is however very likely a can of worms for me, implementation wise. For instance, in order to get the homeTimeline stem variable on row 05, the underlying code on row 04, woudl have to fully traverse the Twitter object structure, which does hold a lot of other methods, where some most likely would throw exceptions.

I guess I could add a few more helper functions, to export Java bean objects to stem variables, forming something like:

01  ADDRESS JAMIGA
02  CALL ADDLIB
("jamiga", -20
03  
04  twitter 
JCALL("twitter4j.TwitterFactory""getSingleton")
05  statuses JBEAN(twitter"getHomeTimeline")  /* makes the list of statuses as a stem var */
06  DO i=0 TO statuses.size
07      status 
JBEAN(statuses"get"i)      /* gets the i:th item */
08      say status.user.name ":" status.text
09  END


Now, I haven't done much ARexx host programming so I don't know all ways how callbacks from ARexx to C is actually made, but I don't think that accessing stem variables creates a callback, right? AFAIU, a stem variable is just a variable with dots in the name...?

Does anyone have any input to give, on how you would like to call Java from ARexx?


Edited by jaokim on 2014/8/16 17:29:02
Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Assigned: Uniform ARexx Dictionary Interface
Just popping in
Just popping in


Quote:
Could we see the ability to send commands to ARexx ports in JAmiga?


That's definititely on my todo-list. Haven't figured out how it should look yet though.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


Re: Assigned: Uniform ARexx Dictionary Interface
Just popping in
Just popping in


Quote from the project description:
Quote:
1) Research. Find out what worthwhile applications have an arexx port. Trawl through webpages, program guides and pdfs to find out to what extent functionality of arexx they in fact cover; making notes of urls and reference points.


Reading this, to me it seems this project would be better off with some sort of wiki-approach. The objective seem to be primarily documenting which legacy applications have ARexx ports. And for that I think a community-based, non-OS4-specific wiki would be ideal.

A feature that I do miss, is the ability to query any generic application of its ARexx commands. Much like you can do with all Amiga DOS command, with the question mark argument. I'm thinking this must be possible for an external program to see, for any running application, since the arguments and command name are registered at some point.

Quote:
There's no such thing as an "Arexx port". They're public Exec ports. For example Python supports them. "Arexx port" is street language.

This is a fact not terribly widely known, and it seems that also official streets call them "ARexx ports". The offical autodocs (arexx.class) for instance says:
Quote:
It will setup a unique ARexx port, start ARexx macros, parse commands and dispatch command handler functions.

In the support forum one can easily get the impression that "ARexx ports" are deprecated. For instance, an "ARexx port" is not added to system components due to the ARexx language being 68k legacy, and it generally seem to be stepmotherly treated.

I personally think "ARexx ports" is the best AmigaOS features of all, and I'm happy to hear they're not deprecated. As for the ARexx language -- I've grown accustomed to it, but it's not really that great.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top


OpenJDK
Just popping in
Just popping in


I've begun working on OpenJDK. I haven't got very far, but I have updated to the latest JamVM, and built it with support for OpenJDK, allowing me to atleast start it using OpenJDK 9 classes. You can see a small "proof" on my blog.

I do have some more updates to the current released version (using GNU Classpath) that I might release sometime soon. Haven't got round to it though.

Maintainer and developer for Jamiga2 - Java for Amiga
Go to top



TopTop
« 1 2 (3) 4 5 6 ... 10 »




Powered by XOOPS 2.0 © 2001-2023 The XOOPS Project