Why Go makes it easier (than Python or Java) to write good code

Why Go makes it easier (than Python or Java) to write good code

As a CS professor and longtime Go and Java developer, I’d like to
share some of my thoughts and explain why I prefer Go
to Java or Python –
Go makes it much easier for me to write good code. Here are some core Go features:

See Go vs. Java: 15 main differences for a small code example,
and a sample of basic data types, methods and control structures. Generics in Java,
implemented by type erasure,
make some code cleaner and allow for additional runtime checks,
but quickly become complex when you move beyond basic examples:
generic arrays aren’t supported
and type wildcards
with upper and lower bounds are quite complicated.

Source: yourbasic.org

Open source firmware is important for security

Open source firmware is important for security

I gave a talk recently at GoTo Chicago on Why open source firmware is important and I thought it would be nice to also write a blog post with my findings. For the privilege levels under Ring -1, we have less control but it is getting better with the open source firmware community and projects. You can ask your providers what they are doing for open source firmware or ensuring hardware security with roots of trust.

Source: blog.jessfraz.com

Harper Lee’s Lost True Crime Book

Harper Lee’s Lost True Crime Book

Lucrative life insurance payouts on the dead, combined with rumours that Maxwell was practising voodoo on the victims and on the law enforcement officers who should have been arresting him, left people worrying about who might be his next target. She grew up surrounded by stacks of the magazine True Detective Mysteries and the stories of Sherlock Holmes, watched trials from the balcony of the local courthouse as a young girl, studied law at the University of Alabama, and helped her childhood friend Truman Capote with the reporting and research that became his 1966 true crime classic In Cold Blood. That was until Lee heard about Maxwell and decided to turn his story into a book.

Source: www.theguardian.com

Lockdown: The coming war on general-purpose computing (2012)

Lockdown: The coming war on general-purpose computing (2012)

Figuring out what recalcitrant programs were doing and routing around media defects were core skills for computer programmers, especially in the era of fragile floppy disks and the rough-and-ready early days of software development. Anti-copying strategies only became more fraught as networks spread; once we had bulletin boards, online services, USENET newsgroups and mailing lists, the expertise of people who figured out how to defeat these authentication systems could be packaged up in software as little crack files. It created laws that made it illegal to tell people how to extract secrets from unlocking programs, and it created laws that made it illegal to host copyrighted works or the secrets.

Source: boingboing.net

Google AutoML finishes 2nd in a Kaggle competition

Google AutoML finishes 2nd in a Kaggle competition

Potential model quality improvement on final leaderboard if AutoML models were merged with other Kagglers’ models. “Erkut & Mark, Google AutoML”, includes the top winner “Erkut & Mark” and the second place “Google AutoML” models. Erkut Aykutlug and Mark Peng used XGBoost with creative feature engineering whereas AutoML uses both neural network and gradient boosting tree (TFBT) with automatic feature engineering and hyperparameter tuning.

Source: ai.googleblog.com

Deadly stupidity during Aeroflot flight 1492 emergency evacuation

Deadly stupidity during Aeroflot flight 1492 emergency evacuation

Based on videos, it appears the plane touched down rather violently, resulting in the subsequent fire and crash. It’s still possible, however, that a strike could have started an on-board fire, or in some way had affected the plane’s instruments or flight controls. While a deadly fire raged around them, witnesses say people were nonetheless stopping to collect their carry-ons, clogging the aisles and slowing the evacuation.

Source: www.askthepilot.com

Chelsea Manning released from jail with expiration of grand jury

Chelsea Manning released from jail with expiration of grand jury

May 9 at 8:17 PM
Former Army intelligence officer Chelsea Manning has been released from the Alexandria, Va., jail where she was held after refusing to testify in the grand jury investigation of WikiLeaks founder Julian Assange, her lawyers said. Manning was initially subpoenaed in January to come before a grand jury but has refused to appear, rejecting an offer of immunity from prosecution in both military and federal court. Manning’s attorneys previously noted that other grand jury resisters have been freed from jail on the grounds that their incarcerations had become punitive.

Source: www.washingtonpost.com

How to Do Nothing (2017)

How to Do Nothing (2017)

But it’s also because as I wrote it, I realized that the garden encompassed everything that I’m going to talk to you about, which is the practice of doing nothing, but also the architecture of nothing, the importance of public space, and an ethics of care and maintenance. In 1973, she carried out a public art project called Windows, which materially speaking consisted only of a map with a list of locations in San Francisco. This architecture of nothing is something I frequently think about at the rose garden, which is not your typical square garden with simple rows of roses.

Source: medium.com

What to Expect from Marzipan

What to Expect from Marzipan

Or, as we like to call it, Chameleon 2.0 :-)

As you can see, the stuff that you use to build Mac apps has changed radically over the past 35 years – but it’s important to note what hasn’t changed during that same period of time. In the early days of the iPhone, there were many apps developed by folks who brought their sensibilities from Windows or the Mac to a new platform. Think of menu bar items as a way for people to discover capabilities in your app: Mac users often scrub through a new app’s menus as a way to see what can be done.

Source: blog.iconfactory.com

Faster Arithmetic by Flipping Signs

Faster Arithmetic by Flipping Signs

On PowerPC, ARM, and many other platforms, before an instruction can use a value it must first be loaded from memory into a register explicitly with a load type instruction. Interestingly, Clang 8 figures out that it can use the sign flip trick all on its own:

Because we multiply our input value by a constant, we are in control of its sign and we can leverage that fact to change our instruction into an instruction that can work with another constant from memory directly. Here is what the function looked like before I used the trick:

When I introduced the fused multiply-add support to ARM64, I looked at the above code and its generated assembly and noticed that we had a multiplication instruction followed by a subtraction instruction before our final fused multiply-add instruction.

Source: nfrechette.github.io