Here is some working code to let Racket use MPI, from an old homework.
Tag: Programming Language
Software Project Management for Emacs: Cask
Johan shared a link for Cask with me. Look like an excellent and well needed tool for serious Emacs development. Serious being open to definition of course.
Dependency and software project management tools seem to slowly drift across language and system stacks, always being re-invented. The study of such systems, and the development of a singular and unified approach in the form of a library looks like a lot of fun and serious hard work, probably only worth pursuing if the result were a PhD.
How to Choose Packages Between Two ELPA Repositories
ELPA makes Emacs v24 even more delightful to use. You may have run into a situation though where you wanted to install different packages from both Marmalade and MELPA. A common problem here is that because the newest version number always gets chosen for installation, MELPA packages always get chosen over Marmalade, and you may not want that. MELPA thankfully has a solution for that in the form of their own package.
The directions to set up MELPA are straightforward, but, one of my super-powers is not make any sense of directions, so I had a heck of a time getting it working. Aaron’s config gave me a clue, but I still didn’t have it working (I liked his namespace prefixing though so). Once I did get it working though it was really clear what I had done wrong, basically the package load and require order was incorrect, so, here is the right way to do it:
- Install the melpa package manually as directed; this gives you package you need to use the filtering functionality.
- Require ‘package to get the ELPA functionality and variables.
- Add the repo(s) to ‘package-archives so that you can pull from them.
- Call package-initialize to find the recently installed melpa package.
- Require ‘melpa to import it and be able to use it.
- Customize the enable and exclude melpa variables to specify what packages to include or exclude from which repositories.
- Call package-refresh-contents to update Emacs’s database of which packages it should use as available for installation.
- Your filtered package list is now available for use, call list-packages to verify.
Here is an example of my situation, I wanted to default to installing the newest package from either GNU or Marmalade for all but two cases where I only wanted the version that was available on MELPA: fill-column-indicator and melpa. Here is the configuration and correct order of calls to make:
(defvar gcr/packages
'(auto-complete
color-theme
color-theme-solarized
diminish
fill-column-indicator
fuzzy
geiser
graphviz-dot-mode
lexbind-mode
melpa
ob-sml
paredit
pretty-mode-plus
rainbow-mode
real-auto-save
sml-mode)
"Packages required at runtime.")
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(package-initialize)
(require 'melpa)
(setq package-archive-enable-alist '(("gnu")
("marmalade")
("melpa"
fill-column-indicator
melpa)))
(setq package-archive-exclude-alist '(("gnu"
fill-column-indicator
melpa)
("marmalade"
fill-column-indicator
melpa)))
(package-refresh-contents)
(dolist (package gcr/packages)
(when (not (package-installed-p package))
(condition-case err
(package-install package)
(error
(message "%s" (error-message-string err))))))
OPAM for OCaml
GODI – The source code Objective Caml distribution
Via its homepage:
GODI provides an advanced programming environment for the Objective Caml (O’Caml) language.
From INRIA (who created O’Caml) you can get the O’Caml compiler and runtime system, but this is usually not enough to develop applications. You also need libraries, and there are many developers all over the world providing them; you can go and pick them up. But it is a lot of work to build and install them.
GODI is a system that simplifies this task: It is a framework that automatically builds the O’Caml core system, and additionally installs a growing number of pre-packaged libraries. For a number of reasons GODI is a source-code based system, and there are no precompiled libraries, but it makes it very simple for everybody to compile them.
GODI is available for O’Caml-3.10 and 3.11. It runs on Linux, Solaris, FreeBSD, NetBSD, Windows (Cygwin and MinGW), HP-UX, MacOS X.
Scribfile: File and Operating System related Scribble Functionality
http://planet.racket-lang.org/package-source/grettke/scribfile.plt/1/0/planet-docs/scribfile/index.html
Is a little library that provides two forms, one to read a lispy language file into a codeblock and another that makes a system call and renders the results in a verbatim form. Pretty helpful for demos of non-Racket code and who knows what else.
Thanks Racket team, and Danny and Matthew for getting this working.
Angular Unstable will be in Bower Soon
Tried to install AngularJS unstable today via bower and followed this trail:
- make version 1.1.5 available on bower packages ( create a 1.1.5 tag )
- Include unstable versions
- Bower should install stable components by default
- Add support for semver 2.0.0-rc.1’s build level
to find that Bower currently doesn’t support unstable releases due to a versioning issue, but, they will soon.
In the meantime, Michael Ahlers went above and beyond to provide an alternative here.
One Path to SML
Never knowing what is the right time for a path to present itself, I think I am back on the path to SML again. This time I got some more feedback and wanted to capture it here.
Various feedback:
- ML for the Working Programmer. Skip it. A wonderful book. Excellent for advanced programmers.
- Programming in Standard ML. Definitive, once you are through, you are done. A wonderful book.
- The Little MLer. An introduction to the idea of typed programming not an introduction to SML
- Elements of ML Programming, ML97 Edition (2nd Edition).
- ML Primer. Good for beginners.
- Functional Programming Using Standard Ml. A good introduction to the language. Good for beginners.
- Abstract Data Types in Standard ML. Poorly written, but good code for intermediate programmers to read.
- Purely Functional Data Structures. Excellent for advanced programmers.
- Applicative High Order Programming: The Standard M.L.Perspective. Excellent for advanced programmers.
- Elements Of Functional Programming. Excellent for intermediate/advanced programmers.
- The Definition of Standard ML – Revised.
- Concurrent Programming in ML.
- ACM Workshop on ML. The proceedings.
- Programming With Standard Ml. Good for intermediate programmers.
We’ll see what is my cup of tea.
Scheme: It's Not Just for Factorial Anymore
Scheme: It’s Not Just for Factorial Anymore.
It isn’t.
Simple Scheme
Simple is a Scheme system for learning.
I have to work with a virtual machine that theoretical SECD machine.
Mechanism looking into the internal structure has been incorporated.