News for hackers. Stuff that matters.

freehrtradical

Re:Linux-Kernel: Printk() Indexing on Friday June 11, 2021 @11:26AM (#27474622)
The article mentions debugfs which I've never heard about and is pretty cool: https://www.kernel.org/doc/html/latest/filesystems/debugfs.h...
Re:Cores that don’t count [pdf] on Thursday June 03, 2021 @08:47AM (#27380443)
The article references Dixit et al. for an example of a root cause investigation of a CEE which is an interesting read: https://arxiv.org/pdf/2102.11245.pdf

> After a few iterations, it became obvious that the computation of 𝐼𝑛𝑑(1.153)=0 as an input to the math.pow function in Scala would always produce a result of 0 on Core 59 of the CPU. However, if the computation was attempted with a different input value set 𝐼𝑛𝑑(1.152)=142 the result was accurate.

Re:When six boys were shipwrecked for 15 months (2020) on Wednesday June 02, 2021 @08:13PM (#27375606)
These are the type of fascinating comments that keep me coming back to HN. Thank you.
I share some of your trepidation but I've learned to like containers for some uses cases. In particular -- and I think this might help you have fun with learning -- I like one-liners. For example, the following downloads a "virtual machine" with a Java development kit in it, compiles a program and runs it:

  docker run --rm adoptopenjdk/openjdk11-openj9:ubi sh -c "printf 'public class main { public static void main(String... args) throws Throwable { System.out.println(\"Hello World\"); } }' > main.java && javac main.java && java main"
This is a trivial example, but I think it gets at the value of containers which is to make things self-contained.

From here on, it does get increasingly complicated and sometimes questionably so. You'll normally create a Dockerfile, add all your commands there, add separate files which you'll copy into the container. Then you might use compose, Kubernetes, nomad, or a million other technologies to actually make something more realistic and there are lots of annoyances of those.

But I think the base value for me is the idea of scripting the creation and deployment of self-contained "virtual machines". Arguably, this was done before with Ansible, Chef, etc., but there is some value to a popular, standardized approach and a huge library of images out on Docker Hub that you can simply run/pull. This is particularly useful for reproducing problems for other people to investigate, sharing toy projects, letting people explore your application, etc.

Re:Ask HN: In your opinion, what sucks about StackOverflow on Wednesday May 26, 2021 @11:30PM (#27299070)
1. The licensing situation is a mess. Most people copy/paste and they don't realize what the license is (CC BY-SA).

2. Why aren't answers always sorted by the number of votes by default?

3. The "community edits" where people sometimes decrease the quality of an answer just to get points.

4. Some answers don't age well but they are perpetuated by their large vote count.

Re:John McAfee Statement from Prison on Sunday May 23, 2021 @02:29PM (#27257328)
It's poetic and philosophical, but it's good to steelman such idealizations of struggle. Was it worth it to achieve these feelings for McAfee?

I've been in a third-world jail for one night for a victimless crime, facing five years in prison, and my feelings were very different. More than anything was the feeling of the banality of time when you physically can't move more than handfuls of inches.

> You can edit templates directly in the browser

Do the templates contain code?

WordPress used to have a feature to edit PHP plugin code through the browser and it was a security nightmare. If you allow code editing, I suggest disabling it by default and when an attempt is made to enable it, send an email to the site admin to confirm before enabling.

I took a leave-of-absence from work for 6 months and it was great. I recommend taking the first month or so to just reset. Collect all the garbage around you and clean up your life (i.e. "clean your room"), although don't get sucked into some big project. Sleep as long as you can sleep every day and just generally relax, clean up your diet and exercise (just a bit at first!).

Then methodically figure out what you want to do in life and use the dedicated energy you have to create the plan to accomplish those things.

Re:Ant parasites that prolong the life of their host on Thursday May 20, 2021 @08:57PM (#27229342)
Symbiotic just means two species living close together. That may be positive (mutualistic), neutral (commensal), or negative (parasitism). However, mutualistic and parasitic may not be mutually exclusive. For examples, see:

1. McKay, D. M. (2009). The therapeutic helminth?. Trends in parasitology, 25(3), 109-114, https://doi.org/10.1016/j.pt.2008.11.008

2. Zaccone, P., Fehervari, Z., Phillips, J. M., Dunne, D. W., & Cooke, A. (2006). Parasitic worms and inflammatory diseases. Parasite immunology, 28(10), 515-523, https://doi.org/10.1111/j.1365-3024.2006.00879.x