General Programming Discussion
!programming@lemmy.ml
help-circle
rss


Memory safe programming languages are on the rise. Here's how developers should respond
cross-posted from: https://group.lt/post/44860 > 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](https://advocacy.consumerreports.org/research/report-future-of-memory-safety/), 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: - https://advocacy.consumerreports.org/research/report-future-of-memory-safety/ - https://advocacy.consumerreports.org/wp-content/uploads/2023/01/Memory-Safety-Convening-Report.pdf
fedilink

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?
fedilink




howto avoid using npm?
cross-posted from: https://lemmy.ml/post/718565 > 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](https://standardjs.com/) without using npm? > > Please do not tell me that I should just use npm.
fedilink




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.
fedilink


Computer scientists improve Python sorting function
cross-posted from: https://feddit.it/post/107967 > Here is the paper: https://arxiv.org/abs/2209.06909 > > Here is tbe code: https://github.com/sebawild/powersort
fedilink







General Programming Discussion
!programming@lemmy.ml

    A general programming discussion community.

    Rules:

    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
    • 797 Comments
    • Modlog
    Lemmy
    A community of privacy and FOSS enthusiasts, run by Lemmy’s developers

    What is Lemmy.ml

    Rules

    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: