gracicot, to cpp
@gracicot@mastodon.social avatar

Yay!! Again, some compiler decided to change template conversion operator rules.

And again, compilers won't agree with what the standard says or with each other since changing the rules may break users, even though they keep doing it (even in minor versions!) 🤦

#cpp #cplusplus #msvc #clang #gcc

ChristosArgyrop, to random
@ChristosArgyrop@mstdn.science avatar

This is weird. I am writing a #clang code for #sequencing analysis & one of the steps is a straightforward 2bit packing of the DNA alphabet. The code is really simple: iterate over the sequence, switch/case over letters and bitshift to get them in the right place. On my E-2697v4 Xeon, the coefficient of variation of the execution time is 15%. On my newer i7-11700 is less than 2%, on an Arm A53 is around 9%. In all three processors, the variation goes down with increasing workload. What gives?

tikhonov_a, to python
@tikhonov_a@mastodon.social avatar

I was recently asked to cover news about other IDEs from JetBrains here on Mastodon, in the image and likeness of @pycharm for . So here it is:

ChristosArgyrop, to cpp
@ChristosArgyrop@mstdn.science avatar

The experience with #Copilot dramatically improved after I stopped asking it for novel code, & started using it as an autocomplete for #Clang. Code for functions with different prototypes but the same functionalities appear after I do the 1st. This plays nice with variadic macros.
On the #cpp #cplusplus side, it can use the STL rather well, saving me from having to look up things. I've observed that it will do better with higher level lang (e.g. #perl or templated C++) than C @Perl

ChristosArgyrop,
@ChristosArgyrop@mstdn.science avatar

@Perl An interesting application of these observations (at least for my beloved #perl) is that one can write very quickly large chunks of Inline #clang or #cplusplus code for @Perl . Again, it is important not to let it hallucinate (especially if you have a tendency to typedef the living daylights out of your code): just finish your function BY HAND and let it generate boiler plate to use it, variations with different signatures, and even XS glue to move data from C <-> Perl.

ChristosArgyrop, to Perl
@ChristosArgyrop@mstdn.science avatar

is a gateway drug to and vice versa. @Perl

pitrh, to llvm
@pitrh@mastodon.social avatar
steven, to random
@steven@gts.passthejoe.net avatar

I complied a C++ program with clang.

That's my toot.

#openbsd #clang #cplusplus

asgrim, to Java
@asgrim@phpc.social avatar

I got a Stream Deck delivered today and started playing around with it already, very handy for step debugging! I have several other ideas already to improve my workflow too... #streamdeck #stepdebugging #java #rustlang #php #xdebug #clang #gdb

Adorable_Sergal, to programming
@Adorable_Sergal@hachyderm.io avatar

You should hire my friend. They do the magic computer word-whispers that tell the computer to do cool things good, like porting Quake to Haiku OS.

#FediHire #programming #clang

https://erysdren.me/

ZILtoid1991, to random

I really don't like #clang macros. They're pretty difficult to convert to #dlang, as D doesn't have a direct replacement for the precompiler.

#pipewire

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 ) .

profoundlynerdy, to programming
@profoundlynerdy@bitbang.social avatar

Is there a reasonably exhaustive list of "footguns" and undefined behavior for the #C language?

#programming #linux #openbsd #netbsd #gcc #clang

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

Getting totally owned by this build issue after I updated to XCode 15.

  • Running a build through Jenkins (ninja + clang): 5x longer build time than normal

  • Running exact same command in jenkins' workspace folder from a ssh session: normal build time

  • -ftime-trace says backend time takes longer time, but all parts within it seems to just be proportionally slower, no single area stands out

Not even sure what to try anymore. Ideas welcome.

#cpp #xcode #clang #jenkins #softwareengineering

SonnyBonds,
@SonnyBonds@mastodon.gamedev.place avatar

The plot thickens. I ran 'top' for the two different builds, and there are some distinct differences. The slow clang instances spawned through Jenkins has high value for MSGSENT, MSGRECV and SYSMACH where the fast build has very low numbers.

So it seems the slow build is doing a lot more Mach communication for some reason.

Each clang instance also shows "1/1" threads in the fast build and "2/1" in the slow one. No idea what's up with that.

#xcode #clang #jenkins #softwareengineering

larsmb, to random
@larsmb@mastodon.online avatar

Vacuum welding suggests to me that the universe tracks objects via the equivalent of \0 terminated arrays on a 3D heap, and I find this genuinely scary

#C #Clang

britown, to gamedev
@britown@mastodon.gamedev.place avatar

Thinking about just switching over to clang and abandoning msvc entirely and seeing how it goes. I feel like it's going to make true cross platform dreams a lot more feasible moving forward.

Anyone had experience with developing native C++ apps in Clang for windows in Visual Studio? Is this a terrible idea? How's the support

#gamedev #clang #visualstudio

justanhpcfella, to llvm

I just finished building + on my dev board! The entire process, from cloning the repo to building, linking, and installing, was all done natively on RISC-V!!

It took about 19 hours of work and 16 hours of having the puny quad-core in-order RISC-V CPU pinned at 100%, but the thing actually built successfully and is compiling and running programs. Insanely impressive stuff.

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

Post your latest commit message. I'll start:

> Fixed a possible crash during the trophy cutscene that could happen if the stadium did not have a scheduled match and was not associated with an owning club.

#c

rml, to rust
@rml@functional.cafe avatar

size: 343Mb*
size: 1Gb
size: 1.4Gb
size: 1.7Gb

size: 5mb

[ * ] all based on the results of using size, removing common and documentation-based dependencies such as ncurses, bash, and zlib

DanielaKEngert, to cpp German
@DanielaKEngert@hachyderm.io avatar

Nearly three months have passed since the C++ On Sea conference where I presented the then-latest status of

https://vmst.io/@cpponsea/110967875399605134

Less than two weeks from now, I will be presenting interesting updates on that topic at the NDC {TechTown} conference.

https://ndctechtown.com/

ChristosArgyrop, to programming
@ChristosArgyrop@mstdn.science avatar

Popularity of languages from August ( is 28 at 0.68%).
Has its limitations, but a couple of points worth noting :

  1. and are holding rather well
  2. languages that are involved in some sort of data analysis and processing (, /c++) are doing very well. Not sure what to make of ; are ppl in seeing through the reality is a scripting over extremely performant c/c++ and that there are other lang that can glue as well?
    & are ⬆️
rollbrettklauen, to cpp German

Is there a way in C to store any pointer in a data structure and write to it? #clang #c #cpp

Somewhat like that, but I want to be able to write any type to that pointer.

I will be preserving type safety via an enum.

dunglas, to golang
@dunglas@mastodon.social avatar

Calls to Go functions from C (and to C functions from Go) are expensive, so I'm improving FrankenPHP's performance by grouping them (which in this case involves a bit of "unsafe" magic)!

https://github.com/dunglas/frankenphp/pull/190

#golang #clang #php

Mek101, to programming Italian
@Mek101@fosstodon.org avatar

Writing a Simple Garbage Collector in C
http://maplant.com/gc.html #programming #c #clang #garbagecollection

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