Programming

Natural Language Processing in Mathematica

Written by on September 11, 2016 in Mathematica, Programming with 0 Comments
Natural Language Processing in Mathematica

Welcome back. Today I am going to share with you some of the nice capabilities of Mathematica in the area of Natural Language Processing (NLP). Let us start with words. What if we wish to know the various definitions of the word image? Here is the answer. Mathematica gives the various senses of the word and the […]

Continue Reading

CUDA and Mathematica

Written by on August 20, 2016 in Mathematica, Programming with 1 Comment
CUDA and Mathematica

Recently I purchased a high-end desktop computer for my image processing project. Since many computations tend to take several hours to execute, I wanted to accelerate the calculations to the extent possible by adding a GPU. I chose NIVIDA’s GeForce GTX 1080 processor-based card. Although I will be using C++ for my work, because Mathematica 11 […]

Continue Reading

Is Deriving from a Concrete Class Bad?

Written by on August 7, 2016 in Julia, Programming with 0 Comments

In my first post on Julia, I noted that the language does not allow deriving from a concrete (i.e., non-abstract) class. It definitely came as a surprise because in most OO languages (C++, Java, Scala, C#, etc.) such a restriction does not exist. It is true that when you design an inheritance hierarchy, you have […]

Continue Reading

Using Julia to Interact with Mathematica

Written by on July 22, 2016 in Julia, Mathematica, Programming with 0 Comments
Using Julia to Interact with Mathematica

Mathematica is a powerful environment for symbolic and numerical computation. I have been using it for many years now. In this post I had explained how we can use Mathematica bundled with Raspberry distribution to control littleBits devices. When I saw that there is support in Julia for interacting with Mathematica, I decided to investigate it […]

Continue Reading

Multimethods in Julia

Written by on July 7, 2016 in Julia, Programming with 0 Comments
Multimethods in Julia

I got interested in Julia programming language quite recently, primarily because of a project involving image processing and machine learning. The language is still evolving, but already has a rich set of features and a good collection of external libraries covering many areas. One of the highlights of the language is its highly optimised code generation, […]

Continue Reading

Pattern Matching with Optima Lisp Library – Part 3

Written by on June 29, 2016 in LISP, Music, Programming with 0 Comments
Pattern Matching with Optima Lisp Library – Part 3

In the previous two posts on this topic, I explained some of the basic pattern matching facilities of Optima library. There are many more advanced features in the library and I will try to discuss them in future posts. In today’s post, I will outline a straightforward application of the library for processing scores in Opusmodus. In […]

Continue Reading

Pattern Matching with Optima Lisp Library – Part 2

Written by on June 17, 2016 in LISP, Programming with 0 Comments

Let us continue where we left off last time. List Patterns If the incoming argument is a list, then we can use two types of list patterns to match the list elements, namely, list and list*. (match ‘(a b c)  ((list ‘a ‘b X) X)) => c This list pattern begins with the list keyword. […]

Continue Reading

Pattern Matching with Optima Lisp Library

Written by on June 9, 2016 in LISP, Programming with 0 Comments

In the previous two posts, we looked at external tools and libraries that can be used along with Opusmodus for algorithmic composition. In this post, I want to introduce another interesting Lisp library called Optima. Optima is a powerful library for pattern matching. Often, when we talk of pattern matching, the topic revolves around regular expressions. […]

Continue Reading

Constraint Programming in Picat

Written by on May 26, 2016 in LISP, Music, Programming with 0 Comments
Constraint Programming in Picat

In my last post I briefly described how we can use the Screamer Lisp library for constraint programming in music. Another language I have been hearing a lot about, in the context of constraint programming, is Picat, a Prolog-derived language. Although I am familiar with Prolog and have been a user of Sicstus Prolog for many […]

Continue Reading

Constraint Programming Using Screamer

Written by on May 17, 2016 in LISP, Music, Programming with 0 Comments
Constraint Programming Using Screamer

A few years I ago I had briefly experimented with the Screamer library in the context of automatic test case generation from specification. I felt it was a useful utility for doing simple constraint programming tasks. Recently while going through some of the past articles in the Opusmodus forum, I was pleasantly surprised to find references to constraint programming […]

Continue Reading

Top