- 8 Posts
- 8 Comments
liori@lemm.eeOPto
Programming@programming.dev•Tool for instantiating a C++ template at runtime?
1·2 years agoPersonally I think child processes are the right approach for this. Launch a new process* for each query and it can (if you choose to go that route) dynamically load in compiled code. Exit when you’re done, and the dynamically loaded code is gone. A side benefit of that is memory leaks are contained, since all memory you allocate is about to be removed anyway.
I’d probably be fine with hundreds or thousands of these hanging in memory. I suspect the generated code for a single query would be in hundreds of kilobytes, maybe a megabyte. But yeah, this is one of those technical details I’d worry about.
Honestly, I wonder if you could just use an actual HTTP server for this? They can handle hundreds or even thousands of simultaneous requests. They can handle requests that complete in a fraction of a millisecond or ones that run for several hours. And they have good tools to catch/deal with code that segfaults, hits an endless loop, attempts to allocate terabytes of swap, etc. HTTP also has wonderful tools to load balance across multiple servers if you do need to scale to massive numbers of requests.
Not sure how a HTTP server would solve the CPU bottleneck of scanning terabytes of data per query?
liori@lemm.eeOPto
Programming@programming.dev•Tool for instantiating a C++ template at runtime?
1·2 years agoI somehow didn’t think a regular JIT solution might be applicable here, but it is. Thank you! There seems to be a number of projects doing JIT for C++, will look at them.
liori@lemm.eeto
Selfhosted@lemmy.world•Please recommend your cheaper, reliable SSDs 2TB+ (4TB ideal)English
9·2 years agoSo far I’ve been following recommendations from this person: https://old.reddit.com/r/NewMaxx/comments/16xhbi5/ssd_guides_resources_ssd_help_post_your_questions/
liori@lemm.eeOPto
Programming@programming.dev•Linux file system developer: we're severely under-resourced
16·3 years agoThis plea for help is specifically for non-coding, but still deeply technical work.
liori@lemm.eeOPto
Programming@programming.dev•Linux file system developer: we're severely under-resourced
7·3 years agoI guess the best start would be to have a person to organize volunteers.
liori@lemm.eeto
Programming@programming.dev•Is anyone migrating from Java to Kotlin at work?English
1·3 years agoLast job, we started writing mixing bits of Kotlin in an otherwise mostly-Java in a monolithic Spring-based service. Good experience.
liori@lemm.eeto
Experienced Devs@programming.dev•What are new technologies I should be looking into / learning in my free time?English
2·3 years agoI found it crazy useful to study old, established, mature technologies, like relational databases, storage, low-level networking stack, optimizing compilers, etc. Much more valuable than learning the fad of the year. For example, consider studying internals of Postgresql if you’re using it.



https://jasone.github.io/2025/06/12/jemalloc-postmortem/