forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

New psp emulator in Java

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
shadowpcsx2



Joined: 30 Jul 2008
Posts: 5

PostPosted: Wed Jul 30, 2008 7:52 pm    Post subject: New psp emulator in Java Reply with quote

Hello Me and my team have started a new psp emulator calling jpcsp written in java.

Not much have done yet but you can take a look at our forum at

www.jpcsp.org/forum/

any help will be really useful :)

thank you
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed Jul 30, 2008 8:07 pm    Post subject: Reply with quote

psp emulator in java?

Good luck to get 0.1 fps...
Back to top
View user's profile Send private message
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Wed Jul 30, 2008 8:11 pm    Post subject: Reply with quote

moonlight wrote:
psp emulator in java?
Good luck to get 0.1 fps...


Haha, moonlight, why do you think so?
If you program it well, it can be same fast as c++ apps... if you program it well
Back to top
View user's profile Send private message
moonlight



Joined: 26 Oct 2005
Posts: 567

PostPosted: Wed Jul 30, 2008 8:14 pm    Post subject: Reply with quote

No, if the program runs in a java virtual machine.
A different matter would be if it is compiled somehow to machine code, but even in that case, it is not the most appropiate language for an emulator, and even less for a more or less powerfull device.
Back to top
View user's profile Send private message
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Wed Jul 30, 2008 8:17 pm    Post subject: Reply with quote

That simply is not true. Search the web for benchmarks, JVM is able to run 3D graphics pretty smoothly.

I dont see why emulator in Java is a bad Idea. Me myself, I dont like Java as a language, but I know that you can make nice and fast programs in java, if you are careful enough about the efficiency of the code.
Back to top
View user's profile Send private message
jean



Joined: 05 Jan 2008
Posts: 489

PostPosted: Wed Jul 30, 2008 9:15 pm    Post subject: Reply with quote

Quote:
Haha, moonlight, why do you think so?
If you program it well, it can be same fast as c++ apps... if you program it well

Forget about it. If you're saying so, i hardly doubt of your coding skills. While in making of gestionals you can just choose the language you mostly like, in realtime apps things change slightly. Don't be fooled by jogl demos...in that apps the hard work is delegated to native video driver, it's not java VM at all. You could never implement decently JIT on a JIT VM itself (do you like chinese boxes???). I work with java, and I love Java. Really. But i love spicy pizza too, and i don't eat it for breakfast. Have right tools for right works. Java is not for an emulator. Period. If you don't believe me, go learn about VM theory and forget about that idiot benchmarks.

PS: don't even think to flame on moonlight...you don't even know who he is
PPS: When i first saw your program i thought it was a disassembler and i liked the idea of an open-source, managed, portable elf disassembler....i think you should keep your project on this level.
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Wed Jul 30, 2008 9:47 pm    Post subject: Reply with quote

kralyk wrote:
That simply is not true. Search the web for benchmarks, JVM is able to run 3D graphics pretty smoothly.

I dont see why emulator in Java is a bad Idea. Me myself, I dont like Java as a language, but I know that you can make nice and fast programs in java, if you are careful enough about the efficiency of the code.

You should study a bit more the differences between a simple OGL demo app (which as jean already stated doesn't do a lot of code execution but only delegates to the graphics hardware) or other GUI app and an emulator. You *CAN* write the prior two in Java that runs nearly as fast (in the terms of GUI responsiveness which moves in seconds as magnitude) as a C++ application true. But that does not work for the latter, as it puts other requirements on the code generation and execution. All you could do in Java is create a nice and dandy GUI for the underlying emulator.

And better don't try to argue with people like moonlight (that really know what they're talking about) without having a ton of hard grounded arguments to back up your position.
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Wed Jul 30, 2008 10:13 pm    Post subject: Reply with quote

amen.

I also decompiled this java "PSP emulator" just to find a very basic MIPS disassembler (just a standard MIPS without standard FPU). There is no way you may reach an acceptable speed with an interpreter in JAVA and the way you handle memory accesses. And advertisizing it as a PSP emulator is a lie.
Back to top
View user's profile Send private message
Actarus



Joined: 19 May 2008
Posts: 33

PostPosted: Wed Jul 30, 2008 10:24 pm    Post subject: Reply with quote

I think you must work hard. Good Luck
_________________
Sam PSP Emulator
:)
Back to top
View user's profile Send private message Visit poster's website
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Wed Jul 30, 2008 10:25 pm    Post subject: Reply with quote

Alright, alright, just calm down, dont shoot me.

I just thought java was not bad in 3d based on some articles&benchmarks I read like year ago, they might have been misleading or wrong...
I didnt say Java was a bad language, I didnt say moonlight was a bad programmer (I dont care who he is or isnt), I didnt say emulator in java is a great idea, I didnt say you cant do nice stuff in java. I said I dont like java - hope this its not against rules, duh, If anyone feels insulted by me not liking java then sorry...
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Wed Jul 30, 2008 10:58 pm    Post subject: Reply with quote

kralyk, "you" may also be read as "one" or "the people behind the project". Don't take it personaly ;P.
Back to top
View user's profile Send private message
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Wed Jul 30, 2008 11:01 pm    Post subject: Reply with quote

No way! Im not behind that project, I cant do much Java I prefer c++ and I wouldnt do it in Java even if I did Java well...
Back to top
View user's profile Send private message
Wally



Joined: 26 Sep 2005
Posts: 672

PostPosted: Wed Jul 30, 2008 11:05 pm    Post subject: Reply with quote

kralyk wrote:
No way! Im not behind that project, I cant do much Java I prefer c++ and I wouldnt do it in Java even if I did Java well...


Code it in SDL, it'll get more FPS and be cross platform (which I think is your aim anyway) =)

Wally

P.S Don't go doubting moonlight, he's too shiny!


Last edited by Wally on Wed Jul 30, 2008 11:13 pm; edited 1 time in total
Back to top
View user's profile Send private message AIM Address
kralyk



Joined: 06 Apr 2008
Posts: 114
Location: Czech Republic, central EU

PostPosted: Wed Jul 30, 2008 11:08 pm    Post subject: Reply with quote

Yes, tahts what I would do If I was part of the project, which I am not, thank you very much, If I was Id have admited it already...
Back to top
View user's profile Send private message
the_darkside_986



Joined: 18 Jul 2006
Posts: 9

PostPosted: Thu Jul 31, 2008 12:25 am    Post subject: java Reply with quote

Java? That might be fun for entertainment or stretching the limits of abstraction... oh well, but anyway, would it be possible to gain great speed in a real C emulator by "recompiling" the MIPS code to the native architecture of the emulator host machine (such as x86, for example)? Since the CPU is a 32-bit core, would such an emulator work best on a 32-bit OS or a 64-bit OS running on an x86_64 machine? Doesn't 64-bit AMD have more registers than x86, so it would be able to handle the number of registers that MIPS has?
Back to top
View user's profile Send private message
shadowpcsx2



Joined: 30 Jul 2008
Posts: 5

PostPosted: Thu Jul 31, 2008 12:59 am    Post subject: Reply with quote

hlide wrote:
amen.

I also decompiled this java "PSP emulator" just to find a very basic MIPS disassembler (just a standard MIPS without standard FPU). There is no way you may reach an acceptable speed with an interpreter in JAVA and the way you handle memory accesses. And advertisizing it as a PSP emulator is a lie.


heh why the need to decompile it? it is open source :P
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Thu Jul 31, 2008 1:10 am    Post subject: Reply with quote

shadowpcsx2 wrote:
hlide wrote:
amen.

I also decompiled this java "PSP emulator" just to find a very basic MIPS disassembler (just a standard MIPS without standard FPU). There is no way you may reach an acceptable speed with an interpreter in JAVA and the way you handle memory accesses. And advertisizing it as a PSP emulator is a lie.


heh why the need to decompile it? it is open source :P


because I wasn't given the source link :P

And be sure there is no virus threat inside ;PPP
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Thu Jul 31, 2008 1:20 am    Post subject: Re: java Reply with quote

the_darkside_986 wrote:
oh well, but anyway, would it be possible to gain great speed in a real C emulator by "recompiling" the MIPS code to the native architecture of the emulator host machine (such as x86, for example)?


Of course, we already know two emulators : Potemkin (C/C++), pspplayer (C# but dynarec is C++). Both use a x86 dynarec.

the_darkside_986 wrote:
Since the CPU is a 32-bit core, would such an emulator work best on a 32-bit OS or a 64-bit OS running on an x86_64 machine?


the Allegrex core should be okay. HLE is another pain to achieve.

the_darkside_986 wrote:
Doesn't 64-bit AMD have more registers than x86, so it would be able to handle the number of registers that MIPS has?


no, Allegrex main processor has :

32 x 32-bit GPR
32 x 32-bit FPR
128 x 32-bit VFPR (or 8 x 4 x 4 x 32-bit VFPR)
Back to top
View user's profile Send private message
shadowpcsx2



Joined: 30 Jul 2008
Posts: 5

PostPosted: Thu Jul 31, 2008 1:32 am    Post subject: Reply with quote

hmm allegrex doesn't have cop0 ?
Back to top
View user's profile Send private message
Wraggster



Joined: 26 Aug 2005
Posts: 121

PostPosted: Thu Jul 31, 2008 1:47 am    Post subject: Reply with quote

Quick question, would in time this java emulator be portable to say the PS3 using the BD-J method of homebrew (ie java homebrew for the PS3) ?
_________________
Webmaster of http://www.dcemu.co.uk

DCEMU The Worlds Only Homebrew & Gaming Network of Sites.
Back to top
View user's profile Send private message Visit poster's website
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Thu Jul 31, 2008 2:04 am    Post subject: Reply with quote

shadowpcsx2 wrote:
hmm allegrex doesn't have cop0 ?


cop0 is accessible only for kernel mode. Do you plan to emulate kernel modules and all the hardware addresses ?
Back to top
View user's profile Send private message
shadowpcsx2



Joined: 30 Jul 2008
Posts: 5

PostPosted: Thu Jul 31, 2008 2:12 am    Post subject: Reply with quote

not atm at least :P thanks :)
Back to top
View user's profile Send private message
nickblame



Joined: 31 Jul 2008
Posts: 2

PostPosted: Thu Jul 31, 2008 5:49 am    Post subject: Reply with quote

hlide wrote:
amen.

I also decompiled this java "PSP emulator" just to find a very basic MIPS disassembler (just a standard MIPS without standard FPU). There is no way you may reach an acceptable speed with an interpreter in JAVA and the way you handle memory accesses. And advertisizing it as a PSP emulator is a lie.


first of all nobody advertized anything. second of all what do you call a starting project for emulating a psp? if not a psp emulator?

whats the matter do you want to get a kickass psp emu to play the games? well you are welcome to build one. this is just an approach of emulating the psp system open source and shadow asked for any1 that would like to contribute. maybe this emu will add to the road of fully emulating psp real time maybe not. but his name is till now a winner since his previous work (both playstation) are a couple of the most complete emus (not to mention other emus contibs).


every emu project should be a big party for the scene cheers :D
Back to top
View user's profile Send private message
Raphael



Joined: 17 Jan 2006
Posts: 646
Location: Germany

PostPosted: Thu Jul 31, 2008 6:07 am    Post subject: Reply with quote

nickblame wrote:

well you are welcome to build one.

That's again one of those ironic situations... hlide is indeed working on a PSP emulator... and though he doesn't "advertise" it, it's surely more promising than a java interpreter...

Quote:
maybe this emu will add to the road of fully emulating psp real time maybe not.

Likely not. Reasons are mentioned already in this thread. Just get used to it - Java is not designed for such a project.

Sorry, but as nice as this project may be for learning purposes, it definitely does not lead to realtime psp emulation for sure. Not in the next hand full of years until java hardware is common (and much much more powerful) and even then I'm in doubt.
_________________
<Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki

Alexander Berl
Back to top
View user's profile Send private message Visit poster's website
nickblame



Joined: 31 Jul 2008
Posts: 2

PostPosted: Thu Jul 31, 2008 6:40 am    Post subject: Reply with quote

Raphael wrote:

That's again one of those ironic situations... hlide is indeed working on a PSP emulator... and though he doesn't "advertise" it, it's surely more promising than a java interpreter...


now that really sound like advertising. the "I am trying an emu join if you like" on the other hand does not.

now about the other stuff you are suggesting.. i try not to be ironic and i simply can't.. these screenshots should tell you why i can't prevent from being ironic..

http://s329.photobucket.com/albums/l390/jpsx_pics/jpsx1.png
http://s329.photobucket.com/albums/l390/jpsx_pics/jpsx2.png
http://s329.photobucket.com/albums/l390/jpsx_pics/jpsx3.png

what is that?

http://developers.sun.com/learning/javaoneonline/j1sessn.jsp?sessn=TS-5547&yr=2006&track=coolstuff

do you follow the emu schene? look at the dates here on ngemu:
http://forums.ngemu.com/emulation-news-submissions/72476-report-javaone-high-performance-writing-sony-playstation-emulator-java.html

and this is what the author of jpsx had to say yesterday:
http://forums.ngemu.com/emulation-news-submissions/108365-tiny-update-jpsx.html
he might release it soon.

so this is for the fact that java is slow and "it can't be done". offcourse it does not mean that jpcsp will be like that. but it can be done.


*edit: i think this is getting off-topic :/ this thread was intended to notify any1 interested in such a project. all the other stuff is irrelevant and i might got a bit carried away. sorry if I offended any1
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Thu Jul 31, 2008 6:59 am    Post subject: Reply with quote

nickblame wrote:
Raphael wrote:

That's again one of those ironic situations... hlide is indeed working on a PSP emulator... and though he doesn't "advertise" it, it's surely more promising than a java interpreter...


now that really sound like advertising. the "I am trying an emu join if you like" on the other hand does not.

I'm not advertising anything and I'm not releasing anything and saying this is a PSP emulator because the more I investigate about PSP emulation, the more I feel having a COMPLETE PSP emulator is a very difficult road to reach the end.

Guys, I'm waiting for you to emulate VFPU on Java. So far, no PSP emulator was able to emulate it. Be the first to open this path.

Honestly, I could help them but the real question is : what the exact goal of this PSP emulator ?
Back to top
View user's profile Send private message
shadowpcsx2



Joined: 30 Jul 2008
Posts: 5

PostPosted: Thu Jul 31, 2008 7:39 am    Post subject: Reply with quote

hlide wrote:

Honestly, I could help them but the real question is : what the exact goal of this PSP emulator ?


The goal of the emu at least at first stage is to provide a debug + testing enviroment for pspsdk .

Java might not be that fast but i think while psplayer (noxa's emu) can run pspsdk demos at 120fps we can manage to have 60 or 30 with good coding

If later that emu will run games and with what framerate that is something i can not tell

Really i don't understand that bad attidude of ppl in ps2dev forums. It reminds me good old times (back in 2001) when me and linuzappz annouced pcsx2 emu (www.pcsx2.net) where ps2dev scene had the same untrustfull behaviour as they have now.

Judging other ppl work (and when it is free) isn't something that should happend. After all a portable emu can only make good i think.

Sorry for everything

shadow
Back to top
View user's profile Send private message
hlide



Joined: 10 Sep 2006
Posts: 750

PostPosted: Thu Jul 31, 2008 8:05 am    Post subject: Reply with quote

shadowpcsx2 wrote:
The goal of the emu at least at first stage is to provide a debug + testing enviroment for pspsdk.


as long as you are not planning to run a firmware on your psp emulator and mess with hardware it should be possible. That question was already raised with a LLE psp emulator. As Jean stated, this may be a cool debugger.

shadowpcsx2 wrote:
Java might not be that fast but i think while psplayer (noxa's emu) can run pspsdk demos at 120fps we can manage to have 60 or 30 with good coding

pspplayer is using a C++ dynarec and I'm not sure pspsdk demos have the same complexity of recent 3D games. As a debugger, this speed is not a big problem.

shadowpcsx2 wrote:
If later that emu will run games and with what framerate that is something i can not tell
once again, LLE or HLE emulator, interpreter or dynarec. Dynarec for Java is probably not the right word. You need indeed to generate java code dynamically. I saw the jpsx technical demo which explains how to do so. I guess something similar should be done for jpcsp (why not jpsp ?).

shadowpcsx2 wrote:
Really i don't understand that bad attidude of ppl in ps2dev forums.
recently, there were a lot of announcement of new PSP emulators and still no concrete code or result. The term of PSP emulator is too vague because for most not dev people it means we can run officials games or even an official firmware on it, which is not the case for the existing "PSP emulators". So we tend to be bored with those kind of announcements in this forum.
Back to top
View user's profile Send private message
M@x



Joined: 05 Feb 2008
Posts: 6

PostPosted: Tue Dec 02, 2008 4:36 am    Post subject: Reply with quote

nickblame wrote:
Raphael wrote:

That's again one of those ironic situations... hlide is indeed working on a PSP emulator... and though he doesn't "advertise" it, it's surely more promising than a java interpreter...


now that really sound like advertising. the "I am trying an emu join if you like" on the other hand does not.

now about the other stuff you are suggesting.. i try not to be ironic and i simply can't.. these screenshots should tell you why i can't prevent from being ironic..

http://s329.photobucket.com/albums/l390/jpsx_pics/jpsx1.png
http://s329.photobucket.com/albums/l390/jpsx_pics/jpsx2.png
http://s329.photobucket.com/albums/l390/jpsx_pics/jpsx3.png

what is that?

http://developers.sun.com/learning/javaoneonline/j1sessn.jsp?sessn=TS-5547&yr=2006&track=coolstuff

do you follow the emu schene? look at the dates here on ngemu:
http://forums.ngemu.com/emulation-news-submissions/72476-report-javaone-high-performance-writing-sony-playstation-emulator-java.html

and this is what the author of jpsx had to say yesterday:
http://forums.ngemu.com/emulation-news-submissions/108365-tiny-update-jpsx.html
he might release it soon.

so this is for the fact that java is slow and "it can't be done". offcourse it does not mean that jpcsp will be like that. but it can be done.


*edit: i think this is getting off-topic :/ this thread was intended to notify any1 interested in such a project. all the other stuff is irrelevant and i might got a bit carried away. sorry if I offended any1


I was in the J1 session 2006, it really shocked me by the demo which ran 4 PS1 emulators on 1 PC at same time, and the games went extremely smooth.
The most interesting part is that the author really implemented a JIT by Java itself, and this JIT utilized JDK6's JIT feature a lot - or say, a JIT on top of another JIT. Please remember: it's pure Java implementation (except for CD-ROM driver emulation, if you want to use real PS1 CD instead of an ISO), so it's totally platform-independent.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group