r/HPC • • Sep 07 '20

Would you try a programming language that automatically and optimally threaded your code, chooses the optimal data structures for you and optimized your programs, and used high-speed yet easy memory management?

I discovered a new and much faster malloc implementation and initial testing is showing that programs that heavily rely on mallocing can run as much as 15x faster. Problem is is kind of needs to be baked into the language, or else requires a good deal of work to implement yourself. So I'd like to create a language around it that also guarantees memory safety.

Also, code can be written in a single-threaded manner with users simply indicating that order is important for some variables, not for others. A couple hints like that and we can automatically and just about optimally thread your code for you to maximize performance.

Finally, I want to be able to run the program in an optimize mode and track various things, such as how many times are users inserting vs reading vs resizing, etc data structures and then optimize the data structure being used for collections so coders don't have to think about it and guess.

Have started building a prototype, would love help building it if anyone would be interested. Initially testing is showing that a 2x to 20x improve over a 'naive' C++ implementation is easy to achieve and much faster to write.

Anything else you can think of? Would you be willing to try it out if I can throw up a demo and prove these performance gains across every program on benchmark games?

0 Upvotes

2 comments sorted by

1

u/jpmorgan34 Sep 07 '20

This sounds like an awsome project! Im currently working on research related to the implementation of using monte carlo for modeling nutron transport and that might be a good test problem if it is what I think it is. Also I'd be willing to take a crack at a demo whenever your in that phase

1

u/mczarnek Sep 07 '20

Awesome, I'll be sure to reach out when I get to that point. Haven't analyzed that problem before but after a little googling, seems like it's likely a good problem for it. When I get a little bit closer to having that demo let's discuss the details of the algorithm.