placeholder

A faster lexer in Go - Eli Bendersky's website

A faster lexer in Go May 03, 2022 at 19:53 Tags Go , Programming , Compilation It's been a while since I've last rewritten my favorite lexical analyzer :-) That post is the last in a series implementing a lexer for the TableGen language in a variety of programming languages, using multiple technique...

Click to view the original at eli.thegreenplace.net

Hasnain says:

Great read on profiling and improving Go programs.

“This post discussed some potential optimizations to a lexical scanner written in Go. It touched upon the relative efficiency of converting byte slices to strings vs. taking substrings, discussed some strategies w.r.t. API design in Go, and even got into optimizing GC behavior.”

Posted on 2022-05-07T11:21:38+0000

placeholder

Hasnain says:

I wonder what would have happened had this guy not turned himself in. This is a pretty wild story.

Also, how do audits miss something like this?!

“So how did the police finally get involved?

I was seeing a psychiatrist as a result of the guilt and the anxiety. I felt like I needed to talk to someone about it. The first psychiatrist I saw said "I'm not qualified to do this" and I was like, “dude you're the shrink, surely you're qualified.” But then I found a guy who was a bit more sensible. He didn't tell me what to do or anything like that, but he said that turning myself in would be important and it’d clear my conscience and make sure I could move on.”

Posted on 2022-05-07T11:16:04+0000

placeholder

How the Cinder JIT’s function inliner helps us optimize Instagram

This blog focuses on Cinder's JIT compiler and its new function inliner and how it helps us speed up our production application on Instagram.

Click to view the original at engineering.fb.com

Hasnain says:

Interesting read on JITs

“It’s time to collect data about the performance characteristics of our workload and figure out whether we can develop good heuristics about what functions to inline. There are papers to read and evaluate.

Take a look at our GitHub repo, and play around with Cinder. We have included a Dockerfile and prebuilt Docker image to make this easier.”

Posted on 2022-05-07T11:09:47+0000

placeholder

Where Do Space, Time and Gravity Come From? | Quanta Magazine

Einstein’s description of curved space-time doesn’t easily mesh with a universe made up of quantum wavefunctions. Theoretical physicist Sean Carroll discusses the quest for quantum gravity with host Steven Strogatz.

Click to view the original at quantamagazine.org

Hasnain says:

Absolutely engrossing podcast transcript which discusses emergent theories on the origin of space time and some recent research in quantum gravity. Sean Carroll is great as always.

I loved the ending which touched a bit on the philosophy of science:

“Well, I do think that and, you know, I think that there’s a school of thought that says that scientists should not talk about their results until they’re completely established and refereed and everyone agrees they’re right. And not only do I think that that’s implausible, because even results that are refereed and published could be wrong, I think it’s very antithetical to the spirit of how science is, you know, and I want to emphasize that science is not just a set of results that are handed down from on high, it’s a process. We could be wrong. We’re making suppositions and hypotheses and guesses, and we’re going to figure out whether or not they work. And that’s not a bug, it’s a feature. That’s, that’s how science works. So I’m very willing to talk about tentative things as long as I try to emphasize that they are tentative things.”

Posted on 2022-05-07T11:02:17+0000

placeholder

Starbucks Broke Law By Firing And Threatening Pro-Union Workers, Labor Board Alleges

An official with the National Labor Relations Board filed a wide-ranging complaint accusing the coffee chain of violating workers’ rights.

Click to view the original at huffpost.com

Hasnain says:

Starbucks’ union busting campaign has really been something else. I’m glad the labor board is finally doing it’s job.

“The complaint filed Friday was unusually wide-ranging, alleging a pattern of intimidation and retaliation at several stores in New York. It also implicated CEO Howard Schultz, alleging he violated the law last November by promising “an increase in benefits” if they didn’t unionize.”

Posted on 2022-05-07T04:16:41+0000

placeholder

Hasnain says:

“The legitimacy crisis is that our institutions are illegitimate. For my entire adult life, beginning with Bush v. Gore, our governing institutions have been avowedly antidemocratic and the left-of-center party has had no answer for that plain fact; no strategy, no plan, except to beg the electorate to give them governing majorities, which they then fail to use to reform the antidemocratic governing institutions. They often have perfectly plausible excuses for why they couldn’t do better. But that commitment to our existing institutions means they can’t credibly claim to have an answer to this moment. “Give us (another) majority and hope Clarence Thomas dies” is a best-case scenario, but not exactly a sales pitch.”

Posted on 2022-05-06T07:52:40+0000

placeholder

Abbott says Texas could 'resurrect' SCOTUS case requiring states to educate all kids

The comments came after a leaked draft opinion from the U.S. Supreme Court revealed that a majority of justices were considering overturning Roe v. Wade.

Click to view the original at statesman.com

Hasnain says:

Harming everyone just because you feel one person doesn’t deserve it…

(Though education is a human right!)

“Abbott raised the possibility of challenging the ruling on education during a discussion about border security, after Pagliarulo asked whether the state could take steps to reduce the "burden" of educating the children of undocumented migrants living in Texas.”

Posted on 2022-05-05T04:15:41+0000

placeholder

The Tale of a Crypto Executive Who Wasn’t Who He Said He Was

The chief operating officer of ZenLedger, a software company, boasted of work for Goldman Sachs and Larry King. Did anyone check to see if it was true?

Click to view the original at nytimes.com

Hasnain says:

“And who wouldn’t want to talk to him? In interviews — and a lengthy Forbes profile — he talked about turning his life around and getting his M.B.A., stints at Wall Street heavyweights like Goldman Sachs, and staggeringly profitable crypto investments that allowed him to make millions of dollars for himself and people like the talk show host Larry King.

If only all of that were true.

Within a few weeks of announcing the I.R.S. deal, the company fired Mr. Hannum. I had asked ZenLedger about things I could not verify about Mr. Hannum after I talked to him for an article about crypto trading and taxes. Much of what he had said to others did not check out, either.”

Posted on 2022-05-04T05:47:31+0000

placeholder

Mathematicians Coax Fluid Equations Into Nonphysical Solutions | Quanta Magazine

The famed Navier-Stokes equations can lead to cases where more than one result is possible, but only in an extremely narrow set of situations.

Click to view the original at quantamagazine.org

Hasnain says:

“The new paper does not definitively settle whether Leray solutions are unique. Its conclusions rely on an external force crafted specifically to make non-uniqueness occur. Mathematicians would prefer to avoid the addition of a force altogether and prove that some set of initial conditions leads to non-uniqueness without any outside influence. That question is now perhaps a stone’s throw closer to being answered.”

Posted on 2022-05-03T16:17:00+0000

placeholder

Exclusive: Supreme Court has voted to overturn abortion rights, draft opinion shows

"We hold that Roe and Casey must be overruled," Justice Alito writes in an initial majority draft circulated inside the court.

Click to view the original at politico.com

Hasnain says:

:| no words.

“The overturning of Roe would almost immediately lead to stricter limits on abortion access in large swaths of the South and Midwest, with about half of the states set to immediately impose broad abortion bans. Any state could still legally allow the procedure.”

Posted on 2022-05-03T00:49:39+0000