Skip to content

bo2bloogle - #969

Open
matx-amy wants to merge 7 commits into
B-Lang-org:mainfrom
MatX-inc:amy/bloogle
Open

matx-amy wants to merge 7 commits into
B-Lang-org:mainfrom
MatX-inc:amy/bloogle

Conversation

@matx-amy

@matx-amy matx-amy commented Jun 13, 2026 •

Copy link
Copy Markdown
Contributor

This adds a new utility, bo2bloogle. This utility reads .bo files and dumps them in a format that Hoogle can read.

Symbols whose names are not valid Haskell (e.g. $display) currently get dropped. Field accessors get emitted as e.g. foo instead of (.foo). I'll be pushing a fork of Hoogle called Bloogle soon -- allowing both of these in it is a worthwhile long-term goal, but isn't worth it in the short term.


The fork of Hoogle (Bloogle) has now been made public and is now hosted at https://bloogle.bluespec.dev/.
See its readme or run bo2bloogle --help (or bo2bloogle with no args) for usage instructions.

Screenshot 2026-07-10 at 3 13 07 PM Screenshot 2026-07-10 at 3 13 21 PM

@matx-amy

Copy link
Copy Markdown
Contributor Author

(oh, would appreciate a review at this point, but hold off on merging -- the bloogle CLI is undergoing refactoring, so the usage text might change)

matx-amy added 2 commits July 8, 2026 11:59
This adds a new utility, bo2bloogle. This utility reads .bo files and
dumps them in a format that Hoogle can read.

Symbols whose names are not valid Haskell (e.g. $display) currently get
dropped. Field accessors get emitted as e.g. foo instead of (.foo). I'll
be pushing a fork of Hoogle called Bloogle soon -- allowing both of
these in it is a worthwhile long-term goal, but isn't worth it in the
short term.
This is not immediately usable with Bloogle, but needs a

    bloogle generate db.hoo /path/to/inst/lib/bloogle

to produce the database Bloogle uses. Only shipping this avoids a
dependency on Bloogle, but also makes it easier to build a custom
database that includes both the standard library and third-party
libraries.
@matx-amy

matx-amy commented Jul 8, 2026

Copy link
Copy Markdown
Contributor Author

This is in a mergeable state now, I think; the standalone Bloogle tool is probably something we can release soon, but idk what the process is for that -- will ask around.

Releases now include bo2bloogle and a prebuilt set of declarations for the stdlib that Bloogle can build an index for.

@matx-amy matx-amy changed the title bo2bloogle: init bo2bloogle Jul 10, 2026
@kenta2 kenta2 self-assigned this Jul 10, 2026
nanavati and others added 2 commits July 11, 2026 22:07
936's strict-ByteString readBinFile is upstream now; 969's tool still
unpacked to [Word8] (rc3 build-5's twin; outside both typechecked
closures, so only the full build caught it).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_019cqQdWKp7jr73GHQYnvhiq
@matx-amy

Copy link
Copy Markdown
Contributor Author

Can somebody with privileges rerun the failing CI job? looks like a transient network failure

@kenta2

kenta2 commented Aug 11, 2026

Copy link
Copy Markdown
Collaborator

Can somebody with privileges rerun the failing CI job? looks like a transient network failure

I have queued re-running the failed job.

@matx-amy matx-amy mentioned this pull request Aug 12, 2026
6 of 17 tasks
This lets e.g. B-Lang-org#970 use it as well instead of reimplementing it.
@matx-amy

Copy link
Copy Markdown
Contributor Author

BTW, https://bloogle.bluespec.dev/ is now live; thanks to @matx-yehowshua for hosting that!

@matx-amy

Copy link
Copy Markdown
Contributor Author

(Latest commit to correspond to MatX-inc#179)

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.

3 participants