Originally posted by caligula
View Post
Announcement
Collapse
No announcement yet.
Warp: Facebook Open-Sources A Super Fast C/C++ Pre-Processor
Collapse
X
-
Originally posted by caligula View PostFirst time I came across D was an interview conveyed by Jon Harrop. I thought it was funny because the guy was designing a multi-paradigm language with functional elements and didn't know what higher order functions are. I tried D few times a bit later and noticed that it had some hilarious problems with type inference. For example inferring the type for an array like [ [], [1,2,3]]. Having academic background knowledge of concepts such as System F could have been helpful in the task. Now that I read about this pre-processor project, it reminds me of C programming 20 years ago. It's been a long while since I worked with languages without any proper module system. OCaml naturally shines when it comes to modules and Rust is also rather interesting.
I'm not sure Rust trumps D 2.0. I really don't care too much if one beats the other, since both look to be easier to use, easier to secure, easier to read, etc... than C++.
D2.0 has a pretty cool set of features, http://dlang.org/comparison.html
Leave a comment:
-
LLVM did some tests - LLVM's is faster?
Originally posted by curaga View PostI was going to ask when it will be integrated to llvm or gcc preprocessors, then saw it was written in D.
Leave a comment:
-
Originally posted by pholklore View PostHuh. What's with the bashing, and that "if-no-formal-education-he-must-be-clueless" attitude?
He's actually the designer of the D programming language. Funny nobody mentioned that...
I don't really find that surprising that he did work for Facebook, given that Andrei Alexandrescu (the interviewer in the announcement) works at Facebook nowadays, and knowing they are friends. Andrei himself is a big D proponent and guru (in addition to being a C++ guru).
Leave a comment:
-
Originally posted by caligula View PostFB has hired experts from many fields, but the author of the tool is Walter Bright. Walter Bright is a self-taught compiler writer without a formal degree in computer science. Few years ago he did not know what higher order functions are, but he seems to know a thing or two about low level optimizations.
Of course the whole FB language ecosystem is silly. We're expecting a real module system in the coming versions of C++. The include based system is a temporary solution and almost no other language today uses that kind of legacy system. It's terribly inefficient. See these slides http://llvm.org/devmtg/2012-11/Gregor-Modules.pdf
But this tool is consistent with FB's eagerness towards PHP. PHP is probably the worst of the contemporary web programming languages. I'm not saying it won't work, but it was originally designed for small scale personal home pages, thus the name. A lot of work has been required to improve PHP. It still sucks compared to other similar languages with more thought on design, written by people with more formal academic knowledge. Facebook wanted to create a better compiler for PHP. They'd have come up with a much better tool with a better language (in terms of academic language research), but they probably wanted to produce a more reasonable tool for legions of cheap and ignorant mediocre programmers from public colleges and 3rd world countries with a weaker educational system.
Word of advice: Most of us Mechanical Engineers have learned several programming languages. Writing a Compiler is not Rocket Science. No offense, but most of the top dogs in IT have Mechanical, Electrical and Physics degrees. CS was a helluva a lot easier degree than Mechanical Engineering, and about 1/10th as rewarding.
Leave a comment:
-
Who gives a rusty ****?
I've got LLVM/Clang and GCC. I'll pass.
Leave a comment:
-
Originally posted by caligula View PostFB has hired experts from many fields, but the author of the tool is Walter Bright. Walter Bright is a self-taught compiler writer without a formal degree in computer science. Few years ago he did not know what higher order functions are, but he seems to know a thing or two about low level optimizations.
He's actually the designer of the D programming language. Funny nobody mentioned that...
I don't really find that surprising that he did work for Facebook, given that Andrei Alexandrescu (the interviewer in the announcement) works at Facebook nowadays, and knowing they are friends. Andrei himself is a big D proponent and guru (in addition to being a C++ guru).
Leave a comment:
-
Originally posted by Cyborg16 View PostI'm waiting for Rust: memory safe with much more low-level flexibility than D. In the mean-time D is a nice language which never took off, C++ is an ugly but powerful language that's getting more and more complex, and... why did this discussion devolve three ways into Warp, FB is evil, and language X >> lang Y?
Leave a comment:
-
Originally posted by Cyborg16 View PostI'm waiting for Rust: memory safe with much more low-level flexibility than D. In the mean-time D is a nice language which never took off, C++ is an ugly but powerful language that's getting more and more complex, and... why did this discussion devolve three ways into Warp, FB is evil, and language X >> lang Y?
2. Because it's the Phoronix forums. We can't keep on-topic for more than 5 posts (usually less... I've seen the very first comment derail the entire thread *shrug*)
Leave a comment:
-
Originally posted by caligula View PostC++ is constantly improving. Many of D 1.0 features were later implemented in C++. Some features still look a bit different in C++, but it's only about the syntax and the look'n'feel. I'd expect D to have some effect on C++, but eventually C++ will likely win. People want a continuous standard and clear upgrade path. D breaks compatibility in too many ways and it has smaller ecosystem and very few commercial players shoving truckloads of money on it.
Leave a comment:
Leave a comment: