- One of the challenges in designing a library will be what algo should be used. Look up why C++’s map is a tree, unordered_map only came 15 years later.
- Libraries with generics heavily depends on compiler’s ability to zero-cost-abstract with minimal nudging. In Solady, we sometimes do very disgusting stuff to nudge the compiler. Why writing Rust and C++ feels good is cuz the compiler is smart enough to not need all these nudging. So core Solidity would need a really good optimizer to go beyond syntax sugar generic niceties.
- Cautious on a possible Python 2 vs 3 situation. Hope learnings in core can and will trickle back to classic.
- In a world of classic and core Solidity, Solady plans to maintain and develop for both. Languages with a crazy standard library, still has third party libraries (e.g. Eigen), for domain specific knowledge.
2.36萬
166
本頁面內容由第三方提供。除非另有說明,OKX 不是所引用文章的作者,也不對此類材料主張任何版權。該內容僅供參考,並不代表 OKX 觀點,不作為任何形式的認可,也不應被視為投資建議或購買或出售數字資產的招攬。在使用生成式人工智能提供摘要或其他信息的情況下,此類人工智能生成的內容可能不準確或不一致。請閱讀鏈接文章,瞭解更多詳情和信息。OKX 不對第三方網站上的內容負責。包含穩定幣、NFTs 等在內的數字資產涉及較高程度的風險,其價值可能會產生較大波動。請根據自身財務狀況,仔細考慮交易或持有數字資產是否適合您。



