Pinned toot

From the comment in that github issue, I think I understand what is recommended. Instead of repeating the following in bash:

> run-experiment params > analysis.txt
> julia analyse.jl analysis.txt

We keep Julia open, and start with:

julia> include("analyse.jl")

then repeatedly run experiment in bash and:

julia> doAnalysis("analysis.txt")

The main performance hit is the first iteration, but then Julia has the libraries loaded and compiled.

More interactive, less like a separate program.

It seems that this is how it is:

github.com/JuliaPlots/Plots.jl

"we can't suddenly magically change something to avoid this slow initialization, which is honestly one of Julia's biggest issues."

Trying .

Tried the Plots library with pyplots, but 'using' Plots takes 40 seconds, and a first histogram with 10^7 points takes 50 seconds to appear.

Tried Gadfly. After precompilation, 'using' Gadfly takes 20 seconds and plot(y=[1,2,3]) needs 90 seconds to appear.

Both libraries do better on the second plot, but there are alternatives which don't make you wait so long for a single graph.

Is this just the state of Julia now, or is there a quicker 'plot' package?

Peter boosted

Well, now *this* is interesting: Paul Graham has just released (a spec for) a new #lisp called Bel: news.ycombinator.com/item?id=2

I don't quite know what to make of it, but can't deny being curious.

The only prediction I'll make is that it will continue to be popular on Hacker News!

Unique Origin Policy

While reviving an older piece of software, some analysis is output with xml / xsl so it can be saved and later displayed in a browser.

Of course now, Firefox and Epiphany are refusing to use the xsl.

I finally found this is down to a 'unique origin policy' where security concerns mean you cannot display files on your own computer!

To turn this policy off in firefox:
go to 'about:config'
and set 'privacy.file_unique_origin' to false.

Notes: I am converting a repository on Launchpad to use instead of bzr.

First, add to .gitconfig
[url "git+ssh://peterlane@git.launchpad.net/"]
insteadof = lp:

So:
> git remote set-url origin lp:html2pages
> git push origin master
puts code onto Launchpad as a git repository.

But we need a bzr branch to make a series with milestones for downloads:

1. Select 'Link to branch' to attach to trunk.
2. Branch name 'master' and 'import' location, the URL git.launchpad.net/PROJECT

Gogs update to Version: 0.11.91.0811, and, as I am the sole user, all those star and fork counts are just screen clutter.

I've removed the social counts by commenting out lines in the templates/ folder:

- the repository page: lines 23-54 of repo/header.html

- repository list: lines 20-21 of explore/repo_list.html

- profile follows: lines 38-47 of user/profile.tmpl

- dashboard repo list: line 38 of user/dashboard/dashboard.tmpl

- Pull Requests menu: line 98 of base/head.tmpl

I've posted a description of a go-inspired script I put together to help automate working with Chez Scheme (from bash).

For example:

> chez test
finds and runs all *-test.ss files in the current and child folders.

> chez install PROGRAM
compiles and bundles the program and library files into a single file, and adds a shell script to run it, placing both in a designated 'bin' folder. [This is not perfect, as the library dependency order could get broken.]

peterlane.netlify.com/posts/20

আজ আশতামি। ঠাকুর এই কবি লিকেছেন।
Today is Ashtami. Tagore wrote this poem:

youtube.com/watch?v=JMzKFM59fi

I wanted to install Sagittarius Scheme, so first download the release:

> cmake .

It stops - OpenSSL not found.

> sudo apt install libssl-dev
(check the headers are in /usr/include)

> cmake .

It stops - OpenSSL not found.

[Much internet searching, reading all kinds of 'cmake cannot find openssl' posts, trying all solutions, editing header files, setting environment variables. All fails, until ...]

> rm CMakeCache.txt

> cmake .
> make
> sudo make install

... everything is happy!

Peter boosted

A blog post about how someone learnt English. Some useful strategies:

1. Reading books: "I have seen many people trying to learn a new language without reading anything in the target language. It reduces their chances of getting better at the target language."

2. Consuming social media: something I am trying here - reading as many of the German toots as I can!

3. Don't compare your start with someone else's middle

langphile.com/f/what-i-did-to-

What German reading would you recommend for someone approaching intermediate level?

I keep recommending these, as I have some of them:

briansmith.de/ has dual-language books from a beginner to a fairly advanced level. There's also audio.

The Cafe in Berlin stories are also often recommended (but I have not read byond the first): books.learnoutlive.com/learn-g

There are graded readers (A2/B1 etc) at: blackcat-cideb.com/en/catalogu They include a CD and exercises.

Dr. Francis Young writes: "The old idea of Germanic invaders driving the native Britons to the edges of Britain and replacing them in the landscape has long since been discarded in the light of archaeological and, above all, genetic evidence." This 'old idea' is still the one given by Simon Jenkins in his A Short History of England (2011).

drfrancisyoung.com/2019/05/25/

I find this description by Benny Lewis of the A2 language level encouraging.

fluentin3months.com/a2-level/

An achievable target when initially learning a language, and a useful level to possess.

What can you do at A2 level? You can understand and communicate about your local environment and the most important activities, talk about yourself and your immediate needs.

All good stuff. But I disagree that this level is quick-and-easy for the novice to reach!

Peter boosted

A DSL for financial contracts to be executed on blockchain, with a compiler implemented in Haskell.

etorox.com/lira/

Code is available on Github: github.com/etoroxlabs/lira

One of my favourite additions in the Lord of the Rings films was during the march from Rivendell. When the group had stopped, Boromir is shown teaching Merry and Pippin how to fight with a sword. It seemed so natural that he would be helping out the weaker members of the group, and makes his defence of them later more poignant.

Peter boosted
Show more
Mastodon.org.uk

General purpose mastodon instance