Corsaair / redtamarin

AS3 running on the command line / server side
http://redtamarin.com
Other
119 stars 23 forks source link

What do you think of Dalvik bytecode? #136

Closed ghost closed 4 years ago

ghost commented 4 years ago

An easy way to support Red Tamarin on Android phones is by targetting Dalvik bytecode (dex), which is like JVM class bytecode. This is high-level register-based bytecode and supports instance-of-like instructions, just like JVM.

Things to consider:

Dalvik runtime defines Java classes. For example, the class java.lang.System is crucial for the command-line. To run a DEX in Termux, I think one uses the dalvikvm command.

Since Termux does not run JAR yet, UserLAnd will have to be used for development instead, because Ubuntu supports the package openjdk-jdk-8.

Reference:

ROBERT-MCDOWELL commented 4 years ago

interesting. does it mean that this ART/Dalvik can be used to embed any kind of software?

ROBERT-MCDOWELL commented 4 years ago

did you check ruffle project? https://github.com/ruffle-rs/ruffle

ghost commented 4 years ago

Oh, yeah, but ultimately I'm able to run Flash Player in any phone with Webgenie Flash Browser. Previously I was using UserLAnd application's Ubuntu shell (with openjdk-jdk-8 package) to build AS3 to SWF/SWC in my Android device and I could run SWFs with this Webgenie application.

zwetan commented 4 years ago

read Redtamarin's mission statement

To support the use of the AS3 language for cross-platform command-line executable, as single exe either for the desktop or the server, as scripts for automation, as tools for the Flash Platform community.

Redtamarin's goal is to produce CLI apps you need to produce a GUI app to publish on Android, as such Android is not a target platform, or any other mobile platform for that matter

also our whole code base is heavily based on the ActionScript Virtual Machine (AVM2) and we see no reason to switch or change or target other VM, feel free to do that on your own project

this is not a discussion forum

ghost commented 4 years ago

Redtamarin's goal is to produce CLI apps you need to produce a GUI app to publish on Android, as such Android is not a target platform, or any other mobile platform for that matter

Oh, actually Termux can run dex using the command dalvikvm. Here is an example, not specific to Termux but to ADB: http://www.herongyang.com.

However, so far it seems like Termux does not have a JRE package so far, thus ASC 2.0 cannot be run from Termux, but UserLAnd does; but in turn I don't know whether UserLAnd supports or not the dalvikvm command.

I'd be happy to use redbean and ASC 2.0 in Termux.

zwetan commented 4 years ago

I'd be happy to use redbean and ASC 2.0 in Termux.

it is a non-goal to compile and/or run redtamarin tools under Android, Termux, and/or ARM etc.

see Compiling Redtamarin and Supported Operating System

before posting anymore nonsense do read the documentation available on the wiki

ROBERT-MCDOWELL commented 4 years ago

@Hydroper I think it's better for you to fork and play with your own experiments, you won't have any cooperation here.

zwetan commented 4 years ago

What are you contributing to the project exactly ?

it is not because the project is open source that you can come and change its direction on a whim

you are disrespecting the project and distracting the people actually working on the project

educate yourselves How Open Source Projects Survive Poisonous People

continue this behaviour and you will be blocked

al-sabr commented 4 years ago

Dude you sound like a religious cult with a mission. GFYS