holzschu / a-shell

A terminal for iOS, with multiple windows
BSD 3-Clause "New" or "Revised" License
2.61k stars 116 forks source link

iOS native codes #645

Open HeavySnowJakarta opened 1 year ago

HeavySnowJakarta commented 1 year ago

After being annoyed with the ecosystem of WebAssembly, I'm looking for dealing with iOS native codes now. I've got ways of compiling static libraries, but as I have no experience of iOS development, I wonder how to add a binary code to a-Shell itself. For example, add a simple cli command, from getting the source to opening a pr. I know it may be pretty hard to understand the difference between different tool chains like make and cmake or configuring the cross-compile targets.

Emasoft commented 1 year ago

Apple strictly forbid running binaries not approved via AppStore. This is why a-Shell can only run interpreted script languages (Python, javascript, wasm, R, Lua, perl, scala, ruby, vbscript, csscript, dart, shell script, etc.)

nixbytes commented 12 months ago

would be nice to have ruby, I know its not as popular but it has good scripting features, IMO

nixbytes commented 4 months ago

Just curious is their any hope or roadmap to include Ruby, I know if maybe asking a lot

holzschu commented 4 months ago

I tried compiling Ruby last week; it didn't work within the limited time I had then. I'll have to go back to it with more time ahead of me.

nixbytes commented 4 months ago

Since it's a open source perhaps I can help. What are some of issues or errors when compiling? Perhaps I can replicate and troubleshoot it's, then do a pull request?

holzschu commented 4 months ago

You can try. I was trying to compile to WebAssembly. It should be easier once I've finished updating the SDK and compiler.

If you want to do it now, you should try compiling to Arm64 binaries, using Apple compiler and SDK. Then you'll need to ensure memory gets released when Ruby leaves.