- 9 Posts
- 20 Comments
liori@lemm.eeOPto Programming@programming.dev•Tool for instantiating a C++ template at runtime?1·1 year 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?2·1 year 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)English12·1 year 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/
Plenty of them on various sites, like this one I found yesterday.
liori@lemm.eeOPto Programming@programming.dev•Linux file system developer: we're severely under-resourced51·2 years agoKernel is not a monolithic application, and you cannot develop it like one. There are tons of actors: independent developers, small support companies (like Collabora), corporations, all with different priorities. There is a large number of independent forks (e.g. for obscure devices), that will never be merged, but need to merge e.g. security patches from the mainline. A single project management tool won’t do, not your typical business grade tracking&reporting tool.
CI is already there. Not a central one—again, distributed across different organizations. Different organizations have different needs for CI, e.g. supporting weird architectures that they need to develop against.
There is a reason Torvalds created git—existing tools just wouldn’t work. There might be a place for a similar revolution regarding a bugtracker…
liori@lemm.eeOPto Programming@programming.dev•Linux file system developer: we're severely under-resourced22·2 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-resourced2·2 years agoThe thread is an attempt to merge a new file system,
bcachefs
. This is a large change, requiring a lot of review from experienced developers, and getting anyone to do this work turned out to be difficult. Darrick here started talking how, in general, all development of file systems in Linux is troubled by lack of manpower.
liori@lemm.eeOPto Programming@programming.dev•Linux file system developer: we're severely under-resourced8·2 years agoI guess the best start would be to have a person to organize volunteers.
liori@lemm.eeto boardgames@feddit.de•How do you store your bigger games that don't fit your shelf?English5·2 years agoI’m pretty sure just like transport containers were standardized by ISO to make transport easier, game boxes should be standardized to fit in Kallax.
Another idea that just occurred to me. Maybe position: absolute; both the real content and the gibberish content with the same top, left, width, and height attributes so that the real content and the gibberish overlap and occupy the same location on the page. Make sure both the real and gibberish content elements have no background so that remains clear. Put the gibberish content in the DOM before the real content. (I think that will ensure that the gibberish appears behind the real content even without setting the z-index.) And then make JS set the color of the text in the gibberish element the same color as the background so humans can’t see it.
Be aware that these techniques can affect accessibility for people using screen readers.
liori@lemm.eeOPto Programming@programming.dev•Asynchronous cross-organizational APIs—any available tooling?English5·2 years agoYep, thank you, that’s pretty close to what I imagined!
liori@lemm.eeto World News@lemmy.ml•Osaka Expo asks for overtime cap exemption as time pressure mounts3·2 years agoA lack of planning on your part doesn’t constitute an emergency on mine.
Though I kind of think Japanese grammar cannot express this thought and the closest you can get is Ganbatte!
liori@lemm.eeto Free and Open Source Software@beehaw.org•Thunderbird releases 115 'Supernova', with an overhaul to their design and functionality1·2 years agoWill they keep the dense email list view as an option? Seeing more than the 14 email messages visible on the screenshot in the post is useful to sort out large folders.
liori@lemm.eeto Programming@programming.dev•Is anyone migrating from Java to Kotlin at work?English5·2 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?English5·2 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.
liori@lemm.eeto Programming@programming.dev•Recommended data visualization library? ggplot or matplotlib?English3·2 years agoGiven these criteria, ggplot2 wins by a landslide. The API, thanks to R’s nonstandard evaluation feature, is crazy good compared to whatever is available in Python. Not having to use numpy/pandas as inputs is a bonus as well, somehow pandas managed to duplicate many bad features of R’s data frame and introduce its own inconsistences, without providing many of the good features¹. Styling defaults are decent, definitely much better than matplotlib’s, and it’s much easier to consistently apply custom styling. Future of ggplot2 is defined by downstream libraries, ggplot2 is just the core of the ecosystem, which, at this point, is mature and stable. Matplotlib’s activity is mostly because that lack of nonstandard evaluation makes it more cumbersome to implement flexible APIs, and so it just takes more work. Both have very minimal support for interactive and web, it’s easier to just use shiny/dask to wrap them than to force them alone to do web/interactive stuff. Which, btw, again I’d say shiny » dask if nothing but for R’s nonstandard evaluation feature.
Note though that learning proper R takes time, and if you don’t know it yet, you will underestimate time necessary to get friendly. Nonstandard evaluation alone is so nonstandard that it gives headaches to people who’d otherwise be skilled programmers already. matplotlib would hugely win by flexibility, which you apparently don’t need—but there’s always that one tiny tweak you would wish to be able to do. Also, it’s usually much easier to use the platform’s default, whatever publishing platform you’re going to use.
As for me, if I have choice, I’m picking ggplot2 as a default. So far it was good enough for significant majority of my academic and professional work.
¹ Admitably numpy was not designed for data analysis directly, and pandas has some nice features missing from R’s data frames.
At such scale, a scraper wouldn’t be necessary, that’s easily doable by humans involved in these communities—with a human touch as well.
Yes, many times. And I recall using the technique manually back when I was working with Subversion many, many years ago. No fun stories though, sorry, it’s just another tool in a toolbox.
liori@lemm.eeto Android@lemmy.world•How does everyone feel about Motorola phones?English2·2 years agoI’m not a person who’d be loyal to a brand. Yet Motorola consistently produces devices that turn out to be the best trade-offs (price to functionality) for me. And, so far, all these devices were pretty durable as well, though it’s not that I really put smartphones into lots of use. That’s all I can say.
https://jasone.github.io/2025/06/12/jemalloc-postmortem/