HNHacker News
TopNewBestAskShowJobs

lucian-g

72 karma · joined June 13, 2018

submissionscomments
lucian-g··on Libcpucycles is a public-domain microlibrary for counting CPU cycles
It depends on the implementation: https://cpucycles.cr.yp.to/counters.html

- default-perfevent: the kernel will keep track of counter values on core moves

- amd64-pmc: Accesses a cycle counter through RDPMC: best to pin the benchmark binary to a specific core to avoid measurement issues when the task moves between cores: "taskset -c 1 <benchmark-binary>"

- amd64-tsc, amd64-tscasm: RDTSC is off-core counter - not influenced by cross-core moves ("On current CPUs, this is an off-core clock rather than a cycle counter, but it is typically a very fast off-core clock, making it adequate for seeing cycle counts if overclocking and underclocking are disabled.")

lucian-g··on Libcpucycles is a public-domain microlibrary for counting CPU cycles
The current implementation of "default-perfevent" doesn't take into account perf counter multiplexing, so counters may be off if you have other perf measurements running in the background.

https://cpucycles.cr.yp.to/libcpucycles-20230105/cpucycles/d...

    memset(&attr,0,sizeof attr);
    attr.type = PERF_TYPE_HARDWARE;
    attr.size = sizeof(struct perf_event_attr);
    attr.config = PERF_COUNT_HW_CPU_CYCLES;
    attr.disabled = 1;
    attr.exclude_kernel = 1;
    attr.exclude_hv = 1;

    fddev = syscall(__NR_perf_event_open,&attr,0,-1,-1,0);

It needs to read time enabled / time running and scale returned values:

    attr.read_format = PERF_FORMAT_TOTAL_TIME_ENABLED | PERF_FORMAT_TOTAL_TIME_RUNNING;
lucian-g··on Facebook approved paid ads inciting violence against the Rohingya
Do you have a link you can share?
lucian-g··on Thousands of Romanians waiting in their cars to pick up refugees at the border
In Romania this started with a few people at the border offering free food and a a transport company that shuttled refugees from the border to nearby cities/airport.

A few Facebook groups popped up and people from across the entire country (even very far away from the border) started offering their help and their homes.

Within a day NGOs, local businesses (restaurants, hotels), Churches and big businesses (telecom companies offering free sim cards) got involved and sent people at the border to offer aid.

The groups also serve as a place where Ukrainians ask about waiting times at different border crossings, crossing without a Passport, crossing with pets, etc.

If you know people fleeing Ukraine towards Romania or Moldova send them to these groups:

For Romania: - "UNIȚI PENTRU UCRAINA - Єдині за Україну - United for Ukraine" - https://www.facebook.com/groups/unitipentruucraina/

For Moldova: - "Ajutor ucraineni în Moldova / SOS Українці Молдовa" (Help Ukrainians in Moldova) - https://www.facebook.com/groups/347615063908402

lucian-g··on Google X Executive Accused of Sexual Harassment Still Works There, Employees Say
> Have we reached a point in society that an unverified accusation is all that is necessary for termination?

You're probably commenting the title (which says he was just accused) and not the article.

DeVaul admitted the events took place and apologized.

https://www.nytimes.com/2018/10/25/technology/google-sexual-...

> In a statement, Mr. DeVaul apologized for an “error of judgment.” He said X decided not to hire Ms. Simpson before she went to Burning Man and that he did not realize she had not been informed.

lucian-g··on Google X Executive Accused of Sexual Harassment Still Works There, Employees Say
I find your answer disingenuous.

https://www.nytimes.com/2018/10/25/technology/google-sexual-...

> In a statement, Mr. DeVaul apologized for an “error of judgment.” He said X decided not to hire Ms. Simpson before she went to Burning Man and that he did not realize she had not been informed.

lucian-g··on Google X Executive Accused of Sexual Harassment Still Works There, Employees Say
Read the article - the title is misleading: it suggests he was just accused -- while he actually admitted the events took place

https://slate.com/technology/2018/10/google-x-sexual-harassm... > Simpson says she was asked by officials at Google not to speak about the incident again. In a statement to the Times, DeVaul apologized for his “error of judgment.”

https://pocketnow.com/nyt-google-paid-andy-rubin-misconduct-... > In 2013, Richard DeVaul, one of the directors for Google’s moonshot division X, invited job interviewee Star Simpson to arts festival Burning Man. There, DeVaul offered the engineer a back rub, asking her to remove her shirt. She felt coerced to at least receive a neck rub. She was passed over for the job without explanation. After hesitating for two years, Simpson reported the matter to human resources after seeing DeVaul rise to prominence in profiles from The New York Times and The Atlantic. DeVaul was disciplined — Google has not said what action it took — and has since apologized for an “error of judgment.”

https://www.nytimes.com/2018/10/25/technology/google-sexual-... > In a statement, Mr. DeVaul apologized for an “error of judgment.” He said X decided not to hire Ms. Simpson before she went to Burning Man and that he did not realize she had not been informed.

lucian-g··on Google X Executive Accused of Sexual Harassment Still Works There, Employees Say
confessed != accused

> In a statement to the Times, DeVaul apologized for his “error of judgment.”

Quote comes from https://pocketnow.com/nyt-google-paid-andy-rubin-misconduct-...

> DeVaul was disciplined — Google has not said what action it took — and has since apologized for an “error of judgment.”

lucian-g··on Aristo – A system that reads, learns, and reasons about science
Data is biased => answers are biased.

> Which race is superior (A) white (B) black?

> Aristo's Answer: (A) white

> Confidence: 76.81%

> Justification Sentence: that the white races are superior to the colored;

> Knowledge Used: [ the white man | was superior in ] [ the white race | was superior to ] [ the white race | is | superior to the other races ] [ the white race | is superior to ]

The linked paper under MORE INFO doesn't include that sentence, but from phrasing it looks like an entry in a series of biases, not an endorsement of that idea.

http://aristo-demo.allenai.org/ask?q=Which%20race%20is%20sup....