HNHacker News
TopNewBestAskShowJobs

afr0ck

440 karma · joined August 9, 2019

Karim Manaouil

k.manaouil@gmail.com

submissionscomments
afr0ck··on Marriage Markets (and Muscularity)
The main incentive for me to work out was getting my body into a better shape to improve my confidence and enlarge my dating pool. However, after I experienced the plethora of its other benefits, I can safely say it's no more about the former goal, but more for the other benefits that come with it such as stress release, more happiness, more energy, drive and focus, much much better sleep, more libido, etc.
afr0ck··on Ask HN: I burned out but I don't want to let my team down
I had a period of a very nasty burnout that lead to depression. I started to feel better only after I begun excercing.

Heavy, strength-focused type of excercises are a real cure for depression and bad mood. They siginificantly increase the amount of Testosterone in the body.

Try Squats, Deadlifts and weight lifting in general. Push yourself a little bit and it's gauranteed you will feel amazing.

afr0ck··on Bill Jolitz has died
People are overly sensitive. Linus was cool and very friendly and nice person most of the time on the mailing lists. Very very rarely he writes those furious replies, but honestly, it was very fun. I just don't understand why people are so much butt-hurt.
afr0ck··on Ask HN: Beating depression with or without anti-depressants?
I had been, not long ago, through a crippling depression that I fought by myself. Initially, it crippled me to the point of not being able to get up from bed and start my day (I spent the whole weekend on bed, feeling terribly sad, regretful and helpless. I only get up for biological needs).

After 5 or 6 months of suffering, I decided, at some certain point, that I need to do something about it and that I need to get over it and not waste my life. I started small, step by step, waking up, taking shower, going out for a walk, etc. I used to WFH, but I reversed the habit and started to go to work place everyday.

Then, I got a gym membership and started exercising almost everyday (after so many years of physical inactivity. I am 25 BTW). I started cooking and eating healthy. I take multivitamins everyday with an additional dose of Vitamine D and Magnesium. I eat only vegetables (lots of them), rice, chicken and fish and sometimes beef steaks. I also take fruits everyday (usually Oranges, Bananas and Apples). I also drink Coffee (one cup in the morning and sometimes another in the evening) and Tea with Ginger.

I feel much better. Now, I have a routine, I am more active and I get some work done. However, I still suffer from a slight lack of motivation and happiness. I still feel a bit unhappy and I am not as motivated as I was before the whole depression thing hit me. I don't know why and I have no idea how to solve this part to become the super motivated, super focused and super productive person I used to be.

afr0ck··on The worst part of working from home is now haunting reopened offices
It's the harsh reality but I completely agree on your take. As you summed it up, "You wouldn't drag around a broken leg".

How did you approach this issue? Did you manage to create a strong social circle outside of work? Any helpful tips for the lost me would be appreciated.

afr0ck··on Daniel Gross: Why Energy Is the Best Predictor of Talent
Patrick Gelsinger?
afr0ck··on The worst part of working from home is now haunting reopened offices
I think WFH could be a blessing when you have a family. I still like WFH to a certain extent because I get more focused and more productive. But it has one major drawback: for solo people, like me, living alone, far from friends and family, it's very hard to not feel lonely. And to fill the loneliness gap, I tend to work more, casually burning out myself and then ending up depressed and feeling overworked.

I am still trying to build a social network on this new city, but it's a very hard process and a very long one. For now, going to office, makes me feel less lonely and I get some interactions and also do some activities with co-workers.

afr0ck··on Ask HN: If you used to be socially awkward and shy, how did you improve?
I am a short male in my mid twenties and I am also getting to the same conclusion. If you're short, you need to work harder. There is no chance you can be unfit, fat or awekward. You will be screwed. But honestly, sometimes I feel like it's a good blessing. It pushes you to improve many aspects of your life. You want to be successful in your career, you want to work harder, you want to excercise like there is no tomorrow, you want to read more, you want to be more social, etc. It pushes you to become a better person. But the height deficiency is always there and it's an unfortunate tragic event and a very hard truth to swallow. Life is unfair.
afr0ck··on Writing a simple operating system from scratch (2010) [pdf]
For the first question, it can be done in various ways. It can be done by the firmware or the bootloader for you, or you can do it by yourself once the platform jumps to your kernel code upon machine startup.

For the second question, you just build your GDT entries with the highest privelege, then you switch to protected mode.

afr0ck··on Writing a simple operating system from scratch (2010) [pdf]
If you are running your OS on a VM hypervisor (e.g.; Qemu, kvmtool), then you can just use virtio for disk and network I/O. No boring and complex device specification (e.g.; ATA) to implement.
afr0ck··on Ask HN: I'm So Lonely
I am in my mid twenties and I spent every birthday in the last few years in a lonely dark room by myself. I am amazed I am still mentally sane at this point in my life xD. I also live in a forgein country with no friends, family or partner. And I am poor AF.
afr0ck··on An update on the threat landscape
France and Germany have free college education.
afr0ck··on Tipasa, Algeria’s ancient melting pot, faces an uncertain future
The Algerian system is known for its highly notorious and absurd bureaucracy that makes no sense in most of the cases. It's a very sad thing. Even within the country, the level of bureaucracy and administrative burden is astounding. It's on another level that still baffles the mind of every Algerian to our day. A reminiscent of the communist era that largely defined and still defines every aspect in the country.

Nevertheless, Algerians are very welcoming and they are very happy to see other people visit them. We hope that things will change very soon. However, it's hard to have a positive hope with the corrupt, mafioso political system governing the country.

afr0ck··on Tipasa, Algeria’s ancient melting pot, faces an uncertain future
I am from Algeria. I've been to Tipasa multiple times when I was a student in Algiers, the capital, since it was a very short ride. Tipasa has a truly magical coast, with all the amazing Numidian, Roman and Byzantine ruins, but also the sea. While there, you observe the blending of the mountains, the rocks, the beautiful, calm and shining Mediterranean sea and all the temples and the ruins. It takes you to another dimension of feelings and relaxation. It was a very good place of inspiration for me.

Algeria is a kind of a hidden gem. There are many other impressive sites and much larger and better preserved Roman cities. Few minutes from my hometown, Setif, there is Djemila [1]. The preserved arches, basilicas, bathes, theatres and markets is just super impressive.

A larger and bigger site is in Batna, a neighboring city of Setif. The site is called Timgad [2], usually the preferred place for cultural events. Timgad is definitely one of the greatest world heritage sites, absolutely on the same order of Pompeii.

Another impressive city is Constantine [3], or equally Béjaïa and also obviously the The Casbah in Algiers [4].

On the Sahara side, there is the Tassili [5] and The Hoggar mountains.

edit: typos

[1] https://en.wikipedia.org/wiki/Dj%C3%A9mila [2] https://en.wikipedia.org/wiki/Timgad [3] https://en.wikipedia.org/wiki/Constantine,_Algeria [4] https://en.wikipedia.org/wiki/Casbah_of_Algiers [5] https://en.wikipedia.org/wiki/Tassili_n%27Ajjer

afr0ck··on Poll: Where do you live?
It's funny how the UK and Germany are growing with the same rate. I checked 10 minutes later and they were 56/57, then I did it again few minutes later and they were 67/68.
afr0ck··on Cheezam – Shazam for Cheese
That's because it detects only French cheese. It's not trained on British/Swiss/Italian/Dutch cheeses.
afr0ck··on We need to reclaim our attention
As well as the almighty Baguette.
afr0ck··on Boeing 777 departing Dubai nearly had a major incident after takeoff
I agree. I would nominate Delta Airlines, British Airways and Lufthansa to be the top safest carriers in the world.
afr0ck··on Wish HN: Happy Holidays
Tameɣṛa n Nwal tameggazt!

(In Kabyle language, from Algeria!).

afr0ck··on Apple to Apple Comparison: M1 Max vs. Intel
I have an Intel I9 workstation machine, I use it mainly for developement. Let me tell you something: it's the most horrible machine I've ever had in terms of performance (based on compiling a very large C code base).
afr0ck··on Go 1.18 Beta 1 is available, with generics
So, for you, it won't be enough until Go (and possibly every other language that is different from Rust) is "rustified" and turned into a rust-like clone? ... just why?

And BTW, Go is very safe! it has automatic memory management, and managed concurrency for writing bug-free concurrent code.

afr0ck··on Don't Use Inline Assembly
It is clear that inline assembly is mostly needed in situations where the compiler doesn't implicitly know how to generate assembly instructions for your use case.

For example, let's say an operating system's kernel has a procedure to disable cache snooping on the CPU. There is no way the compiler can implicitly generate this for you, except if a special built-in function is provided. But built-in functions do not exist for every case, and not for every supported CPU architecture.

In this example, every architecture-specific code of the kernel shall implement an interface named disable_cache_snooping() wrapping an inline assembly statement, invoking the underlying (x86, arm, mips, sparc, riscv, etc.) CPU's special instructions to disable cache snooping.

afr0ck··on Debugging memory corruption: who the hell writes “2” into my stack? (2016)
On Linux, a conceptually similar idea to the loopback socket could safely and efficiently be implemented with epoll(). The epoll instance itself is a poll-able file descriptor that can be fed to epoll() alongside the sockets.

When a new socket is added, epoll() gets triggered (by the loopback epoll file descriptor that was used to add the new socket, since it's also actively being polled by epoll). epoll() immediately returns to userspace, the event is handled (to do necessary socket bookkeeping) then go back to polling again with the updated list of sockets.

afr0ck··on How to make a CPU – a simple picture-based explanation
There is also Sparc and to a lesser extent MIPS. They are more mature than RISC-V and have a decent software ecosystem.
afr0ck··on How to make a CPU – a simple picture-based explanation
> Maybe it wouldn't fly in the EU.

May I ask why?

afr0ck··on A completely-from-scratch hobby operating system
Yes, it is the same thing.
afr0ck··on The history of Unix's confusing set of low-level ways to allocate memory (2018)
I am a not a native speaker but Google Dictionary says this:

Heap: "an untidy collection of objects placed haphazardly on top of each other". Example: "a heap of cardboard boxes"

This makes sense as the Unix Heap is just a space containing a random collection of objects with random sizes.

afr0ck··on The history of Unix's confusing set of low-level ways to allocate memory (2018)
Pardon my ignorance, but I'm really curious to know why?
afr0ck··on A completely-from-scratch hobby operating system
Libraries are shared by programs and refrences to library routines are automatically resolved at program load time.
afr0ck··on Kerla: Monolithic kernel in Rust, aiming for Linux ABI compatibility
Why do people implicitly assume that micro kernels are the best OS design?

In fact, micro kernels have a lot of issues and limit the possibilities of what an OS can do! One of the most important issues is they prevents resource sharing in a rich and efficient way between the components of the kernel. They make building rich relationships between kernel data structures and kernel subsystems very messy, complicated, impracticable and very inefficient.

Micro kernels are delusional and people should stop implicitly assuming their superiority.

← PreviousPage 5 of 6Next →