Hacker News new | past | comments | ask | show | jobs | submit | thelinked's comments login

Answered in the Q&A video that followed the one you linked to. The project will be avoiding OS specific code as much as possible so I can't see a there being a dependency on visual studio. http://youtu.be/I5fNrmQYeuI?t=11m21s


An interesting example of C++ not being able to introduce new keywords is the co-opting of auto in C++11 from a storage class to type deduction.


But they had a decent justification: the auto keyword literally did nothing in C++. The only place it was valid, it was also the default.


IIRC they audited a bunch of projects to see if anyone was using auto somewhere besides test code explicitly for the auto-keyword, and found nothing.


Indeed it was. Here's the unofficial spec in case anyone is interested. http://www.gamers.org/dhs/helpdocs/dmsp1666.html



pjungwir's example code is actually really close to what you'd see in F#. In F# you'd typically write it in a more functional way with say a recursive inner function but I'll leave it imperative for clarity's sake:

    [<Measure>] type s
    [<Measure>] type m
    [<Measure>] type km  

    let mtokm (x:float<m>) = x * 1.<km>/1000.<m>
   
    //the types of g and ground are inferred
    let drop g ground (x0:float<m>) =
         let mutable x = x0  //type inferred here
         let mutable t = 0.0<s>
         let mutable v = 0.0<m/s> 
         let dt = 0.01<s>

         while x >= ground  do
            v <- v + g*dt
            x <- x + v*dt
            t <- t + dt 
         t  

   > drop -10.0<m/s^2> 0.<m> 50.<m>  
   val it : float<s> = 3.16


I've got to confess that I love how the design of MS languages regularly exposes my ignorance towards them.

Edit: removed unrelated Wikipedia article (Unit Type)


Unit type is completely different concept in the functional languages. It does not track units and measures.


Oh my, thanks for the heads-up I guess it's too late to post on HN. Time to go to bed :)


A version with improved audio and corrected aspect ratio can be found here. https://www.youtube.com/watch?v=EaN4wUii0T0


"you" was the formal form of "thou". In Ireland we use "ye" as the plural of you.


It's still going. http://www.twitch.tv/notch


"--" are comments in Lua, also, sorry for being pedantic but its Lua not LUA. Its Portuguese for moon.


While VS 2013 has much better C++11 support it's not close to full compliance. The Visual C++ team have decided to work on C++11/C++14 together which is slowing C++11 a bit. Here's a blog post laying out their plans. http://blogs.msdn.com/b/somasegar/archive/2013/06/28/cpp-con...

There's also a quite detailed talk by Herb Sutter on channel 9 as well. http://channel9.msdn.com/Events/Build/2013/2-306


Found it! It was an April fools joke for 2009. https://en.wikipedia.org/wiki/Wikipedia:Terminal_Event_Manag...


Oh really? Thats a shame, because it actually seems like a pretty good idea....


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: