1,234 reputation
61541
bio website
location
age
visits member for 3 years, 6 months
seen Dec 21 at 18:30

I'm the author of a natural language programming system called EngScript.

Some of my favorite software projects are:

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
}

Apr
10
comment Block offensive images from all sites in Google Chrome
@Insilico Which human element are you referring to, specifically? This phrase seems ambiguous.
Apr
10
comment Block offensive images from all sites in Google Chrome
Do any of these parental control programs allow blocking of Safesearch-filtered images (or at least a community-edited image filter)?
Apr
10
comment Block offensive images from all sites in Google Chrome
@Insilico Yes, the Internet does contain some imagery that many people find disturbing or violent. That's why I'm wondering whether it's possible to block all images that are ordinarily filtered by Google Image Search. (Also, I'm not concerned about whether or not Google's standard for offensiveness matches mine - I just want to use Google's safesearch filter for images on all sites.)
Apr
10
awarded  Custodian
Apr
10
reviewed Edit Block offensive images from all sites in Google Chrome
Apr
10
revised Block offensive images from all sites in Google Chrome
spelling some grammar
Apr
10
asked Block offensive images from all sites in Google Chrome
Apr
9
accepted pdf - Get current page number in Google Chrome
Mar
28
comment Find recently created folders in Windows
Should <Location_to_Search> be replaced with C:\Program Files, or should it be replaced with "C:\Program Files"? When I replace it with either of these and run the program with PowerShell, I see an error message and the window closes immediately (so that I can't even see the output).
Mar
28
comment Find recently created folders in Windows
How can I run this code?
Mar
28
asked Find recently created folders in Windows
Mar
17
comment Is it possible to download using the Windows command line?
More answers to this question can be found here: stackoverflow.com/questions/4619088/…
Mar
13
accepted Disconnect all computers that are signed in to my Google Account
Mar
13
comment Disconnect all computers that are signed in to my Google Account
I wonder if I'd remain signed-out if I changed my password, and then changed it back to the original password.
Mar
13
comment Disconnect all computers that are signed in to my Google Account
Also, I'd like to know whether it would be possible for me to disconnect all accounts without resetting my password.
Mar
13
comment Disconnect all computers that are signed in to my Google Account
Also, how do you know that this will work? :/
Mar
13
comment Disconnect all computers that are signed in to my Google Account
This is also discussed here: productforums.google.com/forum/?fromgroups=#!topic/chrome/…
Mar
13
revised Disconnect all computers that are signed in to my Google Account
added 89 characters in body
Mar
13
asked Disconnect all computers that are signed in to my Google Account
Mar
1
comment Automatically hibernate Google Chrome tabs
Also, there is an extension called The Great Suspender that can do this as well. It appears to be the most sophisticated of all the options I've seen.