11,909 karma · joined May 27, 2009 (17y ago) · 2,694 submissions
comment 2d ago · link · parent
If that's not the case, rather than interpolating into a time grid, it's often better to use a generalization of the DFT called the "Lomb-Scargle Periodogram".
For example if you have a periodic process like measuring the distance between two planets, but you only get measurements at random timestamps, that's the way to go.
See for example https://docs.astropy.org/en/stable/timeseries/lombscargle.ht...
comment 3d ago · link · parent
We develop an internally-used information system (think of like a CMDB, some automation around it, plus some other parts that aren't typically part of a CMDB, like employee timesheet). There are semiregular requests for automations at the edge, for example a non-technical user might need to create several hundred objects, and there's no existing tool for it, but there is an API. We could task the junior developer with writing a tool that does an excel import and creates the objects through the API. Stuff like that.
They can then decide if they just write the tool, or also talk to the stakeholder and get some feedback and/or suggest different file formats that work better for this application, and so on. Plus they develop experience with our API. They also get feedback through code review.
When that works well, we try to bring them closer to the core business logic. There they have less autonomy at the start, but it increases when they show good judgement.
This might not work for everybody, and we certainly wouldn't have enough work to employ three juniors with such tasks. But in our niche, it's successful.
comment 2w ago · link · parent
The real difference is that a carpenter actually talks to you when you order your furniture, and builds something custom to your specification. The quality of the finished cupboard wouldn't improve if your craftsman only used hand tools.
I suspect something similar will happen for software: For some applications, vibe code is good enough. For others, a human will do software design (possibly with machine assistance), hand-writes some parts, delegates other parts to an AI but still reads it.
Purely-human-written code will be akin to furniture built using only hand tools: a piece of art, or maybe product of a hobby or a religious ceremony rather than a practical necessity or a practical advantage.
comment 2w ago · link · parent
You can also tell it what kinds of tests to write. (Assuming you're still interested in details of the codebase).
> "AI writes overly complex ccode" - only if you let it. A "do not overengineer it" or "Pareto, 80% result with 20% of effort" go a long long way.
Also, if it wrote a complex solution, tell it write a simple one instead.
In my experience, good AI adjusts pretty well to an existing code base, and produces roughly similar abstractions to the ones it finds.
comment 2w ago · link · parent
You don't need SOTA models to pend test your systems.
With enough effort put into proper harnesses, you can use good open-weights models and achieve a lot.
You can also use coding agents to clear out technical debt, or improve the security architecture.
Don't let yourself get paralyzed by lack of access to the latest-and-greatest models.
comment 3w ago · link · parent
For example, I have linux-image-generic installed, description "Generic Linux kernel image This package will always depend on the latest generic kernel image available." and then "Depends: linux-image-6.8.0-147-generic, linux-modules-extra-6.8.0-147-generic, linux-firmware, intel-microcode, amd64-microcode"
Why isn't there linux-image
or linux-modules-* listed as an affected package?First I thought it was the source package / binary package distinction, but e.g. linux-image-7.0.0-38-generic says "Source: linux-signed-hwe-7.0", and linux-signed-hwe-7.0 isn't listed as an affected package either.
So what's going on here?
comment 1mo ago · link · parent
Is this similar?
I wonder why gitlab even has its own regex compiler. Or is this a vulnerability in an underlying library or programming language?
comment 1mo ago · link · parent
* I use LLMs to resolve the more annoying merge conflicts. It's not super hard work, but I don't like it, and I don't think I learn much from doing it.
* I implement a feature by hand, write some basic tests, and tell the AI to review it and write tests for cases that I missed (or was too lazy to do, most of the time)
* For 80% of the bugs that I fix, I have a pretty good idea going in where the bug might be. In the other cases, I ask the LLM to generate a list of hypotheses what's wrong. Often (but not always) it turns out one of the hypotheses was right.
* Sometimes it's not so easy to figure out how to trigger a bug in a test case. Haven't done it yet, but I plan to ask LLMs to experiment to try to do that for me.
* I use LLMs to generate tools that I wouldn't otherwise write (not high enough priority, too lazy, ...). For example, we had a rabbitmq connector that occasionally kept getting stuck without reconnecting in rare patterns of network interruptions. It wasn't really high priority for us (rare, easy to work around by restarting the service), so I didn't want to spend days of engineering on it. I asked Claude to write me a test harness that reproduced the issue, and it did. Having a bunch of automatically runnable scenarios made the actual fix not too hard.
* Sometimes, I have some software design problems where I feel I have a pretty good solution, but something about it feels off. Talking this through with an LLM often helps to refine or change the approach.
---
This approach to AI usage doesn't make me 10x more productive, but I do think it's a net benefit both for code quality and my enjoyment of the job. I don't know if, in a few months or years from now, I'll still be competitive like this, but right now, I'm doing fine.
comment 1mo ago · link · parent
The more types of potential errors your compiler catches, the fewer unit tests you need. Haskell needs fewer (and potentially different) tests than Perl or Python.
The other thing where unit tests really shine is testing a complex algorithm. If you think of a problem with a very well-defined output (like sorting, searching, some types of computation, graph algorithms, geometry problems etc.), then it's pretty easy to come up with a stable API and thus stable tests. I'm pretty convinced that unit tests give you more bang for the buck than plain-English test plans that you need to spend tokens on to evaluate.
comment 1mo ago · link · parent
But now it is integrated into the charting / medical records software that here clinic uses, and now it saves her lots of work, and even flags discrepancies between things her patients said and the other medical records.
This illustrates that for the average user, AI works if it's properly integrated into software. For most people, saying "look, here's AI, it can do everything that you ask it for" isn't really practical. It's not even practical for me, a power-user and programmer, because I want my AI usage be subject to constraints (sovereignty, well-defined scopes what it's able to do). Doing that all by myself sounds tedious and challenging.
So for most people, AI is a building block, that hopefully will be used to build tools they actually enjoy using. Don't expect everybody to build their own tools, even though they possibly could, using AI.
comment 2mo ago · link · parent
Why would it be any different for inference? If we believe OP, it'll just become part of regular compute infra, and thus part of the renting-out-compute business model.
I think it's an open question if the current generation of inference investment will pan out, but in the long term, there'll be a balance between investment cost and margin, just as in every other industry.
comment 2mo ago · link · parent
I'd argue that most human classification is pre-conscious / System One. You see a table, you recognize it as a table without asking yourself "is this a table?"
I guess their marketing implies that it moves classification into system one response time.