Discover and read the best of Twitter Threads about #Cplusplus

Most recents (6)

Don't show this to Flutter devs πŸ™ˆ.

We ran a few benchmarking algorithms with our React Native JSI project to compare Flutter vs React Native performance.
See following tweet for results and source code πŸ‘‡ 1/3

#reactnative #jsi #cplusplus #flutter #mobile
React Native faster for Borwein and Gauss Legendre algorithms. Notice how Factorial algorithm is slower probably because of JS calling C++ overhead (Thanks @terrysahaidak) 2/3

Source:
github.com/4TWIGGERS/reac…
github.com/4TWIGGERS/flut…
@terrysahaidak Related link. We checked their benchmark source code, it seems like they use milliseconds on React Native and microseconds on Flutter. Probably a human error but the benchmark can be misleading to new mobile engineers. 3/3

inveritasoft.com/blog/flutter-v…
Read 3 tweets
πŸ’― Cursed code

Same code compiles in both C and C++ and can detect which version of C and C++ with language features alone.

With not be taking questions.

#cplusplus
#programming #if true #define ISC 0 #els...
I have added this to my github "determine_c_or_cpp" repo: github.com/shafik/determi…

Enjoy!
Read 4 tweets
C++ Standard Library Algorithms
Quick Visual Reference
Part 1/32 - Sorted Range Operations
#cpp #cplusplus #algorithms #programming #cheatsheet
C++ Standard Library Algorithms
Quick Visual Reference
Part 2/32 - C++20 Sorted Range Operations
#cpp #cplusplus #algorithms #programming #cheatsheet
C++ Standard Library Algorithms
Quick Visual Reference
Part 3/32 - Binary Search
#cpp #cplusplus #algorithms #programming #cheatsheet
Read 32 tweets
I've been a developer since 1968. Been doing C++ since early 90s. Used VStudio on MS but switched to Eclipse on Linux in 2014. Looking for better refactoring. Searched today for other Linux IDEs but found none that seemed better. 1/

#cplusplus
CLion only one I downloaded to try. Won't jump to error by clicking on error msg like Eclipse. Won't change function signature on operator(). Rejected it.

Might try NetBeans but it wanted updated JDK and didn't feel like installing it today. 2/
Other IDEs didn't refactor or had other issues. Don't want an 'editor' with bells and whistles. Did try MS VSCode just for the heck of it. Tried Cevelop in past but suspect defunct. Others from 2020 "best of lists.

Any other suggestions? 3/3
Read 9 tweets
Structure and Interpretation of Computer Programs: SICP
By @code_report

Why SICP matters?

#CppCon
#Cplusplus Image
@code_report Pascal is for building pyramids

Lisp is for building organisms Image
@code_report "We write awful code" Image
Read 4 tweets
Let’s do this:

One Like, One Undefined Behavior.

I plan on running this through the weekend at least.

#Cplusplus
#Programming
Signed integer overflow/underflow is undefined behavior

int x1=std::numeric_limits<int>::max()+1;
int x2=std::numeric_limits<int>::min()-1;

[expr.pre]p4 eel.is/c++draft/expr#…

godbolt: godbolt.org/z/Ga-fbb
#2 Signed integer overflow/underflow is undefined behavior 2

int x3=std::numeric_limits<int>::min() / -1;

[expr.pre]p4 eel.is/c++draft/expr#…

godbolt: godbolt.org/z/ytC8oi
Read 65 tweets

Related hashtags

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3.00/month or $30.00/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!