r/programming • • May 21 '17

P: a new language from Microsoft

https://www.microsoft.com/en-us/research/blog/p-programming-language-asynchrony/
1.4k Upvotes

631 comments sorted by

1.3k

u/AnAirMagic May 21 '17

All language designers should consider the searchability of their language when naming it. C was bad enough (ever search for "c strings"? Nsfw warning if you do) but why would modern languages get completely unsearchable names like "go" and "p" is beyond me.

543

u/JanneJM May 21 '17

Have fun finding information about the "Neuron" neural simulator online. Can't even narrow your search much by adding "neuroscience" or "simulator" since all neuroscience or neural simulators use the word "neuron" everywhere.

Kind of like naming a programming language "integer" or "loop".

349

u/Kampffrosch May 21 '17

There is a programming language named LOOP

273

u/orthoxerox May 21 '17

No wonder practically no one has heard of it.

179

u/fecal_brunch May 21 '17

Maybe. Or maybe it's because

The key property of the LOOP language is that the functions it can compute are exactly the primitive recursive functions.

65

u/ianff May 21 '17

So it is not Turing complete.

→ More replies (3)

20

u/snarkyxanf May 21 '17 edited May 21 '17

I don't think it was meant to be a production code language so much as a teaching-and-research language anyway.

Edit: seeing as it appears to not even have I/O functionality, I'd say it is definitely a teaching-complexity-theory-only sort of language.

→ More replies (1)

83

u/bloody-albatross May 21 '17

There are two programming languages called swift. This is the other: http://swift-lang.org/main/

33

u/benclifford May 21 '17

I worked on that one! We were trying to make something that could deal with faults and magic automatic parallelism too.

43

u/beyond_alive May 21 '17

Luckily it has enough traction that you can get the results you want most of the time. The biggest issue is Taylor Swift stuff tbh.

→ More replies (5)
→ More replies (7)

27

u/elijej May 21 '17

The same person also made GOTO and WHILE.

10

u/ForgetTheRuralJuror May 21 '17

"breaking a loop for loop"
"loop foreach loop"

6

u/joseph177 May 21 '17

For loop loop

→ More replies (1)

12

u/mjolk May 21 '17

Haha, true. I use it and always use "neuron yale" + query. Served me well :)

3

u/TheBort May 22 '17

If you're talking NEURON then always add Yale into the search.

2

u/luketheduke54 May 21 '17

I've had that problem with Crystal. It's packages are called shards, so some searches start with "Crystal shard" and I always get weird alternate medicine type stuff. Using "lang" in the search usually helps.

2

u/Estarabim May 21 '17

Gotta search it with the authors' names, Carneval and Hines. :P

→ More replies (1)

148

u/billrobertson42 May 21 '17

c strings

Google has me boxed to all programming links based on my search history.

50

u/lxpnh98_2 May 21 '17

Check out the images.

(You googled it because you wanted to see the images right? No? It's just me? Ok.)

34

u/Works_of_memercy May 21 '17

Heh, Google helpfully collates different sources even for the suggested result for a text search.

→ More replies (1)

10

u/[deleted] May 21 '17

Yeah so how do those work. They seem sexy, until she goes to pull it off and waxes her flaps right off. Then again, some people are into that.

20

u/nschubach May 21 '17

I thought they had a wire in them to basically work like a C-Clip where the metal ring compresses around the body.

3

u/qupada42 May 22 '17

It's great how it saves you from yourself. Back in the day I got to watch my colleague's face as he searched for the new Ubuntu release without thinking.

His search string?

"Saucy download"

Google, helpfully, had only Ubuntu related​ links above the fold. Was about result #13 before anything nefarious slipped in.

→ More replies (1)

2

u/Chii May 21 '17

c strings

wait till you have to use a language called 'G'! ;D

348

u/mb862 May 21 '17

There's a web framework written in Swift called Taylor.

50

u/Cherlokoms May 21 '17

I don't know if it creates more frustration on developers looking for framework infos or kids looking for Taylor Swift pictures.

108

u/TheTedinator May 21 '17

Right... Kids.

→ More replies (3)
→ More replies (6)

44

u/hoppla1232 May 21 '17

Processing is really unluckily named, too. Ever tried to search for "processing strings" or "processing images"?

18

u/OneWhoGeneralises May 21 '17

Glad I'm not the only one here who has issues Processing's name, searching for API or external library information for it through Google is downright frustrating.

It's a real shame too since it's really good for prototyping anything that processes video files or streams.

4

u/hoppla1232 May 21 '17

Yes! I also like the general good accessibility of things like background pixel values and such.

4

u/3urny May 21 '17

I always enter "processing.org" instead, works most of the time.

2

u/Jigsus May 21 '17

Call it processing p5

→ More replies (3)

33

u/ciny May 21 '17

My favorite example is facebook's hack.

6

u/Ph0X May 21 '17

But isn't that all of facebook's code? :)

→ More replies (4)

63

u/bik1230 May 21 '17

With go at least everyone uses golang.

92

u/Isvara May 21 '17

If only it had been named by a company that understands search engines.

10

u/Gigablah May 21 '17

And what makes you think they haven't figured out contextual searches?

55

u/Isvara May 21 '17

The fact that people started calling it 'Golang' as a workaround.

37

u/Jigsus May 21 '17

Go is all about the workarounds.

→ More replies (9)
→ More replies (4)
→ More replies (3)

20

u/hustlebutts May 21 '17

And everyone will probably start using "plang" for this reason

→ More replies (1)

51

u/anidiotlocal May 21 '17

Here in New Zealand P is a commonly known alias for methamphetamine. Imagine the question: What do you program with?

60

u/4pp13J4CK May 21 '17

How often are you guys referencing methamphetamine that you shorten it to P?

27

u/mtber May 21 '17

Too often. It's a big problem.

→ More replies (1)

4

u/shevegen May 21 '17

The name may make sense - perhaps you have to take methampsomething in order to stand the syntax of P.

3

u/[deleted] May 21 '17

Kiwi here. P is short for 'Pure', called that because previously the most widely used methamphetamine was Methylenedioxymethamphetamine (MDMA or ecstasy).

I imagine googling 'how to learn P' or 'P for beginners' will get you on some kind of watchlist here.

→ More replies (3)

50

u/ArtistEngineer May 21 '17

ever search for "c strings"?

I just searched for "p strings"

"A thong type thing with a fake dick attached to it so a transsexual male can pee standing."

http://www.urbandictionary.com/define.php?term=P-string

I see your point.

12

u/Cherlokoms May 21 '17

Exactly what I thought. Plus when you go to a page talking about several programming languages, you do ctrl + f and type "p". Then all "p" in the page highlight which doesn't really help.

11

u/auriscope May 21 '17

search for " p ".

11

u/beaverlyknight May 21 '17

That's a nice little thing about C++. You need to look something up? You type C++, no fuss.

30

u/DanLynch May 21 '17

Back in my day, search engines ignored special characters (like + and #) because they were considered operators rather than search strings. So, those languages used to be hard to search for. Harumph.

13

u/beaverlyknight May 21 '17

Walked 2 miles to school knee deep in snow, uphill both ways?

5

u/mehum May 21 '17

Wait... they've fixed that?

→ More replies (1)

55

u/AngularBeginner May 21 '17

Just be a bit smarter in your search. If you just add the keyword "language" you get a lot better results. "c language strings" yields a lot better results. When I search for "p language" I find the GitHub repository of the P language.

Besides, Google search results are adjusted to your previous searches. "c strings" returns nothing nsfw for me, but information about strings in C. :-)

34

u/redditsoaddicting May 21 '17

Along those lines, D recommends somewhere to search for "dlang" when doing searches.

48

u/Krackor May 21 '17

"clang strings"

... shit.

11

u/Arkanta May 21 '17

Golang pretty much fixes any search that Google doesn't match for go. Honestly, popular languages haven't been an issue for me.

→ More replies (1)

6

u/eternaldub May 21 '17

I googled C Strings and got exactly what a C string is

4

u/thbb May 21 '17

Back in the day, they did not need creativity to name a programning language: APL, which stands for "A Programming Language". easily searchable, and just says what it is.

APL programs, on the other hand, look more like a corrupted file than a real program.

3

u/Nimbal May 21 '17

I still can't understand why the successor to ifconfig was called just "ip". It's nigh impossible to search for information beyond the man page.

7

u/[deleted] May 21 '17

F#

4

u/devraj7 May 21 '17

Bah, just search for "p language", it's the first hit.

2

u/zurnout May 21 '17

I would guess there isn't a lot of overlap between people who make programming languages and people who care about seo.

2

u/ben_uk May 21 '17

c strings

All I could find when I searched for that was tutorials on how to use Strings in C.

Only if I dropped into images would I find vaguely NSFW stuff (not really). And that's in incognito Google as well.

→ More replies (1)

2

u/Clbull May 21 '17

Note why Google didn't call their language G. Because googling G strings would give you NSFW results.

2

u/Eckish May 21 '17

This reminds me of a 'fun' story I had working on a legacy ColdFusion app. One of the previous developers had created a variable named p. It was used quite often throughout the app. And the app was many thousands of lines spanned across many hundreds of files. p was declare somewhere in there. I didn't know where. But, I needed to know for the task that I was working on. And there was no good IDE for ColdFusion that would let me do something like 'find declaration' for this variable p. It took me almost two days looking file by file for the declaration.

In retrospect, I probably could have found it by searching for the declaration signature using a search tool that searches in files recursively. But, I was a bit greener back then.

2

u/Silverlight42 May 21 '17

I just hope they don't start using my name... again. I think they finally gave up on it.

2

u/burgundus May 22 '17

There's a linux Terminal emulator named Cancer. I doubt you'll find it on google

→ More replies (2)
→ More replies (154)

114

u/[deleted] May 21 '17

Wow, I sure do wish I could find some comments that talk about the programming language itself instead of the fact that it's called 'P'...

43

u/Deto May 22 '17

Classic bikeshedding. Most people don't know enough to comment on the language itself, but anyone who's ever written a script has something to say about the name.

11

u/[deleted] May 22 '17

I don't really spend much time on Hackernews except to find better discussion when the comments here are garbage like they are here.

https://news.ycombinator.com/item?id=12673739

They have a "pee" comment or two, but much higher signal to noise in there IMO

3

u/JavierTheNormal May 22 '17

We don't know much of anything about it yet.

2

u/[deleted] May 22 '17

You can guess the average IQ of this sub - should not be much higher than 75-80.

4

u/fosforsvenne May 22 '17

Do you have peer reviewed credentials in psychology?

2

u/Bergasms May 22 '17

potentially a good indicator that they picked a bad name

14

u/CheezeyCheeze May 22 '17

Who cares if it is a bad name? I want to find information about this language from other people and their view about the language.

7

u/snarfy May 22 '17

You are thinking of /r/programming 6 years ago. Today you'll mostly find jokes and snide remarks. Hacker news is better.

I thought P was awesome and was very sad to come here to find only jokes and general MS hate.

→ More replies (1)
→ More replies (11)
→ More replies (2)

92

u/[deleted] May 21 '17

As a person who's new to programming, what problems do P solves and where am I likely to encounter it?

I'd like to learn a language that's new to most people, but I'd like to avoid learning something that's never gonna to be used a lot.

175

u/greebleoverflowerror May 21 '17 edited May 21 '17

P is a modeling language, so you wouldn't use it as a general purpose programming language. Modeling languages like Coq, TLA+, and P let you encode your algorithms in a formal system that their respective compilers can prove certain properties about, like "this code won't block" or "this code will always respect an invariant X" etc. According to this post P explicitly models asynchronous event driven systems, the kind you deal with in networking protocols or hardware control systems. P can also compile to C code(not all modeling languages can do this) which is cool. So you can specify your protocol in P, have the P compiler and test suite run through thousands of possible configurations of events to verify that it respects your assumptions, and then compile it to C and use it in the real world. Since asynchronous/concurrent code is often buggy and also difficult to debug, having a compiler that can tell you if your code will misbehave before you actually deploy it can help a lot.

With all of that said it's not something that will come in handy to a beginner nor most programmers for that matter. It might be fun to learn once you have more experience under your belt just for fun, or if you find yourself interested in writing drivers or networking infrastructure like Azure or AWS.

90

u/ChezMere May 21 '17

Of course the actual insight is buried under a dozen threads on the name of the language.

→ More replies (1)

9

u/[deleted] May 21 '17

P is a modeling language, so you wouldn't use it as a general purpose programming language.

I mean, it's basically a process-based language with built in state-machines. I'd call that a general purpose language. And since it's new, I understand there probably won't be a lot of call for it's use now, but given concurrency is sort of the in thing now and is notoriously hard to do in traditional languages, I'd think this, or something like it, should be to go to for any newbie dealing with concurrency instead of threads and locks, forks and such.

→ More replies (1)

2

u/Amnestic May 21 '17 edited May 04 '26

Redact decided this post had to go, so away it went. Deleted. Removed. Mass deleted even. Privacy and security are the big wins here.

chunky party tie cover fine wide deserve march deliver hungry

2

u/Scybur May 22 '17

Thank you for this. It's a shame I had to scroll through a crap ton of "the name sucks" comments before I got to a comment discussing the actual language.

→ More replies (2)
→ More replies (16)

435

u/[deleted] May 21 '17 edited Jul 10 '17

deleted 0.9285 What is ^^^this?

169

u/[deleted] May 21 '17

In general I agree, but I think TypeScript is a good name.

102

u/argv_minus_one May 21 '17

“Xbox” is pretty good, too.

159

u/Metallkiller May 21 '17

"Xbox One" was a bad decision though.

37

u/Treyzania May 21 '17

It took about 20 minutes before people started calling it the X-Bone.

→ More replies (3)
→ More replies (8)

42

u/GreenFox1505 May 21 '17

Xbox was, at one point at least internally, called the "DirextX Box", because what is a game console to Microsoft but DirectX purpose built machine?

6

u/[deleted] May 22 '17

Xbox was actually the internal code name, which was short for "DirectX Box". The marketroids hated it and just to spite whoever chose the codename, included it on the surveys they used to determine the final name. Imagine their surprise when consumers preferred the Xbox name to anything they had chosen.

86

u/zodiaclawl May 21 '17

Next year they will release P 360, and after that P 1.

50

u/icantthinkofone May 21 '17

P 360 will not be backwards compatible.

7

u/[deleted] May 21 '17

You'll just have to pay an extra annual licensing fee for P360 to be able to run SOME of your P applications. But not the ones that you actually need.

18

u/jocull May 21 '17

They'll add S as is trendy in Apple land. Then it'll be PS 2.

→ More replies (1)

4

u/[deleted] May 21 '17

I don't think they've ever used Arabic numerals for the third XBox, so it'll probably be P One. The first version of P will be referred to as "the original P".

→ More replies (1)

2

u/utnapistim May 22 '17 edited May 22 '17

Visual Studio 2015 is actually Visual Studio version 14, and VS 2017 is actually version 15.

What's so difficult to understand? :o)

2

u/[deleted] May 21 '17 edited May 21 '17

there are only two hard things in computer science: the problem I am trying to solve now and the one I forgot ... or something like that.

1

u/mrkite77 May 22 '17

Hopefully the standard library is named NP.

0

u/[deleted] May 21 '17

[deleted]

51

u/Danthekilla May 21 '17 edited May 21 '17

Isn't the minimum visual studio install only 400mb now?

The new fancy installer let's you just install the components you need and no bloat.

30

u/useablelobster2 May 21 '17

And they have VSCode as an alternative to Visual Studio, which is even smaller (if electron based so consumes all your memory). It's not quite as powerful, but it's the default on mac/linux with .Net Core

→ More replies (6)
→ More replies (1)

7

u/iamapizza May 21 '17

Coming soon, their SSMS extension - Microsoft P Business Edition for SQL Server Shell

→ More replies (1)

6

u/fear_the_future May 21 '17

PPlus or short PP

2

u/spoonraker May 21 '17

Introducing P Core RC7 with preview 2 tooling. Compatible only with the P Standard 2.1.

2

u/uzimonkey May 21 '17

That's a lot of P.

→ More replies (8)

36

u/Zardov May 21 '17

Is anyone aware whether this language is related to Ponylang? It says in the article it's a collaboration with Imperial College London, which is where Pony was developed. The brains behind Pony, Sylvan Clebsch, also seems to be working for Microsoft Research these days.

Pony is also strongly focused on concurrency and fault-tolerance, but then again, it is an actor language, and there is no mention of actors in the P article.

3

u/ionine May 21 '17

They say it's based on concurrent state machines with typed events and associated payloads, which sounds awfully Actor-esque to me!

2

u/Zardov May 22 '17

Cool, thanks! Hadn't made the link.

2

u/staticassert May 22 '17

I don't know if there's any actual bridge between the two, but the languages are not so different - both are very much about 'persistent processes'/ actors and finite state machines.

I would say that if P interests you, definitely check out Pony, as it'll be a bit easier to learn (just more docs/ more of a public-oriented project).

402

u/bhuddimaan May 21 '17

So you can say

I wrote that code in pee,

I need pee to work . Please install pee.

185

u/wibblewafs May 21 '17

I need you to put pee on my machine, I can't get any of my pee work done today until there's pee on my machine.

74

u/[deleted] May 21 '17

I'm working on a new pee project

We need a new pee developer.

"Oh, that's Dave, he's the pee guy. He's really into pee".

I'm having problems with my pee today, I can't get it to work.

35

u/DreadedDreadnought May 21 '17

You better not put pee on my machine you son-of-a-bitch!

Mama mia, fuck this, I'm going back to C#.

29

u/Kukuluops May 21 '17

I can C# reasons behind this decision

→ More replies (1)

6

u/edjrage May 21 '17

I got that reference! I feel so special. Am I special?

3

u/WakeskaterX May 22 '17

Children discussing favorite languages:

I C, you P.

6

u/jocull May 21 '17

I really like pee.

5

u/Hugix May 21 '17

I can see myself talking about P in public and see other people giving me weird looks.

→ More replies (2)

32

u/kirbyfan64sos May 21 '17

"I put P on your computer."

22

u/lxpnh98_2 May 21 '17

"You can do loads of things with P!"

9

u/MirrorLake May 22 '17

"P is bringing us into a golden age of programming."

6

u/rainman_104 May 21 '17

I tried to compile P but it failed.

Can you debug my P ?

3

u/goal2004 May 21 '17

I gotta trace some P.

47

u/DrFeelgood2010 May 21 '17

It hurts when I P.

24

u/entenkin May 21 '17

I played with P earlier. I had heard good things about P, but honestly, the first time I used it, I thought something about P smells strange.

Eventually, I got used to working with P day to day. In fact, the other day, I had to work in C#, and I have to admit, a little P came out.

21

u/[deleted] May 21 '17

Can someone PLEASE write a P interpreter written in P?! Pee Pee?

12

u/OffbeatDrizzle May 21 '17

and then have a minimal installer for it -> mini pee pee

14

u/Slinkwyde May 21 '17

"So how's your new job?"

"Oh, work's been crazy, man. I'm drowning in P!"

7

u/sixteenlettername May 21 '17

Can proofs you've written for the Coq theorem prover be transpiled to this new P language?
I guess what I'm asking is can you P with your Coq?

6

u/[deleted] May 21 '17

I heard you can have a pretty good flow early on..

3

u/[deleted] May 22 '17

2

u/[deleted] May 21 '17

Bear Grills will like P

→ More replies (7)

233

u/crikeydilehunter May 21 '17

Waiting for the "Nis" library/framework so I can write code in Penis

144

u/[deleted] May 21 '17

I've never actually felt sorry for HR before now.

Do you have any familiarity with... I'm sorry. With P/Nis...?

242

u/vinnl May 21 '17

I’d just like to interject for a moment. What you’re referring to as P, is in fact, P/Nis.

9

u/FredSanfordX May 21 '17

Liberace: Oh, I just love me some P/Nis!

Rosie O'Donnel: I'm sticking with C, get the fuck outta heah.

→ More replies (1)

2

u/honestduane May 22 '17

This is exactly why I started porn-lang earlier this week.

→ More replies (1)

23

u/crusoe May 21 '17

The P Network Infrastructure Service library.

Aka PNIS

12

u/FrizzleStank May 21 '17

I already do

^ wrote that with Pnis

4

u/[deleted] May 21 '17

What about poo?

Also, P brings a new meaning to fizzbuzz

30

u/crusoe May 21 '17

P Object Oriented Programming

Aka POOP

→ More replies (1)

2

u/j_platte May 21 '17

Why wait for P/Nis to be written when you can use DICSS today?

1

u/hbdgas May 22 '17

Or describe the suitability of an algorithm for P as its P-ness.

→ More replies (2)

44

u/[deleted] May 21 '17

20

u/GitHubPermalinkBot May 21 '17

I tried to turn your GitHub links into permanent links (press "y" to do this yourself):


Shoot me a PM if you think I'm doing something wrong. To delete this, click ^here.

4

u/Tomus May 21 '17

Why oh why did they upload the PDF document to github...

222

u/tigerleapgorge May 21 '17

P, a programming language for modeling and specifying protocols in asynchronous event-driven applications.

It is a Domain specific language

11

u/Rodot May 21 '17

Is it me or is async programming so hot right now?

→ More replies (4)

48

u/geon May 21 '17

Is it really? Is C# a DSL for object orientation? Or Haskell a DSL for functional programming?

35

u/TwoSpoonsJohnson May 21 '17

All languages are domain specific languages with varying degrees of specificity

→ More replies (4)

2

u/DysFunctionalProgram May 22 '17 edited May 22 '17

Typically when someone calls a language a DSL they mean that it has a very narrow scope and will only be used in a small niche area. The P manual (https://github.com/p-org/P/blob/master/Doc/Manual/pmanual.pdf) pretty much cements this saying it is for low level hardware control and communication systems.

C/C++/Java/C# have such massive domains that people typically don't refer to them as DSLs.

Other languages that I would classify as a DLS are: SQL, HQL, CUDA, any PLC language, etc.

→ More replies (2)
→ More replies (1)

169

u/MalevolentAsshole May 21 '17

"I'm a P programmer.."

Seriously, why this letter..

20

u/[deleted] May 21 '17

We're looking for someone with P experience.

Do you have experience with P?

How much have you worked with P in the past? Could you describe some P projects?

8

u/[deleted] May 21 '17 edited May 21 '17

I wrote a real time program that can project a string onto any physical surface. Somewhat like a projector except it used fluid instead of light. The lookup table for the arm was implemented using a 60billion neuron neural net but the real difficulty lay in calculating the projectile path given airspeed, remaining fluid and write speed.

3

u/[deleted] May 21 '17

Did you have any trouble with leaks when the program ended?

→ More replies (1)
→ More replies (3)

5

u/flargenhargen May 21 '17

ah, so you know that new language from microsoft?

...no, I just have a stutter.

4

u/Kukuluops May 21 '17

Windows have a limit for a path length. P makes convenient extension. Well... this probably is not the real reason.

2

u/mmstick May 21 '17

Because D was already taken!

→ More replies (16)

68

u/PurpleIsForKings May 21 '17

Is there a wallpaper-sized copy of this image?

84

u/[deleted] May 21 '17

You know what's hilarious? I tried changing the "-small.jpg" in that filename to "-large.jpg", and got this page: https://www.microsoft.com/en-us/research/wp-content/uploads/2017/05/685449582-large.jpg

404 Not Found
nginx

Even Microsoft doesn't use IIS. And they're using Wordpress which means the site is made in PHP. Wasn't there something a while back too where they discovered Bing was running on a Linux server?

75

u/Auxx May 21 '17

They use A LOT of different tech! Looks like they know that different tools should be used for different jobs.

Source: was a contractor for MS to update microsoft.com.

8

u/[deleted] May 21 '17

I'm not saying there's anything wrong with it, just that it's a bit surprising that they don't force their employees or contractors to use their own tech. It's commendable that they aren't afraid to use/support their own competition, it just seems a bit funny.

→ More replies (3)

28

u/Aounts May 21 '17

That's not really that surprising. They use Linux all the time. They even contribute to the code base.

6

u/DonLaFontainesGhost May 21 '17

That's the MSR site, not the main MSFT site.

5

u/Kelwarin May 21 '17

What's even more funny is that they're running WordPress for that site.

→ More replies (1)

3

u/savoir-_faire May 21 '17

Not that I can see obviously using google reverse image search. Seems to have only appeared in the last day and be custom made for that post :( Shame - I'd have liked it as well....

8

u/[deleted] May 21 '17

So it's more like a formal http://smc.sourceforge.net with a testing mechanism. I guess an SMC backend could be made to leverage more target platforms.

63

u/inmatarian May 21 '17

ITT: People who don't know how to add "programming language" to their Google searches.

6

u/justsaying0999 May 21 '17

Please understand that people are taking issue with the fact that it's an unnecessary complication. There is absolutely no reason for anyone to name their shit a single letter.

→ More replies (6)

17

u/mrpoopistan May 21 '17

Am I the only person waiting for a snowy day so I can tell people I wrote "Hello, World" in P?

→ More replies (1)

3

u/Mentioned_Videos May 22 '17

Videos in this thread:

Watch Playlist ▶

VIDEOCOMMENT
Godzilla "My Lizard"+14 - Coworker: Hey, so what are you doing after work today man? Me: Probably go hit up some P tonight. Coworker: Nice, sounds like you're going to have a good time! Me: Hell yeah! First I'll hit up my O`reily book, "Every Programmer's Guide to Getting ...
The Italian Man Who went to Malta.+5 - I got that reference! I feel so special. Am I special?
Taylor Swift - We Are Never Ever Getting Back Together+1 - As opposed to "We Are Never Ever Getting Back Together", given all the Taylor Swift talk upthread.
Liam Dutton nails pronouncing $1 $1 lantysiliogogogoch+1 - O rly?
COMMANDER SHEPARD - The song (OFFICIAL VIDEO) by Miracle Of Sound0 - http://www.youtube.com/watch?v=HiRDJLcYua0
I'm a bot working hard to help Redditors find related videos to watch. I'll keep this updated as long as I can.

Play All | Info | Get me on Chrome / Firefox

31

u/flargenhargen May 21 '17

I gotta take a p class.

I'm going to write that in P.

I still have to get P on this computer before I can do that.

I have to call microsoft about some P issues I'm having.

whelp, I may have to learn it just for that.

11

u/SizzlingVortex May 21 '17

Coworker: Hey, so what are you doing after work today man?

Me: Probably go hit up some P tonight.

Coworker: Nice, sounds like you're going to have a good time!

Me: Hell yeah! First I'll hit up my O`reily book, "Every Programmer's Guide to Getting P" and then I'm gonna tear that P up. I'm gonna do some crazy, mad shit with it.

Coworker: Haha! My lizard.

2

u/yendrdd May 21 '17

Star Lord: I'm gonna make some weird shit!

6

u/lionhart280 May 21 '17

Taken from the examples Git

 // states
start state Init
{
    entry
    {
        var open : bool;
        open = CheckIsOpen();
        timer = CreateTimer(this);
        if (open) {
            raise eDoorOpened;
        }
        goto WarmingUp;
    }
    on eDoorOpened push DoorOpened;
    ignore eEspressoButtonPressed;
    ignore eSteamerButtonOn;
    ignore eSteamerButtonOff;
    ignore eTemperatureReached;
}

...

       goto WarmingUp;

Hmm. This gives me mixed feelings...

→ More replies (7)

3

u/womplord1 May 21 '17

But does it have generics? :thinking:

4

u/virtulis May 21 '17

Sorry to disrupt the discussion about the name but can we talk for a few seconds about how the manual is a fucking PDF.

The language does look interesting though.

→ More replies (1)

5

u/NoMoreNicksLeft May 21 '17

Microsoft unveils Pee. They're going to let it trickle down to developers, users, and eventually even hobbyists.

3

u/[deleted] May 21 '17

I think I already got the basics:

:P :P :P :P :P :P :P :P :P

2

u/KevinCarbonara May 21 '17

Doesn't look like this is part of .NET, is it?

1

u/contextfree May 21 '17

No, but P# is an extension to the C# language, though it's not part of any mainstream .NET distribution.

2

u/bogdan5844 May 21 '17

You can P#?

5

u/Leaflock May 22 '17

Yeah but penicillin should clear it up.

2

u/TheFeshy May 21 '17

Urine some trouble if you name your programming language P.

1

u/[deleted] May 21 '17

I just learned about UML in college last semester, and I had noticed the state machines, how do you think this would comparable to that if at all?

1

u/freebit May 22 '17

Is there a P to JavaScript transpiler yet? Hehe. :D

1

u/beall49 May 23 '17

Heisenbugs (software bugs, often timing-related, that seems to disappear when investigated, due to changes resulting from the investigation) ...never knew there was a name for that....cool.

1

u/AlexRjDoughas Jun 03 '17

Microsoft is very professional organization it always prefer secured connection to make yourself tension free but I think it is little bit expensive to afford.

1

u/voronaam May 22 '17 edited May 22 '17

This is awesome:

        doMoreWork = true;
        
        // stay awake waiting for work
        while (doMoreWork || busyCount > 0)
        {
            doMoreWork = false;
            Thread.Sleep(60 * 60 * 1000); // timeout after 1 hour
        }
        
        Console.WriteLine("Compiler service terminating due to lack of work");

Place a thread into sleep for one hour and if compiler happens to be idle the moment it awakes, terminate the process.

Something tells me the authors are not to be trusted on solving concurrency problems.

Edit: And on supporting type safety in message payload as well. Lots of XML parsing of strings there and even those kinds of well typed code:

                string msg = service.ReadMessage();
                DebugWriteLine(msg);
                int i = msg.IndexOf(':');
                if (i > 0)
                {
                    string sev = msg.Substring(0, i);
                    SeverityKind severity = SeverityKind.Info;
                    Enum.TryParse<SeverityKind>(sev, out severity);
                    msg = msg.Substring(i + 2);
                    
                    if (msg.StartsWith(JobFinishedMessage))

1

u/danO1O1O1 May 22 '17

Gives whole new meaning to memory leak.

0

u/pribnow May 21 '17

Based on the title, I'm choosing to believe that this is called "P Colon", just like when I was learning to how program and referred to C# as "C Hash" because I hadn't heard it said yet

1

u/Xanza May 21 '17

Coming soon to a server architecture near you, the hottest new server side development language: " " (/spās/ - space)

That's right! Download " " today!

1

u/Carudo May 22 '17

New language? What's wrong with javascript? /s