Hacker GitHub

← All repos

llvm-mirror/libcxx

View on GitHub ↗ ★ 718 C++ archived

Project moved to: https://github.com/llvm/llvm-project

15 mentions on Hacker News by 14 people: 0 stories, 15 comments · first 2014-08-31 · latest 2023-08-23

Mentions per year 15 mentions · busiest year 2017 (4)
20082026
  1. My favorite prime number generator is the undocumented __next_prime(): https://github.com/llvm-mirror/libcxx/blob/78d6a7767ed57b501... There is no good reason to use this one except in a code golf environment that includes all headers by…
    comment by omoikane · 2023-08-23 · in My favorite prime number generator
  2. C++'s STL linked list for comparison (libcxx). https://github.com/llvm-mirror/libcxx/blob/master/include/li...
    comment by mastax · 2022-11-04 · in In defense of linked lists
  3. I mean it's not hard to read the source for your platform. On Linux/x86_64/libc++ it's roughly: - https://github.com/llvm-mirror/libcxx/blob/master/include/__... - https://sourceware.org/git/?p=glibc.git;a=blob_plain;f=nptl/... I don't…
  4. …of malloc. If anything it should be less efficient once you factor in constructor calls. libc++: https://github.com/llvm-mirror/libcxx/blob/master/src/new.cp... libstdc++: https://github.com/gcc-mirror/gcc/blob/master/libstdc%2B%2B-...
  5. Here is a basic structure implemented in C++: https://github.com/llvm-mirror/libcxx/blob/master/include/ve... I would not recommend anyone ever look through that as a way to learn C++. Heck just something as basic as a struct that stores…
  6. This is absolutely false. https://github.com/llvm-mirror/libcxx/blob/master/include/ty...
    comment by Kranar · 2019-04-23 · in Modern C++ Won't Save Us
  7. …code for generating test patterns: https://github.com/notriddle/quickersort/blob/master/example... https://github.com/llvm-mirror/libcxx/blob/master/benchmarks... https://github.com/Morwenn/cpp-sort/blob/master/benchmarks/d...
  8. …implements string hashing using MurmurHash2 on 32-bit machines, and CityHash on 64-bit machines: https://github.com/llvm-mirror/libcxx/blob/master/include/__... https://github.com/llvm-mirror/libcxx/blob/master/include/ut... But hashes all…
  9. Where did you get that? The STL implementations I know definitely don't. See https://github.com/llvm-mirror/libcxx/blob/master/include/li... for an example - __list_node_base contains the pointers, __list_node contains the object and…
    comment by haeffin · 2017-11-25 · in Linked List Problems (2002) [pdf]
  10. …[2] https://gcc.gnu.org/onlinedocs/libstdc++/latest-doxygen/a015... [3] https://github.com/llvm-mirror/libcxx/blob/master/include/de...
    comment by MichaelMoser123 · 2017-07-11 · in Exotic Data Structures (2011)
  11. Look through http://en.cppreference.com and the libcxx source code - https://github.com/llvm-mirror/libcxx
    comment by ksherlock · 2017-06-23 · in Ways to Get Better at C++
  12. …look at actual libraries. Tracing through libcxx is a lot of fun. Here's <optional>, for example. https://github.com/llvm-mirror/libcxx/blob/master/include/op...
    comment by Veedrac · 2017-05-26 · in Coroutines are now in Clang trunk, libc++
  13. …a pointer, you can get its length. Here is the implementation of std::begin for arrays in libc++: https://github.com/llvm-mirror/libcxx/blob/60d223df071f6e3d4...
    comment by hendzen · 2016-03-07 · in Ill-Advised C++ Rant, Part 2
  14. …and /dev/urandom where it isn't. [1] http://msdn.microsoft.com/en-us/library/bb982250.aspx [2] https://github.com/llvm-mirror/libcxx/blob/master/src/random... [3] http://msdn.microsoft.com/en-us/library/sxtz2fa8.aspx
    comment by sjolsen · 2014-12-09 · in Random in the wild
  15. …Libc++ doesn't have as descriptive a comment but it's impemented basically the same way here https://github.com/llvm-mirror/libcxx/blob/master/include/de...
    comment by yoklov · 2014-08-31 · in Facebook's std::vector optimization