HNHacker News
TopNewBestAskShowJobs

johannkokos

53 karma · joined September 25, 2018

submissionscomments
johannkokos··on FreeBSD has removed GCC from its base system
What about binutils? Is it removed too?
johannkokos··on OS Development Tutorials (2003)
Any one know if there is a text version of Intel's instruction set reference? Intel does provide a pdf, but I wish I can open a text file in vim and quick search through it.
johannkokos··on A Sad Day for Rust
Given that Chromium is a open source project, and lost of people here are strongly against Google's proposal to limit the ability of ad block extensions, with much stronger words compared to this incident. What's your opinion on that?
johannkokos··on Red Hat Introduces Open Source Project Quay Container Registry
The RHEL version linked is 7.5, not 8.1. They might just forget to update the doc.
johannkokos··on Debugging hidden memory leaks in Ruby
Linux users's first encounter with `ps` command usually leads to stackoverflow's question on RSS.
johannkokos··on China's New Cybersecurity Program: No Place to Hide
> This system will apply to foreign owned companies in China on the same basis as to all Chinese persons, entities or individuals. No information contained on any server located within China will be exempted from this full coverage program. No communication from or to China will be exempted. There will be no secrets.

Can the author provide a source for this? I couldn't find any reference to it from the articles linked by this blog.

johannkokos··on Fibers aren’t useful for much any more
"Response to 'Fibers under the magnifying glass'" from the authors of boost.fiber, at

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p086....

And Response to response to "Fibers under the magnifying glass", at

http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p152...

johannkokos··on Official StackOverflow FAQ on Gender Pronouns and Code of Conduct Changes
Somehow I feel StackOverflow is preparing itself to be bought. Part of contract is for SO to deal with these hard problems before the it is made public.
johannkokos··on Gitlab: 2019 Developer Report
gitlab publishes its about.gitlab.org source code. This pdf can be found in the repo link https://gitlab.com/gitlab-com/www-gitlab-com/blob/master/sou...
johannkokos··on Foliate – A simple and modern GTK eBook viewer
Does it support multiple tabs? It doesn't seem to from the screenshot.
johannkokos··on The death watch for the X Window System has probably started
You can see why Nouveau devs are having difficulties with Nvidia in a Xorg developer confereence talk[1].

1. Relations with NvidiaNVIDIA changes prevent us from releasing a driver

  * Signed firmwares accessible publicly but not redistributable

  * Reverse engineering of vbios impossible
2. Communication mostly down

  * Main contact/dev left NVIDIA (Alexandre Courbot)

  * Most important requests left unanswered...

  * ... until more complete code than wanted lands publicly innvgpuweeks later
[1] https://www.x.org/wiki/Events/XDC2017/herbst_peres_nouveau.p...
johannkokos··on Google to restrict modern ad blocking Chrome extensions to enterprise users
How many tabs do you consider to be too many tabs? Most of the time I open up to 10 tabs, and Firefox is performing fine. But I have also seen people opening 40 tabs.
johannkokos··on Huawei case prompts F/OSS reconsideration (German)
English translation by bing translator.

https://www.translatetheweb.com/?from=&to=en&refd=www.bing.c...

johannkokos··on F() vs. F(void) in C vs. C++
> If we change foo2 to a declaration (such as would be the case if it was defined in an external translation unit, and its declaration included via header), then Clang can no longer observe whether foo2 definition differs or not from the declaration.

I tried enabling link time optimization on clang-8, it does see through and eliminate redundant xor instruction in foo2(). gcc fails to do that, however. I inspect the result by calling objdump on generated object code.

johannkokos··on Intermediate Vim
I learned a new one recently. zt redraw so that current line is at top, zb redraw so that current line is at bottom, zz redraw so that current line is at the center.

If you are on twitter, you might want to follow MasteringVim. You'll learn one trick every day.

johannkokos··on CVE-2019-9193: Not a Security Vulnerability
This is the original blog post by the author who filed the cve. https://www.trustwave.com/en-us/resources/blogs/spiderlabs-b...
johannkokos··on Removing Array Duplicates
Just like C++, your filter can be simplified like,

filter(|string| {set.insert(string)}

as insert return a bool.

johannkokos··on Removing Array Duplicates
> it just happens that C++ ships with a much bigger standard library than Go.

I thought go had much bigger standard library. Go has archive, compression, crypto, database, encoding, hash, html, and net etc.

johannkokos··on Removing Array Duplicates
if (seen.find(lower) == std::end(seen)) { seen.insert(lower); return false; }

You can just return

seen.insert(lower).second

as insert function return a pair<iterator, bool>

johannkokos··on DTrace on Windows
You're not wrong. Dtrace is gpl only in 2017.
johannkokos··on China sentences Canadian man to death in drug case linked to Huawei row
I am confused by this article. It says, "Schellenberg was arrested in 2014 and received his original sentence in 2016 in a case that went unnoticed."

But according to the Chinese court[link 1], he was first sentenced for 15 years in jail on 2018-11-20. Robert appealed to high court. On 2018-12-29, the high court decided the original sentence was too light and asked the intermediate court for a new trial.

link 1: http://court.dl.gov.cn/info/122_138614.vm

johannkokos··on A Perspective on C++ Standardization in 2018
And Chair of Direction Group in 2018. http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p093...
johannkokos··on US asks allies to drop Huawei
No one talks about the story from financial perspective? How much will Huawei lose, who is the competitor against Huawei? IMO it's the extension of trade war between US and China.
johannkokos··on Killing processes that don't want to die
I cannot get the first simple example working.

  int main()
  {
      while (1) {
          if (fork())
              _exit(0);
      }   
      return 0;
  }
If I run `htop` immediately after typing `./a.out`, it shows a error,

  Could not create child process - exiting
  fork: Resource temporarily unavailable
However, if I wait a second or more, I cannot find `a.out` in the process list.