16 karma · joined Sep 16, 2025 (1y ago) · 16 submissions
comment 2w ago · link · parent
Originally started from the st[0] terminal and removed unused functionality, but there was still too much code. Ultimately I followed a minimal example from rosetta code[1].
For the task of removing functionality I developed a small tool based on LLVM that prints the source code location of functions that are unreachable from main, so that I can safely remove them without altering functionality, deleted ~3000 LOC in a couple of minutes[2], still I'm struggling with integrating the tool with cmake
[0] https://st.suckless.org/ [1] https://rosettacode.org/wiki/Window_creation/ [2] https://github.com/FattiMei/modmask
comment 2mo ago · link · parent
It is nevertheless "complecting": the uniq assumes the data is sorted and the columns of your data structure move together. Maybe this algorithm is already complex regardless of the implementation.
btw, this paradigm reminds me of APL
comment 5mo ago · link · parent
I also got that, there aren't many incentives in HPC. Users want results and don't have the time or skill to invest in rewriting the software stack to be as efficient as possible.
An intuition that I have is that this problem could be solved at the application/framework layer. Instead of launching jobs, which are glorified bash scripts, control the logic of the resource allocation dynamically from the application software.
It will solve the problem of load balancing based on your actual compute needs, but what happens if a program requests resources in a loop? At least the current schedulers know in advance the requested resources and can stall huge allocations
comment 5mo ago · link · parent
Can you give an example of typical execution on the cluster? Is it a problem of number of hours allocated or number of compute cores?
If I'm running a PDE simulation, and I allocate n machines I want to use all of them, so there is no risk of idle machines. It's not trivial to estimate a priori the amount of time required for my simulation to complete, so I overestimate. But when the simulation is complete (even before the deadline), the resources get freed and can be used right away for another job
Maybe the problem is when many users are greedy. Also MPI simulations are difficult (if not impossible, correct me) to change dynamically: when a simulation is started with that number of ranks, I can't add new ranks at will if the resources are available
Thank you for the patience for everyone that answers
comment 6mo ago · link · parent
One could say that we can almost replicate the semantic of a C++ program, but writing in Julia. For example we can remove bounds checks in arrays or remove hidden memory allocations.
But the goal of a language for numerical computing is capturing the mathematical formulas using high level constructs closer to the original representation while compiling to efficient code.
Domain scientists want to play with the math and the formulas, not doing common subexpression elimination in their programs. Just curious to see how it evolves
comment 11mo ago · link · parent
comment 1y ago · link · parent
comment 1y ago · link · parent
16.
Ask HN: You are given a PETAFLOP of compute, what do you do with it?
1 points · by FattiMei · 1y ago · 3 comments