pub enum KnowledgeSource {
RosettaCode,
Wikifunctions,
HelloWorldCollection,
StackOverflow,
}Expand description
Public knowledge sources the coding oracle draws on.
Each is a public, reviewable corpus we treat as an external API even when it exposes none: a fetched page is parsed into a snippet and cached locally.
Variants§
RosettaCode
https://rosettacode.org — the same task implemented in hundreds of languages; our primary code corpus for idioms we do not template.
Wikifunctions
https://www.wikifunctions.org — Abstract Wikipedia’s function library;
evaluates Z7 calls and returns a Z22 result, so it doubles as a
result oracle that can cross-check an in-solver computation.
HelloWorldCollection
http://helloworldcollection.de — “Hello, World!” in ~600 languages; the canonical first program for any language we do not yet template.
StackOverflow
https://stackoverflow.com — community answers, treated read-only and only for snippets under a compatible licence.
Implementations§
Source§impl KnowledgeSource
impl KnowledgeSource
Sourcepub const fn slug(self) -> &'static str
pub const fn slug(self) -> &'static str
Stable, filesystem-safe identifier used as the data/cache/<slug>/
bucket name and in trace evidence.
Sourcepub const fn display_name(self) -> &'static str
pub const fn display_name(self) -> &'static str
Human-readable name for attribution in answers and the case study.
Sourcepub const fn approximate_catalog_size(self) -> usize
pub const fn approximate_catalog_size(self) -> usize
Conservative published size of the source, used only by
cache_capacity to bound how much we may cache. The exact figure does
not need to be precise — it just feeds the 1% ceiling — and is refreshed
by the gated live-refresh tool. Figures are public approximations:
Rosetta Code lists ~1,300 tasks, Wikifunctions a few thousand functions,
and the Hello World Collection ~600 languages.
Trait Implementations§
Source§impl Clone for KnowledgeSource
impl Clone for KnowledgeSource
Source§fn clone(&self) -> KnowledgeSource
fn clone(&self) -> KnowledgeSource
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for KnowledgeSource
Source§impl Debug for KnowledgeSource
impl Debug for KnowledgeSource
impl Eq for KnowledgeSource
Source§impl PartialEq for KnowledgeSource
impl PartialEq for KnowledgeSource
impl StructuralPartialEq for KnowledgeSource
Auto Trait Implementations§
impl Freeze for KnowledgeSource
impl RefUnwindSafe for KnowledgeSource
impl Send for KnowledgeSource
impl Sync for KnowledgeSource
impl Unpin for KnowledgeSource
impl UnsafeUnpin for KnowledgeSource
impl UnwindSafe for KnowledgeSource
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.