Zulip Chat Archive

Stream: Is there code for X?

Topic: loogle on newly renamed Batteries


Shreyas Srinivas (May 09 2024 at 07:06):

On a different note: @Joachim Breitner : does loogle work with the renamed Batteries?

Joachim Breitner (May 09 2024 at 07:30):

@loogle "Batteries"

loogle (May 09 2024 at 07:30):

:search: Batteries.Tactic.Alias.AliasInfo, Batteries.Tactic.Alias.alias, and 1499 more

Shreyas Srinivas (May 09 2024 at 07:34):

But as you can see above, the results for essentially the same data structure are different depending on whether the prefix is Std or Batteries. (Also this thread about loogle should probably be separated)

Notification Bot (May 09 2024 at 07:40):

4 messages were moved here from #Is there code for X? > computable breadth first traversal by Shreyas Srinivas.

Shreyas Srinivas (May 09 2024 at 07:40):

For reference : @loogle Std.Queue

loogle (May 09 2024 at 07:40):

:search: Std.Queue, Std.Queue.empty, and 17 more

Shreyas Srinivas (May 09 2024 at 07:41):

@loogle Std.Queue

loogle (May 09 2024 at 07:41):

:search: Std.Queue, Std.Queue.empty, and 17 more

Shreyas Srinivas (May 09 2024 at 07:41):

@loogle Batteries.Queue

loogle (May 09 2024 at 07:41):

:exclamation: unknown identifier 'Batteries.Queue'
Did you mean "Batteries.Queue"?

Shreyas Srinivas (May 09 2024 at 07:42):

@loogle "Batteries.Queue"

loogle (May 09 2024 at 07:42):

:shrug: nothing found

Mario Carneiro (May 09 2024 at 08:38):

I don't understand what point is being made here. Core has a thing called Std.Queue, batteries has a thing called Batteries.Tactic.Alias.alias, and loogle is finding both

Eric Wieser (May 09 2024 at 08:44):

Perhaps it helps to remember that Std wasn't just renamed, it was split into Batteries and core. We renamed the git repo (rather than creating a new one) to preserve the git history.

Mario Carneiro (May 09 2024 at 08:45):

it isn't much of a split so far, but eventually things will be upstreamed to the new std

Mario Carneiro (May 09 2024 at 08:45):

right now there is no actual Std library

Mario Carneiro (May 09 2024 at 08:46):

although there are a handful of definitions in the Std namespace, all in core somewhere

Mario Carneiro (May 09 2024 at 08:46):

I'm actually surprised Std.Queue is there, I thought that was ditched a while ago

Mario Carneiro (May 09 2024 at 08:47):

docs#Std.Format docs#Std.Range

Joachim Breitner (May 09 2024 at 12:54):

So Loogle is fine?

Shreyas Srinivas (May 09 2024 at 15:32):

What's new to me is that there is an Std namespace in core

Eric Wieser (May 09 2024 at 17:06):

Arguably that was the whole reason that we renamed Std to Batteries, to allow core to claim the Std namespace.

Shreyas Srinivas (May 10 2024 at 09:46):

I thought that was to be claimed by the new fro-std

Shreyas Srinivas (May 10 2024 at 09:47):

But yeah the namespace mixup is the answer to my original confusion

Eric Wieser (May 10 2024 at 10:04):

fro-std is core; at least, it resides in leanprover/lean4


Last updated: May 02 2025 at 03:31 UTC