Remove c

MongoDB SSL with self-signed certificates in C#

Scalegrid

In this blog post, we show you two methods to securely connect to a MongoDB server configured with self-signed certificates for SSL, using the official C# MongoDB driver. How to Connect MongoDB SSL to your C# Application Click To Tweet.

C++ 131

The Pitfalls in C++ Unit Testing

DZone

Recently there has been a surge of interest in C++ unit testing. C++ unit testing has not been common in C++ development in the past. Although C++ is a kind of programming language that fits well with unit testing, several complexities require extra care. performance c++ unit testing legacy code c++ pitfallsIn this article, I’ll discuss the most common pitfalls.

C++ 130

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Selenium C# Tutorial: Handling Multiple Browser Windows

DZone

performance c# csharp selenium automation selenium automated testing automation testing tutorialA common scenario in a website (or web application) is opening up a new browser (or tab) on the click of a button. With these multiple browsers, windows can be automated using Selenium test automation. Once the Selenium WebDriver instance is instantiated, a unique alphanumeric id is assigned to the window. This is called window handle and is used to identify browser windows.

C++ 117

Overview of C# Async Programming With Thread Pools and Task Parallel Library

DZone

So, this circumstance led me to write this blog-post to go through the underlying foundations and features of threads and thread pools: threads threads coordination async await threadpool c# 7I recently found myself explaining the concept of thread and thread pools to my team.

C++ 141

f() vs f(void) in C vs C++

Nick Desaulniers

Prefer f(void) in C to potentially save a 1B instruction per function call when targeting x86_64 as a micro-optimization. Doesn’t matter for C++. While messing around with some C code in godbolt Compiler Explorer , I kept noticing a particular funny case. For example, the following C code: 1. eax being x86_64’s return register for the C ABI should be treated as call clobbered. Unfortunately, in C the answer is no, and C and C++ differ here.

C++ 87

A Faster, Lightweight Trigger Function in C for PostgreSQL

DZone

We have been writing blog posts about how to write simple extensions in C language and a little more complex one by Ibrar which were well received by PostgreSQL user community. We were discussing how simple/lightweight and faster a trigger function is when written in C. performance c postgressqlThen we observed that many PostgreSQL users create simple triggers for small auditing requirements, and then feel the pain of trigger on transactions.

C++ 100

Additional C/C++ Tooling

Nick Desaulniers

21st Century C by Ben Klemens. There are a few other useful tools that came to mind that I’ve used when working with C and C++ codebases. C & C++ codebases; running these tools on the code or adding them to the codebases. From my experience working with Emscripten , we recommend the use of CMake for people writing portable C/C++ programs. I think C++ needs a package manager badly , and I think CMake would be a solid foundation for one.

C++ 63

C++ Libraries: Casablanca

Sutter's Mill

At GoingNative in February , I emphasized the need for more modern and portable C++ libraries, including for things like RESTful web/cloud services, HTTP, JSON, and more. The goal is to find or develop modern C++ libraries that leverage C++11 features, and then submit the best for standardization. and Erlang users also to C++ developers on our local and cloud platforms, including modern C++ libraries for REST, HTTP, and JSON.

C++ 56

My C++ and Beyond Intro: C++ Renaissance

Sutter's Mill

Channel 9 has just posted a recording of my intro talk at C++ and Beyond 2011 last month in Banff. Here’s the link: C++ and Beyond 2011: Why C++. The goal is to share a perspective and rationale for why of late there’s such a resurgence of interest in C++ — both across the industry, and within Microsoft. NET C++ Java Microsoft Software Development

C++ 40

Facebook Folly – OSS C++ Libraries

Sutter's Mill

I’ve been beating the drum this year (see the last section of the talk) that the biggest problem facing C++ today is the lack of a large set of de jure and de facto standard libraries. My team at Microsoft just recently announced Casablanca , a cloud-oriented C++ library and that we intend to open source, and we’re making other even bigger efforts that I hope will bear fruit and I’ll be able to share soon. C++ Cloud Concurrency Software Development

C++ 56

This spring: High-Performance and Low-Latency C++ (Stockholm) and ACCU (Bristol)

Sutter's Mill

I don’t get to Europe very often apart from ISO C++ standards meetings, but this spring I’ve been able to accept invitations for two English-language European events in the last week of April. Tue-Thu Apr 25-27: High-Performance and Low-Latency C++ (Stockholm). On April 25-27, I’ll be in Stockholm (Kista) giving a three-day seminar on “High-Performance and Low-Latency C++.” Will C++ continue growing forever? Can C++ code be simplified?

Talk now online: The Future of C++ (VC++, ISO C++)

Sutter's Mill

Yesterday, many thousands of you were in the room or live online for my talk on The Future of C++. This has been a phenomenal year for C++, since C++11’s publication just 12 months ago. And yesterday was a great day for C++. minor) C++ at Microsoft. On September 12, we shipped VC++ 2012 with the complete C++11 standard library, and adding support for C++11 range- for , enum class , override and final. major) C++ across the industry.

C++ 40

Cross Compiling C/C++ for Android

Nick Desaulniers

Let’s say you want to build a hello world command line application in C or C++ and run it on your Android phone. How would you go about it? It’s not super practical; apps visible and distributable to end users must use the framework (AFAIK), but for folks looking to get into developing on ARM it’s likely they have an ARM device in their pocket.

C++ 41

C++ and Beyond 2011

Sutter's Mill

I’m very much looking forward to C++ and Beyond 2011 this August, again with Scott Meyers and Andrei Alexandrescu. This year’s program will be heavily oriented toward performance (first) and C++0x (second). There are two talks announced so far: Andrei will be giving an in-depth talk on “BIG: C++ Strategies, Data Structures, and Algorithms Aimed at Scalability.” I’ll be giving a brand-new talk on “C++ and the GPU… and Beyond.”

C++ 40

CheriABI: enforcing valid pointer provenance and minimizing pointer privilege in the POSIX C run-time environment

The Morning Paper

CheriABI: enforcing valid pointer provenance and minimizing pointer privilege in the POSIX C run-time environment Davis et al., The basic question here is whether it is practical to support a large-scale C-language software stack with strong pointer-based protection… with only modest changes to existing C code-bases and with reasonable performance cost. And this all has to work for whole-system executions, not just the C-language portion of user processes.

C++ 64

Your First C Program

Sutter's Mill

As a tribute in honor of Dennis Ritchie’s passing , I’d like to invite you to share your thoughts in this post’s comments about your first C program – either the code if you remember it approximately, or a story about when you wrote it. I wrote my first C program in 1988 as a lab assignment for a fourth-year course in computer graphics at the University of Waterloo. Here’s the thing: I had never used C. C++ Software Development

C++ 40

Garbage Collection Synopsis, and C++

Sutter's Mill

When it is going to land in the C++ world? GC and C++. C++ has always supported #1 well via reference counted smart pointers. Those are now standard in C++11 in the form of unique_ptr, shared_ptr, weak_ptr. C++98 had auto_ptr, but it was never great and has been deprecated. C++ has long supported #2, but less formally because the products were nonstandard, conservative, and not as portable. NET C++ Software Development

C++ 40

Finding compiler bugs with C-Reduce

Nick Desaulniers

Support for a long awaited GNU C extension, asm goto , is in the midst of landing in Clang and LLVM. In this post, we’ll take a look at using C-Reduce , a multithreaded code bisection utility for C/C++, to help narrow done a reproducer for a real compiler bug. It’s mostly a post to myself in the future, so that I can remind myself how to run C-reduce on the Linux kernel again, since this is now the third real compiler bug it’s helped me track down.

C++ 40

Elements of Modern C++ Style

Sutter's Mill

As I’m getting ready to resume writing a few new (or updated) Guru of the Week Items for the C++11 era, I’ve been looking through the wonderful features of C++11 and analyzing just which ones will affect the baseline style of how I write modern C++ code, both for myself and for publication. Here’s the intro: Elements of Modern C++ Style. “C++11 C++11 feels like a new language.” – Bjarne Stroustrup. The C++11 standard offers many useful new features.

C++ 40

World’s youngest C++ programmer?

Sutter's Mill

I’m seeing many younger programmers picking up C++. The average age at C++ events over the past year has been declining rapidly as the audience sizes grow with more and younger people in addition to the C++ veterans. He has also gained knowledge of C++, the programming language developed by Danish computer scientist Bjarne Stroustrup, without any formal training. C++ Opinion & Editorial Software Development

C++ 40

C++ AMP keynote is online

Sutter's Mill

Yesterday I had the privilege of talking about some of the work we’ve been doing to support massive parallelism on GPUs in the next version of Visual C++. The video of my talk announcing C++ AMP is now available on Channel 9. Minimal: It adds just one general-purpose language extension that addresses not only the immediate problem (dealing with cores that can’t support full C++) but many others.

C++ 40

MSTest Tutorial: Running First Selenium Automation Script

DZone

In this MSTest tutorial for Selenium automation, I’ll help you run your first MSTest script for automated web testing with Selenium C#. tutorial performance c# automation testing c sharp testing tutorial mstestMSTest is the default test automation framework which comes bundled with Visual Studio.

C++ 109

Faster remainders when the divisor is a constant: beating compilers and libdivide

Daniel Lemire

I believe that all optimizing C/C++ compilers know how to pull this trick and it is generally beneficial irrespective of the processor’s architecture. In concrete terms, here is the C code to compute the remainder of the division by some fixed divisor d : uint32_t d =. ; // your divisor > 0. uint64_t c = UINT64_C ( 0xFFFFFFFFFFFFFFFF ) / d + 1 ; // fastmod computes (n mod d) given precomputed c. return n * c < = c - 1 ; }.

How Many Warehouses for the HammerDB TPC-C Test?

HammerDB

The official TPC-C test has a fixed number of users per warehouse and uses keying and thinking time so that the workload generated by each user is not intensive. This is a very typical FAQ and although detailed in the documentation some extra details may help in sizing and configuration. For a really quick answer create a schema with 250-500 warehouses per server CPU socket for more details size as follows. .

My Final C++ and Beyond 2011 Sessions

Sutter's Mill

I just posted two more sessions I’ll be giving next month at C++ and Beyond. “C++ Renaissance.” keynote talk at C&B 2011, and it’s time to cover an increasingly open secret: After a decade-long affair with managed languages where it became unfashionable to be interested in C++, C++’s power and efficiency are now getting very fashionable again. already know that C++ is “the” language of choice for demanding applications.

C++ 40

C++ and Beyond Panel: Modern C++ = Clean, Safe, and Faster Than Ever

Sutter's Mill

I just posted the following panel announcement to the C++ and Beyond site. C++11 is kind of like “C++ Dreamliner.” European readers may equally consider it “C++ 380.” ). Others have disputed various parts of this statement – whether C++11 really has a usable safe subset, whether C++ is really necessarily faster than code in other languages, and other questions. C++ Software Development Talks & Events

C++ 40

The Future of C++: Live broadcast this Friday

Sutter's Mill

In my talk on Friday, there will be announcements of broad interest to C++ developers on all compilers and platforms. The Future of C++. This talk will give an update on recent progress and near-future directions for C++, both at Microsoft and across the industry, with some announcements of interest in both areas. The speaker is the lead language architect of Visual C++ and chair of the ISO C++ committee. C++ Microsoft Software Development Talks & Events

C++ 40

Two More C&B Sessions: C++0x Memory Model (Scott) and Exceptional C++0x (me)

Sutter's Mill

Scott Meyers, Andrei Alexandrescu and I are continuing to craft and announce the technical program for C++ and Beyond (C&B) 2011 , and two more sessions are now posted. All talks are brand-new material created specifically for C&B 2011. This is stuff that in a perfect world nobody should ever have to know, but in our actual world every modern C++ developer who cares about correct high-performance code has to understand it thoroughly.

C++ 40

C++ and Beyond Session: Lambdas, Lambdas Everywhere

Sutter's Mill

We’ll be posting abstracts (summaries) of the C++ and Beyond 2010 sessions over the coming days over at the C&B site. I delivered a ‘sneak peek’ preview of a subset of this material in conjunction with the ISO C++ standards meeting in Switzerland two months ago, but the full talk will be given publicly for the first time at C++ and Beyond. Here’s the abstract: Why care about C++0x lambda functions? Lambdas, Lambdas Everywhere.

Which Programming Language Is Most Popular for UI Test Automation in 2019?

DZone

java javascript ruby python c# test automation programming languages ui testingWhich language do you use for test automation? There is always a lot of uncertainty around which programming language to use when starting a new test automation project.

90 seconds @Build: “It’s a great week for C++”

Sutter's Mill

C++ Microsoft Software Development Talks & EventsA few hours ago I sat down to give a short teaser for my webcast talk this Friday. Here it is. Feel free to forward. (I I don’t think they believed me when I said I could keep it to under two minutes.).

C++ 40

Talk + panel online: “(Not Your Father’s) C++” + “Native Languages” Panel

Sutter's Mill

Last week at the Lang.NEXT 2012 conference in Redmond, I gave a 40-minute C++ talk and participated on a native languages panel. Here’s the 40-min C++ talk, taken from the C9 site: (Not Your Father’s) C++ Herb Sutter. What makes ISO C++11 "feel like a new language"? What things that we know about past C++ do we need to unlearn? Why is C++ designed the way it is – historically, and in C++11? NET C++ Software Development Talks & Events

C++ 40

C&B Panel: Alexandrescu, Meyers, Sutter on Static If, C++11, and Metaprogramming

Sutter's Mill

The first panel from C++ and Beyond 2012 is now available on Channel 9: On Static If, C++11 in 2012, Modern Libraries, and Metaprogramming. Channel 9 was invited to this year’s C++ and Beyond to film some sessions (that will appear on C9 over the coming months!)… … At the end of day 2, Andrei, Herb and Scott graciously agreed to spend some time discussing various modern C++ topics and, even better, answering questions from the community.

C++ 40

Debugging a Segfault in Rust

DZone

Yet, there are quite a few reasons why a Rust program can still crash, including: api debugging c rust error monitoring native applicationIn this Sentry programming session, we looked at using our error monitoring platform to help debug one of our own native products: Symbolicator.

Two Sessions: C++ Concurrency and Parallelism – 2012 State of the Art (and Standard)

Sutter's Mill

It’s time for, not one, but two brand-new, up-to-date talks on the state of the art of concurrency and parallelism in C++. I’m going to put them together especially and only for C++ and Beyond 2012 , and I’ll be giving them nowhere else this year: C++ Concurrency – 2012 State of the Art (and Standard). C++ Parallelism – 2012 State of the Art (and Standard). Over the summer, we’ll all be working on updated proposals for the October ISO C++ meeting in Portland.

C++ 40

C&B Session: atomic Weapons – The C++11 Memory Model and Modern Hardware

Sutter's Mill

Here’s another deep session for C&B 2012 on August 5-8 – if you haven’t registered yet, register soon. But there’s just so much about C++11 to cover, so here’s a fourth brand-new session I’ll do at C&B 2012 that goes deeper on its topic than I’ve ever been willing to go before. atomic<> Weapons: The C++11 Memory Model and Modern Hardware. For me, this is going to be the deepest and most fun C&B yet.

20 Highly Qualified Test Automation Superstars

DZone

Our world-class expert instructors provide free test automation training in multiple programming languages such as Java, JavaScript, C#, Python, Ruby, and Swift. java javascript python performance c# test automation developers automated testing qaWhen we think of the word superstar, it is usually associated with fame, but in the tech industry, the real superstars are the ones who are able to do the work.

More fun with fast remainders when the divisor is a constant

Daniel Lemire

There is no silver bullet but a simple C function can beat a state-of-the-art optimizing compiler. C++ optimization performanceIn software, compilers can often optimize away integer divisions, and replace them with cheaper instructions, especially when the divisor is a constant. I recently wrote about some work on faster remainders when the divisor is a constant.

Top Redis Use Cases by Core Data Structure Types

High Scalability

Redis , short for Remote Dictionary Server, is a BSD-licensed, open-source in-memory key-value data structure store written in C language by Salvatore Sanfillipo and was first released on May 10, 2009. C C++ Caching Clustering Database DevOps Message Broker Redis Redis Cluster Redis Hashes Redis Lists Redis Queues Redis Sets Redis Sorted Sets Redis Strings Use Cases administrator cache data management database databases in-memory key-value store nosql open source queue redis

Interview on Channel 9

Sutter's Mill

Channel 9 just posted a new interview with me about ISO C++0x, C++’s place in the modern world, and all things C++. As usual when talking to Herb, the conversation is all about C++ (well, we do talk about C# for a little while, but in the context of C++. It’s always great to talk to Herb and get a glimpse of what goes on in the C++ Standards Committee (which Herb chairs). 15:51 -> Why can’t C++ look more like C#?

Selenium Automation Script With JavaScript

DZone

Java, C#, Python are mostly used for developing test scripts. Selenium is an open-source automation framework initially introduced in 2004. Using this framework, we can validate web applications across different browsers and platforms.

Friday’s Q&A session now online

Sutter's Mill

My live Q&A after Friday’s The Future of C++ talk is now online on Channel 9. recent progress and near-future directions for C++, both at Microsoft and across the industry, and talks about some announcements related to C++11 support in VC++ 2012 and the formation of the Standard C++ Foundation. C++ Microsoft Software DevelopmentThe topics revolved around….

Java vulnerabilities

Sutter's Mill

With the help of friends Robert Seacord and David Svoboda of CERT in particular, I posted a note and link to their CERT post today because people have been misunderstanding the recent Java vulnerabilities, thinking they’re somehow really C or C++ vulnerabilities because Java is implemented in C and C++. From the post: Are the Java vulnerabilities actually C and C++ vulnerabilities? C++ Java Software Development

Java 40