×
Array
(
[fid] => 6980
[description] =>
[password] =>
[icon] =>
[redirect] =>
[attachextensions] =>
[creditspolicy] => Array
(
[post] => Array
(
[usecustom] => 1
[cycletype] => 1
[cycletime] => 0
[rewardnum] => 75
[extcredits1] => 0
[extcredits2] => 0
[extcredits3] => 0
[extcredits4] => 0
[extcredits5] => 0
[extcredits6] => 0
[extcredits7] => 0
[extcredits8] => 0
[rid] => 1
[fid] => 6980
[rulename] => 发表主题
[action] => post
[fids] => 32,52,67,447,1120,1151,1156,6750,6762,6763,6766,6769,6772,6773,6787,6796,6808,6809,6810,6813,6814,6820,6829,6830,6846,6856,6864,6865,6827,6930,6931,6776,6858,6880,6764,6932,6871,6758,6905,1116,6788,6812,6798,6736,6759,6842,6966,6767,6828,6924,6935,6936,6938,6940,6941,6826,6909,6803,6919,6911,6908,6881,6920,6912,6913,6921,6925,6922,6789,6818,6819,6872,6928,6969,6889,6888,6917,6939,6947,6961,6937,6943,6970,6869,6900,6902,6783,6817,1111,6870,6821,6951,6876,6952,6954,6960,6942,6910,6949,6962,6963,6964,6927,6926,6973,6728,6929,6874,6894,6896,6885,6857,6868,1113,6778,56,6844,6878,6802,6933,6811,6923,6877,6875,6918,6892,6757,6832,6833,6795,6793,6848,6837,6849,6850,6851,6852,6853,6854,6863,6882,6836,6790,6838,6794,6791,6873,555,6895,6934,6958,6944,6945,6907,6779,6886,6950,6904,6956,6862,6957,6855,6955,6959,6914,6965,6971,6972,6953,6975,6976,6799,6974,6824,6815,6891,6866,6979,6977,6765,6903,6948,6845,6879,1121,6980
)
[reply] => Array
(
[usecustom] => 1
[cycletype] => 4
[cycletime] => 0
[rewardnum] => 0
[extcredits1] => 0
[extcredits2] => 0
[extcredits3] => 0
[extcredits4] => 0
[extcredits5] => 0
[extcredits6] => 0
[extcredits7] => 0
[extcredits8] => 0
[rid] => 2
[fid] => 6980
[rulename] => 发表回复
[action] => reply
)
[digest] => Array
(
[usecustom] => 1
[cycletype] => 4
[cycletime] => 0
[rewardnum] => 0
[extcredits1] => 0
[extcredits2] => 0
[extcredits3] => 0
[extcredits4] => 0
[extcredits5] => 0
[extcredits6] => 0
[extcredits7] => 0
[extcredits8] => 0
[rid] => 3
[fid] => 6980
[rulename] => 加精华
[action] => digest
)
)
[formulaperm] => a:5:{i:0;s:0:"";i:1;s:0:"";s:7:"message";s:0:"";s:5:"medal";N;s:5:"users";s:0:"";}
[moderators] =>
[rules] =>
[threadtypes] => Array
(
[status] => 1
[required] => 0
[listable] => 0
[types] => Array
(
)
)
[threadsorts] => Array
(
)
[viewperm] =>
[postperm] =>
[replyperm] =>
[getattachperm] =>
[postattachperm] =>
[postimageperm] =>
[spviewperm] =>
[seotitle] =>
[keywords] =>
[seodescription] =>
[supe_pushsetting] =>
[modrecommend] => Array
(
[open] => 0
[num] => 10
[imagenum] => 0
[imagewidth] => 300
[imageheight] => 250
[maxlength] => 0
[cachelife] => 0
[dateline] => 0
)
[threadplugin] => Array
(
)
[replybg] =>
[extra] => a:2:{s:9:"namecolor";s:0:"";s:9:"iconwidth";s:0:"";}
[jointype] => 0
[gviewperm] => 0
[membernum] => 0
[dateline] => 0
[lastupdate] => 0
[activity] => 0
[founderuid] => 0
[foundername] =>
[banner] =>
[groupnum] => 0
[commentitem] =>
[relatedgroup] =>
[picstyle] => 0
[widthauto] => 0
[noantitheft] => 0
[noforumhidewater] => 0
[noforumrecommend] => 0
[livetid] => 0
[price] => 0
[fup] => 6974
[type] => sub
[name] => 币圈资讯
[status] => 1
[displayorder] => 0
[styleid] => 0
[threads] => 50922
[posts] => 50990
[todayposts] => 0
[yesterdayposts] => 0
[rank] => 61
[oldrank] => 62
[lastpost] => 2688723 美国2024年大选已花费147亿美元,或为史上最贵 1730688420 比推快讯
[domain] =>
[allowsmilies] => 1
[allowhtml] => 1
[allowbbcode] => 1
[allowimgcode] => 1
[allowmediacode] => 0
[allowanonymous] => 0
[allowpostspecial] => 1
[allowspecialonly] => 0
[allowappend] => 0
[alloweditrules] => 0
[allowfeed] => 0
[allowside] => 0
[recyclebin] => 1
[modnewposts] => 0
[jammer] => 0
[disablewatermark] => 0
[inheritedmod] => 0
[autoclose] => 0
[forumcolumns] => 0
[catforumcolumns] => 0
[threadcaches] => 0
[alloweditpost] => 1
[simple] => 16
[modworks] => 0
[allowglobalstick] => 1
[level] => 0
[commoncredits] => 0
[archive] => 0
[recommend] => 0
[favtimes] => 0
[sharetimes] => 0
[disablethumb] => 0
[disablecollect] => 0
[ismoderator] => 0
[threadtableid] => 0
[allowreply] =>
[allowpost] =>
[allowpostattach] =>
)
Aptos VS Sui 两大公链新贵对比谁更有优势?
[复制链接]
|
当前离线
经验:
天策币:
活跃币:
策小分:
总在线: 分钟
本月在线: 分钟
|
|
Aptos 和 Sui 是近期市场讨论度很高的两大公链,其原因不仅在于这两个均来自 Facebook 的团队都拿了高融资额,更在于他们都使用了 Move 编程语言对协议进行搭建。 区块链开发者 @cryptoalvatar 在其社交网站对这两大公链从技术开发角度进行了对比,BlockBeats 翻译整理如下。 Move 语言Aptos 和 Sui 都使用了他们自己的 Move 语言衍生版本,这有助于并行执行。它是 Rust 风格的,具有静态强制和严格的资源所有权规则和形式验证。 Sui 版本的 Move 引入了一些修改,最明显的是所有权 API。它更干净,也更清晰地展示了区块链设计。但是库(libraries)的开发感觉不如 Aptos。 架构Sui 使用基于 DAG 的内存池(Narwhal)+ Tusk 共识算法。然后在执行层利用 DAG 进行并行化(酷!)。与 Avalanche (Snowman++) 相比,在并行化方面它尚未释放 DAG 的全部功能。 Sui 版本的 Move 对对象的独有/共享及可变/不可变状态非常明确。这实现了直观的编程模型。此外,它使 Sui 能够使用可靠广播 (FastPay) 进行非共享对象交易,例如支付。 Aptos 使用 BlockSTM,它是高性能 HotStuff 算法的演进,并通过动态检测依赖关系和调度执行任务来引入并行化(灵感来自软件交易内存)。 很难说哪一个会在实践中表现更好,但我看好的是 Sui。Aptos 在优化当前设计方面已经做得很好,而 Sui 似乎还有更多空间。双路径实现拜占庭共识也让 Sui 占了上风。 可扩展性值得注意的是,两条链都没有针对 home 验证者案例和大规模去中心化进行优化,而是归入了「最大化网络容量」阵营(即像 Solana 一样)。状态(State)增长可能是瓶颈。 Sui 通过高效的存储分片来解决这个问题,专注于横向扩展资源。另一方面,Aptos 更加强调支持异构验证器(受限 CPU 和/或受限存储)。我喜欢 Sui 的做法。 开发者体验它们都处于相似的发展阶段,Aptos 有点领先。设置系统花费的时间比实际码代码 (我也恰好使用 NixOS)还要多。学习语言和环境也需要一些反复试验。 部署到 devnet 在这两种情况下都有些麻烦。幸运的是,单元测试库非常有用。 最糟糕的部分是晦涩难懂的编译器报错,以及毫无意义的 devnet 错误响应。这些应该马上解决。 个人建议如果从头学习,我会推荐以下内容: 1. 首先,阅读文档和一些示例。确保你可以运行它们。 2. 然后,直接转到您正在使用的分支中的框架源代码(用于学习和作为文档)。 来源:金色财经 |
|
|
|
|
|
|