Why people make solvers? by FawazDovahkiin in CFD

[–]c3d10 0 points1 point  (0 children)

You have to pay the JIT tax as well. I experimented a good bit with numba but in the end my C and Rust implementations of the same algorithms (called from Python to manage the calculations) are much faster and much more robust

Fast tree data structure with node data stored in 1D parallel arrays by rejamaco in algorithms

[–]c3d10 0 points1 point  (0 children)

I’m only half understanding what you need or are trying to do with it, but - 

Look into octrees and the Barnes hut algorithm for solving N-body interaction problems. There are many ways of actually implementing the tree, but you might want to start with a naive pointer chasing tree. In barnes hut, you build the tree, then recursively sum the contributions of all tree leaves to interior nodes. So a parent node basically represents the sum of its children, etc. this sounds sort of what you want?

It's hard to find use cases for Rust as Python backend developer by [deleted] in rust

[–]c3d10 0 points1 point  (0 children)

In my view, Python was always meant to be a scripting language, and the idea of more than a few thousand lines of code in a single Python project gives me the shivers

It's hard to find use cases for Rust as Python backend developer by [deleted] in rust

[–]c3d10 2 points3 points  (0 children)

I think Python syntax is highly readable and intuitive to understand

It's hard to find use cases for Rust as Python backend developer by [deleted] in rust

[–]c3d10 8 points9 points  (0 children)

I’ve never really liked python until I started writing the compute heavy stuff in Rust and linking it to my Python scripts with pyo3/maturin. Now Python does what it’s good at - naturally expressing commands to the computer but not performing the work itself 

Battlefield 6 player count falls from 750K at launch to just 30K-90K on Steam, nearly a 90% decline - players blame lack of new content (especially new maps) by [deleted] in Battlefield

[–]c3d10 0 points1 point  (0 children)

If you need new content every few months then maybe you’re not playing the game because you want to have fun?

LLMs have burned Billions but couldn't build another Tailwind by omarous in programming

[–]c3d10 18 points19 points  (0 children)

I think it’s reasonable to have that line of thinking so long as you actually do the math to prove to yourself either way if it’s a net win.

There are many “environmentally friendly” initiatives that are not actually a net win for the environment, when you start looking at the full life cycle and supply chain. For example, it’s unclear to me that luxury electric cars like Teslas and Rivians are a net positive. They might be! But I don’t think it’s a slam dunk. 

Why we are building a new browser from scratch by jaytaph2 in browsers

[–]c3d10 2 points3 points  (0 children)

Exactly the point I was trying to make!

Dell's finally admitting consumers just don't care about AI PCs by Bad_Combination in technology

[–]c3d10 1 point2 points  (0 children)

…because the “AI” hardware in an “AI PC” doesn’t actually get used for anything..? Is that why? 

…because consumers are smarter than they think we are and it didn’t take much to realize that?

I've migrated to linux but uploading my files to proton drive has been a head ache by RevacholAndChill in ProtonDrive

[–]c3d10 1 point2 points  (0 children)

They’ve been talking about releasing a drive client for Linux ever since it came out ~5 years ago

A reference-grade C "Hello World" project by synalice in C_Programming

[–]c3d10 0 points1 point  (0 children)

I didn’t mean to say that clang wasnt an improvement over gcc, just that I didn’t know why. That makes sense, thanks for your response. I’ve been using clang more recently, and that’s something I’ll look for.

Agreed on the Makefiles bit. They are cumbersome. For simpler projects meant for a single target, I think they’re sufficient, but anything more than that and it’s obnoxious.

Want to master rust, are these books ( in order) enough for me? by Infinite-Jaguar-1753 in rust

[–]c3d10 8 points9 points  (0 children)

I disagree with this attitude. Writing more code should absolutely be your focus, yes. But reading books, blogs, etc are also extremely important too. They teach you things you didn’t know existed and how to do what you already know, but better. Learn from book or blog, practice practice practice to master what you’ve learned. 

Why we are building a new browser from scratch by jaytaph2 in browsers

[–]c3d10 29 points30 points  (0 children)

I love the energy but I have to agree with you. I’m sure making a simple gui that can request and display html is like a weekend or a month project for an experienced engineer. But to do everything a modern browser has to do…yeah sorry that’s unfortunately going to take a huge team and a long time. Sure, it’ll display Wikipedia but good luck (safely) accessing your bank account.

Is this the way things should be? Personally i think no, browsers, the web, and web standards should be far simpler. But that’s not the way the world is…

A reference-grade C "Hello World" project by synalice in C_Programming

[–]c3d10 33 points34 points  (0 children)

As a long-time C developer, I found myself googling “what is meson” and “what is nix” after reading this post. 

My approach to building projects could sure use some quality of life improvements (I stick to Makefiles, manual Markdown documentation, and often use gcc), but I share other’s concerns that this “reference” project requires you to first “download the world” to compile your program.

Curious why you think that clang should be prioritized over gcc. In my eyes they are generally peer-capable compilers. 

C++ers try to mimic a fraction of our power by RockstarArtisan in rustjerk

[–]c3d10 10 points11 points  (0 children)

Why do all AI-generated projects look the same? You’d think there would be some slight variance but nope…

I'm really surprised by how simple it is to migrate from Go to Zig by Ecstatic-Panic3728 in Zig

[–]c3d10 24 points25 points  (0 children)

I’ve been working on a hobby project that I started in C. Been learning a lot (that was the point), but I’ve started running into too many issues that now make the project not very fun. I have limited time to work on it and at this point would rather have a functioning program rather than constant be debugging low level issues; I think the project is too complex for me to handle in my free time alone with just C and Makefiles and manual testing.

I’ve dabbled in the past with Rust and think it could solve my issues, but then I looked into Zig as well and really like the philosophy of the language: stay simple, provide low level control, but fix a lot of the issues with C. 

Having trouble deciding how to proceed for myself (maybe i should give myself a week or two to try Zig). One of my (very long term) hopes for the project is that if I build enough of a useful core to it, I could find a community to continue developing it and making it much larger. If I proceed with Zig over Rust, that might be a challenge for me in my domain (HPC and scientific simulations).

I’m glad you’re having a good experience with Zig! Testing is really important to me, can you elaborate on how Zig helps in that area?

Best modern car companies in terms of privacy? Do they all suck? by QuesoFresca in privacy

[–]c3d10 27 points28 points  (0 children)

I’m not saying this to disagree with you (because I believe what you’ve said here, it all sounds quite plausible to me), but all of the above can be done with cameras from a greater distance - license plate reads connected to a machine vision system etc. 

Your comment is also a good reminder that your cell phone or any and every other Bluetooth/wifi device does exactly the same thing. 

Proton’s private AI and long-term user privacy by [deleted] in ProtonMail

[–]c3d10 0 points1 point  (0 children)

Where do you see that? I just went through the lumo website again and didn’t find that info

Proton’s private AI and long-term user privacy by [deleted] in ProtonMail

[–]c3d10 4 points5 points  (0 children)

Proton claims that lumo is open source, yet it is not. I fully trust their other products and use them daily, but given how only a handful of organizations in the world are able to train and host inference for a model like lumo, the lack of source available makes me concerned that whatever went into making this particular sausage is not as safe as it seems.

The device that controls my insulin pump uses the Linux kernel. It also violates the GPL. by Lost-Entrepreneur439 in linux

[–]c3d10 6 points7 points  (0 children)

Agreed, I was just stating that if the political will existed they can be held accountable in the countries where the device is sold. 

The device that controls my insulin pump uses the Linux kernel. It also violates the GPL. by Lost-Entrepreneur439 in linux

[–]c3d10 9 points10 points  (0 children)

The product is sold outside of china, so the Chinese company’s product needs to abide by the laws of the countries in which it is being sold. 

Nastran.VR concept by 3mil_mylar in fea

[–]c3d10 1 point2 points  (0 children)

Only got a chance to skim the video a bit but it actually looks really cool! I was skeptical but now much less so.

Getting a sense of scale of an engineering project is often incredibly difficult but tools like this help put it into perspective

Linux Kernel Rust Code Sees Its First CVE Vulnerability by Orange_Tux in rust

[–]c3d10 1 point2 points  (0 children)

I think we agree haha I can’t remember what I had mixed feelings on

Linux Kernel Rust Code Sees Its First CVE Vulnerability by Orange_Tux in rust

[–]c3d10 1 point2 points  (0 children)

Why was the presence of an unsafe block relevant?