Latest Release Announcement » | Other Releases »

It's Another Impressive Release!Launching Version 11.2 Today

Our Latest R&D Output

I'm excited today to announce the latest output from our R&D pipeline:Version 11.2Wolfram LanguageandMathematica—available immediately on desktop (Mac,Windows,Linux) and cloud.

It was only this spring that we releasedVersion 11.1.But after the summer we're now ready for another impressive release—with all kinds of additions and enhancements,including 100+ entirely new functions:

New functions word cloud

We have a very deliberate strategy for our releases.Integer releases (like 11) concentrate on major complete new frameworks that we'll be building on far into the future.".1"releases(like 11.2) are intended as snapshots of the latest output from our R&D pipeline–delivering new capabilities large and small as soon as they're ready.

Version 11.2 has a mixture of things in it—ranging from ones that provide finishing touches to existing major frameworks,to ones that are first hints of major frameworks under construction.One of my personal responsibilities is to make sure that everything we add is coherently designed,and fits into the long-term vision of the system in a unified way.

And by the time we're getting ready for a release,I've been involved enough with most of the new functions we're adding that they begin to feel like personal friends.So when we're doing a .1 release and seeing what new functions are going to be ready for it,it's a bit like making a party invitation list: who's going to be able to come to the big celebration?

Years back there'd be a nice list,but it would be of modest length.Today,however,I'm just amazed at how fast our R&D pipeline is running,and how much comes out of it every month.Yes,we've been consistently building our Wolfram Language technology stack for more than 30 years—and we've got a great team.But it's still a thrill for me to see just how much we're actually able to deliver to all our users in a .1 release like 11.2.

Advances in Machine Learning

It's hard to know where to begin.But let's pick a current hot area:machine learning.

We've had functionality that would now be considered machine learning in the Wolfram Language for decades,and back in 2014 we introduced the "machine-learning superfunctions"ClassifyandPredict—to give broad access to modern machine learning.By early 2015,we had state-of-the-art deep-learning image identification inImageIdentify,and then,last year,in Version 11,we began rolling out our full symbolicneural net computation system.

Our goal is to push the envelope of what's possible in machine learning,but also to deliver everything in a nice,integrated way that makes it easy for a wide range of people to use,even if they're not machine-learning experts.And in Version 11.2 we've actually used machine learning to add automation to our machine-learning capabilities.

So,in particular,ClassifyandPredictare significantly more powerful in Version 11.2.Their basic scheme is that you give them training data,and they'll learn from it to automatically produce a machine-learning classifier or predictor.But a critical thing in doing this well is to know what features to extract from the data—whether it's images,sounds,text,or whatever.And in Version 11.2ClassifyandPredicthave a variety of new kinds of built-in feature extractors that have been pre-trained on a wide range of kinds of data.

But the most obviously new aspect ofClassifyandPredictis how they select the core machine-learning method to use (as well as hyperparameters for it).(By the way,11.2 also introduces things like optimized gradient-boosted trees.) And if you runClassifyandPredictnow in a notebook you'll actually see them dynamically figuring out and optimizing what they're doing (needless to say,using machine learning):

Classify and Predict animation

By the way,you can always press Stop to stop the training process.And with the new optionTimeGoalyou can explicitly say how long the training should be planned to be—from seconds to years.

As a field,machine learning is advancing very rapidly right now (in the course of my career,I've seen perhaps a dozen fields in this kind of hypergrowth—and it's always exciting).And one of the things about our general symbolic neural net framework is that we're able to take new advances and immediately integrate them into our long-term system—and build on them in all sorts of ways.

At the front lines of this is the functionNetModel—to which new trained and untrained models are being added all the time.(The models are hosted in the cloud—but downloaded and cached for desktop or embedded use.) And so,for example,a few weeks agoNetModelgot a new model for inferring geolocations of photographs—that's based onbasic researchfrom just a few months ago:

NetModel[

NetModel["ResNet-101 Trained on YFCC100M Geotagged Data"]

Now if we give it a picture with sand dunes in it,its top inferences for possible locations seem to center around certain deserts:

",{"TopProbabilities",50}]]"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg310.png"alt="GeoBubbleChart[NetModel["ResNet-101 Trained on YFCC100M Geotagged Data"][" ",{"TopProbabilities",50}]]"width="513"height="311"/>

GeoBubbleChart[   NetModel["ResNet-101 Trained on YFCC100M Geotagged Data"][    CloudGet["https://wolfr.am/dunes"],{"TopProbabilities",50}]]

NetModelhandles networks that can be used for all sorts of purposes—not only as classifiers,but also,for example,as feature extractors.

Building onNetModeland our symbolic neural network framework,we've also been able to add new built-in classifiers to use directly fromClassify.So now,in addition to things like sentiment,we have NSFW,face age and facial expression (yes,an actual tiger isn't safe,but in a different sense):

"]"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg41.png"alt="Classify["NSFWImage"," "]"width="256"height="84"/>

Classify["NSFWImage",CloudGet["https://wolfr.am/tiger"]]

Our built-inImageIdentifyfunction (whose underlying network you can access withNetModel) has been tuned and retrained for Version 11.2—but fundamentally it's still a classifier.One of the important things that's happening with machine learning is the development of new types of functions,supporting new kinds of workflows.We've got a lot of development going on in this direction,but for 11.2 one new (and fun) example isImageRestyle—that takes a picture and applies the style of another picture to it:

"," "]"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg52.png"alt="ImageRestyle[" "," "]"width="229"height="292"/>

ImageRestyle[\[Placeholder],\[Placeholder]]

And in honor of this new functionality,maybe it's time to get the image on mypersonal home pagereplaced with something more "styled"—though it's a bit hard to know what to choose:

"GPU"] & /@ {insert image,insert image,insert image,insert image,insert image,insert image}"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg82.png"alt="ImageRestyle[#,[] PerformanceGoal -> "Quality",TargetDevice -> "GPU"] & /@ {insert image,insert image,insert image,insert image,insert image,insert image}"width="536"height="139"/>

ImageRestyle gallery

ImageRestyle[#,,PerformanceGoal -> "Quality",TargetDevice ->       "GPU"] & /@ {\[Placeholder],\[Placeholder],\[Placeholder],\  \[Placeholder],\[Placeholder],\[Placeholder]}

By the way,another new feature of 11.2 is the ability to directly export trained networks and other machine-learning functionality.If you're only interested in an actual network,you can get inMXNet format—suitable for immediate execution whereverMXNetis supported.In typical real situations,there's some pre- and post-processing that's needed as well—and the complete functionality can be exported inWMLF (Wolfram Machine Learning Format).

Cloud (and iOS) Notebooks

We invented the idea of notebooks back in 1988,for Mathematica 1.0—and over the past 29 years we've been steadily refining and extending how they work on desktop systems.About nine years ago we also began the very complex process of bringing our notebook interface to web browsers—to be able to run notebooks directly in the cloud,without any need for local installation.

It's been a long,hard journey.But between new features of the Wolfram Language and new web technologies (likeisomorphic React,Flow,MobX)—and heroic efforts of software engineering—we're finally reaching the point where our cloud notebooks are ready for robust prime-time use.Like,try this one:

Notebook

We actually do continuous releases of theWolfram Cloud—but with Version 11.2 of the Wolfram Language we're able to add a final layer of polish and tuning to cloud notebooks.

You can create and compute directly on the web,and you can immediately "peel off"a notebook to run on the desktop.Or you can start on the desktop,and immediately push your notebook to the cloud,so it can be shared,embedded—and further edited or computed with—in the cloud.

By the way,when you're using the Wolfram Cloud,you're not limited to desktop systems.With theWolfram Cloud App,you can work with notebooks on mobile devices too.And now that Version 11.2 is released,we're able to roll out a new version of the Wolfram Cloud App,that makes it surprisingly realistic (thanks to some neat UX ideas) to write Wolfram Language code even on your phone.

Talking of mobile devices,there's another big thing that's coming: interactive Wolfram Notebooks running completely locally and natively on iOS devices—both tablets and phones.This has been another heroic software engineering project—which actually started nearly as long ago as the cloud notebook project.

The goal here is to be able to read and interact with—but not author—notebooks directly on an iOS device.And so now with the Wolfram Player App that will be released next week,you can have a notebook on your iOS device,and useManipulateand other dynamic content,as well as read and navigate notebooks—with the whole interface natively adapted to the touch environment.

For years it's been frustrating when people send me notebook attachments in email,and I've had to do things like upload them to the cloud to be able to read them on my phone.But now with native notebooks on iOS,I can immediately just read notebook attachments directly from email.

Mathematical Limits

Math was the first big application of the Wolfram Language (that's why it was calledMathematica!)… and for more than 30 years we've been committed to aggressively pursuing R&D to expand the domain of math that can be made 金宝博188投注computational.And in Version 11.2 the biggest math advance we've made is in the area of limits.

Mathematica 1.0 back in 1988 already had a basicLimitfunction.And over the yearsLimithas gradually been enhanced.But in 11.2—as a result of algorithms we've developed over the past several years—it's reached a completely new level.

The simple-minded way to compute a limit is to work out the first terms in a power series.But that doesn't work when functions increase too rapidly,or have wild and woolly singularities.But in 11.2 the new algorithms we've developed have no problem handling things like this:

Limit[E^(E^x + x^2) (-Erf[E^-E^x - x] - Erf[x]),x -> \[Infinity]]

Limit[E^(E^x + x^2) (-Erf[E^-E^x - x] - Erf[x]),x -> \[Infinity]]
-Infinity]"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg141.png"alt=""Limit[3*x + Sqrt[9*x^2 + 4*x - Sin[x]],x -> -Infinity]"width="265"身高= " 76 "/>

Limit[(3 x + Sqrt[9 x^2 + 4 x - Sin[x]]),x -> -\[Infinity]]

It's very convenient that we have a test set of millions of complicated limit problems that people have askedWolfram|Alphaabout over the past few years—and I'm pleased to say that with our new algorithms we can now immediately handle more than 96% of them.

Limits are in a sense at the very core of calculus and continuous mathematics—and to do them correctly requires a huge tower of knowledge about a whole variety of areas of mathematics.Multivariate limits are particularly tricky—with the main takeaway from many textbooks basically being "it's hard to get them right".Well,in 11.2,thanks to our new algorithms (and with a lot of support from our algebra,functional analysis and geometry capabilities),we're finally able to correctly do a very wide range of multivariate limits—saying whether there's a definite answer,or whether the limit is provably indeterminate.

Version 11.2 also introduces two other convenient mathematical constructs:MaxLimitandMinLimit(sometimes known as lim sup and lim inf).Ordinary limits have a habit of being indeterminate whenever things get funky,butMaxLimitandMinLimithave definite values,and are what come up most often in applications.

So,for example,there isn't a definite ordinary limit here:

Limit[Sin[x] + Cos[x/4],x -> Infinity]

Limit[Sin[x] + Cos[x/4],x -> \[Infinity]]

But there's aMaxLimit,that turns out to be a complicated algebraic number:

MaxLimit[Sin[x] + Cos[x/4],x -> \[Infinity]] // FullSimplify

MaxLimit[Sin[x] + Cos[x/4],x -> \[Infinity]] // FullSimplify
N[%]

N[%]

Another new construct in 11.2 isDiscreteLimit,that gives limits of sequences.Like here's it's illustrating thePrime Number Theorem:

DiscreteLimit[Prime[n]/(n*Log[n]),n -> Infinity]

DiscreteLimit[Prime[n]/(n Log[n]),n -> \[Infinity]]

And here it's giving the limiting value of the solution to a recurrence relation:

DiscreteLimit[RSolveValue[{x[n+1] == Sqrt[1 + x[n]+1/x[n]],x[1] == 3},x[n],n],n->\[Infinity]]

DiscreteLimit[   RSolveValue[{x[n + 1] == Sqrt[1 + x[n] + 1/x[n]],x[1] == 3},x[n],n],n -> \[Infinity]]

All Sorts of New Data

There's always new data in theWolfram Knowledgebase—flowing every second from all sorts of data feeds,and systematically being added by our curators and curation systems.The architecture of our cloud and desktop system allows both new data and new types of data (as well as natural language input for it) to be immediately available in the Wolfram Language as soon as it's in the Wolfram Knowledgebase.

And between Version 11.1 and Version 11.2,there've been millions of updates to the Knowledgebase.There've also been some new types of data added.For example—after several years of development—we've now got well-curated data on all notable military conflicts,battles,etc.in history:

Entity[

Entity["MilitaryConflict","SecondPunicWar"][   EntityProperty["MilitaryConflict","Battles"]]
GeoListPlot[%]

GeoListPlot[%]

Another thing that's new in 11.2 is greatly enhanced predictive caching of data in the Wolfram Language—making it much more efficient to compute with large volumes of curated data from the Wolfram Knowledgebase.

By the way,Version 11.2 is the first new version to be released since theWolfram Data Repositorywas launched.And through the Data Repository,11.2 has access to nearly 600 curated datasets across a very wide range of areas.11.2 also now supports functions likeResourceSubmit,for programmatically submitting data for publication in the Wolfram Data Repository.(你也可以发布数据使用CloudDeploy.)

There's a huge amount of data and types of computations available in Wolfram|Alpha—that with great effort have been brought to the level where they can be relied on,at least for the kind of one-shot usage that's typical in Wolfram|Alpha.But one of our long-term goals is to take as many areas as possible and raise the level even higher—to the point where they can be built into the core Wolfram Language,and relied on for systematic programmatic usage.

In Version 11.2 an area where this has happened is ocean tides.So now there's a functionTideDatathat can give tide predictions for any of the tide stations around the world.I actually found myself using this function in a recent livecoding session I did—where it so happened that I needed to know daily water levels in Aberdeen Harbor in 1913.(Watch theTwitch recordingto find out why!)

TideData[Entity[

TideData[Entity[    "City",{"Aberdeen","Maryland","UnitedStates"}],"WaterLevel",DateRange[DateObject[{1913,1,1}],DateObject[{1913,12,31}],"Day"]]
DateListPlot[%]

DateListPlot[%]

GeoImage

GeoGraphicsand related functions have built-in access to detailed maps of the world.They've also had access to low-resolution satellite imagery.But in Version 11.2 there's a new functionGeoImagethat uses an integrated external service to provide full-resolution satellite imagery:

GeoImage[GeoDisk[Entity[

GeoImage[GeoDisk[Entity["Building","ThePentagon::qzh8d"],Quantity[0.4,"Miles"]]]
GeoImage[GeoDisk[Entity[

GeoImage[GeoDisk[Entity["Building","Stonehenge::46k59"],Quantity[250,"Feet"]]]

I've ended up usingGeoImageineachof the twolivecoding sessionsI did just recently.Yes,in principle one could go to the web and find a satellite image of someplace,but it's amazing what a different level of utility one reaches when one can programmatically get the satellite image right inside the Wolfram Language—and then maybe feed it toimage processing,orvisualization,ormachine-learningfunctions.Like here's afeature space plotof satellite images of volcanos in California:

FeatureSpacePlot[GeoImage /@ GeoEntities[Entity[

FeatureSpacePlot[   GeoImage /@     GeoEntities[     Entity["AdministrativeDivision",{"California","UnitedStates"}],"Volcano"]]

We're always updating and adding all sorts of geo data in the Wolfram Knowledgebase.And for example,as of Version 11.2,we've now got high-resolution geo elevation data for the Moon—which came in very handy for our recentprecision eclipse computation project.

None]"width="564"height="433"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg271.png"alt="ListPlot3D[GeoElevationData[GeoDisk[Entity["MannedSpaceMission","Apollo15"][EntityProperty["MannedSpaceMission","LandingPosition"]],Quantity[10,"Miles"]]],Mesh -> None]"width="564"height="433"width="619"height="431"/>

ListPlot3D[   GeoElevationData[    GeoDisk[Entity["MannedSpaceMission","Apollo15"][      EntityProperty["MannedSpaceMission","LandingPosition"]],Quantity[10,"Miles"]]],Mesh -> None]

Visualization

One of the obvious strengths of the Wolfram Language is its wide range of integrated and highly automated visualization capabilities.Version 11.2 adds some convenient new functions and options.An example isStackedListPlot,which,正如其名,makes stacked (cumulative) list plots:

StackedListPlot[RandomInteger[10,{3,30}]]

StackedListPlot[RandomInteger[10,{3,30}]]

There's alsoStackedDateListPlot,here working with historical time series from the Wolfram Knowledgebase:

StackedDateListPlot[  EntityClass[TakeLargest[10]}][ Dated["Population",All],"Association"],PlotLabels -> Automatic]"title="StackedDateListPlot[ EntityClass[ "Country",{ EntityProperty["Country","Population"] -> TakeLargest[10]}][ Dated["Population",All],"Association"],PlotLabels -> Automatic]"width="551"height="294"class="alignnone size-full wp-image-14564"/>

StackedDateListPlot[   EntityClass[    "Country",{     EntityProperty["Country","Population"] -> TakeLargest[10]}][    Dated["Population",All],"Association"],PlotLabels - >自动)
StackedDateListPlot[  EntityClass[TakeLargest[10]}][ Dated["Population",All],"Association"],PlotLabels -> Automatic,PlotLayout -> "Percentile"]"title="StackedDateListPlot[ EntityClass[ "Country",{ EntityProperty["Country","Population"] -> TakeLargest[10]}][ Dated["Population",All],"Association"],PlotLabels -> Automatic,PlotLayout -> "Percentile"]"width="518"height="304"class="alignnone size-full wp-image-14567"/>

StackedDateListPlot[   EntityClass[    "Country",{     EntityProperty["Country","Population"] -> TakeLargest[10]}][    Dated["Population",All],"Association"],PlotLabels -> Automatic,PlotLayout -> "Percentile"]

One of our goals in the Wolfram Language is to make good stylistic choices as automatic as possible.And in Version 11.2 we've,for example,added a whole collection of plot themes forAnatomyPlot3D.You can always explicitly give whatever styling you want.But we provide many default themes.You can pick a classic anatomy book look (by the way,all these 3D objects are fully manipulable and computable):

"Classic"]"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg312.png"alt="AnatomyPlot3D[Entity["AnatomicalStructure","LeftHand"],PlotTheme -> "Classic"]"width="479"height="353"/>

AnatomyPlot3D[Entity["AnatomicalStructure","LeftHand"],PlotTheme -> "Classic"]

Or you can go for more of aGray's Anatomylook:

"Vintage"]"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg321.png"alt="AnatomyPlot3D[Entity["AnatomicalStructure","LeftHand"],PlotTheme -> "Vintage"]"width="483"height="353"/>

AnatomyPlot3D[Entity["AnatomicalStructure","LeftHand"],PlotTheme -> "Vintage"]

Or you can have a "scientific"theme that tries to make different structures as distinct as possible:

"Scientific"]"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg331.png"alt="AnatomyPlot3D[Entity["AnatomicalStructure","LeftHand"],PlotTheme -> "Scientific"]"width="493"height="360"/>

StackedDateListPlot[   EntityClass[    "Country",{     EntityProperty["Country","Population"] -> TakeLargest[10]}][    Dated["Population",All],"Association"],PlotLabels -> Automatic,PlotLayout -> "Percentile"]

3D 金宝博188投注Computational Geometry

The Wolfram Language has very strong 金宝博188投注computational geometry capabilities—that work on both exact surfaces and approximate meshes.It's a tremendous algorithmic challenge to smoothly handle constructive geometry in 3D—but after many years of work,Version 11.2 can do it:

RegionIntersection[MengerMesh[2,3],<br />  BoundaryDiscretizeRegion[Ball[{1,1,1}]]]

RegionIntersection[MengerMesh[2,3],BoundaryDiscretizeRegion[Ball[{1,1,1}]]]

And of course,everything fits immediately into the rest of the system:

Volume[%]

Volume[%]

More Audio

Version 11 introduced a major new framework for large-scale audio processing in the Wolfram Language.We're still developing all sorts of capabilities based on this framework,especially using machine learning.And in Version 11.2 there are a number of immediate enhancements.There are very practical things,like built-in support forAudioCaptureunder Linux.There's also now the notion of a dynamicAudioStream,whose playback can be programmatically controlled.

Another new function isSpeechSynthesize,which creates audio from text:

SpeechSynthesize [

SpeechSynthesize["hello"]
Spectrogram[%]

Spectrogram[%]

Capture the Screen

The Wolfram Language tries to let you get data wherever you can.One capability added for Version 11.2 is being able to capture images of your computer screen.(Rasterizehas been able to rasterize complete notebooks for a long time;CurrentNotebookImagenow captures an image of what's visible from a notebook on your screen.) Here's an image of my main (first) screen,captured as I'm writing this post:

CurrentScreenImage[1]

CurrentScreen output

CurrentScreenImage[1]

Of course,I can now do computation on this image,just like I would on any other image.Here's a map of the inferred "saliency"of different parts of my screen:

"]//Colorize"src="//m.trev-bjj.com/data/uploads/2017/09/InOutImg402.png"alt="ImageSaliencyFilter[" "]//Colorize"width="459"height="313"/>

ImageSaliencyFilter[CurrentScreenImage[1]]//Colorize

Language Features

Part of developing the Wolfram Language is adding major new frameworks.But another part is polishing the system,and implementing new functions that make doing things in the system ever easier,smoother and clearer.

Here are a few functions we've added in 11.2.The first is simple,but useful:TakeList—a function that successively takes blocks of elements from a list:

TakeList[Alphabet[],{2,5,3,4}]

TakeList[Alphabet[],{2,5,3,4}]

Then there'sFindRepeat(a "colleague"ofFindTransientRepeat),that finds exact repeats in sequences—here for a Fibonacci sequence mod 10:

FindRepeat[Mod[Array[Fibonacci,500],10]]

FindRepeat[Mod[Array[Fibonacci,500],10]]

Here's a very different kind of new feature: an addition toCapitalizethat applies the heuristics for capitalizing "important words"to make something "title case".(Yes,for an individual string this doesn't look so useful;but it's really useful when you've got 100 strings from different sources to make consistent.)

Capitalize[

Capitalize["a new kind of science","TitleCase"]

Talking of presentation,here's a simple but very useful new output format:DecimalForm.Numbers are normally displayed in scientific notation when they get big,butDecimalFormforces "grade school"number format,without scientific notation:

Table[16.5^n,{n,10}]

Table[16.5^n,{n,10}]
DecimalForm[Table[16.5^n,{n,10}]]

DecimalForm[Table[16.5^n,{n,10}]]

Another language enhancement added in 11.2—though it's really more of a seed for the future—isTwoWayRule,input as <->.Ever since Version 1.0 we've hadRule(->),and over the years we've foundRuleincreasingly useful as an inert structure that can symbolically represent diverse kinds of transformations and connections.Ruleis fundamentally one-way: "left-hand side goes to right-hand side".But one also sometimes needs a two-way version—and that's whatTwoWayRuleprovides.

Right nowTwoWayRulecan be used,for example,to enter undirected edges in a graph,or pairs of levels to exchange inTranspose.But in the future,it'll be used more and more widely.

Graph[{1 <-> 2,2 <-> 3,3 <-> 1}]

Graph[{1 <-> 2,2 <-> 3,3 <-> 1}]

11.2 has all sorts of other language enhancements.Here's an example of a somewhat different kind: the functionsStringToByteArrayandByteArrayToString,which handle the somewhat tricky issue of converting between raw byte arrays and strings with various encodings (like UTF-8).

Initialization & System Operations

How do you get the Wolfram Language to automatically initialize itself in some particular way?All the way from Version 1.0,you've been able to set up an init.m file to run at initialization time.But finally now in Version 11.2 there's a much more general and programmatic way of doing this—usingInitializationValueand related constructs.

It's made possible by thePersistentValueframework introduced in 11.1.And what's particularly nice about it is that it allows a whole range of "persistence locations"—so you can store your initialization information on a per-session,per-computer,per-user,or also (new in 11.2) per-notebook way.

Talking about things that go all the way to Version 1.0,here's a little story.Back in Version 1.0,Mathematica (as it then was) pretty much always used to display how much memory was still available on your computer (and,yes,you had to be very careful back then because there usually wasn't much).Well,somewhere along the way,as virtual memory became widespread,people started thinking that "available memory"didn't mean much,and we stopped displaying it.But now,after being gone for 25+ years,modern operating systems have let us bring it back—and there's a new functionMemoryAvailablein Version 11.2.And,yes,for my computer the result has gained about 5 digits relative to what it had in 1988:

MemoryAvailable[]

MemoryAvailable[ ]

Unified Asynchronous Tasks

There've been ways to do some kinds of asynchronous or "background"tasks in the Wolfram Language for a while,but in 11.2 there's a complete systematic framework for it.There's a thing calledTaskObjectthat symbolically represents an asynchronous task.And there are basically now three ways such a task can be executed.First,there'sCloudSubmit,which submits the task for execution in the cloud.Then there'sLocalSubmit,which submits the task to be executed on your local computer,but in a separate subkernel.And finally,there'sSessionSubmit,which executes the task in idle time in your current Wolfram Language session.

When you submit a task,it's off getting executed (you can schedule it to happen at particular times usingScheduledTask).The way you "hear back"from the task is through "handler functions": functions that are set up when you submit the task to "handle"certain events that can occur during the execution of the task (completion,errors,etc.).

There are also functions likeTaskSuspend,TaskAbort,TaskWaitand so on,that let you interact with tasks "from the outside".And,yes,when you're doing big machine-learning trainings,for example,this comes in pretty handy.

Connectivity

We're always keen to make the Wolfram Language as connected as it can be.And in Version 11.2 we've added a variety of features to achieve that.In Version 11 we introduced theAuthenticationoption,它可以让你给凭证等功能吗URLExecute.Version 11 already allowed forPermissionsKey(a.k.a.an "app id").In 11.2 you can now give an explicit username and password,and you can also useSecuredAuthenticationKeyto provide OAuth credentials.It's tricky stuff,but I'm pleased with how cleanly we're able to represent it using the symbolic character of the Wolfram Language—and it's really useful when you're,for example,actually working with a bunch internal websites or APIs.

Back in Version 10 (2014) we introduced the very powerful idea of usingAPIFunctionto provide a symbolic specification for a web API—that could be deployed to the cloud usingCloudDeploy.Then in Version 10.2 we introducedMailReceiverFunction,which responds not to web requests,but instead to receiving mail messages.(By the way,in 11.2 we've considerably strengthenedSendMail,notably adding various authentication and address validation capabilities.)

In Version 11,we introduced the channel framework,which allows for publish-subscribe interactions between Wolfram Language instances (and external programs)—enabling things like chat,as well as a host of useful internal services.Well,in our continual path of automating and unifying,we're introducing in 11.2ChannelReceiverFunction—which can be deployed to the cloud to respond to whatever messages are sent on a particular channel.

In the low-level software engineering of the Wolfram Language we've used sockets for a long time.A few years ago we started exposing some socket functionality within the language.And now in 11.2 we have a full socket framework.The socket framework supports both traditional TCP sockets,as well as modern ZeroMQ sockets.

External Programs

Ever since the beginning,the Wolfram Language has been able to communicate with external C programs—actually using its nativeWSTP (Wolfram Symbolic Transfer Protocol)symbolic expression transfer protocol.Years agoJ/Linkand.NetLinkenabled seamless connection to Java and .Net programs.RLinkdid the same for R.Then there are things likeLibraryLink,that allow direct connection to DLLs—orRunProcessfor running programs from the shell.

But 11.2 introduces a new form of external program communication:ExternalEvaluate.ExternalEvaluateis for doing computation in languages which—like the Wolfram Language—support REPL-style input/output.The two first examples available in 11.2 are Python and NodeJS.

Here's a computation done with NodeJS—though this would definitely be better done directly in the Wolfram Language:

ExternalEvaluate[

ExternalEvaluate["NodeJS","Math.sqrt(50)"]

Here's a Python computation (yes,it's pretty funky to use & forBitAnd):

ExternalEvaluate[

ExternalEvaluate["Python","[ i & 10 for i in range(10)]"]

Of course,the place where things start to get useful is when one's accessing large external code bases or libraries.And what's nice is that one can use the Wolfram Language to control everything,and to analyze the results.ExternalEvaluateis in a sense a very lightweight construct—and one can routinely use it even deep inside some piece of Wolfram Language code.

There's an infrastructure aroundExternalEvaluate,aimed at connecting to the correct executable,appropriately converting types,and so on.There's alsoStartExternalSession,which allows you to start a single external session,and then perform multiple evaluations in it.

The Whole List

So is there still more to say about 11.2?Yes!There are lots of new functions and features that I haven't mentioned at all.Here's amore extensive list:

New features

But if you want to find out about 11.2,最好的办法是run it.I've actually been running pre-release versions of 11.2 on my personal machines for a couple of months.So by now I'm taking the new features and functions quite for granted—even though,earlier on,I kept on saying "this is really useful;how could we have not had this for 30 years?".Well,realistically,it's taken building everything we have so far—not only to provide the technical foundations,but also to seed the ideas,for 11.2.But now our work on 11.2 is done,and 11.2 is ready to go out into the world—and deliver the latest results from our decades of research and development.

To comment,please visit the copy of this post at theWolfram Blog »

© 金宝博188正网Stephen Wolfram,LLC | Terms| RSS