HNHacker News
TopNewBestAskShowJobs

yxhuvud

4,130 karma · joined October 2, 2009

submissionscomments
yxhuvud··on Ministry of Justice orders deletion of the UK's largest court reporting database
What we do here in sweden is that you can ask the courts for any court document (unless it is confidential for some reason).

But the courts are allowed to do it conditionally, so a common condition if you ask for a lot of cases is to condition it to redact any PII before making the data searchable. Having the effect that people that actually care and know what to look for, can find information. But you can't randomly just search for someone and see what you get.

There is also a second registry separate from the courts that used to keep track of people that have been convicted during the last n years that is used for backgrounds checks etc.

yxhuvud··on A header-only C vector database library
Unless you have link time optimization you would lose out on optimization and performance.

The whole thing is essentially a workaround for lack of sufficiently good/easy ways to package code in the ways people want to use it.

yxhuvud··on Zig – io_uring and Grand Central Dispatch std.Io implementations landed
No. If you don't want to maintain it, don't package it, or for that matter programs written in it. Yes, there are valid reasons not to use zig from a stability perspective, but just ignore it if it isn't good enough for your standards.

Personally I'm glad that there are more people trying to break out of the C tar pit. Even if I'd never chose to use the language.

yxhuvud··on The EU moves to kill infinite scrolling
No. Ads are paying money to get a platform for that speech. Having a platform is in no way a basic right.
yxhuvud··on Lessons you will learn living in a snowy place
Trees fall down due to combination of heavy snow and wind. They probably don't cut sufficiently around power lines. It is extra bad if the ground hasn't frozen properly yet.

In some places it may be cheaper to dig down the cable than facing storms.

yxhuvud··on Lessons you will learn living in a snowy place
8: that's why you have sharper slopes on the roof if you expect a lot of snow. Then it glide off.

We have to get our city house roof shoveled, but it is more making certain it don't fall on top of someone.

yxhuvud··on Simplifying Vulkan one subsystem at a time
Ubuntu's perfectly fine if you avoid LTS versions.
yxhuvud··on Thoughts on Generating C
Essentially all the most important functions to interact with rings during runtime is static inline. The prep_* methods for sqes are so simple they are not problematic to reimplement, but all the other interactions necessary - submit, advance, peek, wait etc are all static inline, nested several layers. Those are not trivial and details have changed over time.

Thankfully that particular library do nowadays also provide a _ffi version of the .so as it is such an horror otherwise. But there are other libraries out there that don't do that, where it is almost as big of a hurdle to bind with.

yxhuvud··on Thoughts on Generating C
> likely because they do not want tons of slightly different functions

No. They do it because it avoids the overhead of dynamic dispatch. Nothing else.

So when I've seen these in reality in real library interfaces they have not been 'example wrappers'. They are real intended usage of the API, and in some cases the lib authors recognize that it is a problem and even provide ways to build it without the issues - either by compile time flag or always outputting two variants of the .so. The former moves the question to the distro - should they provide the version optimized for C or the one optimized for other languages? In the case of the latter it obviously creates a situation where the vast majority of both .so-s are duplicated.

As an example of the compile flag, there is libpipewire. As an example of providing two versions of the .so, there is liburing.

So no, this is clearly something the language ecosystem lacks a good answer to. There is currently no way to make everyone happy.

> such a change would be ABI-incompatible anyway

True, but the C based ones can at least simply rebuild and the problem would go away.

yxhuvud··on Thoughts on Generating C
If the language provides nice features to libraries for C language users by sabotaging the library for use outside the language, then this is absolutely a problem on the language side.
yxhuvud··on Thoughts on Generating C
That is not an option - it may be layers on layers of them and force you to recreate half the library and force you to have to redo subsequent version updates in your code. Then a shim is the preferred solution. But anything that requires a C compiler for FFI is something that won't make anyone happy. Hence my claim that it really is something that needs fixing on the language or linker level.
yxhuvud··on Thoughts on Generating C
> "static inline" neatly avoids needing to think about it.

Sure, except when you do FFI bindings. Then those functions just don't exist and you get a linking error.

yxhuvud··on Thoughts on Generating C
What makes you think functions defined as `static inline` is not in the .h? These are very much not private functions.

Example: https://github.com/axboe/liburing/blob/master/src/include/li...

yxhuvud··on Thoughts on Generating C
`static inline` is definitely not private. See https://github.com/axboe/liburing/blob/master/src/include/li... , for a practical example.
yxhuvud··on Thoughts on Generating C
Modern libraries consistently use `static inline`, to avoid the overhead of dynamic dispatch. Just take a look at liburing, and the client libraries for pipewire and wayland. All of them have `static inline` all over the place, for methods that are definitely intended to be called.
yxhuvud··on Thoughts on Generating C
Doesn't help. The point is to avoid having to invoke a C compiler when working in X language. But it would certainly be nice if the distros enabled that.
yxhuvud··on Thoughts on Generating C
"static inline", the best way of getting people doing bindings in other languages to dislike your library (macros are just as bad, FWIW).

I really wish someone on the C language/compiler/linker level took a real look at the problem and actually tried to solve it in a way that isn't a pain to deal with for people that integrate with the code.

yxhuvud··on OpenCiv3: Open-source, cross-platform reimagining of Civilization III
3 has a really nice feel when you manage to get the early timing attacks off against the neighbours, but the later half of the game is too solved - the game ends with infantry + artillery stacks being the only units you need, and with the 3x4 city grid bring optimal.

4 in contrast had a bunch of different paths to power, and those worked even on high difficulties. There were also no optimal city grid the same way (though still being denser than civ5).

yxhuvud··on Microsoft's Copilot chatbot is running into problems
Google is certainly looking better than stack overflow.
yxhuvud··on X offices raided in France as UK opens fresh investigation into Grok
Generally speaking I wouldn't support blocking their IP, but rather I'd block the ability of European companies to pay for ads on X unless they fixed their shit and paid any damages. That might of course lead X to block Europe visitors in turn but that is a different discussion.

Or in other words: I would block the do business-part, not the access part.

yxhuvud··on X offices raided in France as UK opens fresh investigation into Grok
Yes, if you don't follow EU laws prepare to not do business in Europe. Likewise, if you don't follow US laws I'd advise against trying to do business in USA.
yxhuvud··on Apt-bundle: brew bundle for apt
Given your username, do you have the same reaction to bundler?
yxhuvud··on Bf-Tree: modern read-write-optimized concurrent larger-than-memory range index
Was the link changed? Right now it points to the github page, and it doesn't really say why anyone would care about it.
yxhuvud··on Package management is a wicked problem
No, the system package managers is part of the fragmentation problem, as every app would have to support n different package managers. That is a nonstarter. Getting away from that is the main feature that drive adoption of language specific managers. What is needed is a layer in between that work well with both languages and systems.
yxhuvud··on Package management is a wicked problem
It is easy to see why the system package managers in that are in use are not sufficient. The distro packages are too bureaucratic and too opinionated about all the wrong things.

I don't disagree that it would be nice if there was more interoperability, but so far I havn't seen anyone even try to tackle the different needs that exist for different users. Heck, we really havn't seen anyone trying to build a cross-language package system yet, and that should be a lot easier than trying to bridge the development-distro chasm.

yxhuvud··on Lennart Poettering, Christian Brauner founded a new company
Afaik bankid will actually run as long as you can install play store (IE the device don't need Google certificate), which isn't great but a little bit better than what it could have been.
yxhuvud··on The Holy Grail of Linux Binary Compatibility: Musl and Dlopen
Honestly, that doesn't sound too bad if you have decent bandwidth.
yxhuvud··on Doing gigabit Ethernet over my British phone wires
> phones are wireless, which is too slow to test things

Eh, wifi7 go up to 1.7gbit or something like that. Should be plenty assuming the hardware supports it. Which is a pretty big assumption.

yxhuvud··on Why medieval city-builder video games are historically inaccurate (2020)
The author also suggests simulating flood walls. That is also a very .. local suggestion.
yxhuvud··on The challenges of soft delete
Depends on your jurisdiction I suppose. If you are in EU it's a question if you have PII or not - if you are a SaaS or not is totally irrelevant.
← PreviousPage 6 of 34Next →