Masthash

#cplusplus

Jobs for Developers
2 hours ago

CookUnity is hiring Staff Data Scientist - Marketplace

🔧 #cplusplus #java #python #scala
🌎 Remote; New York City, United States
⏰ Full-time
💰 $150k - $200k
🏢 CookUnity

Job details https://jobsfordevelopers.com/jobs/staff-data-scientist-marketplace-at-cookunity-may-3-2023-a3c1d8?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Šimon Tóth
9 hours ago

std::quoted is a C++14 utility that simplifies reading and writing quoted strings.

When used during stream insertion, it will surround the given string with quotes and escape any internal quotes.

When used during stream extraction, the extraction will read the entire quoted string, remove surrounding quotes (if any) and unescape internal quotes.

Compiler Explorer link: https://compiler-explorer.com/z/9s5318b9j

#cpp #cplusplus #coding #programming #dailybiteofcpp

Šimon Tóth
19 hours ago

Correction for previous #dailybiteofcpp.
Unfortunately, I have misinterpreted a corner case behaviour of std::async, and it managed to survive in the example.

The packaged task will not be run automatically when the future is destroyed. You still need to call .wait() or .get() manually.

Thanks to Pavel Pokutnev on LinkedIn for pointing it out.

Compiler Explorer link: https://compiler-explorer.com/z/4nPjMxxfj

Sorry for the confusion.

#cpp #cplusplus #coding #programming #dailybiteofcpp

Jobs for Developers
22 hours ago

Solana is hiring Senior Software Engineer - Defi

🔧 #c #cplusplus #rust #typescript #react #api #graphql #grpc #rest #blockchain #defi #web3 #postgresql #seniorengineer
🌎 San Francisco, NYC, Chicago or Remote - N. America
⏰ Full-time
💰 $100k - $220k (Estimate)
🏢 Solana

Job details https://jobsfordevelopers.com/jobs/senior-software-engineer-defi-at-solana-apr-7-2023-4d127d?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

Šimon Tóth
1 day ago

The C++11 std::async is a simple tool for launching asynchronous tasks to either start a task in parallel or to defer execution on the same thread.

The benefit of std::async is simplicity, as std::async directly returns a std::future; however, we pay for that simplicity with a lack of control.

Compiler Explorer link: https://compiler-explorer.com/z/x3Kaq9eed

#cpp #cplusplus #coding #programming #dailybiteofcpp

Šimon Tóth
2 days ago

Tuesday common C++ interview problem: Bus routes.

Given a list of bus routes, where route[i] = {b1,b2,b3} means that bus i stops at stops b1, b2 and b3; determine the smallest number of buses you need to reach the target bus stop starting at the source.

Return -1 if the target is unreachable.

Solve it yourself: https://compiler-explorer.com/z/ThToveWP8
Solution: https://compiler-explorer.com/z/n79GE31xE

#cpp #cplusplus #coding #programming #dailybiteofcpp

Jakub Neruda
3 days ago

Do you think dependency management in C++ is a pain? Well, I wrote two articles about dependency management with CMake that might change your opinion.

The first part is about using OS-specific package managers and linking installed libraries to CMake, fetching prebuilt releases from git, or using dependencies from submodules. You can read it here: https://medium.com/@nerudaj/dependency-management-in-cmake-part-1-421c6b36417e

The second part is about package managers specific to C++, namely vcpkg and CPM, and how to work with those: https://medium.com/@nerudaj/dependency-management-in-cmake-part-2-478f63794eb5

Hope it helps somebody!

#cpp #cplusplus

Jakub Neruda
3 days ago

If std::expected should be widely adopted, then #cpp needs an equivalent of Rust's ? operator to quickly return and propagate the error upwards.

Otherwise exceptions have much better ergonomics.

#cplusplus #proramming

KDAB
3 days ago

Learn what object lifetime is and what caveats may await. See when returning a reference may result in undefined behavior: https://ecs.page.link/DG87M #cpp #cplusplus #code

Lawrence Murray
3 days ago

Doxide packages now available for #Ubuntu #Debian #Fedora #openSUSE and #Mageia, plus Homebrew packages for #Mac https://doxide.org/installation/ #cpp #cplusplus

Fran
3 days ago

Chapter 7 of my #Cpp #CPlusPlus book is out. Build a game of answer smash to practice associative containers, as well as pairs and tuples https://www.manning.com/books/c-plus-plus-bookcamp

Šimon Tóth
3 days ago

One downside of standard views is their behaviour when marked as const.

As is typical with reference types, views do not respect const. Unfortunately, on top of that, certain combinations of views and ranges require mutability.

With the C++23 std::views::as_const, we can leave the views mutable while enforcing the immutability of the underlying data.

Compiler Explorer link: https://compiler-explorer.com/z/rqjv7Wz85

#cpp #cplusplus #coding #programming #dailybiteofcpp

KDAB
1 week ago

Codebrowser has made 60 of @kde's repositories and libraries browsable on the web and more easily searchable for all developers out there. You can find them all on https://codebrowser.dev/kde/ #cpp #cplusplus

René Ferdinand Rivera Morell
1 week ago
The #cplusplus committee will be meeting at #Varna in a couple of weeks. Will the #programmer in attendance be adorned which such regalia?
undefined
Markus Werle
2 weeks ago

@thephd

"What we need isn't diplomacy, it's accountability. We need people to take responsibility for what happened and to make amends."

This sentence will go the list of things to be also said in the C++ community. #cpp #cplusplus #cppcon

CC: @Patricia @copperspice_cpp

Don Meyer
2 weeks ago

@dustin I had high hopes for it initially, but as the complexity grew…

Right there with you in not enjoying it. I miss Objective-C!

I always felt that Obj-C was what C++ should have been. (C++ is another language that seemed interesting at first, but eventually collapsed under its own weight IMHO.)

#Swift #CPlusPlus #ObjectiveC

Uli Kusterer
2 weeks ago

TIL that C++ std::map has a "hinted insertion operator" for better performance when you insert a list of sorted items: https://devblogs.microsoft.com/oldnewthing/20230522-00/?p=108226 #cplusplus

Fran
3 weeks ago

I've been on a couple of #Cpp #CplusPlus pod casts with #CppClub recently: https://cppclub.uk/meetings/2023/161/ and https://cppclub.uk/meetings/2023/161/

They are a great way to keep up to date and have both been very interesting.

Joxean Koret (@matalaz)
3 weeks ago

Question: is a C++ member function defined inside the class definition inlined in the final binary or not?

PS: If you are going to ask about some specific standard, let's pick, say, C++17.

#Cpp #cplusplus #Programming

InfoQ
1 month ago

C++ has been around for a long time but has changed significantly since 2011. A new standard, referred to as C++11 was introduced then, marking the beginning of a new era of frequent updates.

If you haven't used C++ since before C++11, you have a lot to catch up on, so where do you start? No worries, Frances Buontempo has you covered: https://bit.ly/3Bhnt7Z

#Cpp #Cplusplus #ProgrammingLanguages #Compilers

SoftwareHub
1 month ago

inux Install Fest (Thu, 11th May)

We have scheduled a Hands-on Workshop.

RSVP Cairo, Maghreb
https://www.meetup.com/softwarehubcairo/events/293419333/

RSVP Ankara, Bosnia, Turkmen
https://www.meetup.com/softwarehub/events/293419305/

RSVP Riyadh, Mashreq, Iran
https://www.meetup.com/softwarehubriyadh/events/293419271/

All members of the Ummah are welcome نرحب بجميع أعضاء الأمة Ümmetin tüm fertleri davetlidir!

#Ankara
#Egypt
#Cairo
#Algiers
#Tunisia
#Morocco
#Nigeria
#Ethiopia
#Africa
#Sudan
#Riyadh
#Doha
#Dubai
#Sana
#Muscat
#Iran
#SoftwareHub
#SoftwareFreedom
#Linux
#isocpp
#cplusplus

Linux Install Fest. Get onboard the GNU/Linux.
jbz :catjam:
1 month ago

🤸 Building a Physics Engine with C++ and Simulating Machines
— AngeTheGreat

#Gamedev #PhysicsEngine #Cpp #CPlusPlus
https://m.youtube.com/watch?v=TtgS-b191V0&feature=youtu.be

Šimon Tóth
1 month ago

The two arguably most important algorithms in the standard library are the divide and conquer std::lower_bound and std::upper_bound.

These algorithms provide O(logn) boundary lookup on sorted random-access ranges.

Compiler Explorer link: https://compiler-explorer.com/z/Ts5nE1vj3

#cpp #cplusplus #coding #programming #dailybiteofcpp

1 month ago

So let me get this straight. The Boost C++ library can only be compiled using a bespoke b2 build system that doesn't use a normal make/cmake/whatever workflow, but in order to do that you first have to compile b2 itself using C++.

But worse than that, Boost tries to work out the toolchain itself instead of using best practise conventions like $CC and $CXX, which makes it totally incompatible with environments like conda!

#boost #c++ #cplusplus #conda

Mark Tomczak
1 month ago

#JavaScript is hard because it's the language of web browsers.

#Cplusplus is hard because it's the web browser of languages.

jbz :catjam:
1 month ago

🛠️ Making My Own Programming Language and Coding a Game in It
— AstroSam

#Gamedev #Cplusplus #CPP
https://m.youtube.com/watch?v=JP9n5wHyemU&feature=youtu.be

Fran
1 month ago

Chapter 6 of my #Cpp #CplusPlus books is up: Code your way out of a paper bag!

Work with classes, using inheritance, to create “blobs,” then line them up in a virtual paper bag, and set them off racing and see which escapes the bag first!
https://www.manning.com/books/c-plus-plus-bookcamp

mxk
1 month ago

Programming languages:
We have scoping
Project management:
-Werror -Wshadow
#cplusplus #workwork

I have just released

𝚋𝚒𝚘𝚌𝚙𝚙-𝚌𝚘𝚛𝚎-0.7.0

Highlights:
🐉 full support for Clang
🚬 Improved CIGARs
📦 a new container
🔍 static analysis and sanitised tests

Get it while it's hot:
https://github.com/biocpp/biocpp-core/releases/tag/0.7.0

#Bioinformatics #Science #ScienceMastodon #BioCpp #cplusplus

KDAB
2 months ago

📰 KDAB News 03/2023 - Interview with KDE's Adam Szopa about KDE Akademy 2023; Calls for speakers for Qt Desktop Days & Qt World Summit 2023; Embedded World 2023 Recap and more #qtdev #cpp #cplusplus #embedded #desktop

🔗 https://www.youtube.com/watch?v=VQp9IFciH08

Fran
2 months ago

Chapter 5 of my C++ book is now up:

Playing with a full deck! Learn to work with classes, constructors, comparison operators, and random shuffle as you create a full deck of cards and write a fun card-guessing game.

https://www.manning.com/books/c-plus-plus-bookcamp #Cpp #CplusPlus

Fran
2 months ago

@ManningPublications are running a MEAP flash sale at manning.com with all MEAPs 45% off. Offer expires midnight ET, March 29. Buy my book #CPP #CplusPlus https://www.manning.com/books/c-plus-plus-bookcamp, someone else's book or just look at all the books.

Šimon Tóth
3 months ago

The C++23 added the std::spanstream, effectively a std::stringstream equivalent operating on a borrowed contiguous range.

std::spanstream can be used to directly parse text stored in raw memory, string_views or string literals.

When using std::spanstream for writing, the std::spanstream will write as much output as fits into the output span, which can be inconvenient.

Compiler Explorer link: https://compiler-explorer.com/z/occYKs4d5

#cpp #cplusplus #coding #programming #dailybiteofcpp

JetBrains Academy
3 months ago

🚀 The first module of our new C++ course is now available!
Learn manual memory management, object-oriented programming, and more, all while building a fun 2D arcade game👇#cplusplus #JetBrainsAcademy

https://jb.gg/academy/cplusplus-course

Davy :ferris:
3 months ago

Nice video about designing and optimizing a perfect hash table:

https://youtu.be/DMQ_HcNSOAI

#programming #rust #rustlang #cplusplus #computerscience

⌛ We're live in 10 minutes with @Hiteshdotcom and @ReynaldAdolphe talking about how Hitesh teaches everything from #cplusplus to #react to #api development to his millions of students using #vscode! Join us and bring your questions for Hitesh! 🎬 https://youtube.com/live/Pal56kOYjpU https://t.co/wFhIzBQiuH

:sys_twitter: https://twitter.com/code/status/1631320966713204739

Media source: https://pbs.twimg.com/media/FqOdxZ_WIAMvASg?format=jpg&name=orig
Visual Studio Code
3 months ago

⌛ We're live in 10 minutes with @Hiteshdotcom and @ReynaldAdolphe talking about how Hitesh teaches everything from #cplusplus to #react to #api development to his millions of students using #vscode! Join us and bring your questions for Hitesh! 🎬 https://youtube.com/live/Pal56kOYjpU

On tomorrow's livestream @Hiteshdotcom and @ReynaldAdolphe run through the cool ways to use #vscode when teaching everything from #Kubernetes #cplusplus to #javascript.Mark your 📆 and join us 🎬https://aka.ms/TeachingCode
8 am Seattle / 11 am New York / 4 pm London
#India #coding https://t.co/zGfFSRYri6

:sys_twitter: https://twitter.com/code/status/1631067384386560002

Media source: https://video.twimg.com/ext_tw_video/1631067294305599488/pu/vid/1280x720/ScRBCgcb9z6_D3Wr.mp4?tag=12
Visual Studio Code
3 months ago

On tomorrow's livestream @Hiteshdotcom and @ReynaldAdolphe run through the cool ways to use #vscode when teaching everything from #Kubernetes #cplusplus to #javascript.Mark your 📆 and join us 🎬https://aka.ms/TeachingCode
8 am Seattle / 11 am New York / 4 pm London
#India #coding

Fran
3 months ago

Chapter 4, on std::chrono is now up in my MEAP https://www.manning.com/books/c-plus-plus-bookcamp You'll get practice writing countdowns to events, and learn lots more on the way #cpp #cplusplus

📢 @Hiteshdotcom joins @ReynaldAdolphe this week to demo how he uses #vscode to teach everything from #cplusplus to #react to #api development to his millions of students. Mark your 📆 and join us https://aka.ms/code-livestream-page https://t.co/6D5p0hiVYG

:sys_twitter: https://twitter.com/code/status/1630342267482558464

Media source: https://pbs.twimg.com/media/FqAjptlXsAEPEnN?format=jpg&name=orig
Visual Studio Code
3 months ago

📢 @Hiteshdotcom joins @ReynaldAdolphe this week to demo how he uses #vscode to teach everything from #cplusplus to #react to #api development to his millions of students. Mark your 📆 and join us https://aka.ms/code-livestream-page

@veronica @lodurel Roughly accurate…

1. #BASIC (C64, Apple IIgs) 1990-?
2. #assembly 1992-1994
3. #HyperCard 1994-1996
4. #CPlusPlus 1997-2001
5. #VisualBasic, #VBA 1999-2001
6. #JavaScript 2003-
7. #VBScript 2003-2004
8. #PHP 2005-

I try random #programming languages here and there but this has really been it. The flavor-of-the-month JavaScript frameworks keep me busy.

Louis Dureuil
4 months ago

In what order did you learn your #programming languages, and what years were you active with them? I'll start:

1. #Ruby 2005-2007 2013-2016
2. #CSharp 2006-2012
3. #AdaLang 2010-2012
4. #CLang 2010
5. #Java 2011
6. #Python 2011-2022
7. #CPlusPlus 2011-2022
8. #RustLang 2016-

I have been able to reduce the overhead to 5-10% which is acceptable (if not ideal).

Things I learned:
* std::views::join is weird
* std::vector{std::move(object)} creates a local copy of object because initializer_lists were created by the devil

#cplusplus

Question to #cplusplus folks:

It is nice and easy to reformulate loops as a series of view-transformations, as long as I always transform single-element → single-element; but if individual steps can turn 1→n elements, I need to create a vector of return values and add a join (for each step).

This introduces lots of moves and has a very measurable performance overhead (~30% total program runtime here). Are there better options?

Maybe with coroutines? Can they be chained?

Boosts appreciated ❤️

Jonathan Müller
4 months ago

I've been reading "C++ has become a legacy language" a lot recently; I'm curious what you think.

Has or will C++ become a legacy language in the near future? For this poll, "legacy language" means a language that is mostly driven by inertia and enthusiasts and does not or should not be used for new projects.

Please boost for reach.

#cpp #cplusplus #rust #safety

4 months ago

@collin refactoring without needing to worry too much, knowing you are safe from synchronization and memory safety issues while still getting highly performant code are awesome. As soon as you stop writing #RustLang like X (no matter if X is #Ruby, #Python or #CPlusPlus), yes, it absolutely sparks joy!

I decided to diversify my fedi-usage! There are now three accounts:

🖥️ 👨🏼‍🔬 :fsfe: ⌨️
@__h2__
#Science #FreeSoftware #cplusplus #Bioinformatics and occasionally #Politics

🏞️ 🥾 🏂 🏕️ 🇮🇸
@kartoffeleis :
#Nature #Iceland #Hiking #Snow #Outdoors #Photography

:SMOrc:🎲🤘🏻 😈
@heretic_hannes :
#Warhammer40k #BoardGames #BlackMetal #BlackHumour

Feel free to (un)follow me at different accounts! Almost all posts will be English, with some rare German sprinkled in.

Jobs for Developers
5 months ago

Space and Time is hiring Rust Engineer

🔧 #cryptocurrency #dao #dapp #web3 #cplusplus #rust #blockchain #defi #nft #sql
🌎 Remote; United States
⏰ Full-time
💰 $120k - $200k (Estimate)
🏢 Space and Time

Job details https://jobsfordevelopers.com/jobs/rust-engineer-at-space-and-time-may-2-2022-50e784?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring

dr. Sybren
5 months ago

Want to be a #Blender #developer and learn C++? 'Applied Modern C++' is a how-to-C++ book in blog form. Seems like a nice resource!

Chapters will be released on a semiregular basis.

https://blog.cjdb.xyz/applied-modern-cxx-01.html

#cpp #cplusplus #b3d #development