

We’re not 20 years in the past, old man.
We’re not 20 years in the past, old man.
LOL. Let me guess “just use Emacs/vim”?
No thank you bruv. Been there, done that. Terrible experience.
https://github.com/emacs-tw/awesome-emacs
https://github.com/lunarvim/lunarvim
All of these emulated only a fraction of the power of IDEs, even after weeks of trying to get them configured properly.
Inb4 “you’re doing it wrong”. Nah mate, IDEs work out of the box and don’t require opening a text file to change settings while going through reams of documentation.
I right click in a file and it shows me the most important contextual commands. No need to find the " leader key", scroll through all the 1 billion commands, I don’t have to “download a LSP and DAP” then “configure treesitter” or whatever the fuck kind of apes are in the editor.
Those editors have steep learning curves and get you productive eventually. IDEs get you there much more quickly. Yeah yeah, they hide complexity and “people don’t know what’s actually going on anymore” but sometimes I just want to get going instead of fighting my editor first. Feel me?
Meanwhile: vim and Emacs users, constantly installing and configuring plugins to emulate a fraction of the power of IDEs, go “just use vim/Emacs”.
EDIT: It does work. My (GNU) libc spits out version info when executed as an executable.
How does that work? There must be something above ld.so
, maybe the OS? Because looking at the ELF header, ld.so
is a shared library “Type: DYN (Shared object file)”
$ readelf -hl ld.so
ELF Header:
Magic: 7f 45 4c 46 02 01 01 03 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - GNU
ABI Version: 0
Type: DYN (Shared object file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x1d780
Start of program headers: 64 (bytes into file)
Start of section headers: 256264 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 11
Size of section headers: 64 (bytes)
Number of section headers: 23
Section header string table index: 22
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
LOAD 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000db8 0x0000000000000db8 R 0x1000
LOAD 0x0000000000001000 0x0000000000001000 0x0000000000001000
0x0000000000029435 0x0000000000029435 R E 0x1000
LOAD 0x000000000002b000 0x000000000002b000 0x000000000002b000
0x000000000000a8c0 0x000000000000a8c0 R 0x1000
LOAD 0x00000000000362e0 0x00000000000362e0 0x00000000000362e0
0x0000000000002e24 0x0000000000003000 RW 0x1000
DYNAMIC 0x0000000000037e80 0x0000000000037e80 0x0000000000037e80
0x0000000000000180 0x0000000000000180 RW 0x8
NOTE 0x00000000000002a8 0x00000000000002a8 0x00000000000002a8
0x0000000000000040 0x0000000000000040 R 0x8
NOTE 0x00000000000002e8 0x00000000000002e8 0x00000000000002e8
0x0000000000000024 0x0000000000000024 R 0x4
GNU_PROPERTY 0x00000000000002a8 0x00000000000002a8 0x00000000000002a8
0x0000000000000040 0x0000000000000040 R 0x8
GNU_EH_FRAME 0x0000000000031718 0x0000000000031718 0x0000000000031718
0x00000000000009b4 0x00000000000009b4 R 0x4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
GNU_RELRO 0x00000000000362e0 0x00000000000362e0 0x00000000000362e0
0x0000000000001d20 0x0000000000001d20 R 0x1
The program headers don’t have interpreter information either. Compare that to ls
“Type: EXEC (Executable file)”.
$ readelf -hl ls
ELF Header:
Magic: 7f 45 4c 46 02 01 01 00 00 00 00 00 00 00 00 00
Class: ELF64
Data: 2's complement, little endian
Version: 1 (current)
OS/ABI: UNIX - System V
ABI Version: 0
Type: EXEC (Executable file)
Machine: Advanced Micro Devices X86-64
Version: 0x1
Entry point address: 0x40b6e0
Start of program headers: 64 (bytes into file)
Start of section headers: 1473672 (bytes into file)
Flags: 0x0
Size of this header: 64 (bytes)
Size of program headers: 56 (bytes)
Number of program headers: 14
Size of section headers: 64 (bytes)
Number of section headers: 32
Section header string table index: 31
Program Headers:
Type Offset VirtAddr PhysAddr
FileSiz MemSiz Flags Align
PHDR 0x0000000000000040 0x0000000000400040 0x0000000000400040
0x0000000000000310 0x0000000000000310 R 0x8
INTERP 0x00000000000003b4 0x00000000004003b4 0x00000000004003b4
0x0000000000000053 0x0000000000000053 R 0x1
LOAD 0x0000000000000000 0x0000000000400000 0x0000000000400000
0x0000000000007570 0x0000000000007570 R 0x1000
LOAD 0x0000000000008000 0x0000000000408000 0x0000000000408000
0x00000000000decb1 0x00000000000decb1 R E 0x1000
LOAD 0x00000000000e7000 0x00000000004e7000 0x00000000004e7000
0x00000000000553a0 0x00000000000553a0 R 0x1000
LOAD 0x000000000013c9c8 0x000000000053d9c8 0x000000000053d9c8
0x000000000000d01c 0x0000000000024748 RW 0x1000
DYNAMIC 0x0000000000148080 0x0000000000549080 0x0000000000549080
0x0000000000000250 0x0000000000000250 RW 0x8
NOTE 0x0000000000000350 0x0000000000400350 0x0000000000400350
0x0000000000000040 0x0000000000000040 R 0x8
NOTE 0x0000000000000390 0x0000000000400390 0x0000000000400390
0x0000000000000024 0x0000000000000024 R 0x4
NOTE 0x000000000013c380 0x000000000053c380 0x000000000053c380
0x0000000000000020 0x0000000000000020 R 0x4
GNU_PROPERTY 0x0000000000000350 0x0000000000400350 0x0000000000400350
0x0000000000000040 0x0000000000000040 R 0x8
GNU_EH_FRAME 0x0000000000126318 0x0000000000526318 0x0000000000526318
0x0000000000002eb4 0x0000000000002eb4 R 0x4
GNU_STACK 0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 RW 0x10
GNU_RELRO 0x000000000013c9c8 0x000000000053d9c8 0x000000000053d9c8
0x000000000000c638 0x000000000000c638 R 0x1
It feels like somewhere in the flow there is the same thing that’s happening in python just more hidden. Python seems to expose it because a file can be a library and an executable at the same time.
Can someone explain to me how to compile a C library with “main” and a program with main? How does executing a program actually work? It has an executable flag, but what actually happens in the OS when it encounters a file with an executable file? How does it know to execute “main”? Is it possible to have a library that can be called and also executed like a program?
Oh, my comment was more that compiling C/C++ apps on any platform is shit. Windows may be the worst to compile on, but Linux is only marginally better.
Rust is amazing though.
“It’s so easy to compile C/C++ apps on Linux”
“Just run make install”
“If it doesn’t work, fuck you, it worked on my machine”
[email protected] League of Legends
Yep! I’ve tried and it doest work. Either it’s because I have mixed unit types (service mount service service and another case is service path service serviceX2), or I really just forgot something.
At this point I have to build a simplified version of my services with echo’s and shit to be able to debug, because otherwise I’ll just drop it and return whenever I find the motivation again.
I am days into trying to figure out how why systemd just won’t start services after another service has successfully been run. I want service A to run, finish successfully and then service B to start. I’ve tries requires, wants, after and their reverse. I’ve tries paths with PathChanged and other things I’ve forgotten now. Either service B won’t start because it’s not WantedBy some target, but if I add that then it simply ignores the After, Requires, and Wants, and PathChanged to start anyway when the target has started.
It’s maddening. Why are there so many conditions that express nearly the same thing but do so in such subtle ways that only testing will expose what it truly is, and sometimes not even that helps because obviously something else is missing but it won’t say what. And AI of course has no fucking clue how to help.
Aaaaaaaaaaaaaaaaaah!
I ripped the “met life” shirt off of the snoopy plush and trashed everything else.
Trashing was maybe unnecessary? Could’ve donated it to those in need.
However I do support the sentiment. Fuck Microsoft. Hopefully you’ll be able to find employment that is more fulfilling and less genocidal. (This is not a stab at you, I get working for an evil company and wanting to get away from it).
I brought this up a month ago regarding the lemmy repo. At least they have mirrors and won’t be fucked if the orange terminator decides opensource is a danger to US companies or whatever. But there are many projects that would be absolutely fucked. An infinitesimal minority probably backs up their github issues and PRs.
Projects like nixos and probably the entire rust ecosystem would break. They are all in on Github.
The US defunded TOR, Tails, and F-Droid. There also was a time when cryptography was embargoed by the US.
So yes, IMO the US is a risk for opensource and the majority of the opensource community has sleep-walked into a gilded cage. Rattling the bars hasn’t helped and it is only when the door closes that they’ll wake up. Luckily, this isn’t like climate change where there’s no way back within multiple generations, but nonetheless, the awakening will be rude.
That knowledge is gone. Everything is a web app running JavaScript in a browser. We don’t need to be encumbered by pesky things like pages and folders. 😋
Anti Commercial-AI license