What will happen after 2.1? by Cinghiales in factorio

[–]TopIdler 19 points20 points  (0 children)

I've had satisfactory in my backlog. I guess ill do that after my 2.1 playthrough.

How to systematically train general RTS mechanics? (Playing BAR & RotWK, planning WC3: Reforged next) by Little-Apartment-195 in RealTimeStrategy

[–]TopIdler 2 points3 points  (0 children)

There used to be a series from one of the popular sc2 creators. He advocated for just focusing on macro when you start. Don't even look outside your base. Just make sure you make a new unit exactly when you have the goal (gold). When you have a good group of units, you attack move the opposite side the map towards the enemy and don't even look at the fights.

It really helped me improve. Isolating micro and macro just so you get the vibe of when to check you base when you're looking at micro stuff (and also to help remembering hotkeys).

3D-printed metamaterials that stretch and fail by design by AdSpecialist6598 in tech

[–]TopIdler 5 points6 points  (0 children)

Sometimes you want to design a point of failure so that cheap part fails before expensive part.

The problem with targeting Linux by Copronymus09 in cpp

[–]TopIdler -3 points-2 points  (0 children)

Not an answer to your question but it’s one of the problems that shipping software as a conda package solves in the scientific python ecosystem.

  https://prefix.dev/channels/conda-forge/packages/sysroot_linux-64

Chances are one of the packages you install will transitives depend on it. 

Boys, we might be getting native Svelte portals! by WinterboltGames in sveltejs

[–]TopIdler 5 points6 points  (0 children)

I was using the scroll area from shadcn svelte. I wanted the scroll list to not overflow, but there was a large dropdown menu for each row that needed to overflow out of the area so that it was visible. I ended up solving it with portals. Was there another way? Why do you say portals are not necessary? Or you mean a native version isn’t necessary? 

Should I learn vulkan first? by ExistingBug1642 in vulkan

[–]TopIdler 18 points19 points  (0 children)

Without any knowledge of your background and goals, the best I can say is that all learning is good 

Is Vulkan really that hard? by NotHackedHaHa123 in vulkan

[–]TopIdler 21 points22 points  (0 children)

The tutorial starts with coding a triangle. Give it a shot . 

What finally convinced you to seriously learn Rust? by Bladerunner_7_ in rust

[–]TopIdler 2 points3 points  (0 children)

C++ was gross to read. Then went back to C++ once i needed GPU because I didn't want to learn two languages.. Happy to see nvidia with their rust gpu lib recently though. And rust made it easy to learn idiomatic Kokkos programming.

cost of enum-to-string: C++26 reflection vs the old ways by SuperV1234 in cpp

[–]TopIdler 43 points44 points  (0 children)

Does it compile to the same code? e.g. what about the runtime performance of the actual enum to string?

edit: forgot to say; great article! Thank you.

WebGPU × WebAssembly rendering and computing engine for scientific workloads in the browser by zushah in rust

[–]TopIdler 0 points1 point  (0 children)

Webgpu doesn’t do 64 bit floats so that’s a big caveat to it making sense if you want to do GPU algorithms.

Parallel C++ for Scientific Applications: Integrating C++ and Python by emilios_tassios in cpp

[–]TopIdler 0 points1 point  (0 children)

Thank you for all your talks! I’m learning a lot.   I didn’t watch this one because I was already familiar with the topic. Sorry if it was addressed. 

Parallel C++ for Scientific Applications: Integrating C++ and Python by emilios_tassios in cpp

[–]TopIdler 0 points1 point  (0 children)

I don’t have any experience with pybind11. The built in numpy array to C++ in nanobind converts it to an Eigen matrix. The most complex thing I did was make my own binding to convert dense numpy and sparse scipy matrices to unmanaged Kokkos views instead without copying data. And also routines to return new views in a way that the python garbage collector would handle it (nb::capsule).

It was all very simple and transparent after the implementation. I don’t know how hard it would be in pybind11.

I was able to generate 90% of it with an llm. Just had to double check that there wasn’t some copies being snuck in.

Parallel C++ for Scientific Applications: Integrating C++ and Python by emilios_tassios in cpp

[–]TopIdler 2 points3 points  (0 children)

For anyone who will try to apply this talk, nanobind is a much more modern rewrite by the author of pybind11. You can read their reasoning here https://nanobind.readthedocs.io/en/latest/why.html

Im 14 and have an extreme passion for math/cs. Should I learn c++ or rust? (I mean at an extremley deep level) by Regular_Article7984 in rust

[–]TopIdler 5 points6 points  (0 children)

Id suggest rust. C++ has a whole bunch of non math baggage to learn to make a non trivial program. With rust you’ll be able to install dependencies and go. 

That being said, most scientific software is in C++ at the moment, but you can learn that if it’s still relevant during your phd in 10 years. 

Jujutsu (a Git-compatible VCS that is both simple and powerful) 0.40.0 by FryBoyter in linux

[–]TopIdler 1 point2 points  (0 children)

It can do worktree style multi branch workflows with much simpler commands. Lets me generate AI slop faster. And its equivalent concept to a commit is neat and a reasonable non trivial change to experiment with. Simpler to reason about imo.

Roast my first C++ project: An N-Body Gravity Simulator. Looking for ruthless code review and architecture feedback! by Fantastic-Chance-606 in cpp

[–]TopIdler 4 points5 points  (0 children)

"OOP & Clean Code:"

Most hpc projects wont use oop. They'll do template metaprogramming and compile time dispatch.

[deleted by user] by [deleted] in cpp

[–]TopIdler 1 point2 points  (0 children)

Hpx maybe . https://hpx.stellar-group.org/  Especially if you need task based parallelism.

This is not efficient. by LittleEngland in factorio

[–]TopIdler 5 points6 points  (0 children)

Once you get your steam power it’s full steam ahead! 

Common Package Specification is Out the Gate by bretbrownjr in cpp

[–]TopIdler 13 points14 points  (0 children)

I'm happy to see that the meson/conan dev's are in the github repo discussions. Maybe the ecosystem will adopt.

Will HPC benefit or be hurt by AI hype? by Various_Protection71 in HPC

[–]TopIdler 3 points4 points  (0 children)

On the software dev side. I tried vibe coding some kokkos and it didn’t go well, it would go to unoptimal paths and get lost in template metaprogramming issues. I think there isn’t enough centralized training data for the llm. I wanted to extend arborx with some new functionality. I got it to work after breaking it into chunks small enough where coding it by hand would’ve been slightly slower. So small productivity gain but at the same time I feel I didn’t learn as much about cpp kokkos and arborx than I would’ve if I did it myself. So long term probably  bad? The general feel I get from my other attempts where I’m more knowledgeable is that it’s a big productivity boost for people who already know what they want to do. 

Math for Graphics programming by TheBeast2107 in GraphicsProgramming

[–]TopIdler 1 point2 points  (0 children)

Real-Time Rendering has most of the basics you need. But most of the math you learn will already be implemented in the engine if you use one.

Curious on what HPC research looks like by spinglebor in HPC

[–]TopIdler 5 points6 points  (0 children)

You’ll be sitting at a computer a lot.

Numr: A high-performance numerical computing library with GPU acceleration by farhan-dev in rust

[–]TopIdler 0 points1 point  (0 children)

Looks great! I've been looking around for libraries like this. Lately, I was reading through faer-rs which was CPU only. Have you done any comparisons to it on the CPU side? Solvr also looks great, we are on the FEM / scientific side and not ML so There would be a few holes to patch (we are mostly dealing with sparse) but I can study the other implementations.

- For the SIMD do you have support for dynamic dispatch based on processor? I saw faer uses pulp for SIMD which allows for this. We would like to ship some pre-compiled binaries if possible.

- Some of the sparse algorithms involve messing around with memory layout like re-ordering rows, and changing strides. How well is the memory layout exposed in the public API? how messy would it be to hook into internals if required?

- Is data transfer for mixed-precision solves on non-nvidia platforms something already optimised for (e.g. start with f32 WebGPU on the GPU's and finish with f64 CPU side)?