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
20082026
-
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 -
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 -
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…
comment by benreesman · 2022-08-21 · in C++ Concurrency Model on x86 for Dummies (2020) -
…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-...
comment by maximilianburke · 2022-02-23 · in “Sustainability with Rust” post misleading about Go -
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…
comment by Kranar · 2021-10-25 · in To learn a new language, read its standard library -
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 -
…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...
comment by bradleyjg · 2018-07-01 · in Timsort is a sorting algorithm that is efficient for real-world data -
…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…
comment by twic · 2018-06-17 · in Fibonacci Hashing: The Optimization That the World Forgot -
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] -
…[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) -
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++ -
…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++ -
…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 -
…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 -
…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