programming.dev

10,121 readers
342 users here now

Welcome Programmers!

programming.dev is a collection of programming communities and other topics relevant to software engineers, hackers, roboticists, hardware and software enthusiasts, and more.

The site is primarily english with some communities in other languages. We are connected to many other sites using the activitypub protocol that you can view posts from in the "all" tab while the "local" tab shows posts on our site.


🔗 Site with links to all relevant programming.dev sites

🟩 Not a fan of the default UI? We have alternate frontends we host that you can view the same content from

ℹ️ We have a wiki site that communities can host documents on


⚖️ All users are expected to follow our Code of Conduct and the other various documents on our legal site

🏘️ Want to create a new community? Please follow our Community Guidelines

❤️ The site is run by a team of volunteers. If youre interested in donating to help fund things such as server costs you can do so here

💬 We have a microblog site aimed towards programmers available at https://bytes.programming.dev

🛠️ We have a forgejo instance for hosting git repositories relating to our site and the fediverse. If you have a project that relates and follows our Code of Conduct feel free to host it there and if you have ideas for things to improve our sites feel free to create issues in the relevant repositories. To go along with the instance we also have a site for sharing small code snippets that might be too small for their own repository.

🌲 We have a discord server and a matrix space for chatting with other members of the community. These are bridged to each other (so you can interact with people using matrix from discord and vice versa.

Fediseer


founded 2 years ago
ADMINS

Broken communities have been fixed, report any issues to ategon

76
77
 
 

Twenty years ago, Linus Torvalds created the basis for Git in just 10 days, forever changing how developers collaborate on code. In this candid interview, Linus Torvalds discusses Git's unexpected journey from a Linux kernel management tool to the foundation of modern software development. Learn about the technical decisions, community contributions, and evolving philosophy behind the version control system that powers millions of projects.

Edit: I did not notice that a post about this topic already existed. The official GitHub blog post/interview transcript can be found here and discussion about it can be found here.

78
79
80
81
 
 

How is it? I'm eager to hear any and all feedback.

If any of you are on macOS, I could use your help testing out the add-macos branch. What's currently there is just me guessing at what might work.

82
 
 
83
84
85
86
87
 
 

I am trying to calculate a motor position from an encoder, however that does not really matter. I just checked godbolt.org to see if my inline function compiled into a single multiplication and was pretty disappointed that it didn't. I used -O3 for maximum optimization.

Does somebody know why it does not compile into a single function, or what I had to change to achieve that? You can find my code here: https://godbolt.org/z/qT9srfPT1 .

I know that it does not really matter, but I am curious.

88
 
 

I work at Red Hat on GCC, the GNU Compiler Collection. I spent most of the past year working on how GCC emits diagnostics (errors and warnings) in the hope of making it easier to use. Let's take a look at 6 improvements to look forward to in the upcoming GCC 15.

  1. Prettier execution paths
  2. A new look for C++ template errors
  3. Machine-readable diagnostics
  4. An easier transition to C23
  5. A revamped color scheme
  6. libgdiagnostics
89
8
submitted 2 days ago by Noughtmare to c/haskell
 
 

I stumbled over Bart de Goede’s article on building a full-text search engine in 150 lines of Python, and was reminded of my quest to show how useful Haskell is for solving real-world problems. Python is an eminently practical language, so nobody is surprised this can be done in Python. But Haskell? The Python code spends a lot of time updating mutable dictionaries. Surely we cannot easily port this code over to Haskell.

Let’s find out.

90
 
 

Like if I'm using print statements to test my code. Is it okay to leave stuff like that in there when "publishing" the app/program?

91
 
 

I did some searching and many users recommend Rofi but looking at man rofi-script it seems to just be a list picker. You pick something from the a list and only one thing runs. On Alfred and Raycast you can have interactive extensions which are essentially keyboard navigable UIs.

  • One example looking at the Alfred workflow gallery is Reddit Browser, where you select a subreddit from a list and then it shows of lists of posts, you can press cmd enter to go back & select another subreddit.
  • Another one lets you ask questions for chatgpt and shows answers right in the launcher (I'm not necessarily looking for AI extensions).
  • This Raycast extension lets you search and create Notion pages.
92
93
 
 
94
9
submitted 1 day ago by canpolat to c/git
95
96
4
Day 5 - More or less (linuxupskillchallenge.org)
submitted 1 day ago by livialima to c/linuxupskillchallenge
97
98
99
100
view more: ‹ prev next ›