Hacker News new | past | comments | ask | show | jobs | submit | amstan's comments login


> Traditionally, programs will place their code into non-writeable memory, and store variable data in memory that is writeable but not executable. And that's definitely the safer way to do things, but we can't be bothered with all that.

Woah, I have a feeling this does something even more. If the program modifies its own instructions, the kernel will probably save those modifications in the file too.


That would be the behavior with the mmap(2) flag MAP_SHARED. The module built in the article uses MAP_PRIVATE. Any changes to the contents of a private mapping do not effect other processes or the file.


> sudo mkdir /rescue/boot

> sudo mount /dev/nvme0n1p3 /rescue/boot

This is a little extra. What you can generally do is immediatelly after chroot just run 'mount -a' to mount everything from the chroot's fstab. The empty `/boot` probably already exists.


Good idea!


There is!

arch-chroot [1], despite its name pretty much does all the `mount -t proc` stuff the post says. It's also available on other distros like debian [2]. I have used it in the past to chroot into fedora as well.

[1] https://man.archlinux.org/man/arch-chroot.8 [2] https://packages.debian.org/arch-install-scripts


It can go higher actually, just that when I setup my test devices I had a "ought to be enough for everyone" moment when typing `options amdgpu gttsize=110000`. I guess this number spread too far, heh.

See also:

[1] https://en.wikipedia.org/wiki/Graphics_address_remapping_tab...

[2] https://www.kernel.org/doc/html/v4.19/gpu/amdgpu.html#:~:tex...


I did find the community around those projects (MisterFPGA) to be rather weird, so I understand a little where he's coming from.


In my experience, their description sounds exactly like the greater emulation and retrogaming scene in general.


I've found the MiSTer community to generally be pretty helpful, but there are definitely exceptions. The fact that its a project that aims to perfectly match the behavior of the original hardware leads to some strange arguments.


I wonder when they'll finally fix that 7 year old double notification bug.


not aware of a double notif bug - do you have a github issue for it?


Yay, a1k0n!

Long time since AI Challenge, I see you're dabbling into hardware too!


I wonder what it's like to be ridiculously talented at everything ?


It's infuriating how the client must be stateful and have local storage, for both the access_token and the last message recieved. That's right you must remember as the client where the last events [1] you've seen (even if you already told the server to mark it as read) was or else the server will happily send you the same messages over and over again across restarts of your client. I kind of miss making IRC bots where things were much simpler and ... quicker honestly (latency wise).

[1] https://uhoreg.gitlab.io/matrix-tutorial/sync.html#:~:text=w...


> Multiple View Geometry in Computer Vision, Richard Hartley and Andrew Zisserman, [117] (some sample chapters are available here, CVPR Tutorials are available here)

Heh, about 10 years ago I read that book and figured out a few things:

* triangulate position in 3d space of an object given a few 2d pictures (from known camera locations, ie: camera intrinsic and extrinsic matrices)

* how to instruct my friend to make a simple 3d rendering "engine"

Nice to see the same stuff distilled into an article.


Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: