1,204 reputation
41340
bio website
location
age
visits member for 3 years, 4 months
seen Oct 14 at 17:32

I'm the author of a natural language programming tool called EngScript, which automatically translates English sentences into Python source code.

For reference, I've posted a link to questions with tags that I'm interested in.

I have written some useful macros in sweet.js:

//for repeating if statements
macro ifs{
    rule{
        {$($x {$y...}) ...}
    } => {

        $(if($x){
            $y...
        }) ...
    }
}

//a concise way to define several different functions
macro manyFuncs{
    rule{{$($x ($y...) {$z...}) ...}
    } => {
        $(function $x($y...){
            $z...
        }) ...
    }
}

ifs {
    a{
        b
    }
    c{
        d
    }
}

manyFuncs{
    fullName(firstName, lastName) {
        return firstName + lastName;
    }
    squared(a){
        return a*a;
    }
}

Right now, I'm searching for a parser that can handle ambiguous grammars.

In theory, it would also be possible to create a very concise programming language with implicitly defined parameters:

isDivisibleBy: (foo % bar) == 0
//This is a function with 2 parameters: foo and bar.

isEven: isDivisibleBy(foo, 2)

isOdd: !isEven(param1)

firstCharacter: theString[0]

lastCharacter: theString[theString.length - 1]

firstNCharacters: theString[0:end]

firstCharacterIsLastCharacter: firstCharacter(stringParameter) == lastCharacter(stringParameter)

printEach: for current in anArray{ print current }

http://rosettacode.org/ is one of the most comprehensive programming language references I've ever found.

Optionally-typed programming languages are really awesome: they combine the type safety of languages like Java with the conciseness of languages like Python.

Some cool things that I've made:

Someday, I hope it will be possible to create a programming language that mixes code from different languages into a single file, like this:

Python {
    def foo():
        return "foo"
}
Ruby {
    def bar
        return foo + " was called from Python."
    end
}

Aug
23
comment Ways to see a list of all the tabs open in Chrome?
This topic explains how to find the list of tabs using Javascript: stackoverflow.com/questions/11915370/…
Aug
19
comment iPod does not start
This question should be moved to apple.stackexchange.com
Aug
19
comment To have Dvorak in iPod Touch
I think this question belongs on apple.stackexchange.com
Aug
18
comment Repeating alarms for Google Calendar
It appears that the CalAlarm app supports such a feature.
Aug
17
comment Install dependencies for Geany on Windows
Is MSVC one of the dependencies of the Windows version of Geany? Also, is it possible to automatically install all of Geany's dependencies using some kind of Windows package manager?
Aug
17
comment Install dependencies for Geany on Windows
No, I'm not using Microsoft Visual C++. I'm using Geany, as stated in the title.
Aug
17
comment Install dependencies for Geany on Windows
Also, I fixed the typo that led to this ambiguity. I hope the question makes more sense now.
Aug
17
revised Install dependencies for Geany on Windows
linux windows
Aug
17
comment Install dependencies for Geany on Windows
In my case, I want to be able to compile Java, C, Python, and C++ files from Geany.
Aug
17
asked Install dependencies for Geany on Windows
Aug
13
comment space required in laptop to install linux operating system
@joy1 Which distribution do you want to install?
Aug
11
comment Synchronize “purple links”
I noticed that all of the link highlighting was reset after I re-installed Google Chrome. The link highlighting doesn't seem to be saved (but this is possibly because of a bug that I encountered, which also kept the extensions from working properly.)
Aug
8
comment run multiple operating system at once
Why are you trying to avoid using a virtual machine?
Aug
8
asked Is it possible to work offline in Google Chrome (as in Firefox?)
Aug
8
comment Is it possible to run a computer program without an operating system?
Do you mean that I could somehow redefine "operating system" in a way that is inconsistent with the word's standard definition?
Aug
8
comment Is it possible to run a computer program without an operating system?
I mean "a sequence of instructions written to perform a task for a computer": the most general sense of the word.
Aug
8
comment Is it possible to run a computer program without an operating system?
Which definitions of "computer program" did you have in mind?
Aug
8
comment Is it possible to run a computer program without an operating system?
There have also been some experiments in "megalithic kernel" design.
Aug
8
comment Is it possible to run a computer program without an operating system?
Now I wonder if it's possible to run multiple programs simultaneously without an operating system.
Aug
8
asked Is it possible to run a computer program without an operating system?