programming.dev

8,902 readers
300 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

โค๏ธ 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 1 year ago
ADMINS

The site has updated to lemmy 0.19.5, you may have to log out and then log back in

1
 
 

The latest update to the TIOBE Index reveals notable shifts in the world of software development. While traditional programming languages remain popular, many developers are seeking out technologies that can make sense of the vast amounts of modern digital data. Legacy languages like C, COBOL, Fortran, and Assembly still have their place, but they no longer take center stage.

2
3
4
5
 
 

It's possible that the .io cctld is going to go away [0]. Does crates.io have a backup plan at all? Does anyone know what problems it would end up causing?

I imagine the package registry having to move domains is going to cause a ton of problems.

Frankly, it's concerning to me that so much of the Rust ecosystem has chosen to standardize on shaky ccTLDs. The Indian Ocean Territory (.io) is a small island territory whose only inhabitants are a single military base, it is crazy to use that domain for something important. Serbia (.rs) is more stable, but they could still cut off access for non-Serbians if they wanted to.

[0] - https://en.wikipedia.org/wiki/.io#Phasing_Out

6
 
 

cross-posted from: https://lemmy.ml/post/21458338

The GNU Compiler Collection (GCC) support for the C23 programming language standard is now considered "essentially feature-complete" with GCC 15. As such they are preparing to enable the C23 language version (using the GNU23 dialect) by default for the C language version of GCC when not otherwise specified.

Preparations are now underway to set the default C language version of GCC to GNU23 as the GNU dialect of C23. Or in other words, implying -std=gnu23 when no other C standard is specified.

7
8
 
 

cross-posted from: https://lemmy.ml/post/21509416

9
3
submitted 3 hours ago by Andy to c/concatenative
10
65
submitted 1 day ago* (last edited 1 day ago) by little_ferris to c/rust
 
 

If we were to create a Rust version of this page for Haskell, what cool programming techniques would you add to it?

11
12
 
 

cross-posted from: https://lemmy.world/post/20962151

Hello Linux folks, i would like to share one little hack which i have found.

On fedora, zram-generator comes installed and configured by default with lz4 algorithm i believe, and no disk swap, if you have 8gb of ram or more, that is fine, but if you have 4gb or less, systemd-oomd either kills you games when they use too much memory, or you face an OOMD and get your system frozen.

When configuring fedora, normally i would create an in-disk swap, so that my computer wouldn't freeze but face a MASSIVE slowdown when on way too high memory usage, i also set zram-generator to use the zstd algorithm so that zram compression rate is higher but slightly slower, like that i can use my low memory more efficiently with a lower risk of OOMD.

I was watching a bringus studios video once, where he tried to run counter-strike 2 on a ps4 using linux and proton; the game would always use too much memory and that would freeze the system before it got a change to actually launch, the strange ps4 linux was using in-disk swap, and so, increasing swapiness to 100 bringus tried to leverage that to make the game run. He was sucessful. In disk swap is very slow, so the performance was crap, but that does not matter...

So i saw that, and had the idea to combine it with zram-swap to avoid the in-disk swap penalty, also using zstd as the algorithm to make the most out of the memory, and it was a massive sucess! Some games which would make my system very unstable or straight up freeze on certain launch attempts started launching and working just fine! and without dumb in-disk swap slowdowns!

While running modded Victoria 2 i have noticed my system is using about 3.3 to 3.4GB of swap, and about 3.5 gb of ram, so about 100 to 200MB of real uncompressed memory usage, assuming zstd is running at level 1 of compression, and achieving at least 3.0 as compression rate, in thesis, my system has now the equivalent to 10GB of ram, well about it's weight! even more impressing considering how low are the numbers we are working here!

tldr: setting your swapiness=100 while using zstd as your zram-generator compression algorithm, and no in-disk swap will help your system use the most out of your ram with negligible performance penalty

13
 
 

I only recently learned about Turtle but it seems like a fun way to represent data. I'm curious to learn more & mess around with it or similar formats for representing the meaning of English text. Anyone have any suggestions for projects, libraries, etc to look into?

14
1
Day 10 - Scheduling tasks (linuxupskillchallenge.org)
submitted 3 hours ago by livialima to c/linuxupskillchallenge
15
46
Oh no (sh.itjust.works)
submitted 13 hours ago by [email protected] to c/programmer_humor
 
 
16
17
18
 
 

I am working on a rudimentary Breakout clone, and I was doing the wall collision. I have a function that I initially treated as a Boolean, but I changed it to return a different value depending on which wall the ball hit. I used the walrus operator to capture this value while still treating the function like a bool. I probably could have just defined a variable as the function's return value, then used it in an if statement. But it felt good to use this new thing I'd only heard about, and didn't really understand what it did. I was honestly kind of surprised when it actually worked like I was expecting it to! Pretty cool.

19
20
21
 
 

A complete implementation of Tetris in a SQL query.

22
2
Hilarious UI glitch! (mastodon.radio)
submitted 7 hours ago by [email protected] to c/jetbrains
 
 

Hilarious UI glitch!

The UI asks your country of residence, wants you to pick it from a list. No search, and the list is looooong. In the German version of the UI, country names are offered in German โœ… . The list is sorted alphabetically - but not by the German country names as displayed, but alphabetically BY THE ENGLISH VERSIONS! "Deutschland" is somewhere in more or less G ๐Ÿคฆโ€โ™‚๏ธ !

Seen at the checkout page of @jetbrains's Python dev survey that https://pypi.org/ currently advertises.

23
24
 
 

Here's a tutorial I wrote on using components to help keep your code organized.

25
13
Avalonia classic theme (raw.githubusercontent.com)
submitted 18 hours ago by [email protected] to c/dotnet
view more: next โ€บ