News for hackers. Stuff that matters.
Re:The Scotch programming language - my Christmas break 2010... by jbr on Friday December 24, 2010 @03:44PM (#2037973)
This looks like a really cool project/language. How do I build it? Does it build on OS X?

--

I'd love to "watch" the project on github, but alas it's stranded on the island of google code. Check out this [1] basho blog entry on why they chose github over bitbucket — most of the reasoning applies to google code as well. I'm not affiliated with github, by the way, just a happy user.

For a project like this, the concept of "watchers" isn't a vanity metric. I've been working on a lisp->javascript language and have found github watchers to be surprisingly motivating and encouraging.

[1] http://blog.basho.com/2010/11/11/a-few-more-details-on-why-w...

Re:The Scotch programming language - my Christmas break 2010... by bendmorris on Friday December 24, 2010 @09:15PM (#2038391)
Unfortunately, I don't have a Mac, so my ability to support Mac users is limited at the moment. Scotch should build from source just fine if you install GHC and use Haskell's Cabal tool to download a few extra packages - haskeline and executable-path are the two I can think of at the moment that are needed.

The command to build is ghc --make scotch. Just run the executable that's produced. Let me know if you run into any problems and I'll see if I can help.

As far as Github, never used it, as I've always been a SVN guy - I'll have to look into it after the holidays are over. Thanks for the suggestion.

Re:The Scotch programming language - my Christmas break 2010... by yawniek on Saturday December 25, 2010 @06:33AM (#2038830)
cool stuff! got it working under os x. deps are: haskeline, executable-path and Decimal
Re:The Scotch programming language - my Christmas break 2010... by bendmorris on Tuesday January 04, 2011 @03:22PM (#2068299)
I took your advice. Scotch officially moved over to Github - https://github.com/bendmorris/scotch
Re:The Scotch programming language - my Christmas break 2010... by effigies on Friday December 24, 2010 @01:32PM (#2037749)
This is kind of neat. It seems like it'd be useful as a more easily debugged Haskell.

I'd be more inclined to actually play with it, though, if it accepted a superset of Haskell, which allowed arbitrary IO tainting. So I might write:

    do
        pure code
        {- Scotch debug statements
        ...
        -}
        pure code
And then just dump it into the Scotch compiler/interpreter when I ran into issues.

Of course, this would only work if you could guarantee semantic equivalence to the Haskell except in those debug bits.

Re:The Scotch programming language - my Christmas break 2010... by Miky on Friday December 24, 2010 @05:10PM (#2038098)
"A superset of Haskell, which allowed arbitrary IO tainting" doesn't really make any sense with Haskell's semantics, unless you're talking about unsafePerformIO, which already exists.
Re:The Scotch programming language - my Christmas break 2010... by bendmorris on Friday December 24, 2010 @11:12PM (#2038505)
Thanks for the comment. One of my main goals was definitely to make an easier-to-debug and easier-to-throw-things-together-quickly-in functional language. To help accomplish this goal, there are some other significant differences from Haskell, such as dynamic/weak typing and cleaner syntax - I think that some aspects of Haskell's syntax are barriers to adoption and comprehension, so I'm going for a more Python-esque "readable pseudocode" syntax as much as possible. So, there will never quite be equivalence to Haskell. I think your idea would make an interesting project as well, and as a Haskell user I'd definitely use it.
Re:The Scotch programming language - my Christmas break 2010... by batterseapower on Friday December 24, 2010 @06:16PM (#2038215)
You can "printf debug" Haskell code pretty well using 'trace' (http://hackage.haskell.org/packages/archive/base/latest/doc/...) which was designed for the purpose.

The lack of gdb support for Haskell is very irritating, but it seems you won't get that with Scotch at the moment either.

Re:The Scotch programming language - my Christmas break 2010... by wccrawford on Friday December 24, 2010 @02:40PM (#2037866)
Wow. That has some awesome concepts. Keep up the good work!