Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
okanat
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
3 ms
·
31.
▲
by
okanat
1mo ago
It is not just compatibility. You cannot load them into the memory with your system dynamic loader. You need to also ship ld-linux.so with the new version of glibc you have, if you were to distribute your program independently. On Windows y
32.
▲
by
okanat
1mo ago
> The C compiler doesn't really care as much. Until you define a thread local variable (C11) or use atomics (also C11) or define a global with an initial value. Then it happily generates code that depends on "whatever my target
33.
▲
by
okanat
1mo ago
See https://news.ycombinator.com/item?id=49355262 . Yes glibc has some backwards compat but you cannot load a binary compiled with a newer version of glibc using an older ld-linux.so. That's because the interdependency
34.
▲
by
okanat
1mo ago
BSD also did it. They did it better. Maybe more modern but AOSP also did it but at a different level of binary: instead of ELF, using compiled Java bytecode archives.
35.
▲
by
okanat
1mo ago
See: https://news.ycombinator.com/item?id=49355262 How libstdc++ initializes global variables absolutely depends on glibc and ld-linux.so. That is part of C++ ABI.
36.
▲
by
okanat
1mo ago
When you compile GCC you need to provide a full glibc installation as your target. It is also a dependency of libstdc++. C++ global/static variable initialization depends on the specific version of glibc (they don't usually break
37.
▲
by
okanat
1mo ago
Because glibc and GNU set a terrible precedent. On GNU/Linux systems the shared binary interpreter / loader, GCC compiler, the C library and the system C/C++ ABI all depend into each other. You cannot change any of them indep
38.
▲
by
okanat
1mo ago
The bootloader part of UEFI FW is quite straightforward. It requires updates due to vulnerabilities found in it and also to update certificates. However modern FW of PC clones don't only contain a bootloader and a "simple" ha
39.
▲
by
okanat
1mo ago
Probably they depend on some "obscure" contactor which is one of the ODMs here: https://en.wikipedia.org/wiki/List_of_laptop_brands_and_manu... . Intel / AMD and BIOS vendors simply do not expose their
40.
▲
by
okanat
1mo ago
Human beings are quite rational. But they are not rational in the classical economics sense. Human beings recognize social aspects. They also have their own social status they want to improve. They also know that they can exploit their soci
41.
▲
by
okanat
1mo ago
It is generally correct. When both implementations are completely in the same language Protobuf will win. Instead of a pure-JS implementation one can also make a FFI module for Protobuf. The comparison that's being made is equivalent t
42.
▲
by
okanat
1mo ago
Protobuf simply encode things way more efficient that JSON can define a single object. You're quite frankly spewing bullshit in this whole thread.
43.
▲
by
okanat
1mo ago
It is not ironic. Windows is designed from ground up to make independent software deployment by proprietary software vendors as easy as possible. Easy deployment is Windows' raison d'être. It is the antithesis of Unix which is hos
44.
▲
by
okanat
1mo ago
It's a solved problem until you want to display the local user name, make queries through OS name resolution service not Go's custom from scratch DNS implementation. Try accessing a system on mDNS that's not on a global DNS s
45.
▲
by
okanat
1mo ago
You're trying to force Linux-style packaging where declaratively specified dependencies from a single(-ish) repository and shared DLLs are a necessity due to intentionally hostile architecture of GNU/Linux for shipping binary-only
46.
▲
by
okanat
1mo ago
> This is also where Free and Open source diverge: Open Source lets someone block others from forking their fork, whereas Free Software requires that forks remain free to be forked themselves. This is the same tired nonsense hearsay that
47.
▲
by
okanat
1mo ago
> Shipping in C:\\Program Files\\Your Name is standard with Windows applications; DLLs aren't shared between different applications like in Linux, so there's no reason to use them. Win32 and CRT (libc) is shared among programs,
48.
▲
by
okanat
2mo ago
Win32 is the only stable Linux ABI. You can run Delphi apps under Wine.
49.
▲
by
okanat
2mo ago
See https://news.ycombinator.com/item?id=49275165 TL; DR you're right. We are aware options like Podman and systemd-nspawn (check it out if you don't know). They are just overkill.
50.
▲
by
okanat
2mo ago
No we don't need / shouldn't use Docker. As jasomill guessed the disk size and memory usage that Docker needs is just unnecessary overhead. These devices have only 8 GiB disk space. systemd provides every single thing that we
51.
▲
by
okanat
2mo ago
Windows provides almost 100% of the system-level dependencies you need. You don't need to specify things like "I need gstreamer for video decode" or "openSSL for my network". Those are all part of a standard Windows
52.
▲
by
okanat
2mo ago
I think this approach is misguided. Shipping your own DLLs is standard with Windows applications and good workflows using Visual Studio can quite easily can bundle everything you need. If you need somewhat Linux-like build infrastructure, c
53.
▲
by
okanat
2mo ago
At work we maintain embedded-linux computers with a custom distro but the actual graphical interface is a separate artifact developed by another team. Moreover they have to use an SDK that only works on a specific distro (semi-closed source
54.
▲
by
okanat
2mo ago
OS and CPU combination define their ABI as "whatever our most popular / default compiler did in 90s". That's the problem with C-based ABIs. OS ABIs aren't independent of the language. So any new language must includ
55.
▲
by
okanat
2mo ago
> Requiring products to be labelled, and treating mislabelling as fraud, could mostly solve this. There are too many manufacturers to hunt. Basically USB-IF needs to stop almost all shipments in the world. That's not going to happen
56.
▲
by
okanat
2mo ago
There is actually a law being made called Digital Fairness Act at the moment. However the working group hasn't finalized it yet. Note that there are competing political groups and MEPs in the EU from far right neo-fascists, to corporat
57.
▲
by
okanat
2mo ago
A good engineer isn't a godlike entity who knows all. They know when to bring in assembly and when to be satisfied with C / C++ / Rust compilers and steer the compiler. Assembly has unique advantages like guaranteed execution
58.
▲
by
okanat
2mo ago
It is more complicated than that. MSYS2 isn't just Cygwin. It has different environments. MSYS environment is just Cygwin and it uses Itanium IIRC for C and C++ non-Win32 calls since it emulates POSIX. If it links with Windows C runtim
59.
▲
by
okanat
2mo ago
I think TDF tries to push a wrong narrative here for their lack of engineering and funding. Competitive products like Google Docs, WPS or Euro Office solve proprietary file format problem very nicely. Microsoft themselves had to solve that
60.
▲
by
okanat
2mo ago
Indeed. My primary issue is requiring a Google or Apple blessed phone for the protocol that is supposed to replace the American alternative with the EU one. If they push strongly the American duopoly, I'd rather use the American monopo
More ›