Skip to content

Remove unneeded dependencies - #28

Merged
Koeng101 merged 10 commits into
mainfrom
removeDeps1
Dec 16, 2023
Merged

Koeng101 merged 10 commits into
mainfrom
removeDeps1

Conversation

@Koeng101

Copy link
Copy Markdown
Owner

This PR removes dependencies that are not strictly needed.

@Koeng101

Koeng101 commented Dec 15, 2023 •

Copy link
Copy Markdown
Owner Author

The following were/are going to be added directly to source tree: They're pretty much complete (no updates in years), so it is easier to just manage them internally:

  • svb
  • intel-cpuid (used by svb only)
  • murmur3
  • wordwrap

On the top level go.mod should be replaced with a go.work file, with the submodule of the lib of DNA design being separate from the services. lib right now will only have Go project dependencies, but this may change if there is a sufficiently useful package that cannot be integrated into the source tree directly. In addition to lib, we will also have a wasm_lib directory with wasm dependencies, like minimap2, diamond, and sqlite (plus the required wazero). This repo will have minimal dependencies as well.

Once we get into services, it's a little bit more of the wild west. We will at least require:

  • github.com/sashabaranov/go-openai (for communicating with LLMs, actively developed)
  • github.com/yuin/gopher-lua (for running lua, actively developed)
  • github.com/oapi-codegen/runtime (for generating OpenAPIs)
  • github.com/getkin/kin-openapi (for handling OpenAPI specs)
  • github.com/caddyserver/caddy (for scraping websites like iGEM or Addgene)

Plus associated javascript like scalar

@Koeng101

Koeng101 commented Dec 15, 2023 •

Copy link
Copy Markdown
Owner Author

Forgot to add: in Go 1.22 they're going to add better routing to the std, removing the need for chi. So that's nice.

@Koeng101

Copy link
Copy Markdown
Owner Author

Keeping github.com/google/go-cmp for checking equivalence of lists and golang.org/x/sync for errgroup.

@Koeng101

Koeng101 commented Dec 16, 2023 •

Copy link
Copy Markdown
Owner Author

Big todos:

  • Update seqhash to be more explicit about version 1 depreciation
  • Write about the 4 internal packages (svb, cpuid, wordwrap, and murmur)
  • Refactor codon completely. I am removing a lot of cruft, and really slimming down the implementation. Do this in a separate PR.

@Koeng101
Koeng101 merged commit 37c32f8 into main Dec 16, 2023
@Koeng101
Koeng101 deleted the removeDeps1 branch December 16, 2023 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant