vascorsd, to programming
@vascorsd@mastodon.social avatar
jperkin, to llvm
@jperkin@federate.me.uk avatar

So unfortunately #LLVM 17 has hit #pkgsrc, which means I need to turn off support for the full LLVM suite in #clang on #illumos

We offered to provide build hosts and maintain support, but upstream weren't interested, and removed all of the code.

Given it was working absolutely fine, this is a real shame. Especially as I spent a significant chunk of time getting it working.

It'll now have to go back to depending on GCC's libstdc++, and I'll work on avoiding dependencies on clang where I can.

villares, to python
@villares@ciberlandia.pt avatar
villares,
@villares@ciberlandia.pt avatar

@cfbolz @melissawm cool question! Melissa and I, we have a friend who contributes to GIMP, @gwidion, he might have more insights into this...

villares,
@villares@ciberlandia.pt avatar

@cfbolz @melissawm @gwidion there is also @yorik working on FreeCAD, which is Python plus a C++ modeling kernel I think...

gracicot, to cpp
@gracicot@mastodon.social avatar

Crashing MSVC is too mainstream. Cool kids crash clang

#cpp #cplusplus #clang

grinn, to emacs
@grinn@emacs.ch avatar

I'm still hopeful clang-format-indent-mode will eventually be accepted into the LLVM project, but for now you can try it out as a separate package:

https://gitlab.com/grinn.amy/clang-format-indent

If you are using clang-format in any of your projects, this might be useful to apply complex .clang-format rules as you type rather than after-the-fact.

Here's the pull request:

https://github.com/llvm/llvm-project/pull/78904

#emacs #llvm #clang

clang-format-indent package usage demo.

grinn,
@grinn@emacs.ch avatar

@chandlerc thank you! And no, I'm not aware of any similar efforts unfortunately. That doesn't mean they don't exist though! Which editor were you hoping for?

chandlerc,
@chandlerc@hachyderm.io avatar

@grinn I use both vim and vscode, but a teammate I know uses emacs.

aka_pugs, to random
@aka_pugs@mastodon.social avatar

The BCPL Reference that spawned 'B', which lead to 'C'. Note the scribbled distribution list. https://drive.google.com/file/d/1eJL-e7oby6TKfRdgpGQ7ufVUSk9P4bIO/view?usp=sharing #ComputerHistory #CLang

adrianco,
@adrianco@mastodon.social avatar

@aka_pugs I wrote quite a lot of code in BCPL when a few of us were working (in our spare time) on a port of the Cambridge University Tripos operating system to a 68010 based machine called the Image 10, back in the 1980’s.

robpike,
@robpike@hachyderm.io avatar

@adrianco @aka_pugs The implementation of BCPL is a self-hosted marvel. I believe this is close to the version Martin Richards used in his show and tells: https://www.cl.cam.ac.uk/~mr10/BCPL23-4-04.html

modev, to programming
@modev@emacs.ch avatar

The spirit of :clang: #clang:

  • Trust the #programmer. Generally speaking, the #C language assumes you know what you’re doing and lets you. This isn’t always a good thing (for example, if you don’t know what you’re doing).
  • Don’t prevent the programmer from doing what needs to be done. Because C is a system #programming language, it has to be able to handle a variety of low-level tasks.
  • Keep the language small and simple. The language is designed to be fairly close to the hardware and to have a small footprint.
  • Provide only one way to do an operation. Also known as conservation of mechanism, the C language tries to limit the introduction of duplicate mechanisms.
  • Make it fast, even if it isn’t guaranteed to be portable. Allowing you to write optimally efficient code is the top priority. The responsibility of ensuring that code is portable, safe, and secure is delegated to you, the programmer.
ChristosArgyrop, to llm
@ChristosArgyrop@mstdn.science avatar

Show me an illustration about the future of the C programming language

CoBC, to cpp French

Si vous connaissez quelqu'un qui connaît quelqu'un qui a son oncle qui connaît quelqu'un dont le voisin recherche quelqu'un pour un poste de développeur soit web soit c++ (+ Qt éventuellement) je suis preneur. Boosts appréciés
#CPP #CLang #Qt #Dev #C++ #C #Web #HTML #PHP #JS #CSS #Travail #Job

modev, to Software
@modev@emacs.ch avatar

Hello. You can call me @modev. I would like to write free #software, but I've been writing commercial software for 20 years to make a living for my family. I have been interested in #programming since childhood for about 25 years. I started with BASIC, Pascal, and even started learning :clang: #clang, but then switched to more “advanced” technologies. As a result, I found a job as a web #developer while still at university, where I still work. I am a JavaScript master, I created my own SPA Ajax framework from scratch back when React and Angular were not in the project, but who is interested in this, except for the company I work for? As a result, I, burned out many times, rising from the ashes of commercial development and all this crap, decided to return to the roots and teach :clang:. All I can do now is to believe that I will still make my contribution to the #development of free software, but for now I’m glad to be in your #community and learn new things, this is the only way I can save myself from burnout. Thanks everyone!

I could have written this way, but I decided not to do it there, having registered in the newly created community #writefreesoftware. Thank you, @drewdevault for creating it!

holgerschurig,

@modev @drewdevault

As a result, I, burned out many times

Wow, that's sad to hear. For some reason, that spared me. However, despite a bit working with Python+Flask, I never was in webdev. I went into systems programming, like Linux Kernel, Linux images, Linux apps in C, C++/Qt, Bootloader, Embedded. Hardware Drivers. I did some FOSS work (like upstream driver work for the Linux kernel, or patches to Barebox, or being one of the 4 founders of ) ... but like you I mostly did "behind the doors" code to pay my family and house.

But nothing of this ever touched my mental health.

I however heard several times from burnout of WebDevs. Do you think this is just by coincidence... or is there something in the WebDev industry that is gnawing on people's health?

ctaylor, (edited ) to cpp
@ctaylor@mastodon.content.town avatar
modev, to programming
@modev@emacs.ch avatar

Personally, I have nothing against the emergence of new #programming languages. This is cool:

  • the industry does not stand still;
  • competition allows existing languages to develop and borrow features from new ones;
  • developers have the opportunity to learn new things while avoiding #burnout;
  • there is a choice for beginners;
  • there is a choice for specific tasks.

But why do most people dislike the :clang: #clang so much? But it remains the fastest among high-level languages. Who benefits from C being suppressed and attempts being made to replace him? I think there is only one answer - companies. Not developers. Developers are already reproducing the opinion imposed on them by the market. Under the #influence of hype and the opinions of others, they form the idea that C is a useless language. And most importantly, oh my god, he's unsafe. Memory usage. But you as a #programmer are (and must be) responsible for the #code you write, not a language. And the one way not to do bugs - not doing them.

Personally, I also like the :hare_lang: #harelang. Its performance is comparable to C, but its syntax and elegance are more modern.

And in general, I’m not against new languages, it’s a matter of taste. But when you learn a language, write in it for a while, and then realize that you are burning out 10 times faster than before, you realize the cost of memory safety.

This is that cost:

holgerschurig,

@modev

Personally, I also like the :hare_lang: #harelang. Its performance is comparable to C, but its syntax and elegance are more modern.

That exactly why I like #nim https://nim-lang.org/ --- it's IMHO much more mature than Hare and offers more targets (e.g. compile to C, C++, JavaScript, WASM or various embedded devices).

modev, (edited )
@modev@emacs.ch avatar

@holgerschurig I also started with nim, yes it's the best of new languages, but Python syntax... I am using C-like languages in everyday work and switching is tiring.

bagder, to ubuntu
@bagder@mastodon.social avatar
bagder,
@bagder@mastodon.social avatar
mattst88, to random
@mattst88@fosstodon.org avatar

I'm trying to fix a patch to allow #pixman's #ARM #NEON #assembly code to build with clang. They perform a lot of mechanical changes to switch to the "unified" ARM assembly syntax (.syntax unified), supported by both #gcc and #clang.

With clang the code builds but fails 3 of the tests in the test suite with what appear to be unaligned accesses. With gcc, the test suite passes before and after the patches.

I've muddled through as much debugging as I can. Any ideas? https://gitlab.freedesktop.org/pixman/pixman/-/merge_requests/78#note_2078065

Neblib, to OutOfTheLoop
@Neblib@mastodo.neoliber.al avatar

In case anyone else was on the whole Joe Biden supporting / banning memes, I think they're referring to this https://www.whitehouse.gov/oncd/briefing-room/2024/02/26/memory-safety-fact-sheet/

  • 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