whitequark[cis] changed the topic of #amaranth-lang to: Amaranth hardware definition language · weekly meetings: Amaranth each Mon 1700 UTC, Amaranth SoC each Fri 1700 UTC · play https://amaranth-lang.org/play/ · code https://github.com/amaranth-lang · logs https://libera.irclog.whitequark.org/amaranth-lang · Matrix #amaranth-lang:matrix.org
lf_ has quit [Ping timeout: 248 seconds]
lf has joined #amaranth-lang
<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> okay, sounds reasonable
<anuejn> thanks!
zyp[m] has joined #amaranth-lang
<anuejn> ah huh thanks
<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
jjsuperpower has joined #amaranth-lang
jjsuperpower has quit [Remote host closed the connection]
Degi has quit [Ping timeout: 276 seconds]
Degi has joined #amaranth-lang
frgo has quit [Remote host closed the connection]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 248 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 276 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 268 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 276 seconds]
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 260 seconds]
frgo has joined #amaranth-lang
frgo has quit [Read error: Connection reset by peer]
frgo_ has joined #amaranth-lang
frgo_ has quit [Ping timeout: 252 seconds]
urja has quit [Ping timeout: 252 seconds]
urja has joined #amaranth-lang
urja has quit [Read error: Connection reset by peer]
urja has joined #amaranth-lang
frgo has joined #amaranth-lang
frgo has quit [Ping timeout: 268 seconds]