Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generic APIs are needed for multiple platforms (or documentation of differences with examples) #273

Closed
6 tasks done
texadactyl opened this issue Aug 25, 2024 · 2 comments · Fixed by #274
Closed
6 tasks done
Labels
documentation Improvements or additions to documentation

Comments

@texadactyl
Copy link

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • Android
  • iOS

What feature would you like to be added?

I am in agreement with the points made by both @RomainMuller and @platypusguy in PR #192. APIs should not burden the user with O/S specifics wherever possible. The precise API names are not so important as long as they are universal.

However, at least, the project documentation needs an update.

Reference: https://pkg.go.dev/github.com/ebitengine/purego

"Supported Platforms" states that the APIs are supported on the listed platforms with the exception of a ARM32 and Windows-32 environments. However, the "Example" states that the APIs only work on POSIX systems contradicts the previous documentation sections.

It would be helpful if an equivalent documentation example for Windows was provided. Also, under each API where Windows is not currently supported (E.g. Dlopen), depict the equivalent operation for Windows. Then, users authoring multiplatform projects would have some guidance without having to engage in significant trial-and-error activity.

Why is this needed?

My goal is to be able to open and use a Java library Windows, Linux, Unix, and MacOS on 64-bit hardware platforms. I'll take care with providing the full paths. The dlfcn concept & code of @RomainMuller will be useful to me in modifying my own work.

@hajimehoshi
Copy link
Member

Adding more explanation to the 'Example' section is fine. Thoughts? @TotallyGamerJet

@TotallyGamerJet
Copy link
Collaborator

Yes I think more explanation to the Example section is good. It also appears it was suggested to add documentation to the Dl* pointing users to use the windows package equivalents

@TotallyGamerJet TotallyGamerJet added the documentation Improvements or additions to documentation label Aug 25, 2024
hajimehoshi added a commit to hajimehoshi/purego that referenced this issue Aug 25, 2024
hajimehoshi added a commit to hajimehoshi/purego that referenced this issue Aug 25, 2024
hajimehoshi added a commit that referenced this issue Aug 25, 2024
TotallyGamerJet pushed a commit to TotallyGamerJet/purego that referenced this issue Oct 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants