- 博客(1249)
- 资源 (35)
- 收藏
- 关注
原创 技术视角看Metis未来发展潜力
所以,现在一个令人非常担心的问题就是排序器的高度中心化,先不论他们是不是会作恶,从实际的角度来说,中心化排序器如果出现故障或者受到攻击,很容易对整条layer2造成威胁。Metis 的去中心化的Pos排序器现在已经在Holesky测试网上运行,具体可以分为三轮,包括在模拟真实节点的行为,增加节点数量,质押测试等等。Builder挖矿奖励,Metis对生态系统发展有着长期的支持,Metis生态中的所有建设者都会根据他们给网络带来的交易量获得Builder挖矿奖励,交易越多,奖励越高,即 生态与建设者双赢。
2024-01-18 11:55:16 89
转载 7个向量数据库对比:Milvus、Pinecone、Vespa、Weaviate、Vald、GSI 和 Qdrant
算法基准测试超出了范围,因为您始终可以求助于https://github.com/erikbern/ann-benchmarks查找有关单个算法性能和权衡的详细信息。原文链接:https://towardsdatascience.com/milvus-pinecone-vespa-weaviate-vald-gsi-what-unites-these-buzz-words-and-what-makes-each-9c65a3bd0696。:自定义实现的 HNSW,调整到规模,并支持完整的 CRUD。
2024-01-12 17:17:42 5959 3
翻译 2024最佳5 个矢量数据库
我们最近看到了一系列令人印象深刻的矢量数据库,例如 Chroma、Pinecone、Weaviate、Faiss 和 Qdrant,每个数据库都提供独特的功能和创新。随着人工智能的不断发展,矢量数据库在塑造数据检索、处理和分析的未来方面的作用无疑将会增强,并有望在各个领域提供更复杂、高效和个性化的解决方案。这就是矢量数据库发挥作用的地方,为这些人工智能驱动的应用程序提供高度优化的环境。矢量数据库已成为强大的工具,可以在广阔的非结构化数据(如图像、视频和文本)中导航,而无需严重依赖人类生成的标签或标记。
2024-01-12 15:24:41 611
原创 小汪,TCP连接和断连夺命6连问你可能扛得住?
防止资源浪费 + 防止历史连接的建立。考虑一种不正常的情况,客户端发了两次请求链接的报文,第二条被服务器捕捉到,返回数据,完成了两次握手。数据传送完成之后,链接关闭。但是这时候,第一条拥塞的请求报文现在到达了服务器端,服务器还以为客户端要又一次建立连接,于是发送确认,然后把自己敞开,等着客户端发送过来数据。于是,很多的网络资源就是这样浪费掉了. 如果实行三次握手,服务器收到了一条过期的请求报文,返回确认信息,客户端接收到了服务器的信息之后感到莫名其妙,心想:我他妈又没要连接,你返回这个是不是疯了。
2024-01-12 01:39:33 1005
原创 Java对象复制或模型转换方法分析
编译期处理性能更高,对实现的技术要求也更高;运行时处理使用起来最为简便,可选的模型转换框架也更多,根据前面文中的分析,若无特殊要求使用Spring的BeanUtils.copyProperties是性能最好和额外依赖最少的属性框架。
2024-01-05 01:30:29 961
原创 Java获取接口的所有实现类方法
对于普通的Java工程实现获取接口所有实现类需要借助SPI机制,且仅限于接口;对于Spring工程,则有@Autowired自动获取和实现ApplicationContextAware手动获取2种,既支持接口实现类、也支持抽象类的实现类。
2024-01-05 01:20:20 2958
原创 Go 项目必备:深入浅出 Wire 依赖注入工具
当项目中实例依赖(组件)的数量越来越多,如果还是人工手动编写初始化代码和维护组件之间依赖关系的话,会是一件非常繁琐的事情,而且在大仓中尤其明显。因此,社区里已经有了不少的依赖注入框架。除了来自 Google 的 Wire 以外,还有(Uber) 、(Facebook)。其中 Dig 和 Inject 都是基于 Golang 的 Reflection 来实现的。这不仅对性能产生影响,而且依赖注入的机制对使用者不透明,非常的“黑盒”。— Rob Pike相比之下,Wire 完全基于代码生成。
2023-11-10 16:18:16 530
原创 Spring Cloud Config、Apollo、Nacos和Archaius对比
优点:Spring Cloud Config为微服务提供了集中化的配置管理,支持基于Git的分布式配置中心,可以配合Spring Cloud使用,提供动态刷新配置的功能。Apollo是携程框架部门研发的开源配置管理中心,能够集中化管理应用不同环境、不同集群的配置,配置修改后能够实时推送到应用端,并且具备规范的权限、流程治理等特性。优点:集中化管理不同环境、不同集群的配置,配置修改后能够实时推送到应用端,具备完善的权限、流程治理等特性,适用于微服务配置管理场景。界面友好,易于使用。缺点:尚无明确提及。
2023-11-10 14:29:46 386
转载 GO 中 Chan 实现原理
tag说明qcount当前的队列,剩余元素个数dataqsiz环形队列可以存放的元素个数,也就是环形队列的长度buf指针,指向环形队列elemsize指的的队列中每个元素的大小closed具体标识关闭的状态elemtype见名知意,元素的类型sendx发送队列的下标,向队列中写入数据的时候,存放在队列中的位置recvx接受队列的下标,从队列的 这个位置开始读取数据recvq协程队列,等待读取消息的协程队列sendq协程队列,等待发送消息的协程队列lock互斥锁,在 chan 中,不可以并发的读写数据。
2023-11-10 14:22:21 374
原创 什么是 eCPM?它与 CPM 有何不同?
要了解 eCPM 的含义,先要弄清楚什么是 CPM 即每千人成本。CPM 是指预先估算的广告主需要为每千次广告曝光支付的费用。CPM 是广告主的一项辅助指标,有助于他们为广告活动分配预算,优化广告活动。而 eCPM 是发行商在每千次广告曝光后实际获得的累计收入。CPM 可以根据广告系列总花费和曝光次数准确算出,而 eCPM 受到供需因素的影响,是一种动态计算方式。eCPM 涵盖变现和。
2023-11-10 14:09:21 2349
转载 漫谈广告流量分发策略:Waterfall &; Header Bidding
其实无论是串行or并行,都只是解决问题的策略,核心目标只有一个“流量收益最大化”。站在媒体方的角度,当然是希望越多的媒体同时竞价;站在DSP的维度,必然是希望流量先发给自家,自家挑选完之后再发给其他家,甚至可能是流量独占。当然现实中的环境错综复杂,不同的对接方式,也都会都会影响不同的策略,只有紧紧抓住“流量收益最大化”这个重点,兼顾多家利益,才能以不变应万变。电商节各大电商争夺市场的时候,流量预算充足,为了多拿预算,流量优先分发给电商DSP;
2023-11-10 11:05:56 421
原创 铭文是什么?有什么价值?
纪念铭文 」 :把当下的发生的各种事情铭刻,未来看历史,也别有一番意义,总比现在挖坟掘墓,通过c14推断大概年份好吧!纪念当前的人或事,比如你把刚出生的婴儿第一张照片铭刻在比特上,基于比特铭文的特性,这也是非常有意义的!铭文是附加「buff」的「meme」,比传统的「meme」更具有炒作价值!「 概念铭文 」:比如AIGC ,他只是一个概念,但是你把它刻进不可篡改的比特,概念的兴衰一定会反映在价格上!BRC 主要网站 / 工具。「 打新 」mint别人已经铸造好的代币,比拼的个人的眼光和手速!
2023-11-09 00:37:41 1901 2
原创 Netty在Firbase中的使用
实时更新是现代应用程序中用户体验的一个组成部分。随着用户期待这样的行为,越来越多的应用程序都正在实时地向用户推送数据的变化。通过传统的3层架构很难实现实时的数据同步,其需要开发者管理他们自己的运维、服务器以及伸缩。通过维护到客户端的实时的、双向的通信,Firebase提供了一种即使的直观体验,允许开发人员在几分钟之内跨越不同的客户端进行应用程序数据的同步——这一切都不需要任何的后端工作、服务器、运维或者伸缩。
2023-11-03 17:55:39 196
原创 不同目录下的文件读取方式
/文件目录与JsonToJava.class处于不同级目录,JsonToJava.class的文件目录层级比/js/Server2.json所在的目录更深一层。//文件目录与JsonToJava.class处于同级目录。//不考虑资源目录与类的目录层级。
2023-11-02 17:24:58 139
原创 第三方数据平台技术选型分析
看你接给谁用,如果是做开发,想要做大数据驱动,神策更合适。如果是看运营指标,培养目标驱动意识,growingio更合适。
2023-11-02 14:49:32 391
原创 Google 开源项目风格指南
每个较大的开源项目都有自己的风格指南:关于如何为该项目编写代码的一系列约定(有时候会比较武断)。当所有代码均保持一致的风格,在理解大型代码库时更为轻松。
2023-11-02 14:30:45 153
转载 默克尔树(Merkle Tree)
默克尔树是一种二叉树,由一组叶节点、一组中间节点和一个根节点构成,看下图:来简单讲一下这幅图,我们从最底部开始看,D0、D1、D2和D3是叶子节点包含的数据,也就是叶子节点的value,继续往上看,N0、N1、N2和N3是就是叶子节点,它是将数据(也就是D0、D1、D2和D3)进行hash运算后得到的hash值;
2023-10-29 18:21:23 232
原创 程序化广告系列之一---名词解释
补充固定位保量广告,即按照提前约定的广告展示量,来进行售卖的固定位广告形式。,它联系着DSP(买方平台)和SSP(卖方平台),通过接入SSP汇集大量媒体流量,从而收集处理属于广告目标客户的数据,Ad Exchange是实现精准营销的交易场所。,是把分散的多方数据进行整合纳入统一的技术平台,并对这些数据进行标准化和细分,让用户可以把这些细分结果推向现有的互动营销环境里的平台。10、CTR:即点击率。8、CPD广告(全称:Cost per day):一天内的展示成本,简单理解为“按天包位置”,但会保证展示量。
2023-10-27 18:11:57 523
原创 StackUp Erc4337 账户抽象实现分析
定位处理任何带有赞助交易的UserOperation,实现验证、支付、添加、质押、解质押、币币价值兑换功能等。定位实现合约账户的初始化、业务执行、验证、存款、提现等;定位ERC4337的UserOperation的发起方,实现对用户调用的监听、接受、初步验证、支付费用、向entrypoint发起调用等功能。定位全局可信任的区块链单例,实现executer调用的入口点、支付executer资金、调用生成、验证账户、出纳员等等功能。定位对不同的用户UserOperation的进行批量的进行聚合签名、验证。
2023-10-23 19:08:23 260
原创 线上Timeout waiting for connection from pool问题分析和解决方案
可以看到第1条,是老生常谈的资源关闭问题。博主在开发的时候,正是因为不需要知道调用的返回结果,所以没有对Response进行处理,所以资源并没有释放,导致后面再使用HttpClient,就拿不到连接了。可以看到确实默认值是maxConnPerRoute=2、maxConnTotal=20,并且我代码外部没有修传值。第2条,需要知道maxConnTotal和maxConnPerRoute的具体含义,如果是需要。,那么即使maxConnTotal设置再大,还是受限制与maxConnPerRoute的大小。
2023-10-22 00:24:59 1601
转载 Discord万亿级消息存储架构ScyllaDB
本文介绍了 Discord 将数据迁移到 ScyllaDB 的过程,以及 SycllaDB 实现原理,使用 ScyllaDB 一些使用问题的解法。接下来有时间的话会解读下。
2023-10-22 00:08:01 492
转载 CROS 前后端交互,不可不知的跨域问题及其解决方案详解
在前后端不分离时,我们利用前面讲过的Spring Security的各种知识点,就可以实现对项目的权限管控。但是在前后端分离时,尤其是在引入了Spring Security后的前后端分离时,我们从前端发来的请求,就会存在一些问题。这些问题就是跨域而导致的问题!对于前后端分离时,跨域而产生的安全问题,我们该怎么解决呢?接下来请跟着一一哥来学习如何解决吧!在解决跨域问题之前,我们先来了解一下何为跨域问题,怎么产生的跨域问题,怎么解决这个跨域问题。CORS是一个W3C标准,全称是。
2023-10-19 11:42:02 2247
原创 RocketMQ的长轮询(Long Polling)实现分析
消息队列一般在消费端都会提供push和pull两种模式,RocketMQ同样实现了这两种模式,分别提供了两个实现类:DefaultMQPushConsumer和DefaultMQPullConsumer;push模式:推送模式,即服务端有数据之后立马推送消息给客户端,需要客户端和服务器建立长连接,实时性很高,对客户端来说也简单,接收处理消息即可;缺点就是服务端不知道客户端处理消息的能力,可能会导致数据积压,同时也增加了服务端的工作量,影响服务端的性能;pull模式。
2023-10-16 17:51:34 427
原创 Java SPI机制分析
SPI全称为(Service Provider Interface) ,是JDK内置的一种服务提供发现机制;主要被框架的开发人员使用,比如java.sql.Driver接口,数据库厂商实现此接口即可,当然要想让系统知道具体实现类的存在,还需要使用固定的存放规则,需要在classpath下的META-INF/services/目录里创建一个以服务接口命名的文件,这个文件里的内容就是这个接口的具体的实现类;下面以JDBC为实例来进行具体的分析。
2023-10-16 17:15:47 120
原创 39 本书助力精益成长
聪明的投资者》- Benjamin Graham. 从投资人的角度看一个公司的价值。《风险投资交易》- Brad Feld,Jason Mendelson. 关于投资人,Term Sheet,SPA,和谈判技巧的全部细节。《乔布斯的魔力演讲》- 卡迈恩 加l洛. 人们会忘记你说过的话,会忘记你做过的事,但是人们永远不会忘记你带给他们的感觉。《影响力》- Robert Cialdini. 互惠,承诺和一致,社会认同,喜好,权威,稀缺。《曼德拉传》- 安东尼 桑普森. 关于自由,奋斗,和理想主义的光辉岁月。
2023-10-15 00:25:25 212
原创 一个成功项目的诞生:RocketMQ项目初期的设计思考
2017-01-12消息中间件通常需要解决哪些问题,在解决这些问题当中会遇到什么困难,Apache RocketMQ作为阿里开源的一款高性能、高吞吐量的分布式消息中间件否可以解决,规范中如何定义这些问题。然后本文将介绍RocketMQ的架构设计,以期让读者快速了解RocketMQ。
2023-10-13 17:49:34 103
转载 面试必问的 MySQL,你懂了吗?
如果一个 extent 中的被顺序读取的 page 超过或者等于该参数变量时,Innodb将会异步的将下一个 extent 读取到 buffer pool中,innodb_read_ahead_threshold 可以设置为0-64(一个 extend 上限就是64页)的任何值,默认值为56,值越高,访问模式检查越严格。具体的,InnoDB 会监控对表上索引的查找,如果观察到某些索引被频繁访问,索引成为热数据,建立哈希索引可以带来速度的提升,则建立哈希索引,所以称之为自适应(adaptive)的。
2023-10-13 00:59:43 55
原创 ThreadLocal详解
这个类提供了线程局部变量。从上面源码可以看出,ThreadLocalMap使用ThreadLocal的弱引用作为Entry的key,如果一个ThreadLocal没有外部强引用来引用它,下一次系统GC时,这个ThreadLocal必然会被回收,这样一来,ThreadLocalMap中就会出现key为null的Entry,就没有办法访问这些key为null的Entry的value。ThreadLocal的作用是提供线程内的局部变量,这种变量在多线程环境下访问时能够保证各个线程里变量的独立性。
2023-10-12 19:36:02 154
原创 Arbitrum Stylus 的工作原理
合约所有者调用 `ArbWasm` 预编译的 `compileProgram` 方法,该方法为 WASM 进行安全工具设置,对其进行Gas成本计量,并将其编译为针对验证器硬件优化的本地代码。一个 VM 中的合约可以读/写到另一个 VM 中的合约相同的位置。Arbitrum 的独特架构允许 EVM 和 WASM 之间进行无缝和同步的操作,这要归功于其统一的状态、跨 VM 调用和兼容的经济模型。当合约被调用时,它在像 Wasmer 这样的 WASM 运行时上运行,比 EVM 快得多,从而节省了Gas Fee。
2023-10-12 18:34:02 1449
转载 WebAssembly 完全入门:了解 wasm 的前世今身
首先我们给它下个定义。WebAssembly 或者 wasm 是一个可移植、体积小、加载快并且兼容 Web 的全新格式。
2023-10-12 18:23:50 2015
转载 Mybatis plus相比传统Mybatis手写SQL的好处
这样做隐患更大,因为我们上面的select语句是手写的sql ,字段都是手写的,因此如果需求改变了,订单表增加了几个字段,那么这些手写的select语句的sql就得从头到尾全都改一遍,否则这些sql查询出的实体数据,再执行updateByPrimaryKey方法就会把新增的字段修改为空。注:将sql写在xml文件里的方式同理 然后发送通知这个需求基本就能实现了,写个定时任务每间隔多久运行一次,先取出待推送的订单,然后调用逐一调推送方法,再修改订单状态。商品表和订单表是一对多的关系,一个商品可以有多个订单。
2023-10-08 23:42:14 158
原创 一文了解优先考虑结果的以「意图」为中心的 Intent-Centric 架构
SUAVE 的愿景是成为各类不同链之间的共同排序层,所以用户意图如果涉及到跨链资产转移时,账户抽象(AA)与 Gonsis Safe 这样的多签智能合约账户(SCW)集结双方优势,再结合 SUAVE 的 EVM 解决方案或许是目前理论上一套较优的解决方案;3)CowSwap:与其他协议不同的是,CowSwap 上用户交易只需发送出一个签名订单,将交易的执行委托给解决者网络,并在该网络中完成交易,同时链下签名订单会由于求解器匹配后执行;:1)账户抽象:利用捆绑器加代付合约完成适合开发者的狭义意图;
2023-09-26 15:35:27 113
原创 为什么 L2 Rollup 能够实现 1-2 秒的交易确认时间
如果用户信任排序器,他们可以将从排序器 Feed 中接收的交易视为「软最终性(soft finality)」,通常在几秒内完成。一旦主链上的数据发布完成,就达到了「硬最终性(hard finality)」,此时 L1 数据的排序是 Rollup 的最终排序。Rollup 节点将比较排序器的排序与 L1 的排序,并解决任何差异,确保 L2 交易的顺序不会在未来发生变化。网络中的其他节点(验证器)读取排序器的 Feed,并更新本地状态,确保所有诚实的节点都达到相同的状态。
2023-09-26 15:20:03 139
原创 SMTP发送邮件时抱No appropriate protocol错误分析和解决方案
Properties mailProp = mailSender.getJavaMailProperties();
2023-09-18 11:44:34 416
原创 Java 高频疑难问题系列一
当对一个共享变量执行操作时,我们可以使用循环CAS的方式来保证原子操作,但是对多个共享变量操作时,循环CAS就无法保证操作的原子性,这个时候就可以用锁,或者有一个取巧的办法,就是把多个共享变量合并成一个共享变量来操作。此外请记住,所声明资源的作用域被限制在带资源的try语句中。在score相同的情况下,redis使用字典排序,而所谓的字典排序其实就是“ABCDEFG”这样的排序,在首字母相同的情况下,redis会再比较后面的字母,还是按照字典排序(如截图所示,beigai和baijing的排列顺序)。
2023-09-17 16:58:26 169
原创 认知世界和提示自己不可或缺的50本书
1.《洞穴奇案》(最顶级的14位法官的思维论战,单独看每一种都是合理的,但是看到之后就会发现另一位法官会反驳前一位的观点,专注、细致的地经历多次思维的否定,思考力会提升很多!2.《活出生命的意义》 作者维克多·弗兰克尔是犹太人,经历过战争恐怖,不但超越了炼狱般的痛苦,更将自己的经验与学术结合,创造了意义疗法,替人们找到绝处再生的意义,也留下了人性史上光彩的价值。了解你的敌人,才可能战胜它。4.《人性的弱点》和《羊皮卷》—卡耐基的《人性的弱点》旧版,简单的话语描述最本质的思想,简直打开了通透世界。
2023-09-17 16:38:35 267
Natural Language Processing with Deep Learning CS224N/Ling284
2024-09-09
RFC9220 - HTTP Datagrams and the Capsule Protocol
2024-08-02
RFC9297 - Bootstrapping WebSockets with HTTP/3
2024-08-02
RFC9114 - HTTP/3
2024-08-02
RFC9000 - QUIC: A UDP-Based Multiplexed and Secure Transport
2024-08-02
RFC8446 -The Transport Layer Security (TLS) Protocol Version 1.3
2024-08-02
Web3+Decentralized+去中心化+存储
2024-04-30
Chainbase+Web3+APi+Data warehouse
2024-04-30
Graph+Web3+检索
2024-04-30
Web3+Nostr+区块链+去中心化+Relay+抗审查
2024-04-30
VISION FOR A HETEROGENEOUS MULTI-CHAIN FRAMEWORK DRAFT
2023-12-24
Security audit report for imtoken wallet
2023-12-24
Decentraland is a blockchain-based virtual world
2023-12-24
力场的定位是一个以公链共建挖矿为核心的社区平台以及UGC平台
2023-12-24
A Novel Metastable Consensus Protocol Family for Cryptocurrencie
2023-12-24
Measuring Ethereum Network Peers
2023-12-24
Firework Games White Paper
2023-12-24
CS251 Final Exam 2021
2023-12-24
Generic Construction of Ring Signatures with Efficient
2023-12-24
The Gridex Protocol
2023-12-24
Efficient Zero-Knowledge Arguments for Arithmetic Circuits
2023-12-24
KishuInu Whitepaper
2023-12-24
On the Instability of Bitcoin Without the Block Reward
2023-12-24
Shorter Proofs for Privacy-Enhanced Distributed Ledger
2023-12-24
Attacking Threshold Wallets
2023-12-23
This paper provides an architectural overview of the Avalanche
2023-12-23
Avalanche Native Token ($AVAX) Dynamics
2023-12-23
ZKSwap是一个基于 ZK-Rollup 的 Layer2 代币Swap协议
2023-12-23
ZEND White Paper
2023-12-23
KZen Curv Security Audit
2023-12-23
为什么虚拟资产值得投资:元宇宙虚拟地产报告
2023-10-27
元宇宙:未来数字绿洲入口已打开
2023-10-27
Code Assessment of Liquidations 2.0 Smart Contracts
2023-10-27
Scalable and Probabilistic Leaderless BFT Consensus through Meta
2023-10-27
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人