A general programming discussion community.
Rules:
- Be civil.
- Please start discussions that spark conversation
Other communities
Systems
Functional Programming
Also related
-
General Programming Discussion @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml Xitdb is an immutable database written in Java
github.com GitHub - radarroark/xitdb-java: an immutable database for javaan immutable database for java. Contribute to radarroark/xitdb-java development by creating an account on GitHub.
-
General Programming Discussion @lemmy.ml Jure Repinc @lemmy.ml New C++ features in GCC 15
developers.redhat.com New C++ features in GCC 15 | Red Hat DeveloperExplore new C++ front-end features in GCC 15.1, including pack indexing and structured binding declaration as a condition
cross-posted from: https://lemmy.ml/post/29133545
Like every major GCC release, this version will bring many additions, improvements, bug fixes, and new features. GCC 15 is already the system compiler in Fedora 42. Red Hat Enterprise Linux (RHEL) users will get GCC 15 in the Red Hat GCC Toolset. It's also possible to try GCC 15 on Compiler Explorer and similar pages.
This article describes only new features implemented in the C++ front end; it does not discuss developments in the C++ language itself.
The default dialect in GCC 15 is still
-std=gnu++17
. You can use the-std=c++23
or-std=gnu++23
command-line options to enable C++23 features, and similarly for C++26 and others. -
General Programming Discussion @lemmy.ml Jure Repinc @lemmy.ml GCC, the GNU Compiler Collection 15.1 released
The GCC developers are pleased to announce the release of GCC 15.1.
The C frontend now defaults to the GNU C23 dialect. Some code needs porting for this. Some remaining C23 features have been implemented, as well as some new C2Y features.
The C++ frontend now implements several further C++26 features, some missing C++23 bits, and defect report resolutions. The libstdc++ library now notably experimentally supports std and
std.compat
modules, more algorithms usable inconstexpr
functions, flat maps and sets, andstd::format
support for containers and other ranges.GCC now implements the Clang
[[clang::musttail]]
and[[clang::flag_enum]]
attributes and their GNU counterparts with the same meaning for the C family language frontends. Support for newcounted_by
andnonnull_if_nonzero
attributes has been added too.The Fortran frontend has experimental support for unsigned integers.
GCC 15.1 has new COBOL frontend, so far supported onl
-
General Programming Discussion @lemmy.ml hexabs @lemmy.world Leetcode alternative for problems w/o paywall
I'm currently job hunting and looking for a platform to prep for interviews.
Leetcode is nice but it locks hard problems behind a paywall that I honestly can't afford right now.
I mean I can still read the problem from https://leetcode.ca/, but it's hard to test it against a good set of test cases.
Please share alternative portals with a decent hard problem collection with testcases
-
General Programming Discussion @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml www.zdnet.com Linus Torvalds built Git in 10 days - and never imagined it would last 20 yearsGit is celebrating its 20th anniversary. Here's why Torvalds never intended for it to stick around.
-
General Programming Discussion @lemmy.ml Jure Repinc @lemmy.ml 6 usability improvements in GCC 15
developers.redhat.com 6 usability improvements in GCC 15 | Red Hat DeveloperGCC 15 brings better error messages and diagnostics for your code, including prettier execution paths and easier-to-read compiler errors for C++ templates
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.
- Prettier execution paths
- A new look for C++ template errors
- Machine-readable diagnostics
- An easier transition to C23
- A revamped color scheme
- libgdiagnostics
-
General Programming Discussion @lemmy.ml Dewege @feddit.org US, a risk for open source repos?
Most open source projects are important alternatives to escape pilitical and commercial control/limitations/censorship existant in commercial products, driven by commercial interests. With the current situation all US-based companies are even more subject to political pressure.
An embargo by the US towards any country/entity would mean US companies have to shut down their services for that entity.
As many open source projects seem to be hosted on github (M$), could they be blocked nearly instantly? Thus giving the pumpkin the power to sabotage alternatives to US controlled tools?
(Hope I‘m not in the wrong community to bring this up. Hints to better suited places are welcome.)
-
General Programming Discussion @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml www.technologyreview.com The machines are rising — but developers still hold the keysIncreasing use of AI in software development will make developer decisions and judgment more important, not less.
-
General Programming Discussion @lemmy.ml Jure Repinc @lemmy.ml Qt 6.9 released
www.qt.io Qt 6.9 ReleasedQt 6.9 is now available, highlighting emojis, Graphs, OIT, better OAuth2, and many more new improvements for application developers and device creators!
Qt 6.9 is here! This release brings exciting innovations, enhanced graphics performance, and new platform capabilities to help you build exceptional applications.
Highlighted improvements in Qt 6.9 include:
- Qt Graphs: Interactive 2D panning, zooming, and dynamic 3D graph injection. Printing support now available!
- Qt Quick: GPU-accelerated SVG animations and Variable Rate Shading for improved graphics performance.
- Qt Quick Controls: New context menu support enhances desktop integration and user experience.
- XR Enhancements: Haptic feedback added for creating richter immersive virtual interactions.
-
General Programming Discussion @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml DeepSeek R1 is great for one off scripts
I got some mp3s with cyrillic id3 tags that didn't decode properly on my machine. I decided to ask DeepSeek to write a script to fix that, and it just worked on the first try. Around a 100 lines of code.
here it is:
undefined
npm install iconv-lite node-id3
javascript
const iconv = require('iconv-lite'); const NodeID3 = require('node-id3'); const fs = require('fs').promises; async function decodeMP3Tags(filePath) { try { // Read both ID3v2 and ID3v1.1 tags const tags = { v2: NodeID3.read(filePath), v1: await readID3v1(filePath) }; // Merge tags with priority to ID3v2 const mergedTags = { title: tags.v2.title || tags.v1?.title, artist: tags.v2.artist || tags.v1?.artist, album: tags.v2.album || tags.v1?.album, year: tags.v2.year || tags.v1?.year, comment: tags.v2.comment?.text || tags.v1?.comment, trackNumber: tags.v2.trackNumber || tags.v1?.track
-
General Programming Discussion @lemmy.ml lucas_givens @lemmy.world Request for comments on a encrypted messaging protocol I'm developing
github.com Design protocol by Givlucas · Pull Request #8 · MariposaOrg/mariposaAdds a design paper for the mariposa communication protocol
Hey everyone! I'm looking for some comments / discussion on a peer to peer encrypted messaging protocol I'm developing called Mariposa.
It functions on top of TOR, using hidden services to hole punch through firewalls and to provide anonymity.
-
General Programming Discussion @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml Lynx is an open-source app development framework created by ByteDance. It outperforms React Native with a dual-threaded architecture for smoother UI, and supports standard CSS.
github.com GitHub - lynx-family/lynx: Empower the Web community and invite more to build across platforms.Empower the Web community and invite more to build across platforms. - lynx-family/lynx
a quick rundown https://www.youtube.com/watch?v=-qjE8JkIVoQ
-
General Programming Discussion @lemmy.ml HiddenLayer555 @lemmy.ml I wish Python was supported as a web frontend language.
I used to hate web frontend development. But now I'm realising I just hate JavaScript. Python is also interpreted meaning it can be hosted in a sandbox, also dymically typed, has dicts which baiscally use JSON syntax, supports multiple paradigms, etc. Instead of a language whose creators probably said "let's make this language we named after Java a million times worse than Java"
-
General Programming Discussion @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml www.righto.com The Pentium contains a complicated circuit to multiply by threeThis article is available in German at Heise Online . In 1993, Intel released the high-performance Pentium processor, the start of the long...
-
General Programming Discussion @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml futurism.com OpenAI Researchers Find That Even the Best AI Is "Unable To Solve the Majority" of Coding ProblemsOpenAI researchers have admitted that even the most advanced AI models can't really solve the coding problems put in front of them.
-
General Programming Discussion @lemmy.ml ☆ Yσɠƚԋσʂ ☆ @lemmy.ml A Tetris implementation in PostScript
github.com GitHub - nst/PSTris: A Tetris implementation in PostScriptA Tetris implementation in PostScript. Contribute to nst/PSTris development by creating an account on GitHub.