nickwitha_k (he/him)

  • 2 Posts
  • 201 Comments
Joined 2 years ago
cake
Cake day: July 16th, 2023

help-circle
  • In that case, my suggestion would be to target implementing a REST API with OpenAPI (formerly Swagger). There are server code generators for both Rust and JS (multiple flavors, I think).

    Basically, the workflow is something like this:

    1. Create your API spec skeleton (YAML or JSON, pick your poison). This will have all of the required sections like info
    2. Pick your first endpoint and define it in the paths section. Probably start with during simple like a GET. This will mean that you mainly have to worry about defining your responses (at minimum HTTP2XX and HTTP4XX, preferably with a catchall error response for HTTP5XX responses) and their schemas.
    3. Run the code generator. This should generate files with stubbed-out definitions for interfaces (or the equivalent for your language of choice) for your response methods. Generally, you do NOT want to add any code to these files as they will be overwritten anytime you update your API spec.
    4. Implement the methods to handle the stubbed out interfaces. Ex. A hello-world interface would likely need to be implemented with a method or function that returns the string “hello world”.

    The reason that I recommend OpenAPI in writing REST APIs is that it helps to layout the API contracts before you even start coding. This helps with keeping typing consistent, give you a clear milestone for implement, and makes creating clients really easy.

    Extra benefit is that OpenAPI is (mostly) language agnostic, so, as long as you have a codegen or some good boilerplate, you can use it for any language, which can give you a safe place to start when learning a new language.



  • Midjourney makes money selling access to their model. Midjourney’s model, like those of OpenAI, has no value without the training data. In fact, the model is a derivative work of all of the works that it was trained on. The training data was obtained without license to resell or create derivative works.

    While I hate how much the Mouse has screwed with IP law and prevented productive reforms, I hope they refuse to settle and get a judgement that bankrupts Midjourney and establishes the precedent that AI companies have to follow the law and make licensing agreements with any creator’s works that will be used. Can’t exist as a company if that happens? Boo-fucking-hoo. It’s not society’s job to subsidize the wealthy’s desire to run a business model that depends on violating the law and causing financial harm to artists.













  • I am not exactly defending this particular scheme but the source code is available under a free software license. It’s only the binaries that are under a proprietary EULA.

    I’ll believe it after review and approval by the OSI. It still is philosophically in direct conflict with the Open-Source Movement by making software less accessible to end users and especially non-technical users than it is to corpos.


  • It’s not free and open source. And it’s contrary to the F(L)OSS movement philosophy (cost should never be a barrier for one to use technology). Conceptually, it’s nice to try to get corpos to compensate devs but that’s not what this would do. Small businesses and individuals would be impacted while corpos can work around it.

    Additionally, it seems a bit ethically questionable to try to forcibly extract fees from end users when, increasingly, they’re feeling economic strain from the continued wealth hoarding and impending recession/depression.