nex :fem_technik: :gentoo: · @nex
152 followers · 3100 posts · Server fem.social

pgfplots mit mehreren -Jobs dauert immer noch länger als manche Projekte zum bauen. Was hab ich da nur angestellt bei meiner BA?

#compile #cxx #texlatex

Last updated 1 year ago

Mathias Hasselmann · @taschenorakel
575 followers · 2828 posts · Server mastodon.green

Which of these two in code? Is there a better variant?

#almostalwaysauto #cxx #programming #codestyle

Last updated 1 year ago

pug · @pug
6 followers · 16 posts · Server fosstodon.org

Getting bit by this issue is a rite of passage gitlab.kitware.com/cmake/cmake

#cmake #cpp #cxx

Last updated 1 year ago

Valentin Bersier · @beeb
71 followers · 412 posts · Server hachyderm.io

Does anyone have experience with using libraries in codebases with the crate?

I'm a total noob in C++ and the best I could come up with is this: github.com/beeb/test-occ-bindi

Trying to use to convert a file into

Any help would be greatly appreciated!

#cpp #rust #cxx #occt #step #STL #rustlang

Last updated 1 year ago

«lambalicious» · @lambalicious
17 followers · 470 posts · Server aleph.land

C: int main ()

C++ int main (int argc, char*[] argv)

C+++: [[nodiscard]] int main (int argc, char*[] argv)

C++++: auto main = [[nodiscard]] [&] (int argc, PointerWrapper<PointerWrapper<char>> argv) noexcept(noexcept( body_of_program )) -> int { body_of_program; };

(yes it's missing whatever C++26/2z is going to add as a raw wrapper for raw pointers, since for some reason ""““"modern""””"" C++ is afraid of everything native. Might as well replace 'int' for some sort of SystemTypeIntegerBytes<32> or somesuch)

#cpp #cxx

Last updated 1 year ago

Mathias Hasselmann · @taschenorakel
546 followers · 2093 posts · Server mastodon.green
SoftwareHub Community · @SoftwareHub
14 followers · 11 posts · Server fosstodon.org
· @smeikx
19 followers · 156 posts · Server graz.social

Since I fell ill yesterday I’ve spent my time mostly in bed, binge watching the ‘Back to Basics’ videos of last year’s .
youtube.com/@CppCon/videos

Each talk is about an hour long, but most can be watched at increased playback speed.

++

#cppcon #cpp #cxx #c

Last updated 2 years ago

Pito Salas · @Pitosalas
24 followers · 86 posts · Server ruby.social

@philcrissman After learning a few languages I learned to only dig into the ones that had something specific that I liked or wanted to learn more about. Not collecing them like talispeople. For example is really intereting to me as an old and ++ dev because of how they came up with abstractions that reflected or enforced good memory management habits you need in older languages such as or

#rust #c #cxx

Last updated 2 years ago

· @smeikx
18 followers · 138 posts · Server graz.social

I started the day coding, went for a bit of inline skating, and am now returning to coding.
Feels a bit like a day out of Hackers (the 1995 movie), but (unfortunately?) with less hilarious nonsense.

#hacktheplanet #InlineSkating #skating #hacking #softwaredevelopment #cpp #cxx

Last updated 2 years ago

· @blinkygal
15 followers · 24 posts · Server sunny.garden

Also I learnt that the correct hashtag is not . :blobhaj_reach:

#cpp #cxx

Last updated 2 years ago

· @blinkygal
14 followers · 17 posts · Server sunny.garden

A brainstormy conversation at work the other day resulted in me believing
a) a borrow checker in C++ would benefit from a MIR
b) a MIR for C++ is possible and worth the effort to save time writing dataflow analysis, instead of dealing with the enormous complexity of C++ on every line of your tool.

This built on my previous underlying belief that a borrow checker is the way to save C++ codebases by giving them a clear path of improvement to safety.

So we have begun to make this happen.

#cxx

Last updated 2 years ago

· @smeikx
18 followers · 134 posts · Server graz.social

I managed to overcome yesterday’s frustration and had a close look at this article:

Practical Makefiles, by example
nuclear.mutantstargoat.com/art

With additional documentation from makefiletutorial.com I managed to compose a decent, efficient Makefile.

I just wish it could be easier.

#cpp #cxx #c #softwaredevelopment #Make #compile #build #programming

Last updated 2 years ago

· @smeikx
18 followers · 131 posts · Server graz.social

The one thing that really bothers me about C++ is the build process.

I wasted so much time tinkering with my Makefile only to abandon everything and go with the simplest, least efficient method.

#cpp #cxx #softwaredevelopment #programming

Last updated 2 years ago

Cuboci 🏳️‍🌈 · @cuboci
19 followers · 172 posts · Server tech.lgbt

@RecursiveNeuron I wonder whether the Go compiler just optimises something away, because you're not doing something with the count variable.

I tried this in C/C++:

for (int i = 0; i < 1000000000; i++) {}

It gives different results (0.001s vs. 1.595s) for me, when I compile it with vs. without -O3 in GCC respectively, and ~0.22s in Go consistently. Don't know how to switch optimisations on/off in Go. Have to check that.

#golang #cxx #c

Last updated 2 years ago

Markus Ewald · @cygon
55 followers · 183 posts · Server mastodon.gamedev.place

Writing a small test game to figure out SFML + Blend2D (I'll probably give away the source to it).

One of the first things that goes into any of my projects is making it easy to write and run unit tests. Old me can't be bothered to build the game from untested code pieces only to then have to debug through every step of the way and still miss edge cases :)

#unittesting #cxx #programming

Last updated 2 years ago

Gerva · @Sherwoodinc
61 followers · 531 posts · Server fosstodon.org

Question to people: I am using the crate to generate bindings to call Rust from C++.
I have a Rust function returning an opaque Box<MyType> which I want to hold as a class member in the C++ side.
The thing is the cxx generated Box<MyType> isn't default-constructible, so I used a smart_ptr<Box<MyType>>...

Is there a Right(TM) way of doing this?

#rustlang #cxx

Last updated 2 years ago

Nick Penkov · @npenkov
3 followers · 1 posts · Server awscommunity.social

I have posted one new article on using library from using crate - pnkv.dev/post/2022/11/19/using core example of using RGB stream encoded in H265

#cpp #rust #cxx #depthai

Last updated 2 years ago

«lambalicious» · @lambalicious
14 followers · 359 posts · Server aleph.land

@fribbledom It's annoyingly infuriating in the C++ community, where anytime someone wants to raise a proposal for something, the vermin comes out of the woodworks screeching "it should be like in Rust!" or "C/C++ can't be fixed because it's not Rust!".

#cxx #cpplang

Last updated 2 years ago

dilawar · @dilawar
2 followers · 30 posts · Server fosstodon.org

Thank you github.com/dtolnay/cxx, I don't have to extend my old work in anymore. Back to and 🤟

#cxx #rust #cargo

Last updated 2 years ago