Under extreme pressures and in the absence of light, life as we understand it would face significant challenges, but there are theoretical possibilities for alternative chemistries and structures that could support life in such environments. The specific elements and compounds that might be involved depend heavily on the exact conditions (such as temperature, pressure, and chemical availability) and the laws of chemistry and physics as they apply in those conditions. Here's a speculative look at what could be possible:
High-Pressure Environments: In the deep environments of gas giants or under the ice of ocean worlds, pressures are immense, and light from the sun may not penetrate. Under these conditions, compounds and elements might form stable structures that are not possible at Earth's surface. For example, high pressures could stabilize exotic forms of water ice that act as a solvent for life, or they could enable complex chemistry in dense hydrogen or helium atmospheres.
Hydrogen and Helium: In the thick atmospheres of gas giants, hydrogen and helium are abundant. While not chemically reactive under normal conditions, under high pressure and temperature, hydrogen can exhibit metallic properties. This metallic hydrogen might interact with other elements (like carbon, sulfur, or phosphorus) to create a high-pressure biochemistry.
Carbon and Silicon: Even under high pressure and without light, carbon remains a versatile building block for complex chemistry, potentially forming structures like diamondoids (tiny diamond-like structures) that could act as components of high-pressure life forms. Silicon, less reactive than carbon but more abundant in certain environments, could also form complex structures under high pressure, possibly serving as a framework or skeleton for deep-life entities.
Sulfur and Phosphorus: These elements, common in volcanic and subterranean environments on Earth, could also play crucial roles in life forms adapted to high-pressure, dark environments. They could be involved in energy transfer processes, serving as alternatives to oxygen for driving metabolic reactions.
Iron and Nickel: At extreme depths, such as in the cores of terrestrial planets or moons, metals like iron and nickel might dominate. In these environments, life—if it exists—might use these metals in its structure and chemistry in ways we cannot currently imagine.
Ammonia and Methane: In the absence of water, other solvents might take over life's chemical processes. Ammonia and methane, which remain liquid under a range of temperatures and pressures, could serve as solvents for life, especially in colder, high-pressure environments.
Exotic Ices: Under high pressures, water and other compounds (such as ammonia, methane, or carbon dioxide) can freeze into solid forms of ice that have different properties from ordinary ice. These exotic ices could provide a stable framework for life, possibly supporting a kind of chemistry that is very different from the aqueous chemistry of Earth-based life.
People are working on diamond-based semiconductor devices, and organic-transistors are built experimentally all the time (nothing commercial but it's an area of active research).
An advanced bit of nanotechnology that could self-repair would likely consist of a computer chip which fabbed up replacement organic components for itself and could transport and replace them in-situ, even if it was still just a computer otherwise being digital - after all, that's how our cells do it.
But they're both one of the most common elements either way, so I think other properties would be more important.
The way the GP comment describes carbon-based technological life made out of transistors doesn't sound like the metabolize carbon to CO2 or would require a lot of water, though, which are two important markers when searching for life.