raptor85, to llm
@raptor85@mastodon.gamedev.place avatar

The Code Llama 34b model isn't half bad! Been toying around with it integrated into clion having it explain my own code to me and generate small functions and it's been so far around 90% successful, with most of the errors being minor, the bug detection does have a decent amount of false positives though. I also like that it's aware enough of api's to give doc links

Bonus points for it going off on a tangent once on why console applications are better than gui.

neosam, to python
@neosam@mastodon.social avatar

Source unknown.

rmathew, to programming
@rmathew@mastodon.social avatar
fell, to cpp
@fell@ma.fellr.net avatar

C++ compiler be like:

error LNK2001: unresolved external symbol "public: static class std::unordered_map<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> >,unsigned int,struct std::hash<class std::basic_string<char,struct std::char_traits<cha r>,class std::allocator<char> > >,struct std::equal_to<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > >,class std::allocator<struct std::pair<class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const ,unsigned int> > > TextureStore::texture_cache" (?texture_cache@TextureStore@@2V?$unordered_map@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@IU?$hash@V?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@2@U?$equal_to@V?$basic_string@DU?$char_traits @D@std@@V?$allocator@D@2@@std@@@2@V?$allocator@U?$pair@$$CBV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@I@std@@@2@@std@@A)

And expect me to casually read that and go "Ah, I see".

mo8it, to rust
@mo8it@fosstodon.org avatar

Secure by Design: Google’s Perspective on Memory Safety

https://security.googleblog.com/2024/03/secure-by-design-googles-perspective-on.html

I think that the title addresses 2 very popular arguments:

  1. The skill issue "argument" 🤢
  2. The "but, but modern C++" argument 😟

Here is a link to the paper:
https://storage.googleapis.com/gweb-research2023-media/pubtools/pdf/0d8ad2cd7c5c02835c024af736844c722e7fa0f9.pdf

#C

The "Our investments in memory-safe languages" section of the linked page.

fell, to programming
@fell@ma.fellr.net avatar

Good morning everyone ☕

fatal error C1001: Internal compiler error.  
error D8040: error creating or communicating with child process  

MSVC agrees: It sure is a monday.

reillypascal, to Blog
@reillypascal@hachyderm.io avatar

I finally have an RSS feed for my blog! I was initially trying to figure out a way to automatically generate it based on my posts, but I found it was actually quite easy to type it out by hand.

https://reillyspitzfaden.com/blog/feed.xml

#Blog #RSS #Syndication #ExperimentalMusic #ElectronicMusic #NoiseMusic #SoundDesign #MaxMSP #CPlusPlus #JUCE #WebDev #IndieWeb

ethauvin, to golang
@ethauvin@mastodon.social avatar
simontoth, to cpp
@simontoth@hachyderm.io avatar

The std::forward is a conditional r-value (specifically x-value) cast.

std::forward is primarily designed to work in conjunction with universal references and will only cast to an r-value if the template argument isn't an l-value reference type.

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

secana, to cpp
@secana@mastodon.social avatar

Today I'm going to give a talk on wrapping in to a bunch of developers. Let's see how that goes...

markuswerle,
@markuswerle@nrw.social avatar

@secana good luck. If they are as angry as me about all the unfair and false claims about C++ being an unsafe language where people compare the latest and greatest compiler against a 10 year old C++ compiler, thereby ignoring all efforts made in fixing defects of the language, you are not going to have a good times.

Nonetheless we have to start to work together and find a middle ground where we honestly can discuss strengths and weaknesses of both systems.

FourthWoods, to rust
@FourthWoods@mastodon.gamedev.place avatar

I dusted off some old c++ code from like 10 years back. I forgot how horribly cryptic STL errors are. I think I'm going to try out .

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

Does anyone know anything about compiling with debug symbols enabled under MSYS2 (without works fine)? I'm getting this weird link error "relocation truncated to fit: IMAGE_REL_AMD64_REL32 against .rdata", on both GCC and Clang, seems to be tied to std::function somehow

Boosts for visibility appreciated!

JCWasmx86, to random
cpponline, to random
@cpponline@mastodon.social avatar

🔍 Join our 60-minute presentation on Compiler Explorer with @mattgodbolt 🚀

Uncover hidden features and explore the latest functionality within Compiler Explorer. Live demos will showcase its power, from program input to Control Flow Graphs. Enhance your Compiler Explorer skills! 🌐💻

https://youtu.be/pY3rrVfYsnU

Register today at https://cpponline.uk/registration

jbzfn, to cpp
@jbzfn@mastodon.social avatar
gracicot, to random
@gracicot@mastodon.social avatar

It's 2024, and MSVC still cannot do trailing return type correctly 😭

gracicot,
@gracicot@mastodon.social avatar

Related: MSVC also can't count braces

cpponline, to random
@cpponline@mastodon.social avatar

Have a C++ project or topic to share? Run an open content session at C++Online! Host talks, panels, or meetups. Get a dedicated slot and free entry to the main conference. Don't miss this chance to contribute! https://cpponline.uk/open-content

andyy, to javascript Polish
@andyy@fosstodon.org avatar

"Eternal triangle of hate" - Boozook

unixbhaskar, to languagelearning
@unixbhaskar@fosstodon.org avatar
mjgardner, (edited )
@mjgardner@social.sdf.org avatar

@unixbhaskar Direct (non-LinkedIn-shortened) link: https://catonmat.net/ftp/perl1line.txt

I’m also pleased that its author ranked Perl as one of his top 5 best languages: https://catonmat.net/5-best-programming-languages

  1. #C /
  2. (but only version 1 circa 1995 plus )

His 5 worst? https://catonmat.net/5-worst-programming-languages

  1. /
  2. modern

“My only metric... is time to get things done and ship to customers.”

fell, to cpp
@fell@ma.fellr.net avatar

I really like C++, but this is the satanic ritual required to get a file modification date:

auto ftime = std::filesystem::last_write_time("file.txt");  
auto stime = std::chrono::clock_cast<std::chrono::system_clock>(ftime);  
auto time = std::chrono::system_clock::to_time_t(stime);  
auto ltime = std::localtime(&time);  
auto year = 1900 + ltime->tm_year;  
auto month = ltime->tm_mon;  
auto day = ltime->tm_mday;  

:drgn_confused:

HunterZ, to cpp
@HunterZ@mastodon.sdf.org avatar

C++ problem that is driving me up a wall (using MSYS MinGW on Windows):

I'm using kubazip to programmatically extract ZIP files to a destination directory, and it stopped working with "file not found" errors when I switched to managing paths via std::filesystem::path instead of std::string

I've eliminated the input file's path as the problem by switching to reading ZIP data from memory, so it's a problem with telling kubazip the output path into which it should extract the ZIP

HunterZ, to cpp
@HunterZ@mastodon.sdf.org avatar

Trying to understand string_view from C++17. It's apparently a thin immutable container API around C++ or C style strings that gives you a subset of std::string features while being much more lightweight (due to not owning the actual data).

It's mentioned as a replacement for the const std::string& idiom, but I just got corruption when using it to catch a std::string return value (i.e. a temporary)...

cpponline, to cpp
@cpponline@mastodon.social avatar

C++Online is committed to providing a safe and inclusive environment for all participants under the Berlin Code Of Conduct: https://berlincodeofconduct.org/.

Join us online for up to four days of C++ content, including livestreamed C++ talks and workshops, as well as networking through our interactive virtual venue.

For more info, or to purchase tickets, visit https://cpponline.uk/

cpponline, to cpp
@cpponline@mastodon.social avatar

Join Mateusz Pusz, Peter Sommerlad, Andreas Fertig, Jonathan Müller and many others speakers at C++Online running from 29th February - 2nd March

https://cpponline.uk/schedule

Register today at https://cpponline.uk/registration

cpponline, to cpp
@cpponline@mastodon.social avatar

🚨 CALL FOR POSTERS 🚨

We are delighted to announce CppOnline will have a virtual Poster Room at this year’s conference. Get involved and showcase your poster!

Application form: https://forms.gle/RB2iuswfyZN3iRD78

DEADLINE: Mon 15th February

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