facebookarchive/warp
View on GitHub ↗ ★ 529 D archived
A fast preprocessor for C and C++
16 mentions on Hacker News by 10 people: 0 stories, 16 comments · first 2014-05-26 · latest 2021-05-10
20082026
-
…backward compatibility and a lot of projects just die because of it, for example the mentioned https://github.com/facebookarchive/warp : ==== make dmd -c -O -inline -release -ofwarp.o cmdline.d constexpr.d context.d directive.d expanded.d…
comment by mingodad · 2021-05-10 · in Adding ANSI C11 C compiler to D so it can import and compile C files directly -
…: - Writing a C preprocessor is a nightmare. Fortunately, I already did that https://github.com/facebookarchive/warp and we can use it if we choose. - The D code will be able to inline C code, and even CTFE it. - There are a lot of wac
comment by crazypython · 2021-05-10 · in Adding ANSI C11 C compiler to D so it can import and compile C files directly -
Here's the source code: https://github.com/facebookarchive/warp and the one for the C compiler I wrote long ago: https://github.com/DigitalMars/Compiler/blob/master/dm/src/d... which is integrated with the C lexer for speed reasons.
comment by WalterBright · 2019-09-05 · in I wrote a self-hosting C compiler in 40 days (2015) -
…but it's the same algorithm and data structure. With D, when I developed the Warp preprocessor, https://github.com/facebookarchive/warp I continually tried different algorithms & data structures to see which was faster. One reason it's…
comment by WalterBright · 2018-12-05 · in Using D to Create the World’s Fastest File System -
…be much easier to maintain in D, and not much work to convert it to DasBetterC. Yes, it was Warp: https://github.com/facebookarchive/warp https://code.facebook.com/posts/476987592402291/under-the-ho... You're welcome! It's reactions like…
comment by WalterBright · 2018-05-23 · in DigitalMars C/C++ Compiler -
…to the last drop C preprocessor, prepare to spend 6 months on that, minimum. Or just use Warp: https://github.com/facebookarchive/warp and then you can have fun just working on the compiler bit.
comment by WalterBright · 2017-10-15 · in SmallerC – Small, Simple, Self-Compiling, Single Pass C Compiler -
…carefully manage memory for the release or the hot spots. (The Warp preprocessor I wrote did that. https://github.com/facebookarchive/warp ) There's a lot less time hammering square pegs into round holes. I've seen more than enough…
comment by WalterBright · 2017-04-07 · in The reference D compiler is now open source -
They wrote a C/C++ preprocessor in D, but this now appears to be abandoned. https://github.com/facebookarchive/warp
comment by gbrown_ · 2017-03-20 · in The D Garbage Collector -
…anymore. Not sure if it is being used at all. Will there be any D projects in Facebook? [0] https://github.com/facebookarchive/warp
comment by arunc · 2016-10-19 · in Mercurial 4.0 Sprint Notes -
…humble, personal attacks are a common thing in the forum. The forum gives some hints [2], [3] [1] https://github.com/facebookarchive/warp [2] http://forum.dlang.org/post/vlosobeqnvfrfuriedpv@forum.dlang... [3]…
comment by arunc · 2016-08-05 · in Running a D game in the browser -
Facebook does [1][2][3]. [1]: http://www.drdobbs.com/mobile/facebook-adopts-d-language/240... [2]: https://github.com/facebook/warp [3]: https://github.com/facebook/flint
comment by zamalek · 2015-10-22 · in Fastest JSON parser in the world is a D project? -
…enough and requires few updates, I don't know as zapcc uses the clang Preprocessor and not warp. https://github.com/facebook/warp/commits/master
comment by yrnkrn · 2015-05-24 · in Zapcc: A faster C++ compiler -
…the need for speed, regardless of the memory allocate strategy used. For some very fast D code: https://github.com/facebook/warp Minimizing the amount of heap memory allocated is a core strategy.
comment by WalterBright · 2015-04-27 · in How does D improve on C++17? -
Facebook uses Warp[1] as a fast replacement for the c/c++ preprocessor. [1] https://github.com/facebook/warp
comment by edmccard · 2015-04-27 · in How does D improve on C++17? -
…of Facebook? You need a lot of good hacks to deal with large bulks of data. For example: https://github.com/facebook/warp I heard Goooogle developed Go partially because they were fed up with the time taken up compiling massive C programs.
comment by NAFV_P · 2014-08-11 · in Compile like it's 1992 -
…Here's one of the projects written for Facebook by Walter Bright: https://github.com/facebook/warp
comment by simendsjo · 2014-05-26 · in Asynchronous I/O that doesn’t get in your way, written in D