Домой Блог Страница 85177

Lambdascript adds functional programming to Python

0

NewsHubLambdascript, a pure functional language built atop Python 3, provides a bridge between Python and functional programming, in yet another nod to a software development paradigm that has been attracting plenty of attention lately.
The Haskell-influenced language uses several Python features and benefits from modules written in Python, according to the project’s GitHub page. «Once a public version [is] released, it should be able to compile very well-written modules to be used in pure Python programs — or even in other Lambdascript programs,» the documentation states. The language is presently in an alpha release stage.
Set to work with either CPython3 or PyPy3 implementations of the language, Lambdascript emphasizes literate programming, with a full program being a Markdown document and lexical binding inside each block of code in the document. Tail-recursion support is featured along with currying of functions. «Pure Python can be [embedded] in the Markdown document by using fenced code blocks and indicating python as the language of the block,» the GitHub repo states. «Any other block of code will be interpreted as Lambdascript code. »
Python has become the subject of much experimentation, with several efforts transpiling it to JavaScript. Other projects have been launched to boost the language’s performance. And Google last week detailed Grumpy , which transpiles Python code into Go.
Functional programming, which can enable better-structured code while requiring developers to change their perspective on coding, has become popular of late. Languages like Scala, F#, Clojure , and even Java have accommodated functional capabilities, and functional programming has emerged in Python with Coconut, a Python dialect.
More about Google Pure Scala

Similarity rank: 0

© Source: http://www.computerworld.com.au/article/612591/lambdascript-adds-functional-programming-python/?utm_medium=rss&utm_source=sectionfeed
All rights are reserved and belongs to a source media.

UAE confirms humanitarian work officials killed in Afghan attack

0

NewsHubFive humanitarian workers from the United Arab Emirates (UAE) have been killed in a bomb attack in Kandahar, Afghanistan, officials have confirmed.
They died in blasts at the governor of Kandahar’s guesthouse on Tuesday, where several others were killed.
The governor and the UAE ambassador were among at least a dozen wounded. Kandahar’s deputy governor reportedly died of his injuries on Wednesday.
The attack was one of several in Afghanistan on Tuesday.
The Taliban admitted attacks in the capital Kabul and in Helmand province, but denied the Kandahar attack, instead blaming it on «internal local rivalry».
Afghanistan’s Tolo News quoted survivors as saying that the bomb was hidden in a sofa at the guesthouse.
It said that Kandahar police chief Gen Abdul Raziq was among the guests, but was unharmed.
Senior police and intelligence officials were also present, officials say.
Three days of mourning have been declared in the UAE.
UAE President Sheikh Khalifa bin Zayed has ordered that flags across the country should be flown at half-mast in honour of its «martyred» citizens.
The UAE said the officials had been carrying out «humanitarian, educational and development projects».
Among the projects was signing an agreement with Kardan University, in the capital Kabul, to offer scholarships funded by the UAE.
More than 62 people were killed and 100 wounded in a string of attacks on Tuesday.
In Kabul, a suicide bomber and a car bomb detonated near the Afghan parliament complex, while in Helmand province a Taliban suicide bomber targeted a guesthouse used by an intelligence official, killing at least seven people. The Taliban admitted both attacks.

Similarity rank: 5.2
Sentiment rank: -18

© Source: http://www.bbc.co.uk/news/world-middle-east-38580156
All rights are reserved and belongs to a source media.

Obama tears up during tribute to Michelle, daughters

0

NewsHubPresident Barack Obama wiped away tears as he paid tribute to his teenage daughters and to Michelle Obama, his «best friend,» at the emotional close of a farewell address in his adoptive city of Chicago Tuesday.
«Michelle LaVaughn Robinson, girl of the south side, for the past 25 years, you have not only been my wife and mother of my children, you have been my best friend,» Obama told the first lady, seated before him dressed all in black.
«You took on a role you didn’t ask for and made it your own with grace and grit and style and good humor,» he told her, at one point pulling out a handkerchief to dab away tears — as the crowd of 18,000 cheered wildly.
«A new generation sets its sights higher because it has you as a role model. You’ve made me proud. You’ve made the country proud. »
It was in Chicago that the Obamas met, that their daughters were born, and as the president put it in a Facebook post ahead of the speech, «for Michelle and me, Chicago is where it all started. »
While 18-year-old Malia was there to hear her father’s farewell speech, her 15-year-old sister Sasha was not — the most notable of a series of public absences by the teen that prompted a flurry of good natured chatter on social media, and a hashtag #SashaObama.
A White House official said Sasha stayed back in DC tonight because she has an exam at school in the morning.
But Obama addressed both girls in praising the «two amazing young women» they had become, during the family’s eight years in the White House.
«Of all that I have done in my life, I am most proud to be your dad,» he said — as Malia, dressed in black-and-white, shed a few tears with her mother’s arm around her.
«You are smart, and you are beautiful, but more importantly, you are kind, and you are thoughtful, and you are full of passion,» Obama told them. «And you bore the burden of years in the spotlight so easily. »
And finally, the 55-year-old president turned to Joe Biden — who along with his wife Jill he described as a second «family,» drawing yet another standing ovation for the vice-president.
«You were the first decision I made as a nominee, and it was the best,» Obama told Biden. «Not just because you have been a great vice president, but because in the bargain, I gained a brother. »
After the president’s speech drew to a close, the Obamas and their daughter came together on stage for a warm embrace.

Similarity rank: 4.6
Sentiment rank: 0

© Source: http://www.digitaljournal.com/news/world/obama-tears-up-during-tribute-to-michelle-daughters/article/483387
All rights are reserved and belongs to a source media.

В Донецьку бойовики затримали медсестру Нацгвардії

0

NewsHubРаніше в деяких ЗМІ з’явилася інформація про те, що «в окупованому Донецьку затримано бійця Національної гвардії України (військової частини 3057). »
» Офіційно повідомляємо, що медична сестра медичного пункту військової частини 3057 не прибула на роботу. Вжиті заходи щодо розшуку даної особи результату не дали» , – повідомляє у середу прес-служба Національної гвардії.
8 січня 2017 року командування військової частини 3057 отримало повідомлення від її сина, який мешкає в місті Донецьк про те, що її затримала «поліція» так званої «ДНР».
У Нацгвардії підкреслюють, що затримана громадянка не була військовослужбовцем Національної гвардії України.
Вона працювала медсестрою (цивільним службовцем) у медичному пунктів військової частини. Доступу до державної таємниці за характером виконання своїх обов’язків не мала.
У військовій частині провели службове розслідування та звільнили жінку у зв’язку із порушенням вимог проходження служби.
Раніше народний депутат України Надія Савченко (хоча СБУ просила її цього не робити) оприлюднила на своїй сторінці в Facebook с писки полонених на непідконтрольних владі територіях Донбасу і українських в’язнів у російських в’язницях, а також список осіб, яких ватажки ОРДЛО хочуть отримати від української сторони.
Натомість представник спеціального центру СБУ щодо звільнення заручників Юрій Тандіт заявив , що перелік полонених некоректний.
Він також додав, що публікація списків не допоможе прискорити процес звільнення українців.
Згодом н ародний депутат Надія Савченко скоригувала списки полонених , які опублікувала у вівторок.

Similarity rank: 8

© Source: http://ipress.ua/news/v_donetsku_boyovyky_zatrymaly_medsestru_195118.html
All rights are reserved and belongs to a source media.

Сили АТО витримали шестигодинний обстріл і атаку диверсантів бойовиків — карта

0

NewsHubЗа минулу добу в зоні проведення антитерористичної операції загинув один український військовослужбовець, ще троє отримали поранення.
Про це повідомив речник Міноборони з питань АТО Олександр Мотузяник.
На луганському напрямку ворог відкривав вогонь в Попаснянському районі, поблизу Троїцького і в Станиці Луганській, застосовувалося легке озброєння і міномети.
На донецькому напрямку основні точки протистояння – Світлодарська дуга, периметр Горлівки, околиці Авдіївки і донецький аеропорт. Бойовики застосовували міномети. В районі Авдіївської промзони бойовики обстрілювали позиції сил АТО протягом шести годин.
На маріупольському напрямку кількість ворожих обстрілів зросла в 1,5 рази. Ділянки бойової активності супротивника – Мар’їнський район і східні околиці Маріуполя.
Крім того, диверсанти противника намагалися атакувати позиції сил АТО в районі Тамарчука. Напад було відбито протягом декількох хвилин.

Similarity rank: 9.8

© Source: http://nv.ua/ukr/ukraine/events/sili-ato-vitrimali-shestigodinnij-obstril-i-ataku-diversantiv-bojovikiv-karta-456575.html
All rights are reserved and belongs to a source media.

У Харкові засудили до 3,5 років тюрми розповсюджувача сепаратистських матеріалів

0

NewsHubСуд у Харкові засудив до трьох з половиною років позбавлення волі чоловіка за розповсюдження в Інтернеті матеріалів із закликами до зміни меж України.
Про це йдеться у повідомленні прес-служби СБУ у середу.
Як зазначається, Жовтневий районний суд Харкова визнав винним 39-річного чоловіка за статтями «посягання на територіальну цілісність і недоторканість України» та «незаконне поводження зі зброєю та боєприпасами». За інформацією СБУ, зловмисник незаконно придбав та зберігав вдома автомат Калашникова АК-74 із набоями.
«39-річний сепаратист розміщував в Інтернеті повідомлення, спрямовані на знищення Української державності, створення псевдодержавного утворення «новоросія», від’єднання західних регіонів України, посилення громадянського протистояння між мешканцями Донбасу і жителями інших регіонів, провокування масових заворушень, ескалації збройного конфлікту», – заявляють в СБУ.
В повідомленні відомства зазначили, що протиправна спрямованість публікацій була підтверджена висновками експертів Київського науково-дослідного інституту судових експертиз.

Similarity rank: 5.3

© Source: http://zik.ua/news/2017/01/11/u_harkovi_zasudyly_do_35_rokiv_tyurmy_rozpovsyudzhuvacha_separatystskyh_1023423
All rights are reserved and belongs to a source media.

Russia says Trump intel claims a "fabrication and utter nonsense"

0

NewsHubSpokesman Dmitry Peskov on Wednesday dismissed news reports as a “complete fabrication and utter nonsense.” Peskov insisted that the Kremlin “does not engage in collecting compromising material.”
“It is an obvious attempt to harm our bilateral relations,” Peskov said, adding “In English, it is called pulp fiction. Surely, we should react to it with the same sense of humor.”
Former acting CIA director Michael Morell, who also advised Hillary Clinton during her presidential campaign, and former CIA Director and Ambassa…
Peskov said there was a “sad side to it,” alleging unidentified “people” were simply “whipping up hysteria, going out of their way to keep up the atmosphere of a witch hunt.”
Multiple U. S. government and intelligence officials told CBS News on Tuesday that an addendum to the classified intelligence report on Russia’s efforts to interfere in the U. S. election contained unverified details of potentially compromising information that Russia has gathered on Mr. Trump.
The officials told CBS News the information originally came from a former British intelligence officer and was eventually turned over to U. S. intelligence, as well as other government officials, last year.
After the news reports emerged Tuesday regarding the Russian information, Mr. Trump appeared to dismiss the claims in a tweet as “fake news.”
FAKE NEWS — A TOTAL POLITICAL WITCH HUNT!
U. S. intelligence is in the process of corroborating the details of what the Russians may have, but the officials told CBS News the former British investigator and his network are considered credible. Because this information is so sensitive, the addendum was not part of the classified report that was distributed to a wider group of people last week.
A source told CBS News the purported information on Mr. Trump was part of the most classified report, that only would have been presented to the president, the president-elect and the Gang of 8, made up of the top Democrat and Republican in the House and the Senate and the chair and ranking members of the House and Senate Intelligence committees.
It is unclear whether the information was actually discussed with Mr. Trump, or just part of the materials presented to him during his briefing last Friday.

Similarity rank: 7.6
Sentiment rank: -2.1

© Source: http://www.cbsnews.com/news/russia-vladimir-putin-compromising-intelligence-donald-trump-fabrication/
All rights are reserved and belongs to a source media.

囲碁対局中にスマホなど使用禁止 日本棋院が新規定

0

NewsHub囲碁の日本棋院は、コンピューターソフトの実力が高まる中、対局中にスマートフォンなどの電子機器の使用を禁止する不正防止のための新たな規定を設けました。 囲碁や将棋ではソフトの実力がプロのトップ棋士に匹敵するほどまで向上し、将棋界では去年、棋士が対局中にソフトを不正に使った疑いがあるなどと指摘されて出場停止処分を受け、その後、証拠はなかったとして日本将棋連盟が謝罪するなど大きな混乱が起きました。 こうした状況を受けて、囲碁の日本棋院は、10日に行われた常務理事会で、対局中のルールを定める規定にスマートフォンなどの電子機器に関する新たな項目を盛り込むことを決め、11日から実施されました。 新たな規定では、対局中の電子機器の使用を禁止しているほか、休憩時間中も自分の対局の中継を見るなど不正を疑われる行為をしてはならないと定められ、違反した場合、対局の停止や除名などの罰則の対象となります。 囲碁界では、これまで、電子機器に関しては対局中に携帯電話を鳴らしてはいけないなど、マナーを守るための規定はありましたが、不正を防止するための規定を設けたのは初めてだということです。 一方、将棋界では、将棋会館での対局中は電子機器をロッカーに預けることなどを定めた新たな規則が先月から実施されています。

Similarity rank: 5.2
Sentiment rank: -0.8

© Source: http://www3.nhk.or.jp/news/html/20170111/k10010836011000.html
All rights are reserved and belongs to a source media.

「手でたたくなど暴行を加えた」乳児暴行死容疑で29歳母親逮捕 沖縄・宜野湾市

0

NewsHub沖縄県宜野湾市の自宅で平成27年11月、生後2カ月の長女を暴行して死なせたとして、宜野湾署は11日、傷害致死の疑いで、母親の新垣南容疑者(29)=那覇市松山=を逮捕した。「手でたたくなど暴行を加えた」と供述しているという。 逮捕容疑は15年11月16日午後2時~17日午前6時ごろ、宜野湾市の市営住宅の自室で、長女の陽菜ちゃんに暴行して死亡させたとしている。頭や体には複数のあざが見つかった。 宜野湾署によると、17日朝、新垣容疑者が119番し、陽菜ちゃんは病院に運ばれたが、死亡が確認された。新垣容疑者は当初、県警の任意の調べに「朝起きたら娘の反応がなかった」と説明し、暴行を否定していた。 新垣容疑者は当時、夫と陽菜ちゃん、長男との4人暮らし。事件発生の時間帯には陽菜ちゃんと2人きりだったという。

Similarity rank: 4.3
Sentiment rank: -7.3

© Source: http://www.sankei.com/west/news/170111/wst1701110087-n1.html
All rights are reserved and belongs to a source media.

安倍晋三首相、ケネディ大使を慰労 在任3年余り、別れ惜しむ

0

NewsHub安倍晋三首相は11日夜、キャロライン・ケネディ駐日米大使と東京・銀座の日本料理店で会食し、大使在任中の3年余りを慰労した。ケネディ氏は20日のトランプ新政権発足を前に離任する。昭恵夫人も同席した。会食後、ケネディ氏と首相は握手し、昭恵夫人は抱き合って別れを惜しんだ。 オバマ大統領に指名されたケネディ氏は平成25年11月に着任。ケネディ元大統領の長女で、日本でも知名度を誇った。オバマ氏の信任が厚く、東日本大震災被災地を訪れるなど日米友好の進展に尽力。前任のルース氏に続いて被爆地・広島、長崎の平和式典に出席し、昨年のオバマ氏の広島訪問につながった。

Similarity rank: 4.3
Sentiment rank: -1.3

© Source: http://www.sankei.com/politics/news/170111/plt1701110035-n1.html
All rights are reserved and belongs to a source media.

Timeline words data