Few days ago Mike Anderson wrote [a proposal][mike] for a generic matrix API in Clojure which could compete with NumPy. I wanted to write a similar post for months, but was reluctant to start. This problem is very dear to me. Basically, it is a matter if I can use Clojure for most of my work, or it remains a toy language for me. Thanks to Mike for bringing the question up. Though, I have a different vision of how we should approach arrays and matrices in Clojure.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
An implementation of the n-body benchmark for Intel Galileo (Arduino clone) | |
Expected output with TIME_STEPS = 50000000: | |
-0.169075164 | |
-0.169059907 | |
# time: ... | |
Performance of Intel Galileo vs desktop CPUs: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; ipython.el --- Adds support for IPython to python-mode.el | |
;; Copyright (C) 2002, 2003, 2004, 2005 Alexander Schmolck | |
;; Author: Alexander Schmolck | |
;; Keywords: ipython python languages oop | |
;; URL: http://ipython.org | |
;; Compatibility: Emacs21, XEmacs21 | |
;; Version: 0.11 | |
;; FIXME: #$@! INPUT RING |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE FunctionalDependencies, FlexibleInstances #-} | |
module HasHeadFD where | |
import qualified Data.Text as T | |
import qualified Data.ByteString.Char8 as BSC | |
class HasHeadFD c e | c -> e where |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{-# LANGUAGE MultiParamTypeClasses, TypeFamilies, FlexibleInstances #-} | |
module HasHead where | |
import qualified Data.Text as T | |
import qualified Data.ByteString.Char8 as BSC | |
-- Usage example |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;; indent-blocks.el --- | |
;;; move to the begining and end of the current indentation block | |
;; Indent blocks are defined as a sequence of lines with the same or | |
;; bigger indent size than that of the current line. | |
;; | |
;; Indentat blocks are common in YAML, Python, and Haskell and other | |
;; markup and programming languages with significant indentation, and | |
;; in these languages they usually are semantic units. | |
;; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "plot 3D line" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Hide Search Bar in Google Reader | |
// @namespace https://github.com/astanin | |
// @include http://www.google.com/reader/view/* | |
// @include https://www.google.com/reader/view/* | |
// @version 1.0 | |
// @grant none | |
// ==/UserScript== | |
function hideById(barid) { | |
document.getElementById(barid).style.display = "none"; |