Better HN
topnewbestaskshowjobs
Log inSign up

perlgeek

11,909 karma · joined May 27, 2009 (17y ago) · 2,694 submissions

Perl hacker and Perl 6 core developer. Email: moritz.lenz@gmail.com.
Submissions

comment 2d ago · link · parent

DFT works great if you have a single with equal spacing in the time domain (e.g. you have a microphone, and you measure the signal every 1/20k s or so).

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

This isn't the default, but there are other ways to employ and train junior developers. What we try to do is to give junior developers more autonomy, but not within our core product.

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 6d ago · link · parent

What happens when somebody tries to contribute based on the last-published commit? Do you merge/rebase their contributions for them?

comment 1w ago · link · parent

No rush, but don't wait too long either.

Yes, the application above it should prevent SQL injection, but if it's imperfect, you don't want an attacker to turn SQL injection into RCE.

comment 2w ago · link · parent

You can improve the quality of an existing code base even with existing open-weight models.

comment 2w ago · link · parent

Note that "hand-crafted" furniture is usually still built using power tools: electric planers, electric saws, routers etc.

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

> "AI writes shallow tests" - used to be true, not true anymore since Astra and Fable 5.1 / Opus 5.5.

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

While "disruption to their food supply" is technically correct, it sounds way more dramatic than it actually was. Nobody went hungry because of these hacked fridges.

comment 2w ago · link · parent

> We are all just sitting ducks, until we have access to these models and enough tokens to pen test our systems.

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 2w ago · link · parent

Rust eliminates some bug classes, but we don't even know yet how many of these vulns would've been prevented by using Rust.

It's also possible that we'd need even more architectural changes to avoid such bugs.

The idea of a microkernel suddenly becomes more appealing...

comment 3w ago · link · parent

I don't quite understand this page. I thought the kernel binary was in the `linux-image-` packages in Ubuntu.

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 3w ago · link · parent

NK, NK, NK.

Seriously, they have professionalized attacks on crypto infra to a degree that whenever you hear about a massive heist, you can be pretty sure it's North Korea.

comment 3w ago · link · parent

I love how @cz_binance tweeted "user funds are safe!" in that thread. Wasn't that a bit too early? Are they?

comment 1mo ago · link · parent

Why would request compression be obscure? When you support posting big forms, requests get big too, so why not compress them?

comment 1mo ago · link · parent

It seems the bugocalypse (or however you write that) has landed.

comment 1mo ago · link · parent

It seems that somebody / something only created a single byte of randomness for each certificate.

comment 1mo ago · link · parent

You should start at "" or 0, not "1".

comment 1mo ago · link · parent

Back in perl 5.8 and older, the regex engine worked by recusing at the level of C functions, and so you could trigger stack overflows by giving it large strings.

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

My attempts at finding a middle ground:

* 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

I think it really depends on the language and the project.

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

On https://www.theskepticsguide.org/podcasts/episode-1109 one of the hosts, Cara Santa Maria, mentioned that she hadn't really used LLMs / Chat bots before.

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 1mo ago · link · parent

The difference is that the employees at tier 1 backbone providers get paid, and if one of them quits, there is an organization responsible (and incentivized) to hire and train replacements.

comment 1mo ago · link · parent

Yes, we should all have opinions on products that consume resources on a societal scale.

Opinions don't necessarily equate with a desire to remove them, there could also be (dis)-incentives like taxes, removal of subsidies etc.

comment 1mo ago · link · parent

Technically, this doesn't answer the question, which was about investment money, not about the investment firms.

comment 1mo ago · link · parent

It's certainly well spent if we eat the crops.

If it's fed to farm animals for meat, that reduces its efficiency by an order of magnitude. There's still plenty of discussion to be had if that is water well spent. It probably depends on a lot of factors.

comment 2mo ago · link · parent

Renting out compute is a viable business model. That's part of what the big and the small cloud providers do. It's just (on its own) not a "get rich quick" business model anymore.

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

> In real life, a human doesn't do classification tasks with the System One part of their brain, they use System Two.

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.

comment 2mo ago · link · parent

Not very practical for a solution that requires a browser plugin. The browser is where most of my interesting data is.

comment 2mo ago · link · parent

> Problem is, Aella has made it her business to speak about it publicly

Why is that a problem? Just don't read her stuff if you're not interested.

There are lots of people talking all the time about stuff I'm not interested in.

comment 2mo ago · link · parent

I've tried to read this, but somehow the article doesn't really come to a point. Is there any point besides Yud not being perfect, and having connections to people who openly talk about their sex life (and that it's somewhat non-standard)?
12345
90