General Programming Discussion

8707 readers
37 users here now

A general programming discussion community.

Rules:

  1. Be civil.
  2. Please start discussions that spark conversation

Other communities

Systems

Functional Programming

Also related

founded 6 years ago
MODERATORS
301
 
 

So on a different platform, I came across heated conversations about more experienced tech workers being unwilling to mentor new entrants. While I thought that was an unfair accusation, I thought to ask a wider audience their views and thoughts on mentoring upcommers. Do you mentor anyone? Were you mentored? How much impact does mentoring have on career growth?

302
303
 
 

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

I'm trying to build a minimal CLI that would sync subscriptions between 2 or more lemmy accounts.

To do so, the CLI would need to:

  1. login to each account. For this I can use the login endpoint.
  2. get a list of subscriptions from each account. <- This is where I'm currently stuck.
  3. subscribe the accounts to the communities of other accounts. I think I can use the followCommunity endpoint.

My question is, how do I get a list of communities that a user follows?

304
 
 

The latest major version of the GNU Compiler Collection (GCC), 13.1, was released in April 2023. Like every major GCC release, this version brings many additions, improvements, bug fixes, and new features. GCC 13 is already the system compiler in Fedora 38. Red Hat Enterprise Linux (RHEL) users will get GCC 13 in the Red Hat GCC Toolset (RHEL 8 and RHEL 9). It's also possible to try GCC 13 on godbolt.org and similar web pages.

Like the article I wrote about GCC 10 and GCC 12, this article describes only new features implemented in the C++ front end; it does not discuss developments in the C++ language itself. Interesting changes in the standard C++ library that comes with GCC 13 are described in a separate blog post: New C features in GCC 13

305
306
307
 
 

An important part of working with Vulkan and other modern explicit rendering APIs is the synchronization of GPU/GPU and CPU/GPU workloads. In this article we will learn about what Vulkan needs us to synchronize and how to achieve it. We will talk about two high-level parts of the synchronization domain that we, as application and library developers, are responsible for:

  • GPU↔GPU synchronization to ensure that certain GPU operations do not occur out of order,
  • CPU↔GPU synchronization to ensure that we maintain a certain level of latency and resource usage in our applications.
308
 
 

This is an interactive blog post I wrote a few months ago about how to do fancy water simulations using FFTs. It doesn't assume any Fourier Transform or complex number knowledge. Even if you aren't interested in simulations, have a play with the widgets and learn a thing or two about waves. :)

309
310
311
312
313
 
 

I've reviewed over 10,000 resumes hiring at startups and large companies. Recently I've partnered with some recruiters at MANGA+ companies and started PineappleResume, a free interview guide & paid resume review service - But I'm doing it on Lemmy for free!

How to get a Free Review:

  • Share a link to your resume below (info redacted or not)
  • If there aren't too many posts, I'll get to it and give a review

Note if you're not targeting a general Software Development position, include what role you're going after and optionally the JD.

314
315
316
317
318
 
 

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

This is for people who want to understand how programs get loaded under linux. In particular it talks about dynamically loaded x86 ELF files. The information you learn will let you understand how to debug problems that occur in your program before main starts up. Everything I tell you is true, but some things will be glossed over since they don't take us toward our goal. Further, if you link statically, some of the details will be different. I won't cover that at all. By the time you're done with this though, you'll know enough to figure that out for yourself if you need to.

319
 
 

Skip to around 24m:00s

320
 
 

I have this one .hpp file in a c++ project that's complicated. Too complicated. For this ONE fucking file, VS Code has decided to underline a bunch of random stuff in red and it refuses to show me autocomplete data. It doesn't show me member functions or variables and it doesn't show me functions that match what I've typed so far BUT ONLY IN THIS ONE FILE. The only reason I'm using VS Code at all is because this project is so mind-bogglingly complicated i simply can't remember everything and switching back and fourth between tabs, windows and monitors wastes so much time when you have to do it constantly.

VS Code always does this but you can usually get rid of the problem by closing it and opening it again. No such luck here. Having to do any work in this file without those autocomplete features is going to be such a drag. I actually tried moving the content of this stubborn hpp file to the h file but somehow VS Code is smart enough to troll me by underlining all the same stuff in red and not showing autocomplete data for the 1 block i copied in. How does it even know to troll me like this?

Other than switching to Windows 11 and using visual studio (like ms wants us to), what can I even do?

Also, there's nothing wrong with the code itself. g++ happily compiles and runs it and the relevant parts of the program work as expected.

Edit: hmm I changed the define keyword a little and its working for now although I wouldn't be surprised if that's not the case tomorrow. VS Code is good when it works but when it's being unreliable its just a glorified Windows XP notepad.exe with a dark theme.

321
322
 
 

It was recommended to me on YT and I found it super to be a super interesting presentation. Not just about this specific case but generally approaches to improve perf.

323
324
325
 
 

Hi folks!

I am a new convert coming over from Reddit. I want to build out a Lemmy React Native client. Woo!

I'm very familiar with frontend dev and react (been doing so for a solid chunk of my career), however I am quite new to the Fediverse and not entirely sure how to build federated applications.

I see the lemmy-js-client which will likely help me tremendously, but it's not terribly documented.

Anyone else out there hacking on a TypeScript/React based Lemmy client and willing to share notes? :)

view more: ‹ prev next ›