Live data from Hacker News

Introducing Tweet-a-Program

blog.wolfram.com

51–55 of 55 posts

Re: Introducing Tweet-a-Program

#51

Earlier quoted context omitted.

It uses raw lists as the data structure for everything (including code) and has enormous math/sci and presentation infrastructure. Every part of the system can easily talk to any other part of the system. Because of this you can just throw things together and get great results, where in other systems you might need to use external libraries or otherwise have to deal with high-ceremony architecture (I'm looking at you…

You can only "easily" "throw together" things if you have any clue about a) where to find things, and b) how you can make them fit together. The problem with Mathematica is that neither of these is easy. I mean, look at their literal Hello World example: GeoGraphics[Text[Style["Hello!", 150]], GeoRange -> World] In any other language, if I wanted to write some text on a graphic, I would find a routine to load an imag…

That's because they were showing off the functionality of GeoGraphics. To do that for general images you would just load an image and place text on top of it, with a function like Overlay or ImageCompose:

    img = Import["c:/blah/blah.jpg"];
    ImageCompose[img, Rasterize["HELLO"]]
That's the same Import you'd use if you wanted to read a webpage through a URL, etc.

You're right that it might not be obvious what to search for, but in this case you would search for "image" or "importing" or "overlaying" and you'd figure it out.

Mathematica uses a 'compositional' model like some other functional languages, as opposed to a 'memory' model like system languages, so that could take some getting used to if your background is system languages.

Re: Introducing Tweet-a-Program

#52

I'd really like an explanation of what's so amazing about this language. I saw the closing keynote today at Strangeloop and I can't understand why people are so excited. The language is proprietary and I don't feel like it's something I would actually use myself. The impression I got was that this project is an inventor's dream, which he has obviously obsessed over for some time, and it is an impressive feat, it just…

From what I can tell, it seems like a quirky lisp with a great set of libraries, and a very integrated IDE. Is there more to it?

That's about right. It's somewhat of a superset of most languages, with Lisp chosen as its programmatic subset of choice. And its libraries are huge. Something like a few thousand functions. And the IDE uses the same language, so you can programmatically construct UIs. The key in all of this is that everything uses the same data structure.

In previous versions the data stuff was not impressive, but with the recent versions it's starting to come into par with the rest of the language.

Re: Introducing Tweet-a-Program

#53
post #4

I want to get excited about Wolfram and Mathematica again. All of their blog posts are rather informative great reads. But then I head over to the pricing page and am reminded of why I love open source tools.

If it's about "ethics", that makes sense. But if price is what prevents, say, a software dude in the bay area from trying out Mathematica, well that's just l, o, l; i, m, o.

Re: Introducing Tweet-a-Program

#54
post #11

Ahh! I went to his SXSW talk this year and was absolutely entranced with the Wolfram language. It seemed like a real step forward in innovative thinking and actual "natural language" programming, but I was sad it's proprietary. I think the power of it is really undervalued - using all the knowledge of the wolfram-alpha engine to create objects? Such a neat idea! Imagine if Google built a similar language based on the…

We had it already, but the world wasn't prepared for it.

I experienced the same feeling when I got to work in Smalltalk back in 1996 and a few years ago started gathering information about Lisp machines and the systems developed at Xerox PARC.

Re: Introducing Tweet-a-Program

#55
post #11

Ahh! I went to his SXSW talk this year and was absolutely entranced with the Wolfram language. It seemed like a real step forward in innovative thinking and actual "natural language" programming, but I was sad it's proprietary. I think the power of it is really undervalued - using all the knowledge of the wolfram-alpha engine to create objects? Such a neat idea! Imagine if Google built a similar language based on the…

In some sense it is surprising that Google hasn't done this already. After all, Mozilla has seen fit to work on Rust, which will soon replace C++ (god willing). But if you're organizing the world's information, don't you need a programming language that can work with that information in a first-class way?

> which will soon replace C++

In what sense? If you mean traditional business software, maybe.

If you mean real systems programming, OS drivers and such, only when an OS vendor integrates it into their SDK.

That is how C and later on C++, pushed away all the other alternatives for systems programming.

Post reply on HN