p 2.3.2
dotnet tool install --global p --version 2.3.2
dotnet new tool-manifest # if you are setting up this repo dotnet tool install --local p --version 2.3.2
#tool dotnet:?package=p&version=2.3.2
nuke :add-package p --version 2.3.2
<div align="center"> <img src="Icon/icon.png" width="20%"> <h2>Formal Modeling and Analysis of Distributed (Event-Driven) Systems </h2> </div>
Challenge: Distributed systems are notoriously hard to get right. Programming these systems is challenging because of the need to reason about correctness in the presence of myriad possible interleaving of messages and failures. Unsurprisingly, it is common for service teams to uncover correctness bugs after deployment. Formal methods can play an important role in addressing this challenge!
P Overview: P is a state machine based programming language for formally modeling and specifying complex distributed systems. P allows programmers to model their system design as a collection of communicating state machines. P supports several backend analysis engines (based on automated reasoning techniques like model checking and symbolic execution) to check that the distributed system modeled in P satisfy the desired correctness specifications.
If you are wondering "why do formal methods at all?" or "how is AWS using P to gain confidence in correctness of their services?", the following re:Invent 2023 talk answers this question, provides an overview of P, and its impact inside AWS: (Re:Invent 2023 Talk) Gain confidence in system correctness & resilience with Formal Methods (Finding Critical Bugs Early!!)
<div align="center"> <a href="https://www.youtube.com/watch?v=FdXZXnkMDxs"> <img src="https://img.youtube.com/vi/FdXZXnkMDxs/0.jpg" style="width:40%;"> </a> </div>
Impact: P is currently being used extensively inside Amazon (AWS) for analysis of complex distributed systems. For example, Amazon S3 used P to formally reason about the core distributed protocols involved in its strong consistency launch. Teams across AWS are now using P for thinking and reasoning about their systems formally. P is also being used for programming safe robotics systems in Academia. P was first used to implement and validate the USB device driver stack that ships with Microsoft Windows 8 and Windows Phone.
Experience and lessons learned: In our experience of using P inside AWS, Academia, and Microsoft. We have observed that P has helped developers in three critical ways: (1) P as a thinking tool: Writing formal specifications in P forces developers to think about their system design rigorously, and in turn helped in bridging gaps in their understanding of the system. A large fraction of the bugs can be eliminated in the process of writing specifications itself! (2) P as a bug finder: Model checking helped find corner case bugs in system design that were missed by stress and integration testing. (3) P helped boost developer velocity: After the initial overhead of creating the formal models, future updates and feature additions could be rolled out faster as these non-trivial changes are rigorously validated before implementation.
✨ Programming concurrent, distributed systems is fun but challenging, however, a pinch of programming language design with a dash of automated reasoning can go a long way in addressing the challenge and amplify the fun!. ✨
Let the fun begin!
You can find most of the information about the P framework on: http://p-org.github.io/P/.
What is P?, Getting Started, Tutorials, Case Studies and related Research Publications. If you have any further questions, please feel free to create an issue, ask on discussions, or email us
P has always been a collaborative project between industry and academia (since 2013) 🥁. The P team welcomes contributions and suggestions from all of you!! 👊. See CONTRIBUTING for more information.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
This package has no dependencies.
Version | Downloads | Last updated |
---|---|---|
2.3.2 | 55 | 11/20/2024 |
2.3.1 | 331 | 10/21/2024 |
2.3.0 | 203 | 10/15/2024 |
2.2.2 | 1,555 | 8/12/2024 |
2.2.1 | 854 | 7/1/2024 |
2.2.0 | 594 | 5/30/2024 |
2.1.5 | 194 | 5/21/2024 |
2.1.4 | 114 | 5/20/2024 |
2.1.3 | 400 | 5/3/2024 |
2.1.2 | 605 | 4/9/2024 |
2.1.1 | 178 | 4/3/2024 |
2.1.0 | 407 | 3/15/2024 |
2.0.33 | 381 | 3/7/2024 |
2.0.32 | 272 | 2/22/2024 |
2.0.31 | 199 | 2/15/2024 |
2.0.30 | 398 | 1/8/2024 |
2.0.29 | 424 | 12/7/2023 |
2.0.28 | 230 | 11/25/2023 |
2.0.27 | 168 | 11/15/2023 |
2.0.26 | 88 | 11/14/2023 |
2.0.25 | 128 | 11/7/2023 |
2.0.24 | 246 | 10/18/2023 |
2.0.23 | 483 | 10/5/2023 |
2.0.22 | 323 | 9/26/2023 |
2.0.21 | 188 | 9/20/2023 |
2.0.20 | 128 | 9/19/2023 |
2.0.19 | 159 | 9/14/2023 |
2.0.18 | 189 | 9/13/2023 |
2.0.17 | 243 | 9/6/2023 |
2.0.16 | 247 | 8/28/2023 |
2.0.15 | 264 | 8/17/2023 |
2.0.14 | 413 | 8/4/2023 |
2.0.13 | 730 | 7/6/2023 |
2.0.12 | 397 | 6/8/2023 |
2.0.11 | 215 | 6/5/2023 |
2.0.10 | 323 | 5/9/2023 |
2.0.9 | 203 | 5/4/2023 |
2.0.8 | 230 | 4/25/2023 |
2.0.7 | 209 | 4/19/2023 |
2.0.6 | 292 | 4/7/2023 |
2.0.5 | 543 | 4/4/2023 |
2.0.4 | 489 | 3/10/2023 |
2.0.2 | 251 | 3/10/2023 |
2.0.1 | 253 | 3/10/2023 |
2.0.0 | 270 | 3/10/2023 |
1.1.22 | 516 | 2/13/2023 |
1.1.20 | 403 | 1/19/2023 |
1.1.19 | 465 | 12/5/2022 |
1.1.18 | 353 | 11/29/2022 |
1.1.17 | 335 | 11/29/2022 |
1.1.16 | 368 | 11/22/2022 |
1.1.15 | 638 | 8/29/2022 |
1.1.14 | 512 | 7/19/2022 |
1.1.13 | 1,115 | 6/23/2022 |
1.1.12 | 448 | 6/20/2022 |
1.1.11 | 554 | 5/5/2022 |
1.1.10 | 461 | 4/29/2022 |
1.1.9 | 468 | 4/20/2022 |
1.1.8 | 528 | 3/25/2022 |
1.1.7 | 497 | 3/10/2022 |
1.1.6 | 479 | 3/9/2022 |
1.1.5 | 548 | 2/9/2022 |
1.1.4 | 678 | 10/14/2021 |
1.1.3 | 423 | 9/22/2021 |
1.1.2 | 362 | 9/14/2021 |
1.1.1 | 404 | 8/16/2021 |
1.0.13 | 330 | 8/16/2021 |
1.0.12 | 469 | 4/27/2021 |
1.0.11 | 414 | 3/31/2021 |
1.0.10 | 355 | 3/31/2021 |
1.0.9 | 389 | 3/25/2021 |
1.0.8 | 438 | 2/19/2021 |
1.0.7 | 365 | 2/19/2021 |
1.0.6 | 396 | 2/4/2021 |
1.0.5 | 416 | 1/26/2021 |
1.0.4 | 455 | 12/9/2020 |
1.0.3 | 446 | 12/3/2020 |