News for hackers. Stuff that matters.

johannkokos

Re:FreeBSD has removed GCC from its base system on Tuesday March 03, 2020 @12:05PM (#22476352)
What about binutils? Is it removed too?
Re:OS Development Tutorials (2003) on Friday January 24, 2020 @12:01AM (#22135528)
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.
Re:A Sad Day for Rust on Friday January 17, 2020 @12:44PM (#22077065)
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?
The RHEL version linked is 7.5, not 8.1. They might just forget to update the doc.
Re:Debugging hidden memory leaks in Ruby on Saturday October 19, 2019 @08:35AM (#21298148)
Linux users's first encounter with `ps` command usually leads to stackoverflow's question on RSS.
Re:China's New Cybersecurity Program: No Place to Hide on Monday October 14, 2019 @05:29AM (#21246419)
> 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.

Re:Fibers aren’t useful for much any more on Saturday October 12, 2019 @09:34AM (#21232982)
"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...

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.
Re:Gitlab: 2019 Developer Report on Friday July 19, 2019 @11:07AM (#20479238)
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...
Re:Foliate – A simple and modern GTK eBook viewer on Tuesday July 09, 2019 @11:36AM (#20392819)
Does it support multiple tabs? It doesn't seem to from the screenshot.
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...
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.
Re:F() vs. F(void) in C vs. C++ on Monday May 13, 2019 @12:13AM (#19896385)
> 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.

Re:Intermediate Vim on Wednesday May 01, 2019 @11:08AM (#19797694)
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.

Re:CVE-2019-9193: Not a Security Vulnerability on Sunday April 14, 2019 @12:09PM (#19660184)
This is the original blog post by the author who filed the cve. https://www.trustwave.com/en-us/resources/blogs/spiderlabs-b...
Re:Removing Array Duplicates on Friday April 12, 2019 @06:30AM (#19643589)
Just like C++, your filter can be simplified like,

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

as insert return a bool.

Re:Removing Array Duplicates on Friday April 12, 2019 @06:20AM (#19643553)
> 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.

Re:Removing Array Duplicates on Friday April 12, 2019 @06:12AM (#19643524)
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>

Re:DTrace on Windows on Monday March 11, 2019 @03:05PM (#19361817)
You're not wrong. Dtrace is gpl only in 2017.
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

Re:A Perspective on C++ Standardization in 2018 on Saturday December 29, 2018 @01:04AM (#18782180)
Re:US asks allies to drop Huawei on Friday November 23, 2018 @11:53AM (#18517509)
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.
Re:Killing processes that don't want to die on Monday September 24, 2018 @11:49PM (#18063429)
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.