1,229 reputation
61541
bio website
location
age
visits member for 3 years, 6 months
seen 59 mins ago

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
}

Mar
1
comment Automatically hibernate Google Chrome tabs
Relevant search results for this question can be found here (using a regular expression search): google.com/…
Mar
1
comment Automatically hibernate Google Chrome tabs
Also, the TabMemFree extension may be able to do this: lifehacker.com/5891916/…
Feb
22
comment Which files are opened by a specific application?
Related question (with relevant answers to this question): stackoverflow.com/questions/15708/lsof-equivalent-for-windows
Feb
22
comment Any Windows software that can remember running programs, contents of Notepad, etc. in case of unexpected shutdown?
It might be possible to generate a list of programs and files that are currently open, and use that list to generate a shell script that re-launches the programs at startup. See here: superuser.com/questions/48498/…
Feb
19
comment Search for menu bar commands on Windows 7
@naxa I've noticed it in Mac too (for some applications, such as Abobe Illustrator). Is it available for all Mac applications, or only some of them?
Feb
18
comment Automatically hibernate Google Chrome tabs
@w3d I still need to automatically hibernate tabs that are using too much memory. I haven't yet found any other Chrome extensions that can do this, but it might be possible to write one.
Feb
18
comment Automatically hibernate Google Chrome tabs
Is the TooManyTabs extension able to suspend tabs automatically when a large number of tabs are open, or does it need to be done manually?
Feb
18
comment Automatically hibernate Google Chrome tabs
The TooManyTabs extension for Chrome is able to suspend idle tabs. I'm not sure if it does this automatically for tabs that have been open for a long time.
Feb
18
asked Automatically hibernate Google Chrome tabs
Feb
17
revised Allow anyone to download any file from my computer
added 190 characters in body
Feb
17
comment Allow anyone to download any file from my computer
@MDMoore313 Yes, it would be very risky to do something like this, and would require extreme caution.
Feb
17
comment Allow anyone to download any file from my computer
At first, it didn't occur to me that this might be considered software piracy. I hope I wouldn't be thrown in jail for sharing the contents of my hard disk online - that would be extremely unfair. :/
Feb
17
accepted Allow anyone to download any file from my computer
Feb
17
comment Allow anyone to download any file from my computer
In that case, it might be better to use a free operating system (such as Linux) for this purpose.
Feb
17
comment Allow anyone to download any file from my computer
This wouldn't be a security concern if I didn't have any personally sensitive information on my hard drive. It would be useful to allow anyone to download any file from my computer at any time.
Feb
17
asked Allow anyone to download any file from my computer
Feb
14
comment My Google Chrome extensions have all stopped working
It's also possible that it happened because I enabled some experimental settings under about:flags.
Feb
14
comment My Google Chrome extensions have all stopped working
@Enigma All of my Chrome extensions are working again, and now I don't know why they stopped working in the first place. However, I have sometimes encountered this problem after enabling experimental settings in about:flags. Try reinstalling Chrome if this happens to be the case.
Feb
10
comment Is it possible to set Google Docs as the default text editor on Windows?
It looks like it might be possible to open local documents using Google Docs. Actually, there's a program called GDocsOpen that does exactly that. :)
Feb
10
asked Is it possible to set Google Docs as the default text editor on Windows?