fell, (edited ) to DigitalNomadHub
@fell@ma.fellr.net avatar

I just heard the bad news that I am probably going to need a new job starting in July.

So, before beginning the regular search, I wanted to ask my Fedi friends if anyone could use a capable C++ programmer with lots of graphics and networking experience. I wouldn't mind a change, so I'm open to anything. Even other programming languages! It would be awesome if I could use Linux to do the work. 🐧

Locations I would consider are: Central Europe, Melbourne, Sydney or Remote

🔁 Boost appreciated! 🙏


ciura_victor, to cpp
@ciura_victor@hachyderm.io avatar

Latest VS 17.9 (Preview) IDE feature delivered by our team: Memory Layout visualization for C++ classes/structs/unions:
https://devblogs.microsoft.com/visualstudio/size-alignment-and-memory-layout-insights-for-c-classes-structs-and-unions/

DM_Ronin, to programming
@DM_Ronin@mstdn.social avatar

explaining pointers like you're 5

#C

ramin_hal9001, to scheme
@ramin_hal9001@emacs.ch avatar

Why Program in C+Python when you can program in Zig+Scheme?

Another bit of gold from by Pjotr Prins of the University of Tennessee. The actual title of the talk is "Why code in Python+C if you can code in Lisp+Zig?" but the "Lisp" in this case is actually Guile Scheme. I didn't know this, but Zig uses the C ABI so it binds to any language that can do FFI bindings to C, including most Scheme and Common Lisp implementations. But why don't I just post the abstract here:

> "Most bioinformatics software today is written in Python and for performance C is used. Lisp has been around for over half a century and here I don’t have to tell how or why programming Lisp is great. I will talk about Zig as a minimalistic new language that is unapologetically focused on performance, tellingly with a blazingly fast compiler. It is advertised as a replacement for Thompson, Ritchie, and Kernighan’s C, but it may even replace C++ in places. Zig uses the C-ABI and does not do garbage collection, so it is ideal for binding against other languages. In this talk I will present combining GNU Guile Lisp with Zig. I’ll argue that everyone needs two languages: one for quick coding and one for performance. With Guile and Zig you get both at the same time and you won’t have to fight the Rust borrow checker either."

shafik, to random
@shafik@hachyderm.io avatar

C++ and Zero

smurthys, (edited ) to programming
@smurthys@hachyderm.io avatar

A serious question for C and C++ programmers:

What are the benefits of using C over C++ for greenfield projects, setting aside build times and such.

In other words, is there anything that can be done in C that cannot be done at least equally well in C++? Is there something that can be done in C that just can't be done in C++? What are the dealbreakers?

(No language wars please.)

Boosts appreciated: my sphere of influence is quite small. 🙏

#c

snacktraces, to boardgames
@snacktraces@hachyderm.io avatar

Introduction - new server

during the day to support my , , and habits.

I talk a bunch about helping those new to programming and software dev.

No patience for folks being uncool to others that look or live different than they.

Spend a lot of time with

Always interested in meeting cool people. (he/him)

AminiAllight, to cpp
@AminiAllight@mastodon.gamedev.place avatar

I've released a clang tidy for C/C++ that finds division by non-constant values to help you search for possible division-by-zero in your codebase!
This is mostly a tool I built for myself to help with LMOD development but others might find it useful too
https://github.com/amini-allight/clang-tidy-division-by-non-constant

DM_Ronin, to embedded
@DM_Ronin@mstdn.social avatar

Me using both Python and C at work: :ablobcatknitsweats:

#C

vitaut, to programming
@vitaut@mastodon.social avatar

Optimizing the unoptimizable: a journey to faster C++ compile times https://vitaut.net/posts/2024/faster-cpp-compile-times/

ramin_hal9001, to cpp
@ramin_hal9001@emacs.ch avatar

C++ is everywhere, that makes ECL very valuable.

The software industry, especially in the realm of free software, has mostly settled on a pattern of using C++ for creating performance critical libraries, and creating Python binding to the C++ libraries for scripting. I was hoping Rust might come along and change all this, but it will take decades.

In the mean time, if you want to use C++ but not actually write C++, you can make use of the ECL Common Lisp compiler, which can compile Lisp to C++ code. This gives you all the best features of Common Lisp for programming with the universe of C++ code libraries available to you. You can use a C++ library and still have Common Lisp macros, garbage collection, high-level scripting, S-expressions as serialization, domain specific languages, a proper meta-object protocol that wraps C++ classes nicely, and wealth of choices for functional programming systems from the untyped lambda calculus all the way up the lambda cube to System-F and the Calculus of Constructs. This not only makes ECL a viable alternative to Python for scripting and app development, but objectively better than Python since you can actually turn your Common Lisp scripts into code that gets compiled into a larger C++ application.

With ECL I would have all sorts of C++ libraries available to me:

  • game engines like Unreal and Godot
  • 3D modeling: FreeCAD, OpenSCAD, Blender
  • Machine learning, big data, and HPC with PyTorch, TensorFlow, OpenCV, OpenCL

I will continue to contribute to the Scheme and Haskell communities as much as I can. I will continue to pursue my dream of an Xfce-like desktop environment written in Scheme. But no matter how I look at it, I am going to more productive in the long run using ECL and C++.

I was hoping that the software industry would gradually shift over to better, more functional languages like Rust and Haskell. And I would love it if Scheme languages could ever begin to seriously replace Python as a scripting language. But realistically, I think I am going to change tack and meet the industry half way. I think I should probably start using ECL as my language of choice, as much as I would prefer Scheme or an ML-family language like Haskell.

fell, (edited ) to programming
@fell@ma.fellr.net avatar

I was experimenting with colour distances at work today. I need to find out how similar two colours are, so I wrote a little test program and it was surprisingly pretty.

The algorithm is simple:

  1. Fill the canvas with random colours.
  2. Set the first pixel (top left) to red.
  3. For all pixels, find the most similar pixel and move it next to the current pixel.

To determine the similarity, I calculated the 3D distance in the RGB, HSV and YUV color spaces, which brought very different results. Now, it's quite possible that my HSV and YUV conversion functions were just broken, but that's okay.

(I recommend zooming in!)

#programming #development #cplusplus #cpp #cpp20 #immediate2d #rgb #hsv #yuv #art #pixelart #rainbow #noise #gamedev #opengl #math #mathematics

lesley, to cpp
@lesley@mastodon.gamedev.place avatar

It is interesting that both C++ coroutines and async Rust are stackless coroutines, but unlike Rust, C++ coroutine states must be dynamically allocated.

In addition, C++ coroutines is a more general-purpose feature that can model things such as generators, which I definitely wish it could reside on stack.

I am not knowledgable enough about what kind of tradeoff lead to those design decisions though.

sonny, to rust
@sonny@floss.social avatar


/

/
#C



Those are languages people use to write / apps, and it's amazing ❤️

jamuraa, to rust

Told myself I'd do an / pinned post after I got 500 followers and here we are.

I'm Marie, a bisexual woman from the US midwest, California, or Rhode Island depending.

You can find me as jamuraa on most of the platforms I exist on. I make Bluetooth, bake a lot, and play with 3D printing. I have a Ph.D in Computer Science and run for exercise most days unless I'm hiking around a forest.

I like Bluetooth - luckily getting money to work on it and make it better for billions of people for almost a decade. I've been in tech much longer.

I code a lot in and but also have approximate knowledge of many languages and use them variously.

I've been avidly baking things for about five years now, and really enjoy learning new recipes and techniques. It's definitely magic to have some bread out of the oven. I post my baking on the tag behind a CW as they can get long, with the exception of the which always have that tag.

ChristosArgyrop, to programming
@ChristosArgyrop@mstdn.science avatar

Reminder that the languages useful for may not be the same as those used for that the applications use, and this is just fine, e.g. performance often requires that one does not rediscover the wheel by recoding libraries in and because they are, for whatever reason , resistant to use a proper (or an ) .

neosam, to python
@neosam@mastodon.social avatar

Source unknown.

vitaut, to programming
@vitaut@mastodon.social avatar

Got two of my C++ papers voted in: formatting of std::filesystem::path and std::print optimization. Happy formatting!

DM_Ronin, to embedded
@DM_Ronin@mstdn.social avatar
mstrohm, to opensource
@mstrohm@kanoa.de avatar

After 11 years and 15 days from 2012-07-12, I am proud to present the first real release of MoeNavigator - a web browser written from scratch in C++. Its engine (called MoeNavigatorEngine) is also written from scratch:

https://codeberg.org/moenavigator/moenavigator

1/3

gabrielesvelto, (edited ) to rust
@gabrielesvelto@fosstodon.org avatar

If you're doing a lot of work in C/C++/Rust consider using sccache to cache compilations. It's easy to set up and will save you a lot of time and a huge amount of power.

https://github.com/mozilla/sccache

As an example this is just a couple of hours of work on Firefox, it saved me from re-running the compiler almost 90% of the time.

#CPlusPlus #RustLang

jarkko, to rust
@jarkko@social.kernel.org avatar

I think there would be still space for systems programming language with a constraint from day zero that it would 1:1 compatible with plain C”s binary layout and memory model:

  1. Roughly just .text, .bss, .rodata and ,data.
  2. No symbol mangling at all.

All the memory safety etc. fancy features would be then designed within exactly those constraints.

is essentially a derivative of C++ when compiled to binary, which does not really make it a strong competitor for plain #C. It can substitute C in many cases for sure, just like C++ did, but there’s always need for minimal systems programming language, which also looks elegant in binary, not just in source code.

A compiled C program can be quite easily understood with a binary with no debug symbols at all if you understand the CPU architecture well enough. That is, and will be a strong asset for C.

kdab, to cpp
@kdab@techhub.social avatar

With regular uploads on various programming topics, there's always something new to learn on our YouTube channel KDAB TV. Subscribe now and elevate your programming skills with us: https://www.youtube.com/@KDABtv

jaycruz, to rust
@jaycruz@fosstodon.org avatar

This is a 48 minute long article that's critical of the Rust hype train vs C/C++. The TLDR is that while security is a problem, the Rust vs C choice as the only choice for low-level systems programming is a “non choice”. The author states that Go is a perfectly fine choice. https://medium.com/

#c

DanielaKEngert, to cpp
@DanielaKEngert@hachyderm.io avatar

Dear Fediverse,

in case you care, I'd love if you'd vote for this issue of mine:

https://developercommunity.visualstudio.com/t/Cconstant-evaluationModules-Cons/10661450

Serious constant evaluation and C++ modules seem to live on different planets.

Thanks, much appreciated! 🩷

  • All
  • Subscribed
  • Moderated
  • Favorites
  • anitta
  • thenastyranch
  • magazineikmin
  • everett
  • InstantRegret
  • rosin
  • Youngstown
  • slotface
  • love
  • khanakhh
  • kavyap
  • tacticalgear
  • GTA5RPClips
  • DreamBathrooms
  • megavids
  • modclub
  • mdbf
  • tester
  • Durango
  • ethstaker
  • osvaldo12
  • cubers
  • ngwrru68w68
  • provamag3
  • normalnudes
  • Leos
  • cisconetworking
  • JUstTest
  • All magazines