6 ms·
His entire rant about resource management is misplaced. It's not that new/delete/pointers are "bad" or retained only for backwards compatibility, they are primi
by detrino 13y ago
His entire rant about resource management is misplaced. It's not that new/delete/pointers are "bad" or retained only for backwards compatibility, they are primitives from which other abstractions are built. I don't think its too much to ask professionals understand simple concepts such as RAII, which renders his entire example trivial.
- phren0logy 13y agoThere was a time when I put more emphasis on what people should be able to do vs what they actually do. That time in my life has passed.
- BartoszMilewski 13y agoI wouldn't have mentioned resource management at all if it weren't for Bjarne's keynote: http://channel9.msdn.com/Events/GoingNative/2013/Opening-Keynote-Bjarne-Stroustrup http://channel9.msdn.com/Events/GoingNative/2013/Opening-Key... . Apparently this is still not common knowledge.
- detrino 13y agoThis is the first thing that he says during his keynote: "So, in the next couple of days you're going to hear a lot about the latest and greatest in C++, You're going to hear a lot about advanced techniques and new features. And I decided that in the keynote I couldn't go too much into that, so I'm going to do the opposite. I'm going to try and focus on what is the essence of C++. What is it that has been constant over the decades and what it is that that keeps C++ alive and kicking." It was clearly framed as a history lesson about C++'s strengths, so I think it is a bit disingenuous to claim he was teaching resource management to a crowd of advanced C++ programmers.
- CCs 13y agoBartosz, Haskell was created 23 years ago, before Java. What is the reason it did not catch on yet? Will that change? I'm not aware of any even mildly successful system that uses pure functional languages. Most of the implementations I know about is either C/C++/ObjC or JVM. Some Python (Youtube, Dropbox), one .NET (StackOverflow) and pretty much that's it. What do I miss? [Edit] I'm looking for production code, not "in-house" or "internal tools". I did read trough http://www.haskell.org/haskellwiki/Haskell_in_industry http://www.haskell.org/haskellwiki/Haskell_in_industry
- steamboiler 13y agoFWIW Twitter and Coursera make heavy use of Scala (Twitter also uses Clojure, if you consider Storm etc.)
- CCs 13y agoScala is running on top of JVM (right now). It is used in production by Twitter, Netflix, Foursquare, LinkedIn, Simple, HealthExpense, Klout, 47 Degrees, Box and a long list of other companies [1]. [1] http://www.quora.com/Startups/What-startups-or-tech-companies-are-using-Scala http://www.quora.com/Startups/What-startups-or-tech-companie...
- BartoszMilewski 13y agoWhen Herb wrote his free lunch article, I was still a strong C++ believer and I thought C++ could solve the multicore problem. I considered Haskell a toy language. Then I saw how quickly Haskell moved into the multicore arena with STM, Repa, Accelerate, and how C++ kept stumbling in the dark. After the C++11 fiasco I realized that C++ was a blind alley. Multicore revolution did to C++ what the Chicxulub asteroid did to dinosaurs.
- chokolad 13y agoGiven that Bartosz wrote this http://relisoft.com/resource/resource.html http://relisoft.com/resource/resource.html somewhere around 1995 (and it is still relevant) I suspect Bartosz is well aware about RAII.
- detrino 13y agoI never claimed otherwise.