1
推断优化类型
在工作中,我的任务是推断一些有关动态语言的类型信息。我将语句序列重写为嵌套let表达式,如下所示: return x; Z => x var x; Z => let x = undefined in Z x = y; Z => let x = y in Z if x then T else F; Z => if x then { T; Z } else { F; Z } 由于我从一般类型信息开始,并试图推断出更具体的类型,因此自然的选择是精简类型。例如,条件运算符返回其真假分支类型的并集。在简单的情况下,它效果很好。 但是,在尝试推断以下类型时遇到了障碍: function …
11
programming-languages
logic
type-theory
type-inference
machine-learning
data-mining
clustering
order-theory
reference-request
information-theory
entropy
algorithms
algorithm-analysis
space-complexity
lower-bounds
formal-languages
computability
formal-grammars
context-free
parsing
complexity-theory
time-complexity
terminology
turing-machines
nondeterminism
programming-languages
semantics
operational-semantics
complexity-theory
time-complexity
complexity-theory
reference-request
turing-machines
machine-models
simulation
graphs
probability-theory
data-structures
terminology
distributed-systems
hash-tables
history
terminology
programming-languages
meta-programming
terminology
formal-grammars
compilers
algorithms
search-algorithms
formal-languages
regular-languages
complexity-theory
satisfiability
sat-solvers
factoring
algorithms
randomized-algorithms
streaming-algorithm
in-place
algorithms
numerical-analysis
regular-languages
automata
finite-automata
regular-expressions
algorithms
data-structures
efficiency
coding-theory
algorithms
graph-theory
reference-request
education
books
formal-languages
context-free
proof-techniques
algorithms
graph-theory
greedy-algorithms
matroids
complexity-theory
graph-theory
np-complete
intuition
complexity-theory
np-complete
traveling-salesman
algorithms
graphs
probabilistic-algorithms
weighted-graphs
data-structures
time-complexity
priority-queues
computability
turing-machines
automata
pushdown-automata
algorithms
graphs
binary-trees
algorithms
algorithm-analysis
spanning-trees
terminology
asymptotics
landau-notation
algorithms
graph-theory
network-flow
terminology
computability
undecidability
rice-theorem
algorithms
data-structures
computational-geometry