Learn from Leaders at Farfetch, Alibaba and Rent the Runway at VOICES 2020
BoF’s annual gathering for big thinkers will take place from Dec 1-3, 2020 via a live global broadcast. Register today.
BoF’s annual gathering for big thinkers will take place from Dec 1-3, 2020 via a live global broadcast. Register today.
Earlier this week I ran into a fun quick blog post named
Beating C with 70 lines of Go,
which reimplements the basic functionality of wc in Go using various
approaches and compares their performance. Apparently it’s inspired by an
earlier Haskell-based post and several
other offshoots.
This reminded me of my earlier post about reimplementing wc in pure x64
assembly, where I
also measured the performance of my program against wc.
The optimized approach taken in the Go implementation is very similar to what I
did in assembly, so it seemed like an interesting comparison. I started by
generating a ~580 MiB file using xmlgen
and ran the various versions against each other:
Note the LC_TYPE setting for the system’s wc. This is important for a
fair comparison, because without this wc will attempt to do utf-8
decoding on all bytes in the file, which results in significant slowdowns. Since
the Go versions use byte-counts and so does my wcx64, I force the comparison
to be fair. In fact, this isn’t a bad result for Go – the straightforward
solution is almost as fast as the same approach direct-coded in assembly!
The Go blog post follows with parallelized versions which are much faster than
the serial one, but I’m excluding it here because all the other competitors are
single-threaded. This is not a serious benchmark anyway. If you prefer to
be serious, this response using SIMD-optimized C blows everything out of the water:
The conclusion? Well, there’s no real conclusion here, beyond that coding
exercises like this are fun in any language 🙂
This week, everyone will be talking about the kickoff to the holiday shopping season, financial results from a trio of mall brands and the status of Brexit negotiations. Get your BoF Professional Cheat Sheet.
The former editor-in-chief’s 15-year tenure has mirrored the growth of the world’s largest fashion market and a rapidly changing media landscape.
Valerie Macon/AFP via Getty Images
Guitar Center, the largest retailer for musical instruments in the US, is the latest company to file for bankruptcy in the wake of the coronavirus pandemic.
The retailer announced Saturday it had filed for Chapter 11 bankruptcy protection “to significantly reduce our debt and enhance our ability to reinvest in our business.” Guitar Center aims to emerge from bankruptcy before the end of the year, the company said.
The possibility of Guitar Center’s bankruptcy filing was first reported in October by Bloomberg.
According to the company’s bankruptcy filings, Guitar Center has been forced to seek protection in part due to “the economic upheaval created by the persistence of the Covid-19 pandemic.” The company also faces a “significant debt burden” standing at roughly $1.3 billion in debt, the New York Times reports.
Guitar Center is one of the retailers hit hard by the coronavirus pandemic: The retailer told the New York Times in March it had closed 75% of its stores during nationwide lockdowns. Social-distancing efforts and stay-at-home measures have forced storefronts across the US not deemed essential businesses to temporarily close.
With nearly 300 storefronts across the US, Guitar Center heavily relies on in-person sales to stay afloat. Although the company has an online store for purchasing musical instruments, it’s been forced to offer alternatives — like virtual music lessons — during the pandemic to try to reverse its economic downturn.
According to its bankruptcy filing, Guitar Center said it had secured $165 million in new equity investments, and intends to reduce its debt by $800 million. The company will continue to pay its employees and operate its storefronts as normal during the Chapter 11 process, Guitar Center said.
Guitar Center is not the only retailer to have to file for bankruptcy during the pandemic. Both Century 21 and Lord & Taylor filed for bankruptcy this year, and made the decision to go out of business and close their storefronts. Other retailers like Muji, Brooks Brothers, JCPenney, and Pier 1 have also filed for bankruptcy in recent months.