General Programming Discussion

Memory safe programming languages are on the rise. Here's how developers should respond
cross-posted from: > Developers across government and industry should commit to using memory safe languages for new products and tools, and identify the most critical libraries and packages to shift to memory safe languages, according to a study from Consumer Reports. > >The US nonprofit, which is known for testing consumer products, **asked what steps can be taken to help usher in "memory safe" languages, like Rust**, over options such as C and C++. Consumer Reports said it wanted to address "industry-wide threats that cannot be solved through user behavior or even consumer choice" and it identified "memory unsafety" as one such issue.  > >The [report](, Future of Memory Safety, looks at range of issues, including challenges in building memory safe language adoption within universities, levels of distrust for memory safe languages, introducing memory safe languages to code bases written in other languages, and also incentives and public accountability. More information: - -

What are the benefits of not using JavaScript in website front-ends?
Sourcehut has No JavaScript as one of it's selling points, so i was wondering why it would be better that way?

howto avoid using npm?
cross-posted from: > I'm writing some javascript (for the web) for the first time in a long time and I am realizing that I would be well served by using a bit of tooling like eslint and standardjs. > > I am reluctantly willing to `apt install nodejs` but I am not willing to use `npm` because of my impression that it is a fractal of yolo `curl | bash` philosophy which will randomly install and automatically run malware or indistinguishable-from-malware garbage I don't want. > > So, my question is: how can I install things like [standardjs]( without using npm? > > Please do not tell me that I should just use npm.

Help with Python
So I'm trying to make a list of numbers that are multiples of 3, this is my code: ``` multiples_of_3 = [] for value in range(3, 31): number = value % 3 == 0 multiples_of_3.append(number) print(multiples_of_3) ``` But it transforms the results into booleans, which throws me a list with false and trues instead of numbers, what I'm doing wrong? I know comprehension lists exist and that this could be done more efficiently but well, I'm trying to learn and writing it as a comprehension list doesn't make it easier.

Computer scientists improve Python sorting function
cross-posted from: > Here is the paper: > > Here is tbe code:

General Programming Discussion

    A general programming discussion community.


    1. Be civil.

    Other communities:

    • /c/rust
    • /c/python
    • /c/powershell
    • /c/haskell
    • /c/fpcomplete
    • /c/cpp
    • /c/c_programming
    • /c/julia
    • 0 users online
    • 2 users / day
    • 5 users / week
    • 25 users / month
    • 105 users / 6 months
    • 2 subscribers
    • 521 Posts
    • Modlog
    A community of privacy and FOSS enthusiasts, run by Lemmy’s developers

    What is


    1. No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia. Code of Conduct.
    2. Be respectful. Everyone should feel welcome here.
    3. No porn.
    4. No Ads / Spamming.

    Feel free to ask questions over in: