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.

P: A programming language for asynchrony, fault-tolerance and uncertainty

266 pointsby _kcxzabout 8 years ago

12 comments

panicabout 8 years ago
It&#x27;s worth noting that this isn&#x27;t just a research language -- it&#x27;s used in practice for writing drivers:<p><i>P got its start in Microsoft software development when it was used to ship the USB 3.0 drivers in Windows 8.1 and Windows Phone. These drivers handle one of the most important peripherals in the Windows ecosystem and run on hundreds of millions of devices today. P enabled the detection and debugging of hundreds of race conditions and Heisenbugs early on in the design of the drivers, and is now extensively used for driver development in Windows.</i>
评论 #14380284 未加载
评论 #14382082 未加载
staticassertionabout 8 years ago
P is a really cool language, and I&#x27;ve been keeping an eye on it. Unfortunately, the documentation has been pretty perpetually out of date, and the language is still a moving target. So you can&#x27;t just &quot;get started&quot; in P, the example code won&#x27;t compile.<p>I don&#x27;t know what their plans are or if they ever intend for it to be consumed outside of MS. If they do, some focus on docs would be nice.<p>Pony is a similar language - but better documented. If you&#x27;re interested in P, I suggest checking out Pony.
评论 #14391128 未加载
sverigeabout 8 years ago
At last, the long awaited successor to C, at least in the naming convention that assumes P comes after C because of BCPL. (Apologies to Walter Bright: No inference should be drawn that D was not also a good name for that sequence.)
评论 #14380590 未加载
评论 #14380573 未加载
评论 #14380935 未加载
robertkrahn01about 8 years ago
Here is a demo for using P to program a drone, shows a little more of the language itself: <a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=R8ztpfMPs5c" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=R8ztpfMPs5c</a>
评论 #14382238 未加载
评论 #14382214 未加载
tobyhinloopenabout 8 years ago
Can we stop naming programming languages with letters and symbols and give it proper names that, when googled (or binged), makes the programming language appear on top?
评论 #14381540 未加载
评论 #14381516 未加载
评论 #14387878 未加载
评论 #14381970 未加载
评论 #14387558 未加载
rubyn00bieabout 8 years ago
If anyone is interested in syntax and more tangible bits, here is the manual from the GitHub page linked to in the article:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;p-org&#x2F;P&#x2F;blob&#x2F;master&#x2F;Doc&#x2F;Manual&#x2F;pmanual.pdf" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;p-org&#x2F;P&#x2F;blob&#x2F;master&#x2F;Doc&#x2F;Manual&#x2F;pmanual.pd...</a>
评论 #14380759 未加载
rambodroneprogabout 8 years ago
P is also being used to build safe robotics systems. <a href="https:&#x2F;&#x2F;drona-org.github.io&#x2F;Drona&#x2F;" rel="nofollow">https:&#x2F;&#x2F;drona-org.github.io&#x2F;Drona&#x2F;</a>
cgb223about 8 years ago
I&#x27;m still holding out for NP<p>It&#x27;ll be wayyy more complex
评论 #14381918 未加载
tekacsabout 8 years ago
Previous discussion: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12673739" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=12673739</a>
rambodroneprogabout 8 years ago
The high-level syntax of the language looks amazing for writing and specifying complex protocols.
mempkoabout 8 years ago
Love it. What if all computing are communicating state machines
faragonabout 8 years ago
Microsoft&#x27;s &quot;Node.js&quot; equivalent for asynchronous stuff?