C++20 镶 SQL
C++20 ❤ SQL John R Bandela, MDOverview u SQL u C++ Example u Implementation techniques u fixed_string u meta_struct u Parsing compile time strings into meta_structsOverview v SQL v C++ Example {price_from_user};Avoiding SQL Injection Attacks SELECT orders.id, name, item, price, discount_code FROM orders JOIN customers ON customers.id = customerid WHERE price > ?;SQL Library Options u Traditional Lots of information available u Vulnerable to sql injection of developer not careful u Use dynamic typingDomain Specific Language u Use types to encode SQL u Looks more like regular C++ u Typically requires0 码力 | 46 页 | 775.02 KB | 5 月前3From Your First Line of Code to Your Largest Repo: How Visual Studio Code Can Help You Develop More Efficiently in C++
on CppCon Discord https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any questions • Discuss the latest announcements Take our survey: https://aka.ms/cppcon/vscodeMicrosoft C++ 1 Check out the recording of: “What’s New in Visual Studio” – David Li & Mryam Girmay Download at aka.ms/vscodeMicrosoft C++ What extensions do you need as a C++ Developer? Recommended Extensions for C++: open-source libraries of any C++ package manager - Bring your own libraries or use these! Learn more at aka.ms/vcpkgMicrosoft C++ GitHub Codespaces Compilers, debuggers & extensions are already installed and0 码力 | 31 页 | 2.76 MB | 5 月前3Delivering safe C++
conversion. • Timing errors: for example, delivering a result in 1.2ms to a device supposedly responding to an external event in 1ms. • Allocation unpredictability: for example, ban on free store allocation break-ins • Spies (insider attacks) • Spear phishing • Door rattling • Denial of service attacks • SQL injection • Corrupted input/Data • Rule of thumb: always first attack the weakest link Stroustrup conversion. • Timing errors: for example, delivering a result in 1.2ms to a device supposedly responding to an external event in 1ms. • Allocation unpredictability: for example, ban on free store allocation0 码力 | 74 页 | 2.72 MB | 5 月前3《深入浅出MFC》2/e
iii Asing Changms4.hinet.net> 今天抱着「无论如何一定要」的心情, 把Dissecting MFC 拿出来开封。序还看没完就被深 深地感动。这是一本太好的书,我想,我们是一群幸运的读者。虽然我们没有Petzold 或 Pietrek, 但是我们一样能拥有最好的阅读水准。 Jaguar ms7.hinet.net> 有个问题想问您,为何在台湾要做基础的事(R market. I won't think of to get a Chinese computer book unless you wrote it or translated it. shiowli@ms13.hinet.net 1997/11 月我看见了深入浅出MFC。仔细研读后我知道这是我在MFC 及Windows 程序 设计领域中的大卫之星。您的书一直都是我的良师,不但奠定了我的根基,也使我对Windows I am also a reader of you books. Your Book give me a lot of help on my research. viii 北投z22356@ms13.hinet.net 选到这本书之前,我还在书架前犹豫:「又是一本厚厚大大却一堆废话的烂书,到底有没有 比较能让我了解的书呀?」但是读了您的深入浅出MFC 之后,把我80% 的疑虑通通消 除掉了。想永远做您的读者的读者敬上。 0 码力 | 1009 页 | 11.08 MB | 1 年前3Single Producer Single Consumer Lock-free FIFO From the Ground Up
FifoTest/0.properties (0 ms) [ RUN ] FifoTest/0.initialConditions [ OK ] FifoTest/0.initialConditions (0 ms) [ RUN ] FifoTest/0.push [ OK ] FifoTest/0.push (0 ms) [ RUN ] FifoTest/0 OK ] FifoTest/0.pop (0 ms) [ RUN ] FifoTest/0.popFullFifo [ OK ] FifoTest/0.popFullFifo (0 ms) [ RUN ] FifoTest/0.popEmpty [ OK ] FifoTest/0.popEmpty (0 ms) [----------] 6 tests from from FifoTest/0 (0 ms total) [----------] Global test environment tear-down [==========] 6 tests from 1 test suite ran. (0 ms total) [ PASSED ] 6 tests.16 cfrasch@Charles-PC:~/cppcon2023/build/debug$0 码力 | 51 页 | 546.30 KB | 5 月前3A (Short) Tour of C++ Modules
is {}", 42); */ } 1 2 3 4 5 6 7 8 9 10 Baseline, no #include or import: compile time 31 ms all configurations taken on an AMD Ryzen 9 5900X, compiled with msvc 16.11.3, release mode 33 header-only: compile time 944 ms (baseline + 913 ms), 6896 non-blank {fmt} code lines, 59'430 lines after preprocessing static library: compile time 562 ms (baseline + 531 ms), 4685 non-blank {fmt} 10 Two configurations header-only: compile time 511 ms (baseline + 480 ms) static library: compile time 304 ms (baseline + 273 ms) Total std lib BMI size 41 MB (461 MB if std lib user-compiled0 码力 | 62 页 | 4.20 MB | 5 月前3whats new in visual studio
@TartanLlama C++ Product Team, Microsoft @VisualC https://aka.ms/cpp Welcome to CppCon 2021! Join #visual_studio channel on CppCon Discord https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any any questions • Discuss the latest announcements Take our survey https://aka.ms/cppcon 🚀 Mission of the C++ product team at Microsoft Empower every C++ developer and their teams to achieve more 1. CMake, vcpkg and git integrations SSH/container/WSL remote experiences and much much more… https://aka.ms/cpp/code Thu 10/28 – 2pm An Editor Can Do That? Debugging Assembly Language and GPU Kernels in Visual0 码力 | 42 页 | 19.02 MB | 5 月前3What's New in Visual Studio 2022
https://aka.ms/cppcon/discord • Meet the Microsoft C++ team • Ask any questions • Discuss the latest announcements Take our survey Win prizes https://aka.ms/cppcon/vs🚀 vcpkg and git integrations SSH/container/WSL remote experiences and much, much more… https://aka.ms/cpp/code Thu 10/05 – 3:15pm How Visual Studio Code Can Help You Develop More Efficiently in C++ Alexandra C++20 features are supported except for support for module import under /clr. Visit https://aka.ms/cpp20-cppcli for more details AnnouncingIn Visual Studio 2022 version 17.8 Preview 2, C11 Threads0 码力 | 55 页 | 3.27 MB | 5 月前3A New Decade of Visual Studio: C++20, Open STL and More
@TartanLlama C++ Product Team, Microsoft @VisualC https://aka.ms/cppWelcome to CppCon 2020! Visit our table at the Expo Hall https://aka.ms/cppcon/expo • Meet the Microsoft C++ team • Ask any questions questions • Discuss the latest announcements Take our survey https://aka.ms/cppcon Chance to win 1 of 5 copies of Microsoft Flight Simulator🚀 Mission of the C++ product team at Microsoft Make the lives debugging, code browsing CMake, vcpkg and git integrations Remote experiences and more… https://aka.ms/cpp/code Mon 9/14 12:00 – 13:00 Collaborative C++ Development with Visual Studio Code Julia Reid –0 码力 | 37 页 | 2.67 MB | 5 月前3Taming the C++ Filter View
[] (auto& s) { return !s.ends_with("ms"); }; auto vEven = coll | std::views::drop(1)| std::views::filter(noSuffix); add(vEven, "ms"); print(coll); add(vEven, "ms"); print(coll); Passing Views Output: Output: values: 10 8 5 15 0 values: 10ms 8ms 5ms 15ms 0ms values: 10msms 8ms 5ms 15ms 0ms Undefined behavior and fails C++20 ©2024 by josuttis.com 72 C++ void add(auto& rg, const auto& pipe, const (auto& s) { return !s.ends_with("ms"); }; auto pEven = std::views::drop(1) | std::views::filter(noSuffix); add(coll, pEven, "ms"); print(coll); add(coll, pEven, "ms"); print(coll); Passing Views0 码力 | 43 页 | 2.77 MB | 5 月前3
共 137 条
- 1
- 2
- 3
- 4
- 5
- 6
- 14