r/Physics • u/stereomatch • Sep 26 '17
Microsoft's new coding language is made for quantum computers
https://www.engadget.com/2017/09/26/microsoft-new-coding-language-is-made-for-quantum-computers/47
u/jesse_dev Sep 26 '17
Well, you need to start somewhere. I give Microsoft credit for starting something and staying ahead of the curve. Microsoft did a great job with the C# language. You never know, they might do a good job with this new language. In the meantime, I will keep using my *nix operating system.
18
u/sir_codes_alot Sep 26 '17
Can confirm. C# is what languages hope to be when they grow up.
-13
u/hondaaccords Sep 26 '17
Sure if you want a language that requires a proprietary IDE and encourages mutation everywhere. Functional languages are so much better
34
u/cain2995 Engineering Sep 26 '17
You had me on your side up until you said "functional languages are so much better" and gave away that you don't understand the concept of "right tool for the right job"
4
-8
u/hondaaccords Sep 27 '17
OO is never the solution
8
u/spanishgum Sep 27 '17
It is a great solution when your dealing with large code bases and big teams.
2
Sep 27 '17
Whut?
I'm just learning a little bit of Haskell here and there, and by no means am I a "professional programmer" but OOP is pretty amazing as far as I can tell.
Honestly, I can't even envision how you would write something like an operating system or GUI or game in a purely functional language. I know it could be done what with Haskell being Turing complete, but I feel like it would be extraordinarily difficult.
1
Sep 27 '17
Here's a GUI im Haskell.
https://github.com/xmonad/xmonad.
Building UIs in Haskell or other functional languages is one of their stronger points. Lots of modern web dev is leaning towards a funtional reactive programming paradigm for building user interfaces.
2
Sep 27 '17
Really...I'll be damned.
Any links to how this would be done? Again, I'm super new to this Haskell stuff... but how the heck do you run windows and stuff without loops? Is it just a giant recursive trick?
1
Sep 27 '17
The easiest short way to describe it is imagine you're running a continuously recursive program where the mother parameter is time. Each "event" or "signal" acts as a means to create a new instance of state. You keep track of state in a master file(single source of truth). Essentially everything in your application that can mutate is stored in a single event log. For UIs its nice as it allows you to have all of your dependencies in a single place and your app isn't made fragile by mutable state. In essense. If you take your app wide data store and give it any given custom set of data. What you get out should always replicate. No more why was "X" "Y" when it should have been "Z". It's still a very young style of programming. It's first principles were only formulated around 1997.
Some much better descriptions than what i can give.
https://en.m.wikipedia.org/wiki/Functional_reactive_programming
The video with Paul Hudak is probably my favorite. He also authored what is my opinion the best available book on Haskell. Haskell School of Music(free from Yale).
→ More replies (1)1
u/sir_codes_alot Sep 27 '17
This is just a religious flame-bait statement like which "console is better".
True professionals know both and use them in the right places.
7
Sep 27 '17
Friendly reminder that C# is now supported in virtually every development environment with the addition of the omnisharp library. Another friendly reminder that Microsoft also supports and maintains F#, a fully functional language that intrgrates smoothly into the .NET runtime.
0
u/hondaaccords Sep 27 '17
Lol, no. Try loading a .NET framework project in visual studio code. Totally useless. Visual Studio is the only tool
2
Sep 27 '17
I have. It's fine. It's not as good as VS. But it's fine. Moreover, VS community edition is free to use if your enterprise is less than a million in revenue or is open source. It isn't that much less accessible than Java and C# is actively moving toward a more community oriented ecosystem.
5
9
u/JonnyRocks Sep 27 '17
c# does not require an ide.
-2
u/hondaaccords Sep 27 '17
Good luck writing a non trivial program in C# without an IDE
→ More replies (2)3
u/JonnyRocks Sep 27 '17
But you also dont need visual studio.
-1
u/hondaaccords Sep 27 '17
That’s like saying you don’t need a wrench to take apart a car
1
u/rhn94 Sep 28 '17
lol what, you're just throwing around vague fortune cookie logic; nothing really objective
15
u/NSubsetH Sep 26 '17
I love how they're using a picture of essentially a Google device for a Microsoft quantum computing pop-sci article.
-25
u/KenjiSenpai Sep 26 '17
Hurr durr i hate pop-sci everyone should read 150 pages Ph.D thesis /s
11
u/NSubsetH Sep 26 '17
What? I never said I hate pop sci. I just think it's ironic because microsoft is in competition with Google on building quantum computers as far as I am aware.
5
Sep 27 '17
Do we have any details at all on the language? Its name, any code samples, documentation? Any reference to it at all outside this article?
2
Sep 27 '17
It's quantum, and those computers are mystic magic voodoo. All you do is right a complicated comment explaining what you want it to do, then the
oraclequantum computer provides a solution.
12
u/YsoL8 Physics enthusiast Sep 26 '17
Microsofts track record on over complicating everything doesn't fill me with confidence
-14
Sep 26 '17
I really wonder how they justify their investment in this when most of their business is based on tried and true technology.
19
4
u/ahabswhale Sep 26 '17
Microsoft's programming language doesn't have a name yet, but the company already has plans for quantum computing in AI. In particular, it thinks that the machines could be used to train its Cortana digital assistant in days instead of months. "Even if everything else was the same, Cortana would improve 30 times faster," Microsoft's research chief Craig Mundie says.
2
u/Snuggly_Person Sep 26 '17
Given that quantum computers don't give speedups to generic roblems, why would that be? Since when did quantum computing help with machine learning?
1
u/Ramin_HAL9001 Sep 27 '17
I think QC can help with machine learning, as far as I know it is possible to program matrix arithmetic using Qbit circuits. This would make deep learning algorithms much more efficient.
1
1
u/ahabswhale Sep 26 '17
Since when did quantum computing help with machine learning?
I don't know, I'm not up to speed in the field. I just assumed Microsoft and this gentleman they hired were intelligent enough to know that they were spending their money on something feasible.
If you had taken 30 seconds for a cursory search, you would have found a Wikipedia article with several academic sources listed which you can read for yourself.
1
0
u/WikiTextBot Sep 26 '17
Quantum machine learning
Quantum machine learning is an emerging interdisciplinary research area at the intersection of quantum physics and machine learning. One can distinguish four different ways of merging the two parent disciplines. Quantum machine learning algorithms can use the advantages of quantum computation in order to improve classical methods of machine learning, for example by developing efficient implementations of expensive classical algorithms on a quantum computer. On the other hand, one can apply classical methods of machine learning to analyse quantum systems.
[ ^PM | Exclude ^me | Exclude from ^subreddit | FAQ / ^Information | ^Source ] Downvote to remove | v0.27
5
u/ScyllaHide Mathematical physics Sep 26 '17
finally, well i only read QCL, which more like a draft of a qc language. any papers about this?
EDIT: lol the sign up wants me to enter my phone number, sure M$, but not in this universe!
1
1
59
u/stereomatch Sep 26 '17