<anuejn>
it seems like `Initial` is not exported through amaranth.hdl and importing it through amaranth.hdl.ast gives me a DeprecationWarning
<anuejn>
whats the recommended way of getting it?
<anuejn>
or is it entirely deprecated?
<anuejn>
also (maybe stupid question) - whats the mechanism that generates the "DeprecationWarning: name `amaranth.hdl.ast.Initial` is a private implementation detail and should not be imported" warnings?
<anuejn>
I could not find it
<whitequark[cis]>
it's entirely deprecated
<whitequark[cis]>
use a register initialized to 0 that you set to 1, or something like that
<whitequark[cis]>
it's yosys-specific and there's no real reason for it to exist
<anuejn>
I stopped reading at the warning above :D
<whitequark[cis]>
yes, it took some effort to figure out how to make that warning work
<anuejn>
also github code search seems to be just... useless
<anuejn>
searching for "is a private implementation detail and should not be imported" yields exactly 0 results
<anuejn>
and here I was, thinking that it is basically equivalent to grepping
<anuejn>
whitequark[cis]: yeah, I can imagine
<anuejn>
will all the stuff that is marked with that actually be removed in 0.6 or is it just frowned upon to use it because it is not part of the public api surface?
<whitequark[cis]>
the public exports will be removed
<whitequark[cis]>
if you use the private names you don't get support if something breaks, in general
<anuejn>
ah huh okay
<anuejn>
yeah I understand that
<whitequark[cis]>
some of the functionality will stay as internal, most will be removed
<whitequark[cis]>
there needs to be a social contract between maintainers and users, yes?
<anuejn>
then I will probably need to write quite some rfcs for adding functionality that i currently (illegally) use 🙈
<anuejn>
I agree
<zyp[m]>
<anuejn> "searching for "is a private..." <- did you search in the main branch? it's already removed there
<anuejn>
I just entered in the search bar, expecting something like git grep to happen
<anuejn>
but that explains why I did not find it
<zyp[m]>
which search bar? github?
<anuejn>
yes
<zyp[m]>
I think that only searches the HEAD, not the history
<zyp[m]>
then again, so does git grep
<anuejn>
oh wow - i did not know
<anuejn>
thank you two :)
* anuejn
says good night
<whitequark[cis]>
yes, RFCs will probably be needed