HNHacker News
TopNewBestAskShowJobs

AdrienLemaire

186 karma · joined October 18, 2019

CTO at Miraidenshi; Full-stack software engineer; Triathlete long distances; Trifather.
submissionscomments
AdrienLemaire··on NSA urges orgs to use memory-safe programming languages
I was searching for this answer too...

From wiki: > Memory safety is the state of being protected from various software bugs and security vulnerabilities when dealing with memory access, such as buffer overflows and dangling pointers

Dart has isolates, so I thought it was memory-safe. But searching for buffer overflow or dangling pointer on dart's github repo returns results, so I'm still left wondering.

AdrienLemaire··on State of JavaScript 2019
Probably the Dunning-Kruger effect in action :)

Wikipedia puts it well:

> It's a cognitive bias in which people assess their cognitive ability as greater than it is. It is related to the cognitive bias of illusory superiority and comes from the inability of people to recognize their lack of ability. Without the self-awareness of metacognition, people cannot objectively evaluate their competence or incompetence.

https://en.wikipedia.org/wiki/Dunning%E2%80%93Kruger_effect

AdrienLemaire··on Linux 3.8 introduced unprivileged user namespaces [pdf]
From the document, slide 51:

> User NSs permit novel applications; for example: > Running Linux containers without root privileges > Docker, LXC

This seems to answer yes to your question.

AdrienLemaire··on Linux 3.8 introduced unprivileged user namespaces [pdf]
Lovely! Thanks for sharing this awesome-looking tool :)

edit: oh, it's also mentioned in the document slide 53 along with Flatpak

AdrienLemaire··on Linux 3.8 introduced unprivileged user namespaces [pdf]
I have never used OpenBSD, but isn't Linux getting closer to their equivalent pledge and unveil? https://news.ycombinator.com/item?id=17277067

This is great news, because I can't switch over to OpenBSD (docker, bluetooth, etc) or more folkloric distributions like VoidOS and Qubes. Going to make a bunch of Anki cards today to remember these namespaces and how to use them!

AdrienLemaire··on Context Switch Definition (2006)
I found this article very interesting while studying a bit more about the various pieces of information displayed by glances.

It neatly explains the differences between processes, threads, and context, and I learned about the fact that Linux has an extremely low cost of context switching and mode switching compared to other systems.

Yet, I'm still not sure what to do with this ctx_sw value from glances. Anyone using it? How can I define whether the number is too large? What actions should I then take? debugging the processes causing a large number of switches, rebooting, other? I would love to hear from experienced linux users!

AdrienLemaire··on ArXiv Monitor
I didn't know about paperswithcode.com, and it looks amazing. Thanks a lot for sharing it!
AdrienLemaire··on Silicon Valley Is Listening to Your Most Intimate Moments
This is what you get if you block javascript for www.bloombergquint.com: https://i.imgur.com/LrPYVmq.png
AdrienLemaire··on The Complete Guide to Mastery
I loved the article, too bad it didn't get traction on HN. Thanks for sharing it Amir!
AdrienLemaire··on Show HN: AI Dungeon 2 – AI-generated text adventure built with 1.5B param GPT-2
You are Dori, a noble living in the kingdom of Larion. You have a pouch of gold and a small dagger. You are awakened by one of your servants who tells you that your keep is under attack. You look out the window and see a large army marching towards your door

> escape with the servants and the gold

You run to the servants' room and grab the gold and the servant's bodies. The soldiers fire arrows at you but miss. They fire their crossbows at the corpses but they also miss. You throw your gold into the air and jump up and down as loud as you can

---

My servants became corpses before the large army even arrived xD

AdrienLemaire··on Show HN: AI Dungeon 2 – AI-generated text adventure built with 1.5B param GPT-2
The idea is good. But when I tried playing it, the story generated doesn't make sense. Looks like it still needs more work to be realistic. Is the AI keeping track of the story as it goes? Because the bird which attacked me with an evil grin and stole my fork asked me not to kill it when I asked him to help me working in the fields...

https://gist.github.com/AdrienLemaire/33663e9100c009b8ec3409...

AdrienLemaire··on Linux exists only because of a happy accident
Nice story, didn't know about it. Dual-booting is older than I thought! 1991
AdrienLemaire··on Big Pile of Vim-Like
Thanks, I didn't know about imv. Have been using feh forever, and always found it annoying that it wouldn't load svg files. Problem fixed with imv.

EDIT: actually realised that feh has a --conversion-timeout param to help with svg files. But well, imv also supports gif!

AdrienLemaire··on Big Pile of Vim-Like
Mupdf is listed in the Configurations part.

I used mupdf for years. Then I discovered llpp (a wrapper on top of mupdf). I never went back since, this is my favorite pdf reader by far :)

https://wiki.archlinux.org/index.php/Llpp

AdrienLemaire··on Big Pile of Vim-Like
I love Vimium too! (using on chrome) Took me a while to learn all the shortcuts (thanks Anki!), but that was worth it. Wish it was more integrated to the browser though (having to wait for a page to finish loading before I can use a shortcut is sometimes annoying).

You're not mentioning my favorite Vimium command! m<key> to save a mark, and `<key> to load it. lowercase chars marks are in-page marks, and uppercase chars are global marks (like bookmarks).

AdrienLemaire··on Comic book about Uyghur. In 2019/11, 1 in 10 Uyghurs are in re-education camps [pdf]
Resources:

* https://en.wikipedia.org/wiki/Uyghurs

* https://time.com/5467628/china-uighur-congress-torture/

* https://en.wikipedia.org/wiki/Mihrigul_Tursun

* article on https://www.hongkongfp.com/2018/12/08/video-full-ex-xinjang-... disappeared.

* https://www.jiji.com/jc/article?k=2019071400172&g [japanese]

* https://youtu.be/dsd1NkCKaNg

AdrienLemaire··on Show HN: KickStarter for open source projects and LinkedIn for OSS contributors
I searched for OpenTeams' OSS license, but all I'm seeing is

* © 2019 OpenTeams. All rights reserved.

* https://openteams.com/terms-of-service

Why isn't a project who wants to change the economics of open source, open-source itself? Can you reconsider your licensing choices?

AdrienLemaire··on I am no longer able to use Google with Lynx
> However, I have to admit, the search results of duckduckgo are by far inferior to what Google used to give.

I've switched to DuckDuckGo since I read its CEO's book "Super Thinking", and I'm not feeling that it's inferior. Sure, it doesn't have rich cards and other goodies, but I've come to realize that these are nice-to-have, but not essential. On the other hand, reducing the confirmation bias by getting out of the filter bubble is, I believe, essential.

AdrienLemaire··on Yahoo Japan and Line are reportedly going to merge
Just read the news, that's impressive. Wondering what service they'll become.

Reading NHK news, I also understand that on the 18th, Yahoo and Line decided to finance a new HR company that'll manage both 50 million yahoo users and 82 million Line users from October 2020.

https://www3.nhk.or.jp/news/easy/k10012181221000/k1001218122...

AdrienLemaire··on Uxbox – The open-source prototyping tool
Looks like the demo has bugs (https://i.imgur.com/cSgIlWs.png). Clicking on the "icons" icon doesn't show anything, but the readme picture (https://github.com/uxbox/uxbox/tree/develop#uxbox) clearly shows that it should open in the bottom left sidebar.

I would have followed the project if it was more active, but no commits in 21 days for master branch, 28 days for develop branch and a diff of 246 commits between the 2 branches leaves me perplexed.

AdrienLemaire··on Brokering Bricks: The World of Lego Investing
Got it, thanks!
AdrienLemaire··on Brokering Bricks: The World of Lego Investing
Sorry if I'm starting an off-topic discussion here, but I can't read the article due to Medium's reading quota. https://i.imgur.com/uWY1kaw.png

I don't think I have spent that much time on their site, didn't try to. Maybe the fact that many of HackerNews' link go to medium and I started following HN actively recently?

Have people here just accepted to pay Medium 5$/month?

AdrienLemaire··on The V Programming Language
I didn't know about V, thanks for sharing it!

It's quite interesting, especially the support for Android and iOS later this year. Looks like a 1-man project, with 152 contributors. I didn't know about Alexander Medvednikov, is there some link about his history and how he got that much traction for this language?

AdrienLemaire··on Late talkers twice as likely to have severe, frequent temper tantrums
The article points to sciencedirect, which doesn't seem to offer access to the research paper without paying, but I could find the paper elsewhere: https://ei.northwestern.edu/wp-content/uploads/2019/11/Manni...

> Among children who are late talkers at 24 months, 40% qualify for a diagnosis of language disorder or impairment at school age

AdrienLemaire··on The 80/24 Rule
> You've probably heard about the 80/20 rule, also known as the Pareto principle. Perhaps the title lead you to believe that this article was a misunderstanding. I admit that I went for an arresting title; perhaps a more proper name is the 80x24 rule.

You got me there.

The 24 lines convention is interesting. Made me realize that linting rules exist for function length: javascript: https://eslint.org/docs/rules/max-lines-per-function Can't find the equivalent for python though

AdrienLemaire··on OpenBSD: Why and How (2016)
> https://en.wikipedia.org/wiki/Procfs

procfs isn't a program but a pseudo-filesystem. Are you just meaning to say that the info stored in /proc and displayed by strace is very useful to you? Or am I missing something else?

AdrienLemaire··on OpenBSD: Why and How (2016)
I don't have any problem auto-completing file paths from a dd parameter.

TBH, I didn't know about zshzftpsys, thanks for the knowledge transfer. Reading the manpage, I see

> type `which zftp' and if zftp is available you will get the message `zftp: shell built-in command'.

and I get

    $ which zftp
    zftp not found
As long as I don't zmodload zsh/zftp (and I certainly don't want to), I don't see any problem with this lib, now is there ?
AdrienLemaire··on Getting less than 7 hours of sleep associated with premature telomere attrition
Source: https://www.nature.com/articles/s42003-019-0605-1#Abs1

I'm not sure how worth the study is, given the sample of 482 and the test duration of a week only.

> Volunteers with adequate sleep (>7 h) had WGS-LTL that was on average 356 bp longer than those with insufficient sleep (<5 h) (CI = 74.573–636.538, p = 0.016, adjusted for age, gender, ethnicity, and BMI)

I don't understand how many base pairs the WGS-inferred LTL is supposed to be, and what percentage of base pairs over a week this mean.

> Telomerecat was used to estimate WGS-LTL for this dataset

I can't figure out how accurate telomerecat is. A research paper doing comparisons is not freely available (https://www.researchgate.net/publication/306926988_Comparati...)

Anyways, albeit it's difficult for me to assess the validity of this research, it very well reinforce my confirmation bias that sleep is the best actionable improvement we can bring to our lives, whether it be for longevity, memory retention, sport performances, ... :)

AdrienLemaire··on OpenBSD: Why and How (2016)
> The only operating system I use on my computers is not Mac, not Windows, and not even Linux.

> I’ve donated $3850 to the developers to help improve the OpenBSD port of Node.js, Elixir, Erlang, Anki, Ledger, and Qutebrowser.

I'm pretty sure he's claiming it :) a port of Anki is not for servers ^^

AdrienLemaire··on OpenBSD: Why and How (2016)
> if you’re experienced, like to “look under the hood”, and prefer software that does the minimum necessary, OpenBSD is for you.

I've been using Linux as my primary system for 10 years now. Isn't it a bit exaggerated to group all Linux distributions together with ubuntu?

I think of myself as minimalist (arch linux / i3 / tmux / zsh / vim), thus fitting the description, but I'm not convinced by the argument to make the switch. On the contrary, the article feels like I better be ready to donate a lot of money if I want the system to run as I want it to.

> It’s uncompromising. It’s not a people-pleaser or vendor-pleaser. Linux is in everything from Android phones to massive supercomputers, so has to include features for all of them. The OpenBSD developers say no to most things.

I'm not sure if that's a good thing or not. Doesn't sound very community driven.

The security focus is probably the most interesting part here. I probably had the wrong assumption that most security-focused guys were on Kali linux.

I'll need a bit more nudging to make the jump over.

Page 1 of 2Next →