Better HN
topnewbestaskshowjobs
Log inSign up

Mathnerd314

3,006 karma · joined Nov 1, 2009 (17y ago) · 1,339 submissions

Making the ultimate programming language https://mathnerd314.github.io/stroscot/

In the past I developed SuperTux (http://supertux.lethargik.org) when I was bored.

Submissions

1321.

The science of Santa(newscientist.com ↗)

1 points · by Mathnerd314 · 16y ago · discuss

1322.

By Thought Alone: Mind over Keyboard(hplusmagazine.com ↗)

3 points · by Mathnerd314 · 16y ago · 1 comment

comment 16y ago · link · parent

This site has been up for years, and never before been submitted? I should scrape my history...

comment 16y ago · link · parent

On another thread, I thought it might be a good idea to keep around who voted for what. You use a recommendations system (perhaps from the Netflix contest) to determine how much you will like other comments, and then filter based on that. This might result in something similar to swarms; the idea is that your "swarm," the group of people where you like their comments and you like theirs, is the only source of intelligent conversation.

comment 16y ago · link · parent

The example with function m in their "white paper" (http://www.supercompilers.com/white_paper.shtml) is still not optimized fully. One first inlines the successive values of y:

   if (x0<=0) y=0;
    else 
    if (x0>=1) y=1;
    else {
        if ((2-3*x0)<=0) y=0;
        else 
        if ((2-3*x0)>=1) y=1;
        else {
            if ((2-3*(2-3*x0))<=0) y=0;
            else 
            if ((2-3*(2-3*x0))>=1) y=1;
            else {
                ...
                    else {
                        y = (2-3*(2-3*(2-3*(2-3*(2-3*x0)))));
    }   }   }   }   }
These can be solved for x0.

   if (x0<=0) y=0;
    else 
    if (x0>=1) y=1;
    else {
        if ((2/3)<=x0) y=0;
        else 
        if ((1/3)>=x0) y=1;
        else {
            if (x0<=(4/9)) y=0;
            else 
            if (x0>=(5/9)) y=1;
            else {
                ...
                    else {
                        y = (2-3*(2-3*(2-3*(2-3*(2-3*x0)))));
    }   }   }   }   }
Obviously, because floating point arithmetic is not distributive or associative (or exact), the actual constants will be slightly different from 1/3, 2/3, etc.

This performs an average of .004 subtractions and multiplications compared to my estimate of .988 for their algorithm.

Since this will probably not give strictly matching results for values close to 1/3, 2/3, 4/9, 5/9, etc., this is technically "super optimization" rather than supercompilation.

Are there any optimizers you know of that could get this far?

comment 16y ago · link · parent

Of course, it's pre-alpha currently.

1327.

VideoLAN Movie Creator(vlmc.org ↗)

3 points · by Mathnerd314 · 16y ago · 2 comments

1328.

Personal observations on the reliability of the Shuttle by R. P. Feynman(science.ksc.nasa.gov ↗)

2 points · by Mathnerd314 · 16y ago · discuss

comment 16y ago · link · parent

The question this brings up is whether /. is turning into Hacker News.

comment 16y ago · link · parent

Chrome doesn't want Adblock, so they don't put in the hooks for NoScript to work either. (or else they're just slow...)

1331.

Why Chrome has No NoScript(hackademix.net ↗)

39 points · by Mathnerd314 · 16y ago · 26 comments

comment 16y ago · link · parent

Other: Squirrel

comment 16y ago · link · parent

Free software. (but only if you confuse the two meanings of free)

comment 17y ago · link · parent

Next up: Google Public ISP

(vertical integration)

comment 17y ago · link · parent

That's good for a few posts, but what happens if you run out of things to say? (or are you saying that I should only start a blog if I have lots of things to say?)

1336.

Ask HN: How do you start a blog?

6 points · by Mathnerd314 · 17y ago · 7 comments

comment 17y ago · link · parent

"Better ways..." such as using IE8?

The key thing about NoScript is that it is far easier to allow a common subset of safe actions rather than to deny every possible malicious action.

Consider why people like using sudo on *nix.

1338.

Major IE8 flaw makes 'safe' sites unsafe(theregister.co.uk ↗)

7 points · by Mathnerd314 · 17y ago · 10 comments

comment 17y ago · link · parent

It might be interesting to keep every vote for each comment and use something like the Netflix prize algorithm to calculate whether you'd like the comment. Hiding comments would then be based on personal preferences, rather than the community at large. If nobody at all likes the comment, (i.e., it's spam or something), then it can get removed automatically. Of course, this takes a lot of work to implement, and it might require HN to have a longer privacy policy...
1
4142434445