TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Compiling Knowledge into Probabilistic Models

68 pointsby wcrichtonabout 6 years ago

5 comments

nathcdabout 6 years ago
&gt; In the general-purpose programming context, imagine if you could give examples of a program output (domain data) along with a skeleton of a program (source file with incomplete parts) and ask a system to fill in the holes.<p>This part reminds me of some of capabilities of the Idris compiler [1]. In an Idris program you can leave &quot;holes&quot; to stand in for incomplete parts of a program [2], and the compiler can infer various bits of code from types and holes. In a demo of the in-progress Idris 2 compiler [3], Edwin Brady refers to it as a &quot;lab assistant&quot; and shows it writing a whole function when given a function type.<p>[1] <a href="http:&#x2F;&#x2F;docs.idris-lang.org&#x2F;en&#x2F;latest&#x2F;tutorial&#x2F;interactive.html#editing-commands" rel="nofollow">http:&#x2F;&#x2F;docs.idris-lang.org&#x2F;en&#x2F;latest&#x2F;tutorial&#x2F;interactive.ht...</a><p>[2] <a href="http:&#x2F;&#x2F;docs.idris-lang.org&#x2F;en&#x2F;latest&#x2F;tutorial&#x2F;typesfuns.html#holes" rel="nofollow">http:&#x2F;&#x2F;docs.idris-lang.org&#x2F;en&#x2F;latest&#x2F;tutorial&#x2F;typesfuns.html...</a><p>[3] <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=mOtKD7ml0NU" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=mOtKD7ml0NU</a>
scribuabout 6 years ago
Modelling uncertainty is definitely a useful tool to have, but I&#x27;m not sure why the author expects there to be a &quot;scientific&quot; (a.k.a. mechanistic) way of doing it.<p>In normal programming, there&#x27;s no fool-proof formula for picking the best data structure or the best algorithm. If there were, we could just write one program to write all other programs and be done with it!
评论 #19476729 未加载
i_am_proteusabout 6 years ago
Philosophically, one could consider model formulation to be a way the author encodes prior beliefs about the system into the model.
nartzabout 6 years ago
If you look at kernel code for many flavors of Linux you&#x27;ll see annotations that hint at which branches of code are more likely.<p>Similarly, many JIT compilers create statistics on the fly already; for instance these are used to better predict which branches are most likely to occur and thus be prefetched.
marmadukeabout 6 years ago
&gt; seems to me that the the act of compiling knowledge into probabilistic models is still more art than science<p>Because there’s no modularity: writing probability models is still like using unstructured assembly.
评论 #19476814 未加载