reddit discussion on replacing Python in 0install

bearophile bearophileHUGS at lycos.com
Mon Jun 10 14:12:08 PDT 2013


Graham Fawcett:

> http://www.reddit.com/r/programming/comments/1g1fhf/case_study_for_replacing_python_in_0install/

I was about to link that Reddit thread here myself :-)

The original article proposes to translate to your language this 
little piece of Python+libs and measure its speed, safety in 
presence of errors, etc:


#!/usr/bin/env python
import os, sys, json
envname = os.path.basename(sys.argv[0])
args = json.loads(os.environ["0install-runenv-" + envname])
os.execv(args[0], args + sys.argv[1:])


Later he proposes other means to measure a language quality. 
Overall the comparison is quite interesting, despite several 
methodological problems.

Bye,
bearophile


More information about the Digitalmars-d mailing list