tag:jebmo.posthaven.com,2013:/posts jebmo's posthaven 2020-07-04T18:02:25Z tag:jebmo.posthaven.com,2013:Post/1568901 2020-07-04T18:02:24Z 2020-07-04T18:02:25Z A Bird’s Epic Migration Stuns Scientists and Wins Online Fans

https://ift.tt/2NWMMne

This story originally appeared in The Guardian and is part of the Climate Desk collaboration.


When Onon took off above the rolling hills of the Khurkh valley in Mongolia last June, researchers had no idea if they would see him alive again. Along with one oriental cuckoo and three other common cuckoos, each fitted with a tiny tracking device, he was about to embark on an epic journey to southern Africa.

Last month, he was the only bird to return safely with his tracker intact.

“It’s an amazingly long migration,” says Chris Hewson, senior research ecologist at the British Trust for Ornithology, who said Onon’s 26,000-kilometer round trip was one of the longest journeys recorded by any land bird.

Onon has not only amazed conservationists but gripped social media across the globe. As coronavirus lockdowns brought the world to a virtual standstill, fans followed online updates from the Mongolia Cuckoo Project, watching in awe as Onon cruised across oceans and made 27 border crossings in 16 countries.

He returned on May 27, having become a media celebrity in India, Kenya, and Sweden. Back in Mongolia, he appeared on television and made newspaper headlines.

Researchers are now studying data from his journey for clues about why cuckoos travel as far as they do, and how they might be affected by the climate crisis.

Hewson, who worked on the project with the Wildlife Science and Conservation Center of Mongolia, admits he did not believe cuckoos were such proficient migrators. “Although they’ve got nice long wings, when they’re flying around the breeding site they look slightly ungainly compared to the other birds,” he says. In fact, cuckoos such as Onon, which migrate in search of caterpillars, their favourite food, travel remarkably fast, he adds. Using tailwinds, they can motor for more than 1,000 kilometers a day for a week.


Photograph: Dan Skinner/Getty Images

ABSURD CREATURES

From an invisible gecko to a blorpie fish, these atypical animals are a testament to natural selection.


Caterpillars are most common in places that are sunny and wet, and so, in summer, there are plenty in the Khurkh valley, in the southeast of the Khentii mountain range. As the weather changes they go to India for monsoon season, and then, as the wind changes, to east Africa.

It’s not an easy journey. The four other birds that set off at the same time as Onon did not make it back. Their fate is unknown—their trackers may have failed, or they may have died. One of them, Bayan, is thought to have died in Yunnan province, China, after flying 7,200 kilometers from Somalia in just seven days.



from Wired https://ift.tt/2uc60ci
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1568900 2020-07-04T18:02:03Z 2020-07-04T18:02:03Z 9 new trailers to watch this week

https://ift.tt/3glVOpK

Soul stillImage: Pixar

Like seemingly everyone else right now, I watched back through Avatar: The Last Airbender for the first time in years (actually, just the second and third seasons since my wife got through most of the first one without me) because it’s come back to Netflix. It’s been really wonderful seeing such a brilliant, funny, epic, and deserving show suddenly getting this widespread recognition.

On (what is probably my fourth) rewatch, what really stood out to me is the incredible attention the show gives to building out vibrant, fascinating cultures throughout its world. The show’s protagonists are constantly traveling, yet even towns and characters that only show up for an episode get distinct traits and humanizing moments. It adds up to a fantasy world that feels uniquely rich and complete.

One example that really caught me was the show’s swampbenders. They’re largely a joke, but the show still gives them a history (they’re Water Tribe descendants who migrated to the Earth Kingdom) and a culture (they settled in the swamp because they learned to work the water within the vines). It feels whole despite being a subplot within a 20-minute episode, and it’s just one of dozens.

If you haven’t watched the show already, you should really give it a try. (Just know, it takes a couple of episodes to hit its stride.)

Check out nine trailers from this week below.

Soul

Pixar’s next film looks gorgeous... and since I can’t get outside to see New York City all that much, it’s nice to see Soul’s re-creation of it, which seems to perpetually be covered in glowing golden-hour light. The film comes out on November 20th.

Black is King

Beyoncé has another visually stunning film coming up, which she both wrote and directed herself. It’s exclusive to Disney Plus and is supposed to tie into themes from The Lion King since she starred in last year’s remake. But mostly, it just looks like the latest entry in Beyoncé remarkable line of visual albums. The film comes out on July 31st.

The Old Guard

Charlize Theron stars in a new film for Netflix about a group of mercenaries who can’t die and have gone to battle throughout the ages. It looks like a truly ludicrous premise and an excuse for plenty of elaborate action. The film comes out on July 10th.

Aretha Franklin

Jennifer Hudson plays soul legend Aretha Franklin in Respect, a new biopic that explores Franklin’s rise to stardom — and, naturally, gives Hudson plenty of excuses to cover the classics. Variety reports that Franklin was involved with the production until her death in 2018. The film comes out on Christmas.

Greatness Code

I’m extremely into the strange, glitchy, bad-good digital art style used in Apple TV Plus’ latest series. Greatness Code is pretty straightforward on the surface — it’s about top athletes discussing some of their best and toughest moments — but it looks like it’s been beautifully packaged and in an unusual way for a sports doc. It comes out on July 10th.

Cursed

Here’s the first real look at Cursed, a new series that reimagines the legend of King Arthur, but with Nimue as the one who comes to wield the sword. It looks like a huge teen fantasy adventure. The show debuts on July 17th.

Boys State

Boys State got great reviews out of Sundance, and now it’s headed to Apple TV Plus. The documentary follows an elaborate mock government program for teenage boys in Austin, Texas, and watches as the competition quickly comes to reflect “all the flaws of American politics,” as Tasha Robinson wrote over at Polygon. It comes to theaters on July 31st and then starts streaming on August 14th.

Bloody Nose, Empty Pockets

Bloody Nose, Empty Pockets is a documentary — sort of — about the final night of a Las Vegas dive bar, spending time with the regulars who filter in and out and make the place a joy. It’s also... not really a documentary. The bar is in New Orleans, and the people are all playing characters made up while filming. I don’t know exactly what you call that (well, fiction, probably), but it looks really interesting. The film starts to come out on July 8th.

Kids See Ghosts

Will this be good? Will this be real? I have no idea. But at the very least, we have this wild two-minute teaser for a supposed animated show directed by Takashi Murakami based on Kanye West and Kid Cudi’s one-off album, which is best known for having a follow-up to the breakout track for 070 Shake, “Ghost Town,” on it. It comes out... who knows. Whatever happened to Kanye’s game about his mother traveling to heaven?



from The Verge https://ift.tt/1jLudMg
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1568899 2020-07-04T18:01:52Z 2020-07-04T18:01:52Z Ask HN: How do you deal with social isolation while working from home?

https://ift.tt/3iqF5ng

Counter balance: I have also been WFH for the past several years. I enjoy it and prefer it to working in an office.

The thing is, WFH is not for everyone. Some people will thrive in it, and some will not, and that's OK. Don't try and force yourself into a pattern that doesn't suit. Once the pandemic is over, revert to the work environment you enjoy most.

In the meantime, if you feel lonely, try always-on voice comms with your teammates while you all work as usual, mostly the audio will be quiet, but it does allow for people to spontaneously ask questions, or bounce ideas, is if you all were still in the office.



from Hacker News https://ift.tt/YV9WJO
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1568898 2020-07-04T18:01:52Z 2020-07-04T18:01:52Z Most of Europe Is a Lot Poorer Than Most of the United States

https://ift.tt/1SJY6OJ

I wrote previously that many European nations are doomed by demographics to fiscal chaos, but a lot of people don’t care that much about the future.

Bernie Sanders, for instance, looks at nations such as Denmark and Sweden today and says that America should copy their expansive welfare states.

Is he right?

Well, it depends on the parameters. If, for some reason, somebody was holding a gun to my head and demanding that we copy the policies of a nation from the European Union, the Nordic countries would be among my top choices. Yes, their welfare states are too large, but they somewhat compensate for that mistake by having very pro-free market policies in other areas.

That being said, Ireland and the United Kingdom have the most economic freedom among EU nations, and Switzerland would be at the top if the choice was broadened to non-EU nations in Europe.

But I’m digressing. Let’s get back to whether people in places such as Denmark (or anywhere else in Europe) enjoy more prosperity than their American counterparts.

Mark Perry of the American Enterprise Institute has put together some apples-to-apples data suggesting the answer is no. At least if the goal is more economic output and higher living standards.

Most European countries (including Germany, Sweden, Denmark and Belgium) if they joined the US, would rank among the poorest one-third of US states on a per-capita GDP basis, and the UK, France, Japan and New Zealand would all rank among America’s very poorest states, below No. 47 West Virginia, and not too far above No. 50 Mississippi. Countries like Italy, S. Korea, Spain, Portugal and Greece would each rank below Mississippi as the poorest states in the country.

And here’s the table Mark prepared.

As a quick caveat, it’s worth noting that there’s not a one-to-one link between gross domestic product and actual living standards. Some of the economic activity in energy-rich states such as North Dakota, for instance, translates into income for shareholders living elsewhere in America.

But if you look at the US average ($54,629), it obviously is higher than economic output in European nations. And if you prefer direct measures of living standards, then data on consumption from the OECD also shows that America is considerably more prosperous.

None of this suggests that policy in America is ideal (it isn’t) or that European nations are failures (they still rank among the wealthiest places on the planet).

I’m simply making the modest — yet important — argument that Europeans would be more prosperous if the fiscal burden of government wasn’t so onerous. And I’m debunking the argument that we should copy nations such as Denmark by allowing a larger government in the United States (though I do want to copy Danish policies in other areas, which generally are more pro-economic liberty than what we have in America).

Shifting to a different topic, Mark Perry also takes a shot at Donald Trump, who seems to think that other nations are “winning” over America because of trade.

Maybe we should remind him that Mexico and China, as US states, would both be far below our poorest state — Mississippi — by 51% and 62% respectively for GDP per capita; and Japan would be barely above our poorest state — Mississippi. Using GDP per capita as a measure of both economic output per person and of a country’s standard of living, America is winning quite handsomely.

Excellent point. It’s a sign of American prosperity that we can afford to buy more from other nations than they can afford to buy from us. 

It’s also a sign of prosperity that, when they do earn American dollars, foreigners often choose to invest those funds in the American economy (remember, the necessary flip side of a “trade deficit” is a “capital surplus”).

Speaking of European prosperity, here’s a fascinating map I saw on Twitter. The reporter from the Wall Street Journal who shared it remarked that “Purple areas are rich as US states. Yellow areas poorer than Mexico.” In other words, the few dark areas (a handful in Germany and one each in a few other nations) are the only parts of Europe that are economically equal or better than the United States.

Here’s another map, concentrating just on Northern Europe. I don’t have a policy lesson here: simply an observation that the United Kingdom has one really rich region (Greater London) and quite few relatively poor regions.

One final comment. Long-run growth matters. Hong Kong and Singapore, for instance, used to be poor jurisdictions. But free markets and small government have produced decades of strong growth, and now these places are among the richest places on the planet. Richer not only than Europe, but even more prosperous than the United States.

Cross-posted from the International Liberty blog.



from Hacker News https://ift.tt/YV9WJO
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1565317 2020-06-26T23:23:56Z 2020-06-26T23:23:56Z How to Build the Perfect Pump-Up Playlist

https://ift.tt/2A9lnuY

With more people working remotely and spending time at home, we’re all listening to more music as well. White explains that as Pandora has expanded its playlist programming, the service has seen a surge of interest. “These new playlists support Pandora's recent findings that Americans are leaning on music now more than ever as a way to adapt to the shift in spending more time at home.”

As for when people are listening? The times and playlists are as varied as the tasks you want to accomplish. Want to wake up more easily? White explained that there’s a whole suite of stations designed to help you wake up in the morning, from the pop-focused Morning Hits to smoother options like morning Motown music and their Break of Dawn R&B channel, among other more rousing options like Morning Metal. If you’re trying to get a workout in, White recommends Pandora’s workout stations. “Listeners who can’t hit the gym are finding motivation in fast-moving, upbeat exercise at home: Pandora’s Pop and Hip-Hop Power Workout and Pop Fitness stations are among the top-streamed fitness stations during the week.”

In short, whatever it is you need a boost to tackle, there’s likely a playlist not just for that exact thing but a playlist for that thing that also features music you love. “Our listeners tell us they turn to Pandora at key moments throughout the day, especially around getting energized. At the gym, heading into work, music to focus while studying, or a soundtrack to the commute home,” White explains. “Not only are they telling us, but we can watch their collective behavior. Before Covid-19 we could literally see the times people would leave the office to head home, with noticeable spikes in the start of weekday listening sessions at 5, 5:30, 6 pm etc. local time.”

How to Build Your Own Playlist

Over at Pandora, when they need to tweak a playlist or improve their algorithm, they use listener data. In short, they keep an eye on how you use the service to try to make it better for you the next time you sign in. “Through watching user behavior we’ve also learned Pandora users gravitate towards a few favorite stations but love the mix of favorite artists and tracks alongside discovering new songs,” White explains. “One major request our listeners have had has been for more control of their favorite stations. That’s why we launched Modes last year to let listeners select Crowd Faves, Deep Cuts, Artist Only, or other modes on their favorite stations.”

Pandora, for example, offers its listeners Personalize Soundtracks, like the upbeat Your Energy Soundtrack that lives among them. Spotify, for its part, also has mood-based playlists, and introduces you to new music every week with the ever-popular Discover Weekly playlist.

But finding new music that inspires you is just part of the picture. You also have to consider what the music you’ll listen to is supposed to help you accomplish. When your favorite preprogrammed playlists start giving you repeats and you’re tired of the vibe from those bookmarked YouTube streams, you can always take the reins yourself and build a playlist that really reflects you—or the moment you’re trying to push through.

If you’re trying to focus and get work done, instrumental, rhythmic songs and long mixes are energizing without being distracting. If you’re prepping for a stressful event or day, you might want something upbeat with driving vocals or lyrics that inspire you.

A study sponsored by Spotify and conducted by Emma Gray, a consultant clinical psychologist and clinical lead at the British CBT & Counseling Service, proposed that tracks that are between 50 and 80 beats per minute, regardless of the genre or type, are ideal for focus, for example. However, additional research by Spotify reveals that many listeners tend to prefer music a bit higher than our resting heart rate, and if you’re looking for workout music, they even offer their study data broken down by heart rate zone here, so you can click your active or desired heart rate and see the most popular songs played by people whose fitness trackers report they were working out at that heart rate. It’s a good way to get a few popular songs to seed your playlist with.

Try These Tracks to Get Started

Finally, if you’re looking for specific song suggestions, here’s a playlist full of suggestions from WIRED writers and editors designed to get you going. You’ll find a little of everything here, so the eclectic can play it as-is, you can hit shuffle and bounce around, and if you have preferred songs or artists, you can use it as inspiration. The tracks in the playlist are in no particular order, so feel free to explore (and if you're using the embed below, only the first 100 tracks are listed. There's way more in the full playlist to enjoy).


More Great WIRED Stories



from Wired https://ift.tt/2uc60ci
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1530143 2020-04-12T01:29:14Z 2020-04-12T01:29:14Z John Conway – The Free Will Lectures (2009) [video]


Comments

from Hacker News https://ift.tt/YV9WJO
via IFTTT

]]>
tag:jebmo.posthaven.com,2013:Post/1528343 2020-04-07T18:21:59Z 2020-04-07T18:22:00Z Crisis exaggerates our character (Do you like what you see?) - Philippine Star

https://ift.tt/34hHREw

Crisis exaggerates our character (Do you like what you see?)  Philippine Star

from "Simon Sinek" - Google News https://ift.tt/2xTnFNp
via IFTTT

]]>
tag:jebmo.posthaven.com,2013:Post/1521837 2020-03-19T23:04:12Z 2020-03-19T23:04:12Z Advocacy group calls for Zoom to release a transparency report

https://ift.tt/3dd2NRi

Zoom AppPhoto by Smith Collection/Gado/Getty Images

Digital rights advocacy group Access Now has published an open letter to Zoom calling on the video conferencing company to release a transparency report.

Publishing transparency reports is a common practice for larger tech companies. Google and Microsoft, for example, share the number of requests they get from law enforcement and from governments for user data and if they disclosed customer data as part of those requests. Zoom, however, hasn’t published a transparency report, likely because it is a smaller company and holds less personal data.

Zoom has seen significant growth as workers, families, and even presidential campaigns have used the video conferencing software for virtual meetings due to the ongoing coronavirus pandemic.

Access Now argues that Zoom needs to publish a transparency report so that the public can be informed about how the company handles and protects user data. “The growing demand for your services makes Zoom a target for third parties, from law enforcement to malicious hackers, seeking personal data and sensitive information,” wrote Isedua Oribhabor, Access Now’s US policy analyst, and Peter Micek, Access Now’s general counsel, in the letter to Zoom. “Meanwhile, as people gather online, these assemblies will ​draw scrutiny from authorities​ looking to control the flow of information. This is why disclosing only privacy policies is not enough — it is necessary for Zoom to also disclose its policies and procedures protecting the data and accounts of everyone interacting with its services through a regular transparency report.”

Access Now is asking Zoom to share the following, according to the letter:

  • The number of government requests for user data you receive by country, with compliance rates, and your procedures for responding to these requests;
  • The circumstances when you provide user information to government authorities;
  • Policies on notice to potentially affected users when their information has been requested or provided to government authorities, or exposed by breach, misuse, or abuse;
  • Policies and practices affecting the security of data in transit and at rest, including on multi-factor authentication, encryption, and retention; and
  • Policies and practices affecting freedom of expression, including terms of use and content guidelines for account holders and call participants, as well as statistics on enforcement

Reached for comment, Zoom said it was considering the request, but declined to give further details. “We received the Access Now letter on Wednesday afternoon, and we are in the process of reviewing it,” the company said in a statement. “We take user privacy extremely seriously, and appreciate them reaching out on this very important topic.”

The company hasn’t had the best track record with security issues. Last July, a security researcher disclosed a zero-day vulnerability for Zoom on Macs that could let any website open a video-enabled call. In January, cybersecurity research company Check Point Research said it had found security flaws in Zoom that would have let hackers listen in on calls.

Update 8:24am ET: Updated with statement from Zoom.



from The Verge https://ift.tt/1jLudMg
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1521833 2020-03-19T23:03:08Z 2020-03-19T23:03:08Z The iPad Pro is ready to supplant the Mac just as the MacBook Air is great again

https://ift.tt/3bactu8

Image: Apple

I felt personally attacked by Apple yesterday, specifically by the marketing copy it used to promote the new iPad Pro: “Your next computer is not a computer.” This newsletter, Processor, is also (and originally) the name for the tech-focused video essays that I sometimes make. The very first one kicked off by asking the same question Apple did with an iPad Pro back in 2018: “What’s a computer?”

Now, apparently, Apple has decided that the iPad Pro “is not a computer.” Okay.

Of course, the whole idea here isn’t actually to define “computer,” in a strict sense, but instead to play with the concept of what we expect a computer to be and do. I’m obsessed with the evolution of big-screened computers over the past few years because it’s become the locus of so much experimentation.

Apple, Microsoft, and Google have each taken multiple shots at repeating the revolutionary change the iPhone effected on the phone world, but doing so with tablets. None have managed to pull it off, and so watching their iterative attempts every year is interesting primarily because they have to keep trying new things.

An iPhone-sized revolution isn’t in the offing, but the same-old laptops feel increasingly disconnected from the way we actually do our most important computer tasks — on our phones.

And so: the new thing Apple is finally coming around on is putting real trackpad support on the iPad. There’s a whole riff here about how it’s a vindication of Microsoft’s original concept for the Surface line, but I’ll leave that for another day or another writer. I also have many emotions about how the new trackpad and mouse support work on iPadOS, but I’ll weigh in after I’ve spent some time using them.

Instead, I’m fascinated by how the new iPad Pro and new MacBook Air are directly competing with each other.

Apple disagrees, for the record. On a call yesterday with journalists, an Apple representative said that very few people who are going out to buy a device are actually confused about which one they want to get. I think that’s right, honestly, but that it won’t be right forever.

Will the iPad cannibalize the Mac? In some ways this question has become boring even as it continues to be vital. There are lots of questions like this in tech, and answering them requires cleaving a Gordian knot rather than trying to untie it. For Google, it’s “will Android and Chrome OS merge?” For Microsoft, it’s “can Windows stay relevant in the age of smartphones?”

The fact that these questions become tiresome doesn’t mean they don’t continue to be vital. For Apple, the problem is that the obvious trajectory the iPad is on right now runs smack into MacBook territory. Making two directly competitive products is a recipe for one of them to stagnate.

It doesn’t help that the Mac has had a bad few years — bad keyboards, bad pro machines, and most recently a pretty big whiff on Catalyst apps. So it’s tempting to say that the Mac is stagnating and it’s only a matter of time until the only people that buy Macs are pros who need to do very crunchy computing tasks like modeling molecules and rendering video and animation.

I don’t think that’s inevitable, but I do think it’s more likely than not on a long enough timescale if current trends continue. Until last year, that felt like a nightmare scenario to me, because until last year the iPad was radically locked down. I still think it’s too locked down to be a great general computing device, but it’s heading in a more open direction at least.

At the precise moment Apple perfected the MacBook Air, the iPad Pro looks poised to supplant it

The irony of all this is that on paper, the new MacBook Air is a stupendous everyperson computer. Apple got it down under the $1,000 mark while simultaneously fixing most of the big problems with the last model. The keyboard is fixed. The processor is fast enough for most people now instead of being a modest compromise. The default storage is reasonable.

All of which is to say that at the precise moment Apple finally shipped a great MacBook Air again, the iPad Pro looks poised to supplant it.

I take my job as a reviewer of consumer technology seriously, which means that I bounce between lots of different computing platforms. In a given week I’ll use a MacBook, a Surface Pro, an Android phone, an iPhone, a Pixelbook, and an iPad Pro. It’s weird and I don’t recommend it, but it lets me see the strengths and weakness of each platform very clearly.

And here’s what I see, at least from Apple’s computers. The MacBook Air is the MacBook that Apple should have been shipping for the past five years. If I had to recommend one Apple computer to somebody without knowing anything about their needs, I’d almost surely pick the new Air. But if I had to guess what my default recommendation would be in a few years, I’d say it will be the iPad Pro.

The irony, of course, is that I still haven’t figured out a reliable way to create this newsletter using only an iPad Pro. I can do it on a Mac, a Chromebook, or a Windows PC easily, but the iPad is too locked down to run the tools I need.


Apple’s announcements

Apple announces new MacBook Air with improved keyboard, faster performance, and more storage.

Apple announces new iPad Pro with trackpad support and a wild keyboard cover.

iPadOS 13.4 adds full mouse and trackpad support.

How the new iPad Pro compares to the new MacBook Air. Jay Peters lays out all the specs in a single chart.

Apple doubles the storage in the standard Mac mini.

Apple’s new iPad Pro keyboard with trackpad will cost up to $349. It’s not coming out until May. Even for Apple, these prices seem exorbitant.

Here’s how the iPad’s new trackpad actually works. I collated a list of all the gestures. I think I forgot to put in “right click” because it was too obvious to me but, in fact, it’s not obvious at all!

Logitech’s iPad keyboard case with trackpad costs half as much as Apple’s. I really, really hope we see a lot more of these. I still don’t fully understand why nobody ever adopted the iPad’s smart connector in any of its iterations (if you do, please email me). Regardless, trackpad support is a moment for a bunch of companies to take another crack at iPad keyboards, since Apple’s solution is super expensive.

Sony announces PS5 specs

I’ll come back to Sony later in the week. After weighing in so much on the Xbox, I feel like I owe it to the PS5. I still think the specs are a wash between the two, but what comes out of that wash is going to be fascinating.

In the meantime, we’ve got solid analysis from the rest of The Verge in the links below.

Sony reveals full PS5 hardware specifications. There are two kinds of people in the world. Those for whom the following paragraph is complete gibberish and those who know what it means and are pretty excited by it.

The PS5 will feature a custom eight-core AMD Zen 2 CPU clocked at 3.5GHz (variable frequency) and a custom GPU based on AMD’s RDNA 2 architecture hardware that promises 10.28 teraflops and 36 compute units clocked at 2.23GHz (also variable frequency). It’ll also have 16GB of GDDR6 RAM and a custom 825GB SSD that Sony has previously promised will offer super-fast loading times in gameplay.

PS5 will support ‘almost all’ of the top 100 PS4 games at launch.

Sony says the PlayStation 5’s SSD will completely change next-gen level design. This is so smart. You might think, as I did just yesterday, that load screens getting shorter is great but not necessarily life changing. But it’s not about the load screens, it’s about all load times. And if they go away, a lot of the constraints you didn’t even realize were there in the first place could go away too.

Cerny says most modern game developers more realistically “chop the world into a number of smaller pieces” to avoid those extra-long elevator rides. But the end result is that you have levels designed with twisty passages and long, repetitive environments that are there solely to account for load times and to avoid kicking the player to a black screen.

PS5 vs. Xbox Series X: a complicated battle of SSD and GPU speeds. There are a lot of numbers and teraflops and comparisons that aren’t immediately obvious just one to one. Essentially you’re going to see some console fan brag about the Xbox or PS5 having more flops or whatever, but all computing hardware is about trade-offs and compromises. Sony and Microsoft just focused on prioritizing different things.

My very-layman’s-and-correct-me-if-I’m-wrong take is that Microsoft just threw as much horsepower into a big box as it could, while Sony is hoping it has something more nuanced.

Though I’d like to see what Sony’s box looks like. So far, as Tom Warren repeatedly reminds me, all we’ve actually seen is a logo. His analysis below and in the full story is worth your time.

Sony is hoping that by offering developers less compute units running at a variable (and higher) clock rate, the company will be able to extract better performance out of the PS5. The reality is that it will require developers to do more work to optimize games for the console until we can find out how it compares to the (more powerful on paper) Xbox Series X.

More from The Verge

Space startup Lynk uses satellite to send text message to unmodified Android phone. Loren Grush has this truly fascinating story. You might think there’s some weird gotcha in the headline, but there’s not. A satellite really did essentially act as a cell tower for an unmodified Android phone on the ground — a phone that normally only communicates with cell towers in the range of a few miles at most.

Slack unveils its biggest redesign yet. Everybody always hates the day when their tools suddenly change on them, so I won’t prejudge. I won’t say that I think this design is spatially inefficient and wildly optimistic about people bothering to organize their stuff, much less their willingness to learn how. I won’t suggest that what Slack needs to do is put more effort into an API so people can make third-party clients that cater to their specific work desires instead of following Slack’s ideas. I won’t say any of that. I’ll wait to see what this redesign is actually like to experience. Then, well, I guess we’ll see.

Android 11 Developer Preview 2 is out with support for call screening, hinge angle detection, and more.

This is Twitch’s moment. Bijan Stephen is cooler than me and therefore knows cooler people, but that doesn’t undercut his point that he’s seeing lots of cool stuff happening on the platform. Twitch is going to break out into something more than what it has been. I don’t know what that’ll be, ultimately, but you can feel the shift happening already.

What’s really cool about all this is the flourishing creativity I’ve seen in the new streams that are happening on Twitch right now. A New York Times columnist I know has started doing cooking streams with her husband; a programmer I’m pals with has started hosting daily yoga classes; my friends at the podcast Reply All have joined, too, and they’ve started streaming live call-in shows. And these are just the people I know — there are undoubtedly thousands more streams like them happening right now. It’s the best time on Twitch that I can remember.

Schools can get direct connectivity help from carriers after new FCC ruling.



from The Verge https://ift.tt/1jLudMg
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1521832 2020-03-19T23:02:53Z 2020-03-19T23:02:53Z Beat the Coronavirus Blues With a Free 'Dungeons & Dragons' Adventure

https://ift.tt/2w9xKVX


Whether you’ve always wanted to try some dice-rolling adventuring, or you’re bummed because your regular Dungeons & Dragons group might have to virtual for a few weeks (or months), now’s as good a time as any to fight coronavirus-induced boredom with tabletop gaming.

And since we’re all probably pinching pennies a bit, I recommend you start your adventures with this brand-new (and free) campaign from Wizards of the Coast: Explorer’s Guide to Wildemount.

You aren’t getting the full adventure, but this trial should be enough to help you decide whether you enjoy Dungeons & Dragons—or give you a nice little refresh from whatever primary campaign you might be running. It’s all set in Wildemount, home of the famed Critical Role adventurers (whose exploits you can stream, for free, if you’d rather watch people play D&D than play it yourself).

You’ll have to have a Roll20 account to get this set up with your friends, which I highly recommend doing for the conveniences it brings to remote playing. However, you will face some limitations if you’re not paying:

Once you’re ready to create your game (after giving it a name), you’ll get taken to your campaign’s landing page. From there, you’ll be able to invite your players (up to five total for the free version) and indicate when your next session will be. Launch the game—and if you’re running it, I recommend doing a trial run solo before you start with your actual players, as you’ll then be able to walk through the Roll20 tutorial to learn how to use the interface:

lich fight lich fightScreenshot: David Murphy

Admittedly, Roll20 does come with a bit of a learning curve, so don’t expect that you’ll be able to run people through your very first adventure within a few minutes of setting up your account. It’s an incredibly useful and powerful tool, but it’s not the only way to play Dungeons & Dragons remotely. I do love that it has built-in video and audio chat capabilities, as well as a text chat. Heck, you can even import your own scenic music for your campaign.

If this sounds like a bit too much work, though, there’s always the quick and easy method: Use the text you get on Roll20, but fire up a video chat on whatever service you prefer most (Skype, Facebook, Google Hangouts, Zoom, et cetera) and just walk your players through what’s going on. (Miniatures / hex boards aren’t for everyone.)

And don’t forget to add a few extra tools to your remote arsenal to make your game even more dynamic for everyone involved:



from Lifehacker https://lifehacker.com
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1514601 2020-02-28T21:19:48Z 2020-02-28T21:19:48Z How to Invest in Real Estate in 2020

https://ift.tt/2PuY6YD

Real-estate investing offers a way to earn money while building for your financial future—but it’s also an easy way to lose your shirt if you’re not careful.

If you do your research and commit to tried-and-true systems, you can make your money back and then some.

That’s why we want to go through 8 ways you can make money by investing in real estate. They’re all different, and we certainly don’t suggest you try all 8 methods. But this is a great launching point if you’re just starting out.

How to invest in real estate in 8 ways

Here are the 8 ways you can invest in real estate. The method you choose ultimately depends on your financial situation and what you hope to achieve. If you want to learn more, check out our article on real estate investing myths.

#1: Real-estate investment trust (REIT)

If you’re looking for a way to invest in real estate that’s lower risk than buying property, this is the method for you.

Real estate investment trusts, or REIT, act like mutual funds for real estate. Think of them like a basket. In the basket are different properties you can invest in. Instead of investing in individual ones, you invest in the entire basket along with other investors. REITs are typically managed by a company (i.e. a trust).

Your investment goes towards buying and developing the properties to turn into eventual profit. Investors get paid dividends with REITs like a normal fund.

REITs are typically managed by a company (i.e. a trust). They also come in a variety of different forms. You can invest in REITs that focus on healthcare buildings like hospitals or retail buildings like shopping malls.

Overall, REITs are a great place to start if you’re looking to get your toes wet in real estate investing. Not only do you not have to worry about paying enormous amounts for a property, but you get started today with a broker.  They are an excellent and low-risk way to diversify your portfolio into real-estate. And you never have to think about it just like a normal index fund.

For more, check out our article on mutual funds to learn how to start investing with a broker today.

#2: Rental property

Admit it: You’ve flirted with the idea of buying a single-family home and renting it out for passive income.

If you’re careful about the property you buy and the person you rent it to, it can be a great way to make some money while you pay off the mortgage for the property. And as rent prices rise each year, your mortgage will remain relatively fixed—increasing your earnings as a result.

However, you need to keep in mind the phantom costs of purchasing a home. These are the unseen but consequential costs such as regular maintenance and repairs that many would-be homeowners don’t consider when they first purchase a house.

And since you’ll be the landlord of the property, you’re on the hook for any issues that might arise when your tenet calls you at 3am complaining about a burst pipe.

Also, many folks assume that landlords can set any rent they want. That’s not true. They can only set rent at a price that the market will support. If the local economy begins to struggle, you could be forced to rent the property at a rate that’s less than your mortgage. You’d start losing money every month.

If you’re willing to put in the work to be a good landlord, here is our article on how to buy a house.

#3: House-hacking

House-hacking sounds like you’re trying to access the mainframe of your house in a cheesy hacking montage.

But it’s actually a lucrative way to make money in real estate.

Here’s how house-hacking works: You purchase a multi-flat building. Then you live in one unit while you rent out the other ones. This allows you to generate money via rent while you cut down on your own expenses by living on the property.

This is similar to purchasing rental property. But instead of being on the hook for maintenance and repairs for one property, you’ll be responsible for all of your units. This can be a big drawback for those looking to get involved in house-hacking.

However, if you have the funds to hire repair people or property managers (or if you just want to do it yourself), house-hacking could be a great way to make some cash in real estate.

#4: Flipping property

Flipping properties seem straightforward: Buy a house, renovate it, and then sell it for more than you bought it for—and more than it cost to renovate it.

However, would-be house flippers should know that this is one of the most time, money, and energy consuming ways to make money in real estate. Not only do you need the money to purchase a property, but you also need to put in the sweat equity to renovate a house.

Some of the best advice I’ve been given is to only consider flipping if I had a network of trusted contractors that I could rely on. Otherwise, it’s really easy for costs to get out of hand.

And even when you renovate a house, it’s not guaranteed that it’ll sell any better than before. Factors such as the real estate market, the economy, and the location play a massive role as well.

That said, it still has the potential to give you massive profits if you play your cards right.

#5: Short-term room rentals

Much like house-hacking, this method involves you renting out property you already live on. However, there’s a slight difference to this one: You don’t even have to own the property in order to rent it out.

With the advent of websites like Airbnb and even Craigslist, you can rent out different rooms in your house or apartment for cash.

And with the combination of the right listing and the right location, you can make a good amount of money from those sites—like this enterprising I Will Teach reader:

For more on how to get started with Airbnb, here’s the official how to article from the company itself.

Also, here’s another great guide from our friends over at The Points Guy.

#6: Real-estate funds

These act like REITs where you invest in a mutual fund with other investors in companies that actively manage different properties for you. The difference is that real-estate investment funds also include direct investments into real estate properties.

REITs act much like stocks and other equities, whereas real-estate funds are like your typical mutual funds.

“Real-estate funds generally increase in value through appreciation and generally do not provide short-term income to investors as do REITs,” explains Stuart Michelson, a finance professor for Stetson University. “Real estate funds gain value mostly through an increase in value of the assets.”

You should expect higher fees than a standard REIT.

#7: Online real-estate investing

This method relies on web platforms such as Fundrise to get your investment done for you.

These platforms allow real-estate managers to connect with potential investors to help fund the purchase or investment of different properties.

Think of it like Kickstarter for real estate. But instead of a dumb cooler that will never get delivered to you, you can receive returns like a typical stock or bond investment.

And with a web platform, it can be a much more intuitive experience.

If you’re interested, here are a few online real-estate investing platforms you can use to get started:

#8: Private equity funds

Much like mutual funds, private equity funds pool the money of different investors together in order to invest in property. Unlike an REIT or real-estate trust, though, these funds are typically only available to accredited investors who have a lot of money on hand to start investing.

To start, you need at least $100,000 to begin investing. That number can easily start to get in the seven-figure range depending on the fund.

As such it’s not as accessible to the layman as many of the other options on this list. However, it’s still worth noting just in case that applies to you.

Is real-estate investing right for you?

Real-estate investment can be an interesting and fun way to diversify your assets. If you play your cards right and do your research, there’s no telling how much money you can make through these investments.

But you have to be careful. Real-estate tends to be a very volatile market, and there are a lot of dangers that go into it if you don’t keep in mind certain elements. To learn more about this, be sure to check out our very best resources on the topic below:

How to Invest in Real Estate in 2020 is a post from: I Will Teach You To Be Rich.



from I Will Teach You To Be Rich https://ift.tt/1FN6nOt
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1512181 2020-02-22T13:07:04Z 2020-02-22T13:07:04Z Peter Norvig's Economic Simulation (2018)

https://ift.tt/2Abfrzd

Permalink

Join GitHub today

GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.

Sign up
3 contributors

Users who have contributed to this file

@ghurley @norvig @polonez

1500 lines (1500 sloc) 899 KB

Sorry, something went wrong.

Reload?

Sorry, we cannot display this file.

Sorry, this file is invalid so it cannot be displayed.

You can’t perform that action at this time.

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.


from Hacker News https://ift.tt/YV9WJO
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1510378 2020-02-17T04:11:56Z 2020-02-17T04:11:57Z Breaking down 5 pressure points when on the penalty kill (VIDEOS)

https://ift.tt/37wVujn

Special teams have always been important in hockey.

In the last three years, NHL power plays have operated at close to 20% efficiency, up from the previous eight years. Meanwhile, shorthanded goals are on the rise, with teams scoring an average of 8.06 when down a man after 55 games.

A good penalty killing strategy can be the difference between winning and losing games.

It begins with trigger moments — pressure points when the penalty killing team should pounce on the puck. Whether your team is aggressive or passive on the PK, most of the time, you will only have one chance to clear the puck. You need to be able to recognize when to pressure, so everyone can jump together. With more goals on the PK than ever, sometimes a quick support and odd-man rush can be a nightmare for the opponent.

If you are first on the puck for every pressure point, you’ll have a greater chance to spend less time in your own zone defending.

1. Lost faceoff

In my last article, I talked about having a plan on a faceoff when you are on the power play. Knowing that more and more teams try to generate offence from the faceoff, if you lose the draw, you need to know what to do and where to go.

For the penalty killers, it’s the same pattern as the power play. No one will be set in the next 5-10 seconds after the puck is dropped, so pressuring after a lost faceoff can be a significant trigger moment.

Most NHL teams send their centre to pressure the puck, but at the junior and women’s international level, some coaches send their winger. It allows teams to dictate which side of the ice to keep the puck.

THIS PAGE IS FOR MEMBERS ONLY

 

Sign Up Here

 

This is for members only, please sign up or login to view

The post Breaking down 5 pressure points when on the penalty kill (VIDEOS) appeared first on The Coaches Site.



from The Coaches Site https://ift.tt/29iJqEN
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1495804 2020-01-05T21:12:25Z 2020-01-05T21:12:26Z Take This Yale Course on the 'Science of Well-Being' For Free

https://ift.tt/2FmfERl


If one of your 2020 goals is to work on more productive habits and increase your own happiness in life, Yale might be able to help you get there.

Yale is offering its course on “The Science of Well-Being” online through Coursea for anyone to take, provided you have an internet connection.

The course officially kicks off today and runs for ten weeks. Each week has roughly 2 hours of coursework you’ll need to get through, typically a mixture of readings and videos. For instance, this week involves 4 videos totaling 14 minutes and eight different readings. Next week involves 7 videos totaling 63 minutes of watch time, 3 readings, and a quiz.

Here’s the official course description:

“In this course, you will engage in a series of challenges designed to increase your own happiness and build more productive habits. As preparation for these tasks, Professor Laurie Santos reveals misconceptions about happiness, annoying features of the mind that lead us to think the way we do, and the research that can help us change. You will ultimately be prepared to successfully incorporate a specific wellness activity into your life.”

Everything is done at your own pace, so you can work ahead if you’d like or play catchup if you end up falling behind. The whole thing is estimated to take around 20 hours in total to finish.

While taking the course is free, if you want to get a certificate marking that completion you’ll need to pay $50. That certificate can be shared in the “Certificates” portion of your LinkedIn profile or mentioned on your resume, in a cover letter, or wherever else you think it might be applicable. Of course, you can certainly mention completing the course even if you don’t pay that $50.



from Lifehacker https://lifehacker.com
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1493011 2019-12-25T11:21:34Z 2019-12-25T11:21:34Z A study of “game intelligence” in the sport of hockey

https://ift.tt/2t2Pu36

A research paper by Jan Lennartsson, Carl Lindberg, and Hall of Fame defenceman Nicklas Lidstrom entitled Game Intelligence in Team Sports piqued my interest recently and is worthy of a read. The research deals with the elusive quality that elite players have and that ordinary players lack: the ability to make quick, consistent, and effective decisions.

The paper describes the quality as “being regarded as something incomprehensible… [a quality] excellent players are praised for” and “less obvious than other more tangible qualities (skills).”

I can attest to the fact that coaches often rue over players with large toolboxes but without knowledge of how to use those tools.

The academic authors set out to use mathematical modelling and game theory to create simulations, thereby testing frequently occurring game situations. They then fact-check the results of the simulations by leveraging NHL veteran Lidstrom’s insights, earning the former Detroit Red Wings defenceman an author’s credit for his work. 

See also:

All open-ended invasion type games are dependent on the ability for players to make reliable real-time decisions. Despite the chaotic nature of play; positional responsibilities, roles and derived tactics are required to establish control over the chaotic. This fact allowed the authors to use math and theory to predict, simulate and single out the best decisions.

A zero-sum starting point was established so that the mathematical model could work. The rules were, “no advanced knowledge of one another” and a defined goal to defend against the opposition, preventing goals against first, and then attempt to score as a second condition. The authors also equalized competing teams in terms of skill. By doing this, the algorithm could examine potential in a variety of game situations. Amazingly, the mathematical models and Lidstrom’s decisions matched.

In the study, the researchers were able to answer questions like: what results in a change in puck possession in a one-on-one situation and is it best to pass often and early or just when under pressure? They were also able to answer questions like: is it best to carry the puck up the ice into scoring areas, as well as where and how should a shot be made to score?

Of the many interesting findings of this study, it was determined that an optimal or well-executed strategy does not always guarantee victory. Players can execute individual, group, and team tactics with little error but not see success. We call this “puck bounces,” or just plain bad luck. But, in the world of game theory, this outcome suggests random variation and a known limitation to experimental design. The finding — our preference to win every time we lace up — isn’t realistic.

On the flip side is the conclusion that teams who do not follow a chosen set of tactics or strategies have only a marginal chance of winning.

“A strategic game is a choice where the participants make their decisions simultaneously… To have a chance, structure must exist and an understanding of strategy must be known.”

Therefore, coaches need to teach, lead, and adjust strategy to create an opportunity to win.

The study also provides proof that the best defence is to make offensive options the poorest. And proficiency in defence is a predictable, patient, and purposeful approach. This largely involves deflecting the attack to the perimeter of play.

Think Lidstrom: purposeful, patient, deliberate, and effective.

Isolating and slowing the attack creates evidence of disadvantage by (defensive) numerical advantage, ie. what we now call defence support. When executed on the ice — and in the theoretical model — positioning in relation to the net and away from high scoring areas, suggest a turnover or takeaway. When limited space and time options are available to the attacker, good defence is assured. Further, the study finds that defensively the greatest effort should be placed on limiting opportunity and access into the zone and into the best scoring areas. 

The algorithm also infers that location on the ice is a reliable predictor for tactical decisions. This finding may seem like common sense but a counter-intuitive finding is that off a dump, and in a loose puck situation; a defender is better to not chase but rather “take ice” and hold their position relative to the net. This is because the model sees a foot race and battle for the puck as having a high probability of failure. A critical failure, like a fall, results in an open challenge situation (1 vs 0) and/or immediate numerical disadvantage.  

In 2 vs 1 situations, the model confirms success through initial pressure and on-ice proximity to the puck carrier followed by a switch towards covering the other attacker. This S-shaped strategy is noted by the authors to be Lidstrom’s and not how defensive players tend to play the puck carrier in today’s game. In this situation, the model finds the most reliable method is to play a 2 vs 1 as two 1 vs 1s, with the defender taking the non-puck carrier and the goaltender playing the puck carrier to end the play.

On the offensive side of the game, the speed of the attack proved to be most important. In real-world tactics such as winger, centre drive or drive-delay create a chance of beating a defender and/or finding scoring opportunities. Further, the maintenance of puck control, especially on entries, is an important strategy to create offensive potentials. These findings confirm trends we are recognizing in the modern game including Connor McDavid drives, and power play entries where one player carries the puck deep into the zone to set the point of attack.

In offensive drives, puck control and decisions to go 1 vs 1 are found to be dependent on the gap between the defender and the attacker. The relative positioning between the two players as well as the assertiveness of the defender are vital cues. If a shorted gap exists and/or the defender aggressively pursues the puck carrier a deke or move and skating it out was mathematically confirmed as best. However, if the gap is appropriate and the defender is laying back then the 1 vs 1 predictably ends. T

he reliable choice for the attacker when a defender maintains gap is to change speed and direction by skating away or passing to a teammate. The model also suggests to “pass often and pass early.” Passing often and early was shown to overwhelm.

In terms of shot potential, the lowest chance of scoring and the greatest chance of a turnover is when attackers were steered and angled into locations away from the net. They found that “besides the skill of the shooter the probability of scoring depends on the distance to the goal and firing angle.” A more central and close position is desirable and two possible scorers, rather than one, result in one-timer scoring most often.

Preventing goals from passes across the midline of the slot create “a considerably larger shot potential (with a one-timer) than a shot fired from a player who has puck possession for some time.” The top of the circles, inside the dots, mid-slot, and net-side all seem to suggest optimal scoring locations from one-time shots.

Although this paper is theoretical and reads like a complicated series of formulas Lidstrom’s confirmation and the researcher’s ideas certainly get you thinking about current strategies and what works best.

The post A study of “game intelligence” in the sport of hockey appeared first on Hockey Coaching Tips & Videos by the Pros.



from Hockey Coaching Tips & Videos by the Pros https://ift.tt/29iJqEN
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1489625 2019-12-16T14:52:41Z 2019-12-16T14:52:42Z Reddit’s Favorite Mindblowing Facts of All Time, Fact-Checked

https://ift.tt/36EkTHO


The planets, very much not to scale.Illustration: Shutterstock

Redditors love to ask each other for their favorite fun, mindblowing, counterintuitive, or disturbing facts. Every few months a new “fun fact” thread ends up on the front page of Reddit, and thousands of people pitch in with their favorites. I looked at years’ worth of threads, collected the very best facts, and verified them.

I selected only facts that were so cool and surprising that I had to check them before I’d believe them. And then I did check them, and added citations. You can confidently share these facts and know that Google will back you up.

  • “When you get a kidney transplant, they usually just leave your original kidneys in your body and put the third kidney in your pelvis.”—horse_you_rode_in_on [confirmed]
  • “There are roughly 200 corpses on Mount Everest that are used as way points for climbers.”—Scrappy_Larue [NSFW: confirmed]
  • “If you made $5,000 a day since Columbus first stepped in America, you still wouldn’t have one billion dollars today.”—heitorab [confirmed; you’d hit a billion in 2040]
  • “People in the southern hemisphere see the moon upside down compared to the north.”—Auxilae [when you look at this illustration it’s obvious]
  • “Every two minutes, we take as many photos as all of humanity took during the 1800s.”—UnraoSandhu [confirmed; in fact more photos were taken in the past seven years than all of previous history]
  • “Every day there are [82] YEARS’ worth of video being published on YouTube.”—areemkay and AvioNaught [updated, as the number is way bigger than when they posted this fact]
  • “You could fit all of the planets in our solar system between the Earth and the moon. With room to spare.”—thumper5 [confirmed]
  • “You have no muscles in your fingers (besides the tiny tiny tiny muscles around hair follicles). All muscles that control fingers are in your forearm and palm.”—Kii_and_lock [confirmed]
  • “The first professional recording Jon Bon Jovi ever released was a song called ‘R2-D2 We Wish You A Merry Christmas.’”—DIP_MY_BALLS_IN_IT [confirmed]
  • “The Mall of America doesn’t actually have heating, even though it’s located in Minnesota. During winter, the heat produced by lights in the stores and the shoppers is enough to keep it at a comfortable temperature.”—buffalo747 [confirmed]
  • “The 10th President, John Tyler, has living grandchildren.”—Poor_posture [confirmed last year and no obits since]
  • “Pyramids and wooly mammoths coexisted.”—cromwest [confirmed, though it was the tail end of the mammoth population]
  • “Sharks were on earth before trees.”—kingJoffi [confirmed]
  • “All of the solid objects around [you] are actually ‘vibrating.’”—judsonm123 [confirmed—actually all objects are vibrations]
  • “43% of all people born prior to 1800 died before the age of 5.”—abbott_costello [confirmed for 1800; roughly confirmed for before 1800]
  • “There are more molecules of air in one breath than there are breaths in the atmosphere. That means that every breath you take probably contains at least one molecule of Newton’s last breath.”—SciolistOW “And one of Hitler’s farts.”—cocothepops [confirmed]
  • “The orbit of Io around Jupiter is short enough that you can observe a solid chunk of the entire orbit in just one night (with a telescope). Like, you can sit there for a few hours and watch Io orbit around Jupiter.”—cryptoz [confirmed]
  • “George Washington never knew dinosaurs existed.”—jeff_the_nurse [confirmed]
  • “The Earl of Oxford had an audience with Queen Elizabeth I and he accidentally let out a fart. He was so embarrassed that he traveled the world for seven years.”—symbiosa [confirmed, if you trust 17th-century writer John Aubrey]
  • “Ireland’s population in [1840] was 8.2 million. Now, even including Northern Ireland, it’s just 6.6 million.”—bluetoad2105 [date corrected slightly]
  • “Hitler, Trotsky, Tito, Freud and Stalin all lived in Vienna in 1913.”—rustyhaben [confirmed—and so did Archduke Franz Ferdinand, until he was assassinated the next year, sparking WWI]
  • “Redheads typically need more anesthesia than people with different hair color.”—lookslikesausage [yep, about 20% more, as we’re more sensitive to pain. VINDICATED]
  • “Cows have best friends and get lonely if they are separated.”—ByzantineBasileus [confirmed]
  • “A bear enlisted in the Polish army made it to the rank of Corporal. He also smoked, drank and carried weapons to the front during battles. His name was Wojtek.”—snoodletuber [confirmed, though he was probably just eating the cigarettes]
  • “Shaq hit almost 12,000 baskets in his career. Exactly 1 of them was a 3-pointer.”—NoMoreMrSpiceGuy [confirmed]
  • “There are more hydrogen atoms in a teaspoon of water than there are teaspoons of water in the sea.”—unknown [confirmed, or by combining this and this]
  • “There are more trees on Earth than stars in the Milky Way.”—reissavfc [confirmed]
  • “90% of the population on Earth lives in the Northern Hemisphere.”—xLudikrous [confirmed]
  • “Kale, collard greens, Chinese broccoli, cauliflower, cabbage, kohlrabi, brussels sprouts and broccoli are all the same plant [species]; brassica oleracea. They are just different cultivars.”—cokecakeisawesome [confirmed]
  • “There are more permutations of a standard deck of 52 cards than there are seconds since the Big Bang.”—mveinot [confirmed—over a billion times as many, in fact]
  • “The Mali Emperor Mansa Musa was so rich that while on a pilgrimage to Mecca, he gave away so much gold it caused an economic crisis.”—CoffeeBeanoMan [confirmed]
  • “The color orange was named after the fruit, not the other way around.”—Comedyfish_reddit [confirmed]
  • “Elephants can control their dick like a second trunk.”—zach84 [confirmed]
  • “14% of the population is missing a tendon in their arm.”—Swiftapple [confirmed, depending on ethnicity]
  • “The CEO of Food for the Poor, the largest international relief and development organization, is named Robin Mahfood.”—garenzy [confirmed]
  • “Nintendo was founded 34 years before the fall of the Ottoman Empire.”—unknown [confirmed, confirmed]
  • “One litter of kittens can have more than one father.”—Sammichface [confirmed]
  • “The USAF accidentally dropped 2 nuclear bombs on North Carolina in January of 1961, and neither exploded.”—rotll [confirmed]
  • The Simpsons is largely credited with coining the term ‘meh.’”—mazdak26 [confirmed, though “mneh” and “mnyeh” predate]
  • “There are [over a billion] insects for every person alive today.”—tired_commuter [corrected from their underestimation]
  • “Pepsi for a short period of time commanded the world’s 7th largest military force.”—mazdak26 [confirmed, confirmed]
  • “There are two ATMs in Antarctica and only one works.”—Hang-Out [confirmed]
  • “While children of identical twins are legally first cousins, genetically they are half siblings.”—gastropubjscript [confirmed]
  • “Entomologists who study cockroaches often become allergic to them. At the same time, they become allergic to most brands of pre-ground coffee.”—crotchblinder [confirmed, confirmed]
  • “There’s a place in the Pacific known as Point Nemo. At certain times of the day it’s closer to the ISS than to any land mass.”—PoglaTheGrate [confirmed, confirmed]
  • “The letter J wasn’t invented until 1630.”—StevesMcQueenIsHere [confirmed; before then it was a variant of I]

Some quotes have been edited for clarity.



from Lifehacker https://lifehacker.com
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1478100 2019-11-15T19:41:32Z 2019-11-15T19:41:32Z How to React If Your Kid Is Using Drugs

https://ift.tt/2XgR9x8


When it comes to our kids and drugs, we tend to focus on prevention—and rightfully so. We think about how to be good role models when it comes to substance use; we talk to them early and often about the dangers of drugs, peer pressure and hanging out with the wrong crowd. But what about when we do all of that and still, they use?

Even if they have all the right information—even if they know better—teenagers sometimes make bad choices. And when parents find out, they are likely to feel shocked, scared, angry, or all of the above. Psychologist and educator Emma Maynard writes for The Conversation that this makes us lose our calm when we need it the most:

Experts in teenage drug use tell us it’s about informed choices. They advise us to accept that as parents we are unlikely to stop our teenage children doing what they choose, and so, our best approach is to ensure they have the right information, and that they can discuss issues with us openly. In this way, we can help to reduce harm by ensuring teenagers are aware of the risks, and what to do if they need help.

Though this is indeed excellent advice, it is difficult for many parents to follow. My ongoing research looks at the experiences of parents whose children are taking drugs. They value the way practitioners can talk to their teenagers, and understand the value of the advised harm reduction approach.

Despite this, most parents I’ve spoken to have said their gut reaction is to respond differently: more zero tolerance than harm reduction. They tend to ground their children and stop their pocket money. Stories are littered with accounts of rows and escalating sanctions in an endless cycle of panic and rebellion.

In other words, staying calm and rational when you think your child may be using drugs is a whole lot easier said than done. We want to lock them up to keep them safe. But protecting your relationship with them needs to be a top priority so that you can help in the most constructive way possible.

Of course, you’ll need to get the proper professionals in your corner to help you navigate all of this. But there are things you can start doing in your interactions with your child as soon as you discover the drug use to help maintain a strong connection and open communication as you go forward.

Don’t react right away

If you know (or suspect) that your teen is using drugs, the very first thing to do is take a deep breath. And then another one. If you have a partner, talk things through with them before you approach your child. The Partnership for Drug-Free Kids organization stresses the importance of parents getting on the same page and presenting a united front, even if you don’t completely agree on the position you’ll take.

Gather any evidence you can (there is a list of common hiding places here), set your goals and objectives, plan out your initial conversation, and prepare yourself for what is likely to be a very negative reaction.

Talk when you’re calm

Maynard says that expecting yourself to stay calm all the time is extra pressure you don’t need. “But choosing when to talk can help,” she writes. “The parents I spoke to all said the same thing: talk when you are calm, and they are calm. Then you can talk and listen well.”

If things start to escalate and become heated, press “pause” on the conversation and return to it once everyone has cooled off. Try to always come from a place of love. Or, as researcher Molly Bobek with the Center on Addiction and Substance Abuse suggests, come from a place of “non-judgmental curiosity,” which emphasizes asking questions while keeping an open mind:

The relationship with your teen is the most important thing to attend to and not lose sight of when you’re concerned about substance use. Effectively preventing or stopping teen substance use over the long-term cannot happen in the absence of a strong and caring family relationship.

Really listen

If ever there is a time to talk less and listen more, this is it, no matter how tempting it may be to bombard your teenager with lectures full of information. In order to figure out the underlying reason for the drug use—and change the pattern—you have to listen for the “why.” They might be succumbing to social pressures, seeking to push boundaries or craving the physical sensation.

Once you pinpoint the motivation behind the use, you can begin to find solutions or alternatives.

Work on your connection

When something as big and scary as drug use enters your life, it’s hard to think about or talk about anything else. But it’s not a problem likely to be solved overnight, and Maynard says it’s okay—even encouraged—to take a break from it now and then to reconnect:

Have fun. If this means avoiding the topic for a little while, do it. Do something different and light-hearted. Talk about something other than the drugs and any fall-out, such as poor behaviour or school issues. Having fun together is one of the best things we can do to boost resilience, especially when relationships come under strain. It’s also one of the first things we neglect to prioritise.

Bobek also suggests parents consider what is working or going well in their lives by asking themselves this question: “If we weren’t here to talk about Jr.’s substance use, what would we be talking about?”


Meet the smartest parents on Earth! Join our parenting Facebook group.



from Lifehacker https://lifehacker.com
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1475765 2019-11-10T03:28:27Z 2019-11-10T03:28:27Z Andrej Karpathy talks about how Tesla's NNs are structured and trained


Comments

from Hacker News https://ift.tt/YV9WJO
via IFTTT

]]>
tag:jebmo.posthaven.com,2013:Post/1470121 2019-10-25T19:07:34Z 2019-10-25T19:07:34Z Read Barack Obama’s Eulogy for Elijah Cummings

https://ift.tt/2PklvwE

Former President Barack Obama delivered a eulogy today honoring Representative Elijah Cummings of Maryland, who died last week after a decades-long career in the House of Representatives. Cummings was known in Congress as a staunch defender of voting rights and for his perch as chair of the House Oversight Committee, which put him at the center of the impeachment inquiry now facing President Donald Trump. The widespread bipartisan adulation Cummings’s colleagues had for him was made clear yesterday, when he lay in state at the Capitol—the first African American lawmaker to be afforded that honor in the nation’s history.

Below, the full text of Obama’s remarks as delivered.


To the bishop, and the first lady, and the New Psalmist family, to the Cummings family, Maya, Mr. President, Madam Secretary, Madam Speaker, governor, friends, colleagues, staff.

The seed on good soil, the parable of the sower tells us, stands for those with a noble and good heart, who hear the word, retain it, and by persevering produce a crop. The seed on good soil.

Elijah Cummings came from good soil. And in this sturdy frame, goodness took root. His parents were sharecroppers from the South. They picked tobacco and strawberries, and then sought something better in this city, South Baltimore. Robert worked shifts at a plant, and Ruth cleaned other people’s homes. They became parents of seven, preachers to a small flock. I remember I had the pleasure of meeting Elijah’s mother, Ruth, and she told me she prayed for me every day, and I knew it was true, and I felt better for it. Sometimes people say they are praying for you, and you don’t know. They might be praying about you, but you don’t know if they are praying for you. But I knew Miss Ruth was telling the truth.

So they were the proverbial salt of the earth, and they passed on that strength and that grit, but also that kindness and that faith to their son. As a boy, Elijah's dad made him shine his shoes and tie his tie, and they’d go to the airport—not to board the airplanes, but to watch others do it. I remember Elijah telling me this story. Robert would say, “I have not flied. I may not fly, but you will fly one day. We can’t afford it right now, but you will fly.”

His grandmother—as Elijah related—and as grandmothers do, was a little more impatient with her advice. Your daddy, she said, “he’s been waiting and waiting for a better day. Don’t you wait.” And Elijah did not wait. Against all odds, Elijah earned his degrees. He learned about the rights that all people in this country are supposed to possess, with a little help, apparently, from Perry Mason. Elijah became a lawyer to make sure that others had rights, and his people had their God-given rights, and from the statehouse to the House of Representatives, his commitment to justice and the rights of others would never, ever waver.

[Read: Elijah Cummings, reluctant partisan warrior]

Elijah’s example: a son of parents who rose from nothing to carve out just a little something, a public servant who toiled to guarantee the least of us have the same opportunities that he had earned. A leader who once said he would die for his people, even as he lived every minute for them—his life validates the things we tell ourselves about what’s possible in this country. Not guaranteed, but possible. The possibility that our destinies are not preordained. But rather, through our works, and our dedication, and our willingness to open our hearts to God’s message of love for all people, we can live a purposeful life. That we can reap a bountiful harvest. That we are neither sentenced to wither among the rocks nor assured a bounty, but we have a capacity, the chance, as individuals and as a nation, to root ourselves in good soil.

Elijah understood that. That’s why he fought for justice. That’s why he embraced his beloved community of Baltimore. That’s why he went on to fight for the rights and opportunities of forgotten people all across America, not just in his district. He was never complacent, for he knew that without clarity of purpose and a steadfast faith, and the dogged determination demanded by our liberty, the promise of this nation can wither. Complacency, he knew, was not only corrosive for our collective lives, but for our individual lives.

It has been remarked that Elijah was a kind man. I tell my daughters—and I have to say, listening to Elijah’s daughters speak, that got me choked up. I am sure those of you who have sons feel the same way, but there is something about daughters and their fathers. And I was thinking, I would want my daughters to know how much I love them, but I would also want them to know that being a strong man includes being kind. That there is nothing weak about kindness and compassion. There is nothing weak about looking out for others. There is nothing weak about being honorable. You are not a sucker to have integrity and to treat others with respect. I was sitting here and I was just noticing The Honorable Elijah E. Cummings and, you know, this is a title that we confer on all kinds of people who get elected to public office. We’re supposed to introduce them as honorable.

But Elijah Cummings was honorable before he was elected to office. There’s a difference. There is a difference if you are honorable and treated others honorably outside the limelight. On the side of a road; in a quiet moment, counseling somebody you work with; letting your daughters know you love them. As president, I knew I could always count on Elijah being honorable and doing the right thing. And people have talked about his voice. There is something about his voice. It just made you feel better. There’s some people, they have that deep baritone, a prophetic voice. And when it was good times and we achieved victories together, that voice and that laugh was a gift. But you needed it more during the tough times, when the path ahead looked crooked, when obstacles abounded. When I entertained doubts, or I saw those who were in the fight start to waver, that’s when Elijah’s voice mattered most.

More than once during my presidency, when the economy still looked like it might plunge into depression, when the health-care bill was pronounced dead in Congress, I would watch Elijah rally his colleagues. “The cost of doing nothing isn’t nothing,” he would say, and folks would remember why they entered into public service. “Our children are the living messengers we send to a future we will never see,” he would say, and he would remind all of us that our time is too short not to fight for what’s good and what is true and what is best in America.

Two hundred years to 300 years from now, he would say, people will look back at this moment and they will ask the question “What did you do?” And hearing him, we would be reminded that it falls upon each of us to give voice to the voiceless, and comfort to the sick, and opportunity to those not born to it, and to preserve and nurture our democracy.

Elijah Cummings was a man of noble and good heart. His parents and his faith planted the seeds of hope, and love, and compassion, and righteousness in that good soil of his. He has harvested all the crops that he could, for the Lord has now called Elijah home, to give his humble, faithful servant rest. And it now falls on us to continue his work, so that other young boys and girls from Baltimore, across Maryland, across the United States, and around the world might too have a chance to grow and to flourish. That’s how we will honor him. That’s how we will remember him. That’s what he would hope for. May God bless the memory of the very honorable Elijah Cummings. And may God bless this city, and this state, and this nation that he loved. God bless you.



from Politics : The Atlantic https://ift.tt/2eqp6Ue
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1469536 2019-10-24T02:48:22Z 2019-10-24T02:48:22Z The top 10 audiobooks on Audible.com - WREX-TV

https://ift.tt/2N478df

The top 10 audiobooks on Audible.com  WREX-TV

from "Simon Sinek" - Google News https://ift.tt/2Jx19wP
via IFTTT

]]>
tag:jebmo.posthaven.com,2013:Post/1469354 2019-10-23T16:54:20Z 2019-10-23T16:54:20Z Quantum supremacy: the gloves are off

https://ift.tt/2obLjjD

Links:
Google paper in Nature
New York Times article
IBM paper and blog post responding to Google’s announcement

When Google’s quantum supremacy paper leaked a month ago—not through Google’s error, but through NASA’s—I had a hard time figuring out how to cover the news here. I had to say something; on the other hand, I wanted to avoid any detailed technical analysis of the leaked paper, because I was acutely aware that my colleagues at Google were still barred by Nature‘s embargo rules from publicly responding to anything I or others said. (I was also one of the reviewers for the Nature paper, which put additional obligations on me.)

I ended up with Scott’s Supreme Quantum Supremacy FAQ, which tried to toe this impossible line by “answering general questions about quantum supremacy, and the consequences of its still-hypothetical achievement, in light of the leak.” It wasn’t an ideal solution—for one thing, because while I still regard Google’s sampling experiment as a historic milestone for our whole field, there are some technical issues, aspects that subsequent experiments (hopefully coming soon) will need to improve. Alas, the ground rules of my FAQ forced me to avoid such issues, which caused some readers to conclude mistakenly that I didn’t think there were any.

Now, though, the Google paper has come out as Nature‘s cover story, at the same time as there have been new technical developments—most obviously, the paper from IBM (see also their blog post) saying that they could simulate the Google experiment in 2.5 days, rather than the 10,000 years that Google had estimated.

(Yesterday I was deluged by emails asking me “whether I’d seen” IBM’s paper. As a science blogger, I try to respond to stuff pretty quickly when necessary, but I don’t—can’t—respond in Twitter time.)

So now the gloves are off. No more embargo. Time to address the technical stuff under the hood—which is the purpose of this post.

I’m going to assume, from this point on, that you already understand the basics of sampling-based quantum supremacy experiments, and that I don’t need to correct beginner-level misconceptions about what the term “quantum supremacy” does and doesn’t mean (no, it doesn’t mean scalability, fault-tolerance, useful applications, breaking public-key crypto, etc. etc.). If this is not the case, you could start (e.g.) with my FAQ, or with John Preskill’s excellent Quanta commentary.

Without further ado:

(1) So what about that IBM thing? Are random quantum circuits easy to simulate classically?

OK, so let’s carefully spell out what the IBM paper says. They argue that, by commandeering the full attention of Summit at Oak Ridge National Lab, the most powerful supercomputer that currently exists on Earth—one that fills the area of two basketball courts, and that (crucially) has 250 petabytes of hard disk space—one could just barely store the entire quantum state vector of Google’s 53-qubit Sycamore chip in hard disk.  And once one had done that, one could simulate the chip in ~2.5 days, more-or-less just by updating the entire state vector by brute force, rather than the 10,000 years that Google had estimated on the basis of my and Lijie Chen’s “Schrödinger-Feynman algorithm” (which can get by with less memory).

The IBM group understandably hasn’t actually done this yet—even though IBM set it up, the world’s #1 supercomputer isn’t just sitting around waiting for jobs! But I see little reason to doubt that their analysis is basically right. I don’t know why the Google team didn’t consider how such near-astronomical hard disk space would change their calculations, probably they wish they had.

I find this to be much, much better than IBM’s initial reaction to the Google leak, which was simply to dismiss the importance of quantum supremacy as a milestone. Designing better classical simulations is precisely how IBM and others should respond to Google’s announcement, and how I said a month ago that I hoped they would respond. If we set aside the pass-the-popcorn PR war (or even if we don’t), this is how science progresses.

But does IBM’s analysis mean that “quantum supremacy” hasn’t been achieved? No, it doesn’t—at least, not under any definition of “quantum supremacy” that I’ve ever used. Recall that the Sycamore chip took about 3 minutes to generate enough samples to pass the “linear cross-entropy benchmark,” the statistical test that Google applies to the outputs of its device. Three minutes versus 2.5 days is still a quantum speedup by a factor of 1200. More relevant, I think, is to compare the number of “elementary operations.” Let’s generously count a FLOP (floating-point operation) as the equivalent of a quantum gate. Then by my estimate, we’re comparing ~5×109 quantum gates against ~2×1020 FLOPs—a quantum speedup by a factor of ~40 billion.

Even that, though, is arguably not the right comparison. As far as we know today, the Summit supercomputer would need the full 2.5 days, or 2×1020 FLOPs, even to generate one sample from the output distribution of an ideal, randomly-generated 53-qubit quantum circuit. Google’s Sycamore chip needs about 40 microseconds to generate each sample. Now admittedly, the samples are extremely noisy: indeed, they’re drawn from a probability distribution that looks like 0.998U+0.002D, where U is the uniform distribution over 53-bit strings, and D is the hard distribution we care about. But notice that if we took 500=1/0.002 samples from this noisy distribution, then with high probability at least one of them would’ve been drawn from D. Sycamore takes 0.02 seconds to generate 500 samples—which compared to 2.5 days, would imply a quantum speedup by a factor of ~11 million, or a factor of ~4×1014 in “number of elementary operations.”

For me, though, the broader point is that neither party here—certainly not IBM—denies that the top-supercomputers-on-the-planet-level difficulty of classically simulating Google’s 53-qubit programmable chip really is coming from the exponential character of the quantum states in that chip, and nothing else. That’s what makes this back-and-forth fundamentally different from the previous one between D-Wave and the people who sought to simulate its devices classically. The skeptics, like me, didn’t much care what speedup over classical benchmarks there was or wasn’t today: we cared about the increase in the speedup as D-Wave upgraded its hardware, and the trouble was we never saw a convincing case that there would be one. I’m a theoretical computer scientist, and this is what I believe: that after the constant factors have come and gone, what remains are asymptotic growth rates.

In the present case, while increasing the circuit depth won’t evade IBM’s “store everything to hard disk” strategy, increasing the number of qubits will. If Google, or someone else, upgraded from 53 to 55 qubits, that would apparently already be enough to exceed Summit’s 250-petabyte storage capacity. At 60 qubits, you’d need 33 Summits. At 70 qubits, enough Summits to fill a city … you get the idea.

From the beginning, it was clear that quantum supremacy would not be a milestone like the moon landing—something that’s achieved in a moment, and is then clear to everyone for all time. It would be more like eradicating measles: it could be achieved, then temporarily unachieved, then re-achieved. For by definition, quantum supremacy all about beating something—namely, classical computation—and the latter can, at least for a while, fight back.

As Boaz Barak put it to me, the current contest between IBM and Google is analogous to Kasparov versus Deep Blueexcept with the world-historic irony that IBM is playing the role of Kasparov! In other words, Kasparov can put up a heroic struggle, during a “transitional period” that lasts a year or two, but the fundamentals of the situation are that he’s toast. If Kasparov had narrowly beaten Deep Blue in 1997, rather than narrowly losing, the whole public narrative would likely have been different (“humanity triumphs over computers after all!”). Yet as Kasparov himself well knew, the very fact that the contest was close meant that, either way, human dominance was ending.

Let me leave the last word on this to friend-of-the-blog Greg Kuperberg, who graciously gave me permission to quote his comments about the IBM paper.

I’m not entirely sure how embarrassed Google should feel that they overlooked this.   I’m sure that they would have been happier to anticipate it, and happier still if they had put more qubits on their chip to defeat it.   However, it doesn’t change their real achievement.

I respect the IBM paper, even if the press along with it seems more grouchy than necessary.   I tend to believe them that the Google team did not explore all avenues when they said that their 53 qubits aren’t classically simulable.   But if this is the best rebuttal, then you should still consider how much Google and IBM still agree on this as a proof-of-concept of QC.   This is still quantum David vs classical Goliath, in the extreme.   53 qubits is in some ways still just 53 bits, only enhanced with quantum randomness.  To answer those 53 qubits, IBM would still need entire days of computer time with the world’s fastest supercomputer, a 200-petaflop machine with hundreds of thousands of processing cores and trillions of high-speed transistors.   If we can confirm that the Google chip actually meets spec, but [we need] this much computer power to do it, then to me that’s about as convincing a larger quantum supremacy demonstration that humanity can no longer confirm at all.

Honestly, I’m happy to give both Google and IBM credit for helping the field of QC, even if it is the result of a strange dispute.

I should mention that, even before IBM’s announcement, Johnnie Gray, a postdoc at Imperial College, gave a talk (abstract here) at Caltech’s Institute for Quantum Information with a proposal for a different faster way to classically simulate quantum circuits like Google’s—in this case, by doing tensor network contraction more cleverly. Unlike both IBM’s proposed brute-force simulation, and the Schrödinger-Feynman algorithm that Google implemented, Gray’s algorithm (as far as we know now) would need to be repeated k times if you wanted k independent samples from the hard distribution. Partly because of this issue, Gray’s approach doesn’t currently look competitive for simulating thousands or millions of samples, but we’ll need to watch it and see what happens.

(2) Direct versus indirect verification.

The discussion of IBM’s proposed simulation brings us to a curious aspect of the Google paper—one that was already apparent when Nature sent me the paper for review back in August. Namely, Google took its supremacy experiments well past the point where even they themselves knew how to verify the results, by any classical computation that they knew how to perform feasibly (say, in less than 10,000 years).

So you might reasonably ask: if they couldn’t even verify the results, then how did they get to claim quantum speedups from those experiments? Well, they resorted to various gambits, which basically involved estimating the fidelity on quantum circuits that looked almost the same as the hard circuits, but happened to be easier to simulate classically, and then making the (totally plausible) assumption that that fidelity would be maintained on the hard circuits. Interestingly, they also cached their outputs and put them online (as part of the supplementary material to their Nature paper), in case it became feasible to verify them in the future.

Maybe you can now see where this is going. From Google’s perspective, IBM’s rainstorm comes with a big silver lining. Namely, by using Summit, hopefully it will now be possible to verify Google’s hardest (53-qubit and depth-20) sampling computations directly! This should provide an excellent test, since not even the Google group themselves would’ve known how to cheat and bias the results had they wanted to.

This whole episode has demonstrated the importance, when doing a sampling-based quantum supremacy experiment, of going deep into the regime where you can no longer classically verify the outputs, as weird as that sounds. Namely, you need to leave yourself a margin, in the likely event that the classical algorithms improve!

Having said that, I don’t mind revealing at this point that the lack of direct verification of the outputs, for the largest reported speedups, was my single biggest complaint when I reviewed Google’s Nature submission. It was because of my review that they added a paragraph explicitly pointing out that they did do direct verification, using something like a million cores running for something like a month, for a smaller quantum speedup (merely a million times faster than a Schrödinger-Feynman simulation running on a million cores, rather than two billion times faster).

(3) The asymptotic hardness of spoofing Google’s benchmark.

OK, but if Google thought that spoofing its test would take 10,000 years, using the best known classical algorithms running on the world’s top supercomputers, and it turns out instead that it could probably be done in more like 2.5 days, then how much else could’ve been missed? Will we find out next that Google’s benchmark can be classically spoofed in mere milliseconds?

Well, no one can rule that out, but we do have some reasons to think that it’s unlikely—and crucially, that even if it turned out to be true, one would just have to add 10 or 20 or 30 more qubits to make it no longer true. (We can’t be more definitive than that? Aye, such are the perils of life at a technological inflection point—and of computational complexity itself.)

The key point to understand here is that we really are talking about simulating a random quantum circuit, with no particular structure whatsoever. While such problems might have a theoretically efficient classical algorithm—i.e., one that runs in time polynomial in the number of qubits—I’d personally be much less surprised if you told me there was a polynomial-time classical algorithm for factoring. In the universe where amplitudes of random quantum circuits turn out to be efficiently computable—well, you might as well just tell me that P=PSPACE and be done with it.

Crucially, if you look at IBM’s approach to simulating quantum circuits classically, and Johnnie Gray’s approach, and Google’s approach, they could all be described as different flavors of “brute force.” That is, they all use extremely clever tricks to parallelize, shave off constant factors, make the best use of available memory, etc., but none involves any deep new mathematical insight that could roust BPP and BQP and the other complexity gods from their heavenly slumber. More concretely, none of these approaches seem to have any hope of “breaching the 2n barrier,” where n is the number of qubits in the quantum circuit to be simulated (assuming that the circuit depth is reasonably large). Mostly, they’re just trying to get down to that barrier.

Ah, but at the end of the day, we only believe that Google’s Sycamore chip is solving a classically hard problem because of the statistical test that Google applies to its outputs: the so-called “Linear Cross-Entropy Benchmark,” which I described in Q3 of my FAQ. And even if we grant that calculating the output probabilities for a random quantum circuit is almost certainly classically hard, and sampling the output distribution of a random quantum circuit is almost certainly classically hard—still, couldn’t spoofing Google’s benchmark be classically easy?

This last question is where complexity theory can contribute something to story. A couple weeks ago, UT undergraduate Sam Gunn and I adapted the hardness analysis from my and Lijie Chen’s 2017 paper “Complexity-Theoretic Foundations of Quantum Supremacy Experiments,” to talk directly about the classical hardness of spoofing the Linear Cross-Entropy benchmark. Our short paper about this should be on the arXiv later this week. Briefly, though, Sam and I show that if you had a sub-2n classical algorithm to spoof the Linear Cross-Entropy benchmark, then you’d also have a sub-2n classical algorithm that, given as input a random quantum circuit, could estimate a specific output probability (for example, that of the all-0 string) with variance at least slightly (say, Ω(2-3n)) better than that of the trivial estimator that just always guesses 2-n. Or in other words: spoofing Google’s benchmark is no easier than the general problem of nontrivially estimating amplitudes in random quantum circuits. Our result helps to explain why, indeed, neither IBM nor Johnnie Gray nor anyone else has suggested any attack that’s specific to Google’s Linear Cross-Entropy benchmark: they all simply attack the general problem of calculating the final amplitudes.

(4) Why use Linear Cross-Entropy at all?

In the comments of my FAQ, some people wondered why Google chose the Linear Cross-Entropy benchmark specifically—especially since they’d used a different benchmark (multiplicative cross-entropy, which unlike the linear version actually is a cross-entropy) in their earlier papers. I asked John Martinis this question, and his answer was simply that linear cross-entropy had the lowest variance of any estimator they tried. Since I also like linear cross-entropy—it turns out, for example, to be convenient for the analysis of my certified randomness protocol—I’m 100% happy with their choice. Having said that, there are many other choices of benchmark that would’ve also worked fine, and with roughly the same level of theoretical justification.

(5) Controlled-Z versus iSWAP gates.

Another interesting detail from the Google paper is that, in their previous hardware, they could implement a particular 2-qubit gate called the Controlled-Z. For their quantum supremacy demonstration, on the other hand, they modified their hardware to implement a different 2-qubit gate called the iSWAP. Now, the iSWAP has no known advantages over the Controlled-Z, for any applications like quantum simulation or Shor’s algorithm or Grover search. Why then did Google make the switch? Simply because, with certain classical simulation methods that they’d been considering, the simulation’s running time grows like 4 to the power of the number of iSWAP gates, but only like 2 to the power of the number of Controlled-Z gates! In other words, they made this engineering choice purely and entirely to make a classical simulation of their device sweat more. This seems totally fine and entirely within the rules to me. (Alas, the iSWAP versus Controlled-Z issue has no effect on a proposed simulation method like IBM’s.)

(6) Gil Kalai’s objections.

Over the past month, Shtetl-Optimized regular and quantum computing skeptic Gil Kalai has been posting one objection to the Google experiment after another on his blog. Unlike the IBM group and many of Google’s other critics, Gil completely accepts the centrality of quantum supremacy as a goal. Indeed, he’s firmly predicted for years that quantum supremacy could never be achieved for fundamental reasons—and he agrees that the Google result, if upheld, would refute his worldview. Gil also has no dispute with the exponential classical hardness of the problem that Google is solving.

Instead, Gil—if we’re talking not about “steelmanning” his views, but about what he himself actually said—has taken the position that the Google experiment must’ve been done wrong and will need to be retracted. He’s offered varying grounds for this. First he said that Google never computed the full histogram of probabilities with a smaller number of qubits (for which such an experiment is feasible), which would be an important sanity check. Except, it turns out they did do that, and it’s in their 2018 Science paper. Next he said that the experiment is invalid because the qubits have to be calibrated in a way that depends on the specific circuit to be applied. Except, this too turns out to be false: John Martinis explicitly confirmed for me that once the qubits are calibrated, you can run any circuit on them that you want. In summary, unlike the objections of the IBM group, so far I’ve found Gil’s objections to be utterly devoid of scientific interest or merit.

Update #1: Alas, I’ll have limited availability today for answering comments, since we’ll be grading the midterm exam for my Intro to Quantum Information Science course! I’ll try to handle the backlog tomorrow (Thursday).

Update #2: Aaannd … timed to coincide with the Google paper, last night the group of Jianwei Pan and Chaoyang Lu put up a preprint on the arXiv reporting a BosonSampling experiment with 20 photons (the previous record had been 6 photons). At this stage of the quantum supremacy race, many had of course written off BosonSampling—or said that its importance was mostly historical, in that it inspired Google’s random circuit sampling effort.  I’m thrilled to see BosonSampling itself take such a big leap; hopefully, this will eventually lead to a demonstration that BosonSampling was (is) a viable pathway to quantum supremacy as well.  And right now, with fault-tolerance still having been demonstrated in zero platforms, we need all the viable pathways we can get.  What an exciting day for the field.

This entry was posted on Wednesday, October 23rd, 2019 at 10:50 am and is filed under Announcements, Bell's Theorem? But a Flesh Wound!, Complexity, Quantum. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.



from Hacker News https://ift.tt/YV9WJO
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1469353 2019-10-23T16:53:53Z 2019-10-23T16:53:53Z Stanford institute calls for $120 billion investment in U.S. AI ecosystem

https://ift.tt/360S6xJ


The Stanford University Institute for Human-Centered Artificial Intelligence is calling for the U.S. government to make a $120 billion investment in the nation’s AI ecosystem over the course of the next 10 years. The report calls efforts by the Trump administration like calling for near $1 billion in U.S. non-defense research and development spending in 2020 “encouraging, but not nearly enough.”

The national AI vision report specifically calls for $2 billion in annual spending to support entrepreneurs and expand innovation, $3 billion on education, and $7 billion on interdisciplinary research to discover breakthroughs in the latest AI.

The report was written by center directors John Etchemendy and Dr. Fei-Fei Li, calls underfunding of AI efforts threatens U.S. global leadership and is a “national emergency in the making.”

Li is a leader at the Stanford Computer Vision Lab, creator of ImageNet, and until last year, Li served as chief AI scientist for Google Cloud.

Failure to take decisive action could also upend the global economy, the report reads.

“If guided properly, the Age of AI could usher in an era of productivity and prosperity for all. PWC estimates AI will deliver $15.7 trillion to the global economy by 2030. However, if we don’t harness it responsibly and share the gains equitably, it will lead to greater concentrations of wealth and power for the elite few who usher in this new age — and poverty, powerlessness and a lost sense of purpose for the global majority,” the report reads. “The potential financial advantages of AI are so great, and the chasm between AI haves and have-nots so deep, that the global economic balance as we know it could be rocked by a series of catastrophic tectonic shifts.”

Other calls for growth in AI research and development funding include Computing Community Consortium proposed a range of funding priorities as part of a 20-year R&D roadmap such as research into personalized education, lifetime AI assistants, and the establishment of a national research centers.

In May, legislation proposed in the U.S. Senate also called for the creation of national AI center and for $2.2 billion in annual funding over the course of the next 5 years.



from VentureBeat https://venturebeat.com
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1469352 2019-10-23T16:53:42Z 2019-10-23T16:53:42Z Why 'Free College' Is a Terrible Idea

https://ift.tt/32FeAC5

Michael Gamez, 22, has wanted to work on cars since he was a kid, just like his father and grandfather. He fixed up and sold his first used car when he was 14. "It felt really good to build something up and sell it for a profit," says Gamez.

But his teachers conditioned him to equate a college degree with success. So he enrolled at the University of California, Irvine, with a plan to major in mechanical engineering. During his sophomore year, Gamez dropped out because he realized that he was on the wrong path.

Sen. Bernie Sanders (I–Vt.)and Sen. Elizabeth Warren (D–Mass.) have promised that, if elected, they'll make public college tuition-free and wipe clear federal student loan debt, which in the U.S. tops $1.5 trillion. Their claim is that making college universal will lead to higher productivity and more economic opportunity for people like Gamez.

"If you make college free, then there's going to be so many [degrees] floating around that if you want to get a better job, then you're going to need to go and get some supplemental degree," says Bryan Caplan, an economist at George Mason University and author of The Case Against Education. He's skeptical that professors like him have much to offer most students.

"We're spending too much time and money on education because most of what you learn in school you will never use after the final exam," says Caplan. "If you just calmly compare what we're studying to what we really do, the connection is shockingly weak."

Caplan says that most people attend college as a way to signal to prospective employers that they're reasonably intelligent, conscientious, and conformist.

"The signaling story is mostly that our society says that you're supposed to graduate, and if you're supposed to graduate, the failure to graduate signals non-conformity," says Caplan. "People that are willing to just bite their tongues and suffer through it are the ones who are also going to be good at doing that once they get a job."

Caplan's case rests partly on the so-called sheepskin effect, named for the material on which diplomas were once printed.

Studies of the earnings of college graduates reveal that the average salary increase for completing the last year of college is on average more than double that of completing the first three, implying that it's the fortitude to obtain the degree—not the knowledge gained—that explains the boost in compensation.

"The usual view, called the human capital view, says that basically all of what's going on in schools, is that they are pouring useful skills into you," says Caplan. "What I'm saying is the main payoff you're getting from school is that you're getting certified, you're getting stamped. You are, in other words, getting what you need to convince employers that you are a good bet."

Instead of college, Leah Wilczewski, 21, enrolled in Praxis, a one-year job skills program focusing on communication, marketing, and other jobs. It cost $12,000 but included a 6-month paid apprenticeship worth $16,000, meaning she'll finish the program $4,000 in the black.

Wilczewski is in the middle of her apprenticeship at Impossible Foods, the Bay Area company that sells a meatless hamburger.

"I feel as if being in Praxis and being able to nail a job that typically requires four years of school, if not more…it's like, okay, with that knowledge, what else can I do?" says Wilczewski.

After Michael Gamez dropped out of UC Irvine, he enrolled in an auto mechanic trade school while also working at Pep Boys. Then he applied for and received a $12,400 scholarship from Mike Rowe Works, which helps young people looking to enter the skilled trades

From there, he entered a three-month training program with BMW and a day after finishing began his job as a high-level technician at BMW of Beverly Hills.

"Now that I work with cars…I get excited to go to work," says Gamez. "I feel like a lot of people, they get surprised when I tell them the amount of money that a mechanic or a technician can make at a dealership."

Even though it's possible to acquire the necessary skills to make a good living without attending college, enrollment at 4-year universities has stayed steady for the past 10 years, and an Economics of Education Review study by Nicholas Turner found that every dollar of federal aid spending crowds out about 83 cents of institutional aid. Such trends leave Caplan skeptical that enrollment will fall anytime soon despite the increasing availability of online alternatives.

"If you've got that kind of guaranteed customer base where the taxpayers have no choice in whether or not the money's going to be spent and the government hands it over to you, then you're going to be fine," says Caplan.

As for Wilczewski, she has two more months left in her apprenticeship and is hopeful that Impossible Foods will keep her on in the sales department. Gamez hopes that working for BMW is a first step towards eventually owning his own shop.

Produced by Zach Weissmueller. Camera by John Osterhoudt, Alexis Garcia, Jim Epstein, Todd Krainin, and Weissmueller.

Photo credits: Anthony Behar/Sipa USA/Newscom, Bastiaan Slabbers/ZUMA Press/Newscom, Jack Kurtz/ZUMA Press/Newscom.

Subscribe to our YouTube channel.

Like us on Facebook.

Follow us on Twitter.

Subscribe to our podcast at iTunes.



from Hit & Run : Reason Magazine https://reason.com
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1469351 2019-10-23T16:53:39Z 2019-10-23T16:53:39Z Are Electric Cars Good for the Environment?

https://ift.tt/2pRfJYH

This article is Part 5 of an 11-part series analysis of Tesla, Elon Musk and EV Revolution. You can read other parts here.

My wife loves driving the Model 3, not for all the selfish reasons I like to drive it (it is fast and quite the iPad on wheels) but because she feels she helps the environment. Is she right?

Unlike an ICE car, which takes fuel stored in the gas tank, combusts it in the engine, and thus creates kinetic energy, Tesla takes electricity stored in the battery pack and converts it directly into kinetic energy. That’s a very clean and quiet process. However, the electricity that magically appears in our electrical outlets is not a gift from Thor, the thunder god; it was generated somewhere and transmitted to us.

As I write this, I am slightly disturbed by how the topic I am about to discuss has been politicized. I am not going to debate global warming here, but let’s at least agree that an excess of carbon dioxide (CO2) and carbon monoxide (CO) is bad for you and me, and for the environment. If you disagree with me, start an ICE car in your garage, roll down the windows, and sit there for about 20 minutes. Actually, please don’t, because you’ll die. So let’s agree that a billion cars emitting CO and CO2 is not good and that if we emit less CO and CO2 it is good for air quality.

Roughly two-thirds of the electricity generated in the U.S. is sourced from fossil fuels. The good news is that only half of that comes from coal; the other half comes from natural gas, which produces half as much CO2 as coal (though it has its own side effects – it leaks methane). Another 20% of U.S. energy comes from nuclear, which produces zero carbon emissions. The remaining 17% comes from “green” sources, such as hydro (7%), wind (6.6%), and solar (1.7%).

So if tomorrow everyone in the U.S. switched to an EV, and our electrical grid was able to handle it, we’d instantly cut our nation’s CO2 emissions by more than a third – that’s a good thing.

Aside from all the reasons above (including going from 0 to 60 mph in 4.4 seconds), the reason I am a big fan of electric is that it gives us choices. Gasoline cars run either on oil or on oil. Electric cars open the door for alternative energy sources. That flexibility means oil might stop being the commodity that dictates our geopolitics, and that could mean we’ll have fewer wars.

There are alternatives to fossil fuels that have much less impact on the environment – and on you and me. There is nuclear energy, for one. To me, this is a no-brainer. Nuclear power plants have little environmental footprint – they spit out steam. But we have had Chernobyl, Three Mile Island, and Fukushima. It is unclear how many people died in those disasters, because the death toll estimates range from a few dozen who died from direct exposure to thousands who died from cancer caused by radiation.

If cooler minds had prevailed, we would not be on the fourth generation of nuclear reactors but the four hundredth. Nuclear should be our core energy source: It is cheap; it produces very little CO2; it provides stable, predictable output; and the latest versions are safe (they cool themselves down if there is loss of power). However, what I have learned in investing is that what I think should happen doesn’t matter; only what will happen matters. Here is the good news: Nuclear production is expected to increase by almost 50% over the next 20 years, and 90% of the increase will come from the two most populous nations – China and India.

After the Fukushima disaster, Germany decided it wanted to quit nuclear by 2022 (ironically, Japan is going back to nuclear), and its green (wind, solar, hydro, biomass) energy generation went from less than 20% in 2011 to 44% in 2018. Its electricity price to households went up 24% over that period. Germans pay almost three times as much for electricity as Americans, while their CO2 emissions have not budged.

This happened for two reasons. First, wind turbines and solar replaced nuclear, which produced little CO2; second, Mother Nature is not predictable, even in Germany. On a cloudy day, solar output drops, and if the wind doesn’t blow, wind turbines don’t turn, and “peak” coal- or gas-fed power plants have to come online to fill in the gap. Peak plants are smaller, usually less efficient power plants that produce more CO2 per kilowatt hour than larger plants.

Despite the overall jump in Germany’s electricity costs, electricity prices in Germany turned negative (yes, negative) on more than 100 occasions in 2017; customers were paid to use electricity. It was breezy and sunny, so renewables produced a lot of energy, but there was no demand for it, so it was cheaper to pay consumers to use power than to disconnect wind turbines and solar panels from the grid.

Ten or 15 years ago, the thinking was that the solution to our energy problems would be the price of solar dropping. It has, falling by 50% to 80% over the past decade, and this trend will likely continue. The problem is that when we need heat or AC in our houses, we expect it to be available instantly, even on cloudy days. Instead of peak plants, we need peak batteries; on very sunny days, we’d store extra electricity in battery packs.

Interestingly, Tesla provided a 100-megawatt battery system to the state of South Australia for $66 million to help it deal with a massive blackout in February 2017.  It is unclear if Tesla actually made money on this transaction. However, it was reported that the battery saved the state $17 million in six months by allowing it to sell extra power to the grid.

Recently, Tesla announced the Megapack (a battery pack that looks like a shipping container), a large, utility-grade solution that has 60% greater power density than the battery used in South Australia. Thus, the billions poured into battery technology for EVs are having the unintended consequence of lowering the cost of peak batteries.

There is another inconvenient truth. Batteries and renewables in general are made of earthly materials that have to be mined, transported, refined, and turned into finished products, which are often “browner” (or whatever color is the opposite of green) than nongreen alternatives. The Tesla battery weighs about a thousand pounds and requires 500,000 pounds of raw material to be unearthed to build it.

And there is yet another issue with lithium ion batteries. They require cobalt, a mineral that is found in the Earth’s crust. But 50% to 70% (depending on the source) of cobalt reserves are in the Democratic Republic of the Congo (DRC), a politically unstable country that doesn’t shy from inhuman labor practices and child labor. Tesla and Panasonic have been reducing the amount of cobalt used in their batteries; it has declined by 60% – the Model 3 battery contains only 2.8% cobalt (the Volkswagen ID.3’s battery contains 12% to 14% cobalt). Tesla and Panasonic recently announced that they are working on a cobalt-free battery; they’ll substitute silicon for cobalt.

I have to confess that after researching this topic I now understand why Jeff Bezos believes we should mine asteroids for minerals and is committed to spending all his Amazon wealth on Blue Origin, his aerospace venture. And Elon Musk’s SpaceX seeks to relocate earthlings to Mars. No matter what path we take in generating electricity, we will still produce plenty of carbon dioxide in the process.  However, electric cars provide options (some are better than others), where gasoline cars are making chose between oil or oil. 

This is just one out of 11 parts of my analysis of Tesla, Elon Musk, and the EV revolution.

You can get complete analysis as an email series, PDFEPUB or Kindle ebook here or email at tesla-article@contrarianedge.com

The post Are Electric Cars Good for the Environment? appeared first on Vitaliy Katsenelson Contrarian Edge.



from Vitaliy Katsenelson Contrarian Edge https://ift.tt/2Ly46LH
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1469350 2019-10-23T16:53:21Z 2019-10-23T16:53:22Z The Current War is basically Amadeus for electricity

https://ift.tt/2W5w8oH

Photo: Dean Rogers / 101 Studios

It’s unusual for a film to arrive in theaters labeled “Director’s Cut,” but it’s happening with The Current War, a historical film about the tech face-off between irascible inventor Thomas Edison (Benedict Cumberbatch) and genteel industrialist George Westinghouse (Michael Shannon). The film’s themes are integrity, the damaging effects of powerful men, and the importance of savvy branding — and those same themes have played out in the film’s release just as much as they’ve turned up on-screen.

The “Director’s Cut” label ensures that even the most casual filmgoers will have a sense that something strange is at play with The Current War. The drama about the early days of electricity is hitting theaters more than two years after it premiered to tepid reviews at the Toronto International Film Festival. The version that played there had reportedly been heavily reworked by producer Harvey Weinstein. After Weinstein’s sexual abuse disgrace and The Weinstein Company’s collapse left the project in limbo, director Alfonso Gomez-Rejon (Me and Earl and the Dying Girl) got the unprecedented chance to bring the film back to his original vision. His faster-paced “Director’s Cut” is 10 minutes shorter, includes five new scenes, and features a brand-new score, not to mention a ready-made narrative about a filmmaker overcoming the odds.

In its new form, The Current War is neither a game-changer nor a dud. It’s a solid period piece that strives to be something more, and occasionally achieves it. The Current War is a bit of a dad movie, one that will likely pair nicely with the upcoming Ford v Ferrari. But it’s helped along by fascinating source material and a few moments of poignancy that land with welcome heft. Particularly for history buffs or tech enthusiasts, The Current War is worth sitting through the bad stuff to get to the good.

Set between 1880 and 1893, The Current War centers on the rivalry between Edison — at the film’s opening, a major celebrity for developing light bulbs — and Westinghouse, a mogul with his own ideas about how to bring artificial light to America. The battle focuses on which electrical system the country will adopt — Edison’s direct current (DC), or Westinghouse’s alternating current (AC). As the two men race to win the bid to light up the Chicago World’s Fair, The Current War also intermittently checks in on soft-spoken Serbian immigrant Nikola Tesla (Nicholas Hoult), a futurist who’s too busy dreaming up groundbreaking designs to turn his mental acumen into tangible business success.

In spite of the 19th-century setting, Gomez-Rejon clearly doesn’t want The Current War to play as a standard period piece. The film barrels ahead at an absolutely frenetic pace, occasionally calling to mind that much-mocked Bohemian Rhapsody scene where the camera can’t settle on any given actor for more than a second. Working with Park Chan-wook’s go-to cinematographer Chung-hoon Chung, Gomez-Rejon is desperate to ensure The Current War never bores the audience. Not since the original Thor has a film featured so many unmotivated Dutch angles. And then there are the dramatic circular pans, intense close-ups, and fisheye-lens shots, all deployed seemingly at random. The loopy aesthetic occasionally calls to mind Yorgos Lanthimos’ The Favourite, another recent period piece with modern flair. But The Current War lacks that film’s purposefulness and cohesion.

Photo: Dean Rogers / 101 Studios

Still, while Gomez-Rejon’s visual aesthetic is a bit of a gimmick, it’s sometimes successful. The Current War is attention-grabbing, even if viewers are just paying attention because they’re trying to puzzle out the bizarre visual choices. Working from a script by playwright Michael Mitnick, Gomez-Rejon effectively turns a complex 13-year rivalry into a streamlined narrative. On-screen text hovers over major players to introduce them and clarify their relationships. Red and yellow lightbulbs marking out territories on a giant US map provide an easy way to track the footholds Edison and Westinghouse are gaining across the country. The film leaps ahead years at a time without losing track of its central story. While The Current War sometimes feels like a Wikipedia page brought to life, it’s at least an appreciably coherent one.

As Gomez-Rejon sees it, the war between Edison and Westinghouse isn’t just a personal or professional rivalry, it’s a battle for the future of the nation. The more cost-effective AC system would eventually allow the entire country to access electricity. The DC system will leave it as a privilege for the rich — which Edison doesn’t mind, so long as he gets the glory of winning the race.

Photo: Dean Rogers / 101 Studios

As Edison uses animal-killing stunts to manipulate the public into thinking AC is unsafe, Tesla privately makes a timely socialist argument for the importance of treating technological advancements as public goods. In another relevant connection to the present, Gomez-Rejon emphasizes that groundbreaking technology often brings problematic side effects along with improvements. He juxtaposes the uplifting World’s Fair storyline with a fascinating tangent about the creation of the electric chair, which played its own dark, dramatic role in the Edison / Westinghouse rivalry.

Unfortunately, The Current War too often fails to bring a human heart to its intellectually stimulating ideas. The film doesn’t translate its palpable reverence for Tesla into a dramatically compelling through line. Hoult can’t escape the shadow of David Bowie’s memorable Tesla portrayal in The Prestige, either, although one glorious scene does let Hoult emerge as the comedic character actor he was born to be.

Cumberbatch, meanwhile, is hampered by both his terrible American accent and the way his brilliant but bullish Edison feels like a carbon copy of so many of the tortured-genius roles he’s played before. The darker side of Edison’s personality never entirely meshes with the sentimental attempts to humanize him, primarily his underdeveloped friendship with loyal personal secretary Samuel Insull. (He’s played in an endearing way by current Spider-Man Tom Holland, whose Marvel Cinematic Universe reunion with Cumberbatch is occasionally a little distracting.)

Photo: Dean Rogers / 101 Studios

Playing the least familiar figure in the film, Shannon winds up giving the most compelling performance. The Current War is the latest in a long line of projects that prove he can bring across quiet decency as well as (or better than) over-the-top villainy. There’s an intriguing thread about Westinghouse’s relationship with his forward-thinking wife Marguerite (a wonderful Katherine Waterston), although as with most of the subplots, The Current War doesn’t take much time to dig into it. Still, in a movie that often plays like Amadeus for electricity, Shannon makes an effective Salieri to Cumberbatch’s Mozart. The Current War also bears more than a passing resemblance to Aaron Sorkin’s 2007 Broadway play The Farnsworth Invention, which traces a similar rivalry between two men racing to invent television.

Though The Current War centers on three great men of history, Gomez-Rejon tries in some ways to dismantle the traditional line of thinking about innovators. He raises pointed questions about the clash between the collaborative nature of scientific innovation and America’s habit of framing its technological leaps as the result of heroic pioneers single-handedly changing history. As The Current War sees it, Edison’s publicity skills earned him a prominent place in the history books, as much as his engineering prowess. Tesla and Westinghouse didn’t seek personal glory in the same way, which makes it harder to know how to celebrate their work, other than to retroactively turn them into great men of history as well. The Current War kind of does that, too.

In trying to have it both ways, Gomez-Rejon can’t quite recontextualize history the way he wants to. Yet even if The Current War is soft around the edges and a little soggy in the middle, there’s still something appreciably sparky at its core. As overstuffed and frenetic as the film is, in its best moments, The Current War manages to make an everyday utility seem just as magical as it did 120 years ago.



from The Verge https://ift.tt/1jLudMg
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1469349 2019-10-23T16:53:17Z 2019-10-23T16:53:17Z What We're Reading ~ 10/23/19

https://ift.tt/2p94mvd


Blackstone CEO's new book: What It Takes [Stephen Schwarzman]

Taking a look at Domino's [Timberwolf Equity Research]

Quick new interview with Peter Lynch [Fidelity]

Denise Chisholm on historical sector valuations [Barrons]

With DataXu buy, Roku unveils big ad ambitions [Digiday]

At Costco, everything resonates with the consumer [Retail Dive]

Disney, IP, and returns to marginal affinity [Matthew Ball]

Apple Pay and the future of mobile payments [PYMNTS]

Technical overview of Elastic (ESTC) [Motley Fool]

Inside Apple's long, bumpy road to Hollywood [Hollywood Reporter]

20 countries that will face population declines [Business Insider]




from Market Folly https://ift.tt/NLWANl
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1441809 2019-08-06T18:21:45Z 2019-08-06T18:21:45Z How to Get Better at Deadlifts, Squats, and Lunges

https://ift.tt/2YGVM6Z

If you’ve ever wanted to master deadlifts, squats, and lunges, this detailed exercise guide is for you!

The post How to Get Better at Deadlifts, Squats, and Lunges appeared first on AskTheTrainer.com.



from AskTheTrainer.com https://ift.tt/2p7HxUT
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1439902 2019-08-01T11:01:19Z 2019-08-01T11:01:19Z Programming Algorithms: A Crash Course in Lisp

https://ift.tt/2Oq88fy

The introductory post for this book, unexpectedly, received quite a lot of attention, which is nice since it prompted some questions, and one of them I planned to address in this chapter.

I expect that there will be two main audiences, for this book:

  • people who’d like to advance in algorithms and writing efficient programs — the major group
  • lispers, either accomplished or aspiring who also happen to be interested in algorithms

This introductory chapter is, primarily, for the first group. After reading it, the rest of the book’s Lisp code should become understandable to you. Besides, you’ll know the basics to run Lisp and experiment with it if will you so desire.

For the lispers, I have one comment and one remark. You might be interested to read this part just to understand my approach of utilizing the language throughout the book. Also, you’ll find my stance regarding the question that was voiced several times in the comments: whether it’s justified to use some 3rd-party extensions and to what extent or should the author vigilantly stick to only the tools provided by the standard.

The Core of Lisp

To effortlessly understand Lisp, you’ll have to forget, for a moment, any concepts of how programming languages should work that you might have acquired from your prior experience in coding. Lisp is simpler; and when people bring their Java, C or Python approaches to programming with it, first of all, the results are suboptimal in terms of code quality (simplicity, clarity, and beauty), and, what’s more important, there’s much less satisfaction from the process, not to mention very few insights and little new knowledge gained.

It is much easier to explain Lisp if we begin from a blank slate. In essence, all there is to it is just an evaluation rule: Lisp programs consist of forms that are evaluated by the compiler. There are 3+2 ways how that can happen:

  • self-evaluation: all literal constants (like 1, "hello", etc.) are evaluated to themselves. These literal objects can be either built-in primitive types (1) or data structures ("hello")
  • symbol evaluation: separate symbols are evaluated as names of variables, functions, types or classes depending on the context. The default is variable evaluation, i.e. if we encounter a symbol foo the compiler will substitute in its place the current value associated with this variable (more on this a little bit later)
  • expression evaluation: compound expressions are formed by grouping symbols and literal objects with parenthesis. The following form (oper 1 foo) is considered a “functional” expression: the operator name is situated in the first position (head), and its arguments, if any, in the subsequent positions (rest). There are 3 ways to evaluate a functional expression:
    • there are 25 special operators that are defined in lower-level code and may be considered something like axioms of the language: they are pre-defined, always present, and immutable. Those are the building blocks, on top of which all else is constructed, and they include the sequential block operator, the conditional expression if, and the unconditional jump go, to name a few. If oper is the name of a special operator, the low-level code for this operator that deals with the arguments in its own unique way is executed
    • there’s also ordinary function evaluation: if oper is a function name, first, all the arguments are evaluated with the same evaluation rule, and then the function is called with the obtained values
    • finally, there’s macro evaluation. Macros provide a way to change the evaluation rule for a particular form. If oper names a macro, its code is substituted instead of our expression and then evaluated. Macros are a major topic in Lisp, and they are used to build a large part of the language, as well as provide an accessible way, for the users, to extend it. However, they are orthogonal to the subject of this book and won’t be discussed in further detail here. You can delve deeper into macros in such books as On Lisp or Let Over Lambda

It’s important to note that, in Lisp, there’s no distinction between statements and expressions, no special keywords, no operator precedence rules, and other similar arbitrary stuff you can stumble upon in other languages. Everything is uniform; everything is an expression in a sense that it will be evaluated and return some value.

A Code Example

To sum up, let’s consider an example of the evaluation of a Lisp form. The following one implements the famous binary search algorithm (that we’ll discuss in more detail in one of the following chapters):

(when (> (length vec) 0) (let ((beg 0) (end (length vec))) (do () ((= beg end)) (let ((mid (floor (+ beg end) 2))) (if (> (? vec mid) val) (:= beg (1+ mid)) (:= end mid)))) (values beg (? vec beg) (= (? vec beg) val)))) 

It is a compound form. In it, the so-called top-level form is when, which is a macro for a one-clause conditional expression: an if with only the true-branch. First, it evaluates the expression (> (length vec) 0), which is an ordinary function for a logical operator > applied to two args: the result of obtaining the length of the contents of the variable vec and a constant 0. If the evaluation returns true, i.e. the length of vec is greater than 0, the rest of the form is evaluated in the same manner. The result of the evaluation, if nothing exceptional happens, is either false (which is called nil, in Lisp) or 3 values returned from the last form (values ...). ? is the generic access operator, which abstracts over different ways to query data structures by key. In this case, it retrieves the item from vec at the index of the second argument. Below we’ll talk about other operators shown here.

But first I need to say a few words abut RUTILS. It is a 3rd-party library that provides a number of extensions to the standard Lisp syntax and its basic operators. The reason for its existence is that Lisp standard is not going to change ever, and, as eveything in this world, it has its flaws. Besides, our understanding of what’s elegant and efficient code evolves over time. The great advantage of the Lisp standard, however, which counteracts the issue of its immutability, is that its authors had put into it multiple ways to modify and evolve the language at almost all levels starting from even the basic syntax. And this addresses our ultimate need, after all: we’re not so interested in changing the standard as we’re in changing the language. So, RUTILS is one of the ways of evolving Lisp and its purpose is to make programming in it more accessible without compromising the principles of the language. So, in this book, I will use some basic extensions from RUTILS and will explain them as needed. Surely, using 3rd-party tools is the question of preference and taste and might not be approved by some of the Lisp old-times, but no worries, in your code, you’ll be able to easily swap them for your favorite alternatives.

The REPL

Lisp programs are supposed to be run not only in a one-off fashion of simple scripts, but also as live systems that operate over long periods of time experiencing change not only of their data but also code. This general way of interaction with a program is called Read-Eval-Print-Loop (REPL), which literally means that the Lisp compiler reads a form, evaluates it with the aforementioned rule, prints the results back to the user, and loops over.

REPL is the default way to interact with a Lisp program, and it is very similar to the Unix shell. When you run your Lisp (for example, by entering sbcl at the shell) you’ll drop into the REPL. We’ll preceede all REPL-based code interactions in the book with a REPL prompt (CL-USER> or similar). Here’s an example one:

CL-USER> (print "Hello world") "Hello world" "Hello world" 

A curious reader may be asking why "Hello world" is printed twice. It’s a proof that everything is an expression in Lisp. :) The print “statement”, unlike in most other languages, not only prints its argument to the console (or other output stream), but also returns it as is. This comes very handy when debugging, as you can wrap almost any form in a print not changing the flow of the program.

Obviously, if the interaction is not necessary, just the read-eval part may remain. But, what’s more important, Lisp provides a way to customize every stage of the process:

  • at the read stage special syntax (“syntax sugar”) may be introduced via a mechanism called reader macros
  • ordinary macros are a way to customize the eval stage
  • the print stage is conceptually the simplest one, and there’s also a standard way to customize object printing via the Common Lisp Object System’s (CLOS) print-object function
  • and the loop stage can be replaced by any desired program logic

Basic Expressions

The structural programming paradigm states that all programs can be expressed in terms of 3 basic constructs: sequential execution, branching, and looping. Let’s see how these operators are expressed in Lisp.

Sequential Execution

The simplest program flow is sequential execution. In all imperative languages, it is what is assumed to happen if you put several forms in a row and evaluate the resulting code block. Like this:

CL-USER> (print "hello") (+ 2 2) "hello" 4 

The value returned by the last expression is dimmed the value of the whole sequence.

Here, the REPL-interaction forms an implicit unit of sequential code. However, there are many cases when we need to explicitly delimit such units. This can be done with the block operator:

CL-USER> (block test (print "hello") (+ 2 2)) "hello" 4 

Such block has a name (in this example: test). This allows to prematurely end its execution by using an operator return-from:

CL-USER> (block test (return-from test 0) (print "hello") (+ 2 2)) 0 

A shorthand return is used to exit from blocks with a nil name (which are implicit in most of the looping constructs we’ll see further):

CL-USER> (block nil (return 0) (print "hello") (+ 2 2)) 0 

Finally, if we don’t even plan to ever prematurely return from a block, we can use the progn operator that doesn’t require a name:

CL-USER> (progn (print "hello") (+ 2 2)) "hello" 4 

Branching

Conditional expressions calculate the value of their first form and, depending on it, execute one of several alternative code paths. The basic conditional expression is if:

CL-USER> (if nil (print "hello") (print "world")) "world" "world" 

As we’ve seen, nil is used to represent logical falsity, in Lisp. All other values are considered logically true, including the symbol T or t which directly has the meaning of truth.

And when we need to do several things at once, in one of the conditional branches, it’s one of the cases when we need to use progn or block:

CL-USER> (if (+ 2 2) (progn (print "hello") 4) (print "world")) "world" 4 

However, often we don’t need both branches of the expressions, i.e. we don’t care what will happen if our condition doesn’t hold (or holds). This is such a common case that there are special expressions for it in Lisp — when and unless:

CL-USER> (when (+ 2 2) (print "hello") 4) "world" 4 CL-USER> (unless (+ 2 2) (print "hello") 4) NIL 

As you see, it’s also handy because you don’t have to explicitly wrap the sequential forms in a progn.

One other standard conditional expression is cond, which is used when we want to evaluate several conditions in a row:

CL-USER> (cond ((typep 4 'string) (print "hello")) ((> 4 2) (print "world") nil) (t (print "can't get here"))) "world" NIL 

The t case is a catch-all that will trigger if none of the previous conditions worked (as its condition is always true). The above code is equivalent to the following:

(if (typep 4 'string) (print "hello") (if (> 4 2) (progn (print "world") nil) (print "can't get here"))) 

There are many more conditional expressions in Lisp, and it’s very easy to define your own with macros (it’s actually, how when, unless, and cond are defined), and when there arises a need to use a special one, we’ll discuss its implementation.

Looping

Like with branching, Lisp has a rich set of looping constructs, and it’s also easy to define new ones when necessary. This approach is different from the mainstream languages, that usually have a small number of such statements and, sometimes, provide an extension mechanism via polymorphism. And it’s even considered to be a virtue justified by the idea that it’s less confusing for the beginners. It makes sense to a degree. Still, in Lisp, both generic and custom approaches manage to coexist and complement each other. Yet, the tradition of defining custom control constructs is very strong. Why? One justification for this is the parallel to human languages: indeed, when and unless, as well as dotimes and loop are either directly words from the human language or are derived from natural language expressions. Our mother tongues are not so primitive and dry. The other reason is because you can™. I.e. it’s so much easier to define custom syntactic extensions in Lisp than in other languages that sometimes it’s just impossible to resist. :) And in many use cases they make the code much more simple and clear.

Anyway, for a complete beginner, actually, you have to know the same number of iteration constructs as in any other language. The simplest one is dotimes that iterates the counter variable a given number of times (from 0 to (- times 1)) and executes the body on each iteration. It is analogous to for (int i = 0; i < times; i++) loops found in C-like languages.

CL-USER> (dotimes (i 3) (print i)) 0 1 2 NIL 

The return value is nil by default, although it may be specified in the loop header.

The most versatile (and low-level) looping construct, on the other hand, is do:

CL-USER> (do ((i 0 (1+ i)) (prompt (read-line) (read-line))) ((> i 1) i) (print (pair i prompt)) (terpri)) foo (0 "foo") bar (1 "bar") 2 

do iterates a number of variables (zero or more) that are defined in the first part (here, i and prompt) until the termination condition in the second part is satisfied (here, (> i 1)), and as with dotimes (and other do-style macros) executes its body — rest of the forms (here, print and terpri, which is a shorthand for printing a newline). read-line reads from standard input until newline is encountered and 1+ returns the current value of i increased by 1.

All do-style macros (and there’s quite a number of them, both built-in and provided from external libraries: dolist, dotree, do-register-groups, dolines etc.) have an optional return value. In do it follows the termination condition, here — just return the final value of i.

Besides do-style iteration, there’s also a substantially different beast in CL ecosystem — the infamous loop macro. It is very versatile, although somewhat unlispy in terms of syntax and with a few surprising behaviors. But elaborating on it is beyond the scope of this book, especially since there’s an excellent introduction to loop in Peter Seibel’s "LOOP for Black Belts".

Many languages provide a generic looping construct that is able to iterate an arbitrary sequence, a generator and other similar-behaving things — usually, some variant of foreach. We’ll return to such constructs after speaking about sequences in more detail.

And there’s also an alternative iteration philosophy: the functional one, which is based on higher-order functions (map, reduce and similar) — we’ll cover it in more detail in the following chapters, also.

Procedures and Variables

We have covered the 3 pillars of structural programming, but one essential, in fact, the most essential, construct still remains — variables and procedures.

What if I told you that you can perform the same computation many times, but changing some parameters… OK, OK, pathetic joke. So, procedures are the simplest way to reuse computations, and procedures accept arguments, which allows to pass values into their bodies. A procedure, in Lisp, is called lambda. You can define one like this: (lambda (x y) (+ x y)). When used, such procedure — also often called a function, although it’s quite different from what we consider a mathematical function — and, in this case, it’s called an anonymous function as it doesn’t have any name — will produce the sum of its inputs:

CL-USER> ((lambda (x y) (+ x y)) 2 2) 4 

It is quite cumbersome to refer to procedures by their full code signature, and an obvious solution is to assign names to them. A common way to do that in Lisp is via the defun macro:

CL-USER> (defun add2 (x y) (+ x y)) ADD2 CL-USER> (add2 2 2) 4 

The arguments of a procedure are examples of variables. Variables are used to name memory cells whose contents are used more than once and may be changed in the process. They serve different purposes:

  • to pass data into procedures
  • as temporary placeholders for some varying data in code blocks (like loop counters)
  • as a way to store computation results for further reuse
  • to define program configuration parameters (like the OS environment variables, which can also be thought of as arguments to the main function of our program)
  • to refer to global objects that should be accessible from anywhere in the program (like *standard-output* stream)
  • and more

Can we live without variables? Theoretically, well, maybe. At least, there’s a so called point-free style of programming that strongly discourages the use of variables. But, as they say, don’t try this at home (at least, until you know perfectly well what you’re doing :) Can we replace variables with constants, or single-assignment variables, i.e. variables that can’t change over time? Such approach is promoted by the so called purely functional languages. To a certain degree, yes. But, from the point of view of algorithms development, it makes life a lot harder by complicating many optimizations if not totally outruling them.

So, how to define variables in Lisp? You’ve already seen some of the variants: procedural arguments and let-bindings. Such variables are called local or lexical, in Lisp parlance. That’s because they are only accessible locally throughout the execution of the code block, in which they are defined. let is a general way to introduce such local variables, which is lambda in disguise (a thin layer of syntax sugar over it):

CL-USER> (let ((x 2)) (+ x x)) 4 CL-USER> ((lambda (x) (+ x x)) 2) 4 

While with lambda you can create a procedure in one place, possibly, assign it to a variable (that’s what, in essence, defun does), and then apply many times in various places, with let you define a procedure and immediately call it, leaving no way to store it and re-apply again afterwards. That’s even more anonymous than an anonymous function! Also, it requires no overhead, from the compiler. But the mechanism is the same.

Creating variables via let is called binding, because they are immediately assigned (bound with) values. It is possible to bind several variables at once:

CL-USER> (let ((x 2) (y 2)) (+ x y)) 4 

However, often we want to define a row of variables with next ones using the previous ones’ values. It is cumbersome to do with let, because you need nesting (as procedural arguments are assigned independently):

(let ((len (length list))) (let ((mid (floor len 2))) (let ((left-part (subseq list 0 mid)) (right-part (subseq list mid))) ...))) 

To simplify this use case, there’s let*:

(let* ((len (length list)) (mid (floor len 2)) (left-part (subseq list 0 mid)) (right-part (subseq list mid))) ...) 

However, there are many other ways to define variables: bind multiple values at once; perform the so called “destructuring” binding when the contents of a data structure (usually, a list) are assigned to several variables, first element to the first variable, second to the second, and so on; access the slots of a certain structure etc. For such use cases, there’s with binding from RUTILS, which works like let* with extra powers. Here’s a very simple example:

(with ((len (length list)) (mid rem (floor len 2)) ;; this group produces a list of 2 sublists ;; that are bound to left-part and right-part ;; and ; character starts a comment in lisp ((left-part right-part) (group mid list))) ... 

In the code throughout this book, you’ll only see these two binding constructs: let for trivial and parallel bindings and with for all the rest.

As we said, variables may not only be defined, or they’d be called “constants”, instead, but also modified. To alter the variable’s value we’ll use := from RUTILS (it is an abbreviation of the standard psetf macro):

CL-USER> (let ((x 2)) (print (+ x x)) (:= x 4) (+ x x)) 4 8 

Modification, generally, is a dangerous construct as it can create unexpected action-at-a-distance effects, when changing the value of a variable in one place of the code effects the execution of a different part that uses the same variable. This, however, can’t happen with lexical variables: each let creates its own scope that shields the previous values from modification (just like passing arguments to a procedure call and modifying them within the call doesn’t alter those values, in the calling code):

CL-USER> (let ((x 2)) (print (+ x x)) (let ((x 4)) (print (+ x x))) (print (+ x x))) 4 8 4 

Obviously, when you have two lets in different places using the same variable name they don’t affect each other and these two variables are, actually, totally distinct.

Yet, sometimes it is useful to modify a variable in one place and see the effect in another. The variables, which have such behavior, are called global or dynamic (and also special, in Lisp jargon). They have several important purposes. One is defining important configuration parameters that need to be accessible anywhere. The other is referencing general-purpose singleton objects like the standard streams or the state of the random number generator. Yet another is pointing to some context that can be altered in certain places subject to the needs of a particular procedure (for instance, the *package* global variable determines in what package we operate — CL-USER in all previous examples). More advanced uses for global variables also exist. The common way to define a global variable is with defparameter, which specifies its initial value:

(defparameter *connection* nil "A default connection object.") ; this is a docstring describing the variable 

Global variables, in Lisp, usually have so-called “earmuffs” around their names to remind the user of what they are dealing with. Due to their action-at-a-distance feature, it is not the safest programming language feature, and even a “global variables considered harmful” mantra exists. Lisp is, however, not one of those squeamish languages, and it finds many uses for special variables. By the way, they are called “special” due to a special feature, which greatly broadens the possibilities for their sane usage: if bound in let they act as lexical variables, i.e. the previous value is preserved and restored upon leaving the body of a let:

CL-USER> (defparameter *temp* 1) *TEMP* CL-USER> (print *temp*) 1 CL-USER> (progn (let ((*temp* 2)) (print *temp*) (:= *temp* 4) (print *temp*)) *temp*) 2 4 1 

Procedures in Lisp are first-class objects. This means the one you can assign to a variable, as well as inspect and redefine at run-time, and, consequently, do many other useful things with. The RUTILS function call[1] will call a procedure passed to it as an argument:

CL-USER> (call 'add2 2 2) 4 CL-USER> (let ((add2 (lambda (x y) (+ x y)))) (call add2 2 2)) 4 

In fact, defining a function with defun also creates a global variable, although in the function namespace. Functions, types, classes — all of these objects are usually defined as global. Though, for functions there’s a way to define them locally with flet:

CL-USER> (foo 1) ;; ERROR: The function COMMON-LISP-USER::FOO is undefined. CL-USER> (flet ((foo (x) (1+ x))) (foo 1)) 2 CL-USER> (foo 1) ;; ERROR: The function COMMON-LISP-USER::FOO is undefined. 

Comments

Finally, there’s one more syntax we need to know: how to put comments in the code. Only loosers don’t comment their code, and comments will be used extensively, throughout this book, to explain some parts of the code examples, inside of them. Comments, in Lisp, start with a ; character and end at the end of a line. So, the following snippet is a comment: ; this is a comment. There’s also a common style of commenting, when short comments that follow the current line of code start with a single ;, longer comments for a certain code block precede it, occupy the whole line or a number of lines and start with ;;, comments for code section that include several Lisp top-level forms (global definitions) start with ;;; and also occupy whole lines. Besides, each global definition can have a special comment-like string, called the “docstring”, that is intended to describe its purpose and usage, and that can be queried programmatically. To put it all together, this is how different comments may look like:

;;; Some code section (defun this () "This has a curious docstring." ...) (defun that () ... ;; this is an interesting block don't you find? (block interesting (print "hello"))) ; it prints hello 

Getting Started

I strongly encourage you to play around with the code presented in the following chapters of the book. Try to improve it, find issues with it, and come up with fixes, measure and trace everything. This will not only help you master some Lisp, but also understand much deeper the descriptions of the discussed algorithms and data structures, their pitfalls and corner cases. Doing that is, in fact, quite easy. All you need is install some Lisp (preferrably, SBCL or CCL), add Quicklisp, and, with its help, RUTILS.

As I said above, the usual way to work with Lisp is interacting with its REPL. Running the REPL is fairly straightforward. On my Mint Linux I’d run the following commands:

$ apt-get install sbcl rlwrap ... $ rlwrap sbcl ... * (print "hello world") "hello world" "hello world" * 

* is the Lisp raw prompt. It’s, basically, the same as CL-USER> prompt you’ll see in SLIME. You can also run a Lisp script file: sbcl --script hello.lisp. If it contains just a single (print "hello world") line we’ll see the “hello world” phrase printed to the console.

This is a working, but not the most convenient setup. A much more advanced environment is SLIME that works inside Emacs (a similar project for vim is called SLIMV). There exists a number of other solutions: some Lisp implementations provide and IDE, some IDEs and editors provide integration.

After getting into the REPL, you’ll have to issue the following commands:

* (ql:quickload :rutilsx) * (use-package :rutilsx) * (named-readtables:in-readtable rutilsx-readtable) 

Well, that’s enough Lisp you’ll need to know, to start. We’ll get acquainted with other Lisp concepts as they will become needed for the next chapters of this book. Yet, you’re all set to read and write Lisp programs. They may seem unfamiliar, at first, but as you overcome the initial bump and get used to their paranthesised prefix surface syntax, I promise that you’ll be able to recognize and appreciate their clarity and conciseness.

So, as they say in Lisp land, happy hacking!


Footnotes:

[1] call is the RUTILS abbreviation of the standard funcall. It was surely fun to be able to call a function from a variable back in the 60’s, but now it has become so much more common that there’s no need for the prefix ;)



from Hacker News https://ift.tt/YV9WJO
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1434999 2019-07-20T20:57:50Z 2019-07-20T20:57:50Z New trailer for HBO’s Watchmen includes a nod to Rorschach’s most famous line

https://ift.tt/2O5ByQ9

HBO

HBO is looking for its next big series as it bids farewell to Game of Thrones and Big Little Lies, and Damon Lindelof’s Watchmen is shaping up to be that series.

A new trailer for Watchmen from San Diego Comic-Con has premiered, building on moments from the first trailer. Some of Watchmen’s most beloved vigilante heroes, like Rorschach, appear alongside a number of new costumed heroes going about their day. There are references to Dr. Manhattan, and a previous class of vigilante fighters that longtime Watchmen fans will recognize. We even get a glimpse of Rorschach saying his famous, “all the whores and politicians will look up and shout ‘Save us,’ and I’ll look down and whisper ‘No,’” line. Or at least a nod to it.

The trailer is also another reminder that Lindelof’s Watchmen isn’t a direct adaptation of Alan Moore’s classic graphic novel. Moore’s 1986 title centered on a group of superhero vigilantes operating in an alternate United States during the Cold War. It is widely viewed as one of the most important graphic novels of all time, and is even taught at colleges and universities around the world. Lindelof’s version will tell a different story, but set within Moore’s world. He’ll use Watchmen character Rorschach as a central point, which should appeal to comic book readers.

The trailer is also another reminder that Lindelof’s Watchmen isn’t a direct adaptation of Alan Moore’s classic graphic novel.

Lindelof, who also created Lost and The Leftovers, has spoken publicly about fan concern that Watchmen will do injustice to Moore’s work. That’s partially why they decided to go in a different direction. This won’t be a straight adaptation like Zack Snyder’s 2009 feature-film version, which divided critics but has a strong fan base.

“We have no desire to ‘adapt’ the twelve issues Mr. Moore and Mr. Gibbons created thirty years ago,” Lindelof wrote on Instagram when the show was in early production. “Those issues are sacred ground and they will not be retread nor recreated nor reproduced nor rebooted.” He says the show isn’t a sequel, but it does seem to take place in the world where the events of Watchmen happened:

Those original twelve issues are our Old Testament. When the New Testament came along it did not erase what came before it. Creation. The Garden of Eden. Abraham and Isaac. The Flood. It all happened. And so it will be with Watchmen. The Comedian died. Dan and Laurie fell in love. Ozymandias saved the world and Dr. Manhattan left it just after blowing Rorschach to pieces in the bitter cold of Antarctica.

Watchmen premieres this October.



from The Verge https://ift.tt/1jLudMg
via IFTTT]]>
tag:jebmo.posthaven.com,2013:Post/1434998 2019-07-20T20:57:30Z 2019-07-20T20:57:31Z Watch the first trailer for Star Trek: Picard

https://ift.tt/2Z4vvw4

Image: CBS

At San Diego Comic-Con today, CBS showed off a full trailer for its upcoming series, Star Trek: Picard, featuring Patrick Stewart’s older version of the character as he’s drawn out of retirement. The series will debut in early 2020 on CBS All Access.

The show will take place more than 20 years after the events of Star Trek: The Next Generation which aired between 1987 and 1994, and its film sequels, Generations (1994), First Contact (1996), Insurrection (1998), and Nemesis (2002).

The trailer comes after CBS released a vague teaser featuring Picard enjoying his retirement from Star Fleet in his vineyard back in May. The trailer shows off an older Picard who has tried to put his past behind him, but he’s approached by a young woman in need of help. He goes to the Federation to try and help, and finds himself brought back into the fold. Along the way, there’s glimpses of some familiar characters and lines.

This new series will see several familiar faces will return to reprise their roles: Commander William Riker, played by Jonathan Frakes; Deanna Troi, played by Marina Sirtis; Data, played by Brent Spiner; a former Borg drone named Hugh, played by Jonathan Del Arco; and Seven of Nine from Star Trek: Voyager, played by Jeri Ryan. The series will also feature Alison Pill, Harry Treadaway, Isa Briones, Santiago Cabrera, and Michelle Hurd.

Earlier this week, Executive producer Alex Kurtzman and showrunner Michael Chabon told Entertainment Weekly that the series would see an “older, haunted” Picard returning to space, although that doesn’t necessarily mean that he’ll be returning to the ranks of Star Fleet. And unlike The Next Generation, the show will come in a more modern, serialized format.



from The Verge https://ift.tt/1jLudMg
via IFTTT]]>