Live data from Hacker News

Clang with Microsoft CodeGen in VS 2015 Update 1

blogs.msdn.com

21–30 of 39 posts

Re: Clang with Microsoft CodeGen in VS 2015 Update 1

#21
post #12

Cool. Now can we have Swift with Microsoft codegen?

why would you want to use swift? just curious. you don't need a reason... but i've not seen much good about the language, just a bunch of apple hype and hand forcing. just like obj-c which the mainstream community realised the flaws of 30 years ago when it was new... and now we have to live with as a necessary evil for the same class of 'reasons'. XD

Microsoft is trying to get iOS developers to port their apps to Windows Phone.

You can not make an iOS app with VS's Objective-c , and most likely it will be the same way when they add Swift support to VS.

Re: Clang with Microsoft CodeGen in VS 2015 Update 1

#22
post #12

Cool. Now can we have Swift with Microsoft codegen?

why would you want to use swift? just curious. you don't need a reason... but i've not seen much good about the language, just a bunch of apple hype and hand forcing. just like obj-c which the mainstream community realised the flaws of 30 years ago when it was new... and now we have to live with as a necessary evil for the same class of 'reasons'. XD

Because it's actually a well designed language that's productive and modern?

In my opinion the only thing missing is better reflection (will get better), concurrency a la Go (they're considering), and async/await. There are a couple unfinished bits but the compiler tells you "X feature not implemented YET"

What's wrong with it?

Re: Clang with Microsoft CodeGen in VS 2015 Update 1

#23
post #7

Earlier quoted context omitted.

>Microsoft is actually starting to act like one of the good guys. Morality doesn't need to come into it - they have real incentives to push changes back to master even without restrictive licenses.

I can't find the link (though I'm sure it was on HN at the time...), but there was a talk by the Sony PS4 compiler people that touched on this a while ago. They ended up open sourcing as much PS4 stuff as they could, not because they wanted to as such, but because it was taking them too much time to do the merge each time they updated their copy.

http://llvm.org/devmtg/2013-11/slides/Robinson-PS4Toolchain....

It's the "Working with the LLVM Community" section.

Re: Clang with Microsoft CodeGen in VS 2015 Update 1

#24
post #14
post #4

Cool. This might have come in handy about 6 years ago for a C++ OpenGL cross-platform project. (I haven't done a C/C++ project in a long time though ...)

why? i seem to have managed many such projects without such tools before and after 6 years ago... i'm not sure what benefit they would realistically have.

You managed C++ projects without a C++ compiler before? How in the world did you do that?

Re: Clang with Microsoft CodeGen in VS 2015 Update 1

#25

Would custom clang plugins work?

Wowza, that would be cool! IIRC Apple's clang doesn't support plugins but that can be worked around (with some/much difficulty) using clang -emit-llvm, custom opt w/ your pass, and llc to lower to assembly/object file. Of course, versioning in this kind of scenario is "fun".

Re: Clang with Microsoft CodeGen in VS 2015 Update 1

#26
post #12

Earlier quoted context omitted.

why would you want to use swift? just curious. you don't need a reason... but i've not seen much good about the language, just a bunch of apple hype and hand forcing. just like obj-c which the mainstream community realised the flaws of 30 years ago when it was new... and now we have to live with as a necessary evil for the same class of 'reasons'. XD

Pattern matching and structural types! In terms of modernity, I think Swift is between C# and F#. However, Swift is far more mainstream than F#.

I can't find the tweet, but someone said something like "what do I think of swift? Seeing all of iOS using a language which has features normally reserved for functional languages is wonderful."

Re: Clang with Microsoft CodeGen in VS 2015 Update 1

#28

Earlier quoted context omitted.

If you look on Github (even Apache), there are Microsoft employees making contributions to open source projects under their own accounts or as part of the organization. Steps under Satya have made engagement with open source across the company generally much better, not just in field/evangelism roles. This is in addition to works like this and open sourcing of things like the CLR, etc.

Yeah, but you will notice none of those are GPL projects - and my point is OSS works as a business/support/development model even outside of "monetize on support model and force a level playing field with copyleft" (eg. RedHat) - for a large number of cases it makes sense/the incentives are right even with liberal licensing.

That is why there are multiple licenses. Companies/individuals contribute under what works for their job/role/interest.

Go back an look at history, many companies are evolving towards being more open.

Re: Clang with Microsoft CodeGen in VS 2015 Update 1

#30
post #12

Earlier quoted context omitted.

why would you want to use swift? just curious. you don't need a reason... but i've not seen much good about the language, just a bunch of apple hype and hand forcing. just like obj-c which the mainstream community realised the flaws of 30 years ago when it was new... and now we have to live with as a necessary evil for the same class of 'reasons'. XD

Pattern matching and structural types! In terms of modernity, I think Swift is between C# and F#. However, Swift is far more mainstream than F#.

These are the 2 features I can't wait for in C# 7. Pattern matching and structural typing along with discriminated unions are pretty awesome. Like, I want the current C# type system, but with those things with it to forget about a bunch of boilerplate and odd problems that can pop up otherwise.
Post reply on HN