[ prog / sol / mona ]

prog


/sps/ shit [poor/people/programmers] say

1 2022-03-24 02:52

If you're used to /s4s/ or /srs/, this is the programmers' edition.
Please don't turn to ad-hominae, but the core of the dumb ass idea.
e.g.

https://en.wikipedia.org/wiki/XOR_linked_list
perhaps my new favorite datastructure. stores the next and prev pointers on top of each other to save space.

#Drawbacks
and my favorite XOR'ploit https://astesj.com/publications/ASTESJ_030303.pdf

Experimental analysis with XOR compiler

2 2022-03-24 10:42

I'm a woman

3 2022-03-24 11:54 *

The UNIX-HATERS Handbook

https://web.mit.edu/~simsong/www/ugh.pdf

BOFH

Mentifex "AI"

https://ai.neocities.org/

4 2022-03-24 12:44

>>3
What have you done? Why? This board is dead.

5 2022-03-24 13:39

Linux is not dumb, it doesn't allow to make two root dirs. That means you can't install two linuxes on your computer. It's the other way if you talk about two hard disks.

6 2022-03-24 19:56 *

If you're used to /s4s/ or /srs/, this is the programmers' edition.

7 2022-04-01 11:45 *

Please tell me that Mentifex has found this little place.

8 2022-04-06 12:55

>>5
You can definitely put two different Linux distros on the same filesystem if you use different initrds to set up the namespace. I do it all the time.

9 2022-04-06 15:56

>>8
A tutorial would be nice. I believe you.
Gentoo + arch would be great.

10 2022-04-06 16:01 *

the compiler will optimize it out

11 2022-04-06 21:52

>>9
Wouldn't a Gentoo prefix work? https://wiki.gentoo.org/wiki/Project:Prefix
Alternatively, you could just create a dir and extract a stage3 there and chroot into it. Just don't partition the disk or install a kernel/bootloader. You could also use pacstrap (https://github.com/archlinux/arch-install-scripts) to do the same for an Arch chroot. Once you got your dir set up, you can just chroot into it:

# copied from https://wiki.gentoo.org/wiki/Handbook:AMD64/Installation/Base#Mounting_the_necessary_filesystems

mount --types proc /proc /mnt/new_linux/proc
mount --rbind /sys /mnt/new_linux/sys
mount --make-rslave /mnt/new_linux/sys
mount --rbind /dev /mnt/new_linux/dev
mount --make-rslave /mnt/new_linux/dev
mount --bind /run /mnt/new_linux/run
mount --make-slave /mnt/new_linux/run 

chroot /mnt/new_linux /bin/sh

I think you could even create a Glibc chroot in a musl distro such as Alpine Linux.

12 2022-04-06 21:58 *

>>11

pacstrap

Or you could just download the archlinux-bootstrap-2022.xx.yy-x86_64.tar.gz tarball (it just like a stage3 but for Arch)

13


VIP:

do not edit these