-
Notifications
You must be signed in to change notification settings - Fork 26
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
Open() unused? #4
Comments
Hi @ben-clayton, There are multiple ways to resolve this issue. Before picking one, let me explain a few things and suggest alternatives, and then I will ask for your additional thoughts. I don't know how familiar you are with some things, so I will explain them. Sorry if you already know this. Short SummaryYes, Full DetailsFirst, you are right, However, it was added prior to that. It is used in multiple other places where I do need to load external resources. For example, see:
It's needed to load external resources because However, a question is whether it should be a part of Ok, a separate question is about the actual implementation of
First, are you aware that the "honnef.co/go/js/xhr" dependency is "hidden" behind the Next, if you are doing Finally, as of commit gopherjs/gopherjs@fdbe407, GopherJS compiler provides an XHRTransport-based implementation of Do you have any additional thoughts or preferences on which of the above solutions I pick to resolve this issue? Thanks! |
Yes. I find it odd that your
I am, but given how cool the WebGL stuff is, I'd like to promote it as much as the regular native renderer.
I do, however I find it slightly strange that gopherjs hasn't adopted these libraries directly into their GitHub page. My concerns are:
|
Mr Honnef here. The code isn't mirrored on GitHub, it's actually the primary (and only) host. As for why GopherJS hasn't "adopted" the library: Even though I'm part of the organization, I do consider those bindings my personal projects, and as such keep them under my own name. Same goes for my DOM bindings, which are also the canonical DOM bindings for GopherJS users. (Yes, these arguments don't make me more trustworthy.) Now, from a technical point of view, I do wonder if using my XHR package is actually required. As Dmitri pointed out, GopherJS's version of |
I'm sorry @dominikh if I caused offence. I'm sure you'd never do anything underhand. I'm just being over cautious due to the fact GXUI is code owned by my employer, but maintained by me. That is a distiction that few would make if something unpleasant were to be executed on a few thousand machines. I'll leave it to @shurcooL to decide what to do with the xhr dependency. Cheers, |
No offence taken, it's a reasonable stance to have. |
I will replace it with
GLFW stands for GL FrameWork library, and the 2.x version used to have a larger number of utilities, including funcs to load textures, timing funcs (these are still present), and even funcs to create threads, etc. Many of these auxiliary functions were originally helpful, later on they became less useful and redundant and out of scope. Fortunately, with GLFW 3.x the API was reduced to just the minimal core functionality (window/context creation and user input). When I originally added I think a better approach in the future will be to move |
It appears that Open is unused by the package. I'm guessing you added it for font loading before they were embedded?
If it isn't required, removing it would also kill the dependency on "honnef.co/go/js/xhr".
The text was updated successfully, but these errors were encountered: