首页
学习
活动
专区
圈层
工具
发布
    • 综合排序
    • 最热优先
    • 最新优先
    时间不限
  • 来自专栏函数式编程语言及工具

    Scalaz(34)- Free :算法-Interpretation

    Free的Interpretation就是对存放在数据结构Suspend内的算法(ADT)进行实际运算。不同方式的Interpreter决定了这段由一连串ADT形成的AST的具体效果。

    90760发布于 2018-01-05
  • 来自专栏腾讯云TVP

    Decoding LLM-native Agents: Bridging Compilation and Interpretation in AI

    parameters act like "compiled" code, setting fixed probabilistic boundaries on potential behaviors.Interpretation LLMs represent a hybrid computational paradigm, combining "probabilistic compilation" and "constrained interpretation in balancing the precision and predictability of compilation with the flexibility and creativity of interpretation

    24910编辑于 2025-03-13
  • 来自专栏爬蜥的学习之旅

    从源码看redis的'map'结构

    "paxi" hset命令执行追踪 hset的执行入口在 hsetCommand Code.SLICE.source("robj *o = lookupKeyWrite(c->db,key);") .interpretation ("字典结构") .interpretation("dictType使得redis可以对任意类型的key和value对应类型来操作") .interpretation("privdata 存储用户传进来的值,key就是key,value就是value") .interpretation("dictht数组存储两个ht,在rehash的时候,ht[0]表示旧的,ht[1]表示新的, 当rehash完成,再将ht[1]地址给ht[0]") .interpretation("rehashidx用来标识是否正在进行rehash,没有进行的时候是-1") .interpretation Code.SLICE.source("dictAdd(o->ptr,f,v);") .interpretation("将key和value加入到dict中"); //...

    89730发布于 2019-07-30
  • 来自专栏爬蜥的学习之旅

    从源码看redis的'map'结构

    ("字典结构")\n .interpretation("dictType使得redis可以对任意类型的key和value对应类型来操作")\n .interpretation("privdata 存储用户传进来的值,key就是key,value就是value")\n .interpretation("dictht数组存储两个ht,在rehash的时候,ht[0]表示旧的,ht[1]表示新的 ,当rehash完成,再将ht[1]地址给ht[0]")\n .interpretation("rehashidx用来标识是否正在进行rehash,没有进行的时候是-1")\n .interpretation \nCode.SLICE.source("dictAdd(o->ptr,f,v);")\n .interpretation("将key和value加入到dict中");\n//... &d->ht[1] : &d->ht[0];")\n .interpretation("根据是否在rehash来保证新的元素只会放在心的entry列表里面");

    26310编辑于 2022-09-16
  • 来自专栏爬蜥的学习之旅

    从源码看redis的string结构

    Code.SLICE.source("c->argv[2] = tryObjectEncoding(c->argv[2]);") .interpretation("在对set的格式做完语法校验 Code.SLICE.source("if (len <= OBJ_ENCODING_EMBSTR_SIZE_LIMIT) ") .interpretation("如果字符串长度满足emb Code.SLICE.source(" emb = createEmbeddedStringObject(s,sdslen(s));") .interpretation("将值使用 Code.SLICE.source("char type = sdsReqType(initlen);") .interpretation("根据要新建的字符串获取不同的类型,类型就是宏定义的 ("len表示使用了的长度,alloc表示分配的空间长度,flags的最低三个bit用来表示header的类型,类型比如 sdshdr8") .interpretation("1:uint8_t指的是

    67730发布于 2019-07-02
  • 来自专栏爬蜥的学习之旅

    从源码看redis的AOF持久化机制

    ("按照一定的格式转化命令,放到要存放的目的地") .interpretation("1: 先计算命令一共有几个字符 ,比如命令 set msg hello ,那么首先写入的就是 3,然后追加 \r\n ") .interpretation("2: 遍历每个字符,先写下$符号,然后记下这个字符的长度,追加 \r\n再记下长度和字符本身,然后追加 \r\n") .interpretation("3: set Code.SLICE.source("while(1) ") .interpretation("读取AOF文件的内容,按照 REPL 的格式 ,1条条命令处理"); //.. Code.SLICE.source("if (fgets(buf,sizeof(buf),fp) == NULL)") .interpretation("从文件中读取一定字节到buf中"); / Code.SLICE.source("argc = atoi(buf+1);") .interpretation("拿到命令的长度"); //..

    57720发布于 2020-04-22
  • 来自专栏爬蜥的学习之旅

    从源码看redis的'set'结构

    " return createIntsetObject();" + " return createSetObject();" + "}") .interpretation ) == DICT_OK);" + " return 1;" + " }" + " }") .interpretation ("set的另外一种数据结构,intset ,只要当前数据还能够转换成 longlong,那么继续在set中增加,否则将结构转换成 hashtable") .interpretation ("处理边界情况") .interpretation("1: 如果集合中是空的,直接在开始插入即可") .interpretation("2: 如果新插入的值小于当前最小的值 ,在开头插入即可") .interpretation("3: 如果插入新值大于当前最大的值,在结尾插入即可"); Code.SLICE.source("while(max >= min)

    47720发布于 2020-03-20
  • 来自专栏爬蜥的学习之旅

    从源码看redis的sorted set与skipList详解

    ") .interpretation("2: 只要当前节点的分数小于要插入节点的分数,并且当前节点的前头还有,那么就一直往前遍历,记录下来层级之间的跨度,和最后需要插入元素的节点的前一个节点 ") .interpretation("3: 如果分数一模一样,则比较key,key值大,仍然往前遍历") .interpretation("4: 注意最高层的下标是 level ,那么新的节点的下一个节点就是已经查找位置的下一个节点,而要插入位置的元素它的下一个节点,就是新插入的节点") .interpretation("2:Rank[0]表示第一层的总共跨度, NULL : update[0];") .interpretation("如果新插入节点的前一个接单是头节点,则不设置后向指针,否则设置后向指针为它的前一个节点") .interpretation ("如果新节点前面仍然存在节点,那么新节点的前一个节点的后节点就是新节点本身,否则说明新节点就是尾结点") .interpretation("1: 这里可以看出只有第一层才是双向的链表"

    1.2K30发布于 2020-03-20
  • 来自专栏爬蜥的学习之旅

    从bgsave命令看redis的RDB持久化机制

    = RDB_CHILD_TYPE_DISK;" + " updateDictResizePolicy();" + " return C_OK;" + " }") .interpretation sizeof(magic),\"REDIS%04d\",RDB_VERSION);" + " if (rdbWriteRaw(rdb,magic,9) == -1) goto werr;") .interpretation ("以hash的编码方式为例,看底层的实现") .interpretation("1: hash的底层实现如果是ziplist,那么拿到ziplist的长度,将ziplist转为字符串存储") .interpretation ("循环读取文件的内容,首先读到接下来的类型") .interpretation("1: 读到EOF结束") .interpretation("2: 读取到对应的标记,就继续读取后面的字节,直到读到key ") .interpretation("3: 读取key,读取val"); 复制代码 value以hashtable为例,会构造出对应的结构 Code.SLICE.source("else if (

    1.1K50发布于 2020-04-01
  • Flutter for OpenHarmony BMI 健康计算器:打造支持深色模式的智能健康工具

    ; Color color; if (bmi < 18.5) { interpretation = '偏瘦\n建议增加营养摄入,保持规律作息。' ; color = Colors.orange; } else if (bmi < 24) { interpretation = '正常\n继续保持健康的生活方式!' ; color = Colors.green; } else if (bmi < 28) { interpretation = '超重\n建议适当运动,控制饮食。' ; color = Colors.orangeAccent; } else { interpretation = '肥胖\n建议咨询医生,制定科学减重计划。' ; color = Colors.red; } setState(() { _bmi = bmi; _interpretation = interpretation

    11310编辑于 2026-02-09
  • 来自专栏爬蜥的学习之旅

    rpc之thrift入门与TBinaryProtocol源码追踪

    Code.SLICE.source("client = serverTransport_.accept();") .interpretation("底层就是ServerSocket 、然后是方法名的长度,再是方法名,最后写入序列号,按照特定的规则写入数据"); Code.SLICE.source("args.write(oprot_);") .interpretation Code.SLICE.source("oprot_.getTransport().flush();") .interpretation("数据已经写入了缓冲区,把没有写完的数据写入对应的文件描述符 Code.SLICE.source("args.read(iprot);") .interpretation("从say_args的scheme(say_argsStandardScheme Code.SLICE.source("TBase result = getResult(iface, args);") .interpretation("调用实现类,去执行用户自己写的逻辑

    86130发布于 2019-08-20
  • 来自专栏爬蜥的学习之旅

    从源码看redis的list结构

    addReply(c,shared.wrongtypeerr);\n" + " return;\n" + " }") .interpretation key,如果有,但是key的编码方式不是 OBJ_LIST直接报错返回"); Code.SLICE.source("for (j = 2; j < c->argc; j++) ") .interpretation + " listTypePush(lobj,c->argv[j],where);\n" + " pushed++;") .interpretation " + " unsigned int extra : 10; /* 扩展字段,目前没有用*/\n" + "} quicklistNode;") .interpretation ("从前向和后项来看,quickList 本身就是一个 双向链表") .interpretation("1:结构自身的大小 prev、next、zl 各8字节,sz无符号 int 为4字节

    22310编辑于 2024-01-28
  • 来自专栏星尘的一个朋友

    和 lvgo 一起学设计模式(二十二)行为型之访问者模式

    ; private final String interpretation2 = "《凡尔赛》是皮埃尔·苏勒执导的剧情片。" ; private final String interpretation3 = "以法国路易十四为时代背景的电视剧。" ; private final String interpretation5 = "啥???" ; private final String interpretation3 = "以法国路易十四为时代背景的电视剧。" ; private final String interpretation5 = "啥???"

    28520发布于 2020-12-07
  • 来自专栏爬蜥的学习之旅

    从源码看redis的list结构

    addReply(c,shared.wrongtypeerr);\n" + " return;\n" + " }") .interpretation key,如果有,但是key的编码方式不是 OBJ_LIST直接报错返回"); Code.SLICE.source("for (j = 2; j < c->argc; j++) ") .interpretation + " listTypePush(lobj,c->argv[j],where);\n" + " pushed++;") .interpretation " + " unsigned int extra : 10; /* 扩展字段,目前没有用*/\n" + "} quicklistNode;") .interpretation ("从前向和后项来看,quickList 本身就是一个 双向链表") .interpretation("1:结构自身的大小 prev、next、zl 各8字节,sz无符号 int 为4字节

    83760发布于 2019-07-09
  • 来自专栏YoungGy

    MMD_4b_SVD

    Dimensionality Reduction SVD intro property example interpretation Dimensionality Reduction with SVD interpretation ? Dimensionality Reduction with SVD main ? others ?

    541100发布于 2018-01-02
  • 来自专栏ShowMeAI研究中心

    斯坦福NLP课程 | 第19讲 - AI安全偏见与公平

    [Biases in Interpretation] [Biases in Interpretation] Biases in Interpretation Confirmation bias 确认偏见 :倾向于寻找、解释、支持和回忆信息,以确认一个人先前存在的信念或假设 [Biases in Interpretation] Biases in Interpretation Overgeneralization 泛化过度:根据过于笼统和/或不够具体的信息得出结论(相关:过拟合) [Biases in Interpretation] Biases in Interpretation Correlation fallacy 相关性谬误:混淆相关性和因果关系 [Biases in Interpretation] Biases in Interpretation Automation bias 自动化偏差:人类倾向于喜欢来自自动化决策系统的建议 ,而不是没有自动化的相互矛盾的信息 [Biases in Interpretation] 会形成反馈循环 这被称为 Bias Network Effect 以及 Bias “Laundering” [Human

    60461编辑于 2022-05-23
  • 来自专栏机器学习与系统

    研究了美国四大计算机名校的培养方案,核心课程都在这了

    Languages and Compilers[5] 数据库 CS186 Introduction to Database Systems[6] 计算机程序的构造和解释 CS61A Structure and Interpretation Computer Language Engineering[16] 数据库 6.830/6.814: Database Systems[17] 计算机程序的构造和解释 6.001 Structure and Interpretation Introduction to Database Systems: http://www-inst.eecs.berkeley.edu/~cs186 [7] CS61A Structure and Interpretation /6.035/ [17] 6.830/6.814: Database Systems: http://db.csail.mit.edu/6.830/ [18] 6.001 Structure and Interpretation Programs: https://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-001-structure-and-interpretation-of-computer-programs-spring

    3.8K20发布于 2020-06-17
  • 来自专栏懒人开发

    (2.8)James Stewart Calculus 5th Edition:Derivatives

    ---- Interpretation of the Derivative as the Slope of a Tangent 解释导数就是斜率 个人觉得,这个已经很明显了... ? 对应的图像 ? ---- Interpretation of the Derivative as a Rate of Change 解释导数就是变化率 这个,自己感觉也是很明显的... 定理4 ? 简单文字 ?

    58720发布于 2018-09-12
  • 来自专栏python前行者

    python:解析js中常见的 不带引号的key的 json

    不过有一些lib可以帮我们解析 如:demjson(链接) >>>> import demjson >>> demjson.decode('{suggestion:[{query:"London",interpretation {u'suggestion': [{u'query': u'London', u'operation': 2, u'interpretation': ...

    3.7K30发布于 2019-03-25
  • Ezekiel Where Ancient Wisdom Meets Artificial Intelligence

    Within seconds, you receive a personalized interpretation that rivals what professional astrologers might Comprehensive: Covers natal charts, transit forecasts, compatibility analysis, and dream interpretation By merging astrology and dream interpretation with AI, it acts as a modern oracle for those navigating

    19510编辑于 2025-08-20
领券