News for hackers. Stuff that matters.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by masklinn on Thursday April 05, 2012 @08:45AM (#3802294)
As I noted last time, this is really, really similar to the Self environment (this demo makes it even clearer). More typing, but cleaner (Morphic isn't exactly sexy, and the Self environment's UI is quite messy and could be significantly improved I think — especially on OSX where you're forced to deal with Morphic itself and with the fugly and shitty X server).

I really think Self on iPad could be a nice beastie, it is way more visual and touchable than even an adapted text editor like Lisping (though not a visual programming environment)

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by lispm on Thursday April 05, 2012 @09:31AM (#3802445)
I don't think it has much to do with Self.

It looks more like the structure editors of the 1970s adapted for a tablet. Mid/end 70s several structure editors were written in Lisp, for example DEdit for Interlisp-D.

See chapter 11.3, Using The Lisp Structure Editor http://www.bitsavers.org/pdf/xerox/interlisp/3102300_interlD...

and especially

Chapter 16. List Structure Editor http://www.bitsavers.org/pdf/xerox/interlisp/3101273_Interli...

There were also others which worked over textual terminals.

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by babarock on Thursday April 05, 2012 @07:50AM (#3802174)
Wow! I've had this idea in my head for a little while now. Never actually took the time to do it. I'm so thrilled someone did!

If only it was available on Android. Why, oh why did I not go Apple when I had the choice...

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by jcromartie on Thursday April 05, 2012 @08:30AM (#3802255)
Same here. I think everybody who has written Lisp and used a tablet had the same idea.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by rbarooah on Thursday April 05, 2012 @08:50AM (#3802315)
You still have the choice. You can always sell your Android tablet.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by rauljara on Thursday April 05, 2012 @09:42AM (#3802480)
Does anyone who's bought it have a sense of how saving files works? Is it easy to get them off of the iPad, or are they stuck there? There was no mention of that on the app store page.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by bitdiddle on Thursday April 05, 2012 @10:01AM (#3802543)
files go in and out thru email, seems to work well
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by rauljara on Thursday April 05, 2012 @10:06AM (#3802569)
Thanks. I suppose ssh or dropbox integration would be a little too much to hope for in a proof of concept app. I will have to buy it and leave feedback encouraging development in that direction.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by ConstantineXVI on Thursday April 05, 2012 @10:46AM (#3802731)
It has one-way (incoming) dropbox support via the dropbox app already.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by Jun8 on Thursday April 05, 2012 @01:12PM (#3803517)
I'm learning Scheme by myselfy using "The Little Schemer". Do you think something like this would be a good tool for a beginner like me, or would it be confusing?
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by jerrya on Thursday April 05, 2012 @03:54PM (#3804299)
In the mid-80s there were two kinds of lisp machines.

Xerox's machines came with a parse tree editor similar in concept to this one. You were always working with the specific parse tree. A terribly powerful concept.

The Symbolics machines came with emacs and traditional edit a file, load/compile a file kind of editing.

I believe the Symbolics machines were much more successful in the market, however, both kinds of machines are pretty much dead, but fwiw, the emacs style still survives.

That said, on an iPad I think this system might be quite nice.

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by omaranto on Thursday April 05, 2012 @09:58AM (#3802533)
Does anyone know about the underlying interpreter or compiler? Do they use a good one or did they write there own (which is then unlikely to be as good as older more developed options)?
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by bitdiddle on Thursday April 05, 2012 @10:01AM (#3802540)
Tiny Scheme 1.40
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by seven800 on Thursday April 05, 2012 @09:20AM (#3802408)
Is there a reason why it's not available in the Republic of Ireland, or is it just that app releases take time to percolate through App Store territories?
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by steeleduncan on Thursday April 05, 2012 @11:38AM (#3803027)
No reason I am aware of. If it is still like that tomorrow, please get in touch with me and I'll follow it up.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by seven800 on Thursday April 05, 2012 @05:29PM (#3804730)
Looking good now, nice work
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by 46Bit on Thursday April 05, 2012 @10:12AM (#3802598)
Along a similar line, me & dpkendal built a Scheme REPL for iMessage. Just iMessage to [email protected] (a bit of documentation is in the works).
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by gauravk92 on Thursday April 05, 2012 @10:47PM (#3805751)
I tried a standard (+ 5 4) with no reply. :(
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by 46Bit on Friday April 06, 2012 @05:51PM (#3809113)
Sorry, had a bit of trouble whilst improving it. Back up now.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by gauravk92 on Monday April 09, 2012 @04:51PM (#3819165)
Got a reply, awesome service. Thank you!
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by vannevar on Friday April 06, 2012 @01:30PM (#3808056)
What would be truly awesome would be a built-in API for Webkit so that you could post to an arbitrary URL and parse the response.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by BrainScraps on Thursday April 05, 2012 @08:53AM (#3802323)
I assume there is some way to export or sync the (virtual?) filesystem to another location.

Very cool project, though!

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by ConstantineXVI on Thursday April 05, 2012 @09:02AM (#3802350)
I doubt it, Apple forbids apps from downloading executable code (including your own). If it's anything like Codea[1], you will have to copy/paste your code in and out of the app.

EDIT: Per the manual: "Lisping registers the .scm filetype with iOS so that you can import Scheme source into lisping by emailing a .scm file to your iPad." You can use Dropbox, etc. to get code in/out as well. Given Apple's history, doubt this will survive long.

[1] A Lua IDE and game engine for the iPad http://twolivesleft.com/Codea/

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by BrainScraps on Thursday April 05, 2012 @12:03PM (#3803165)
I always feel like a fuddy-duddy telling people that not having access to the filesystem gives me the willies. But this sort of thing reinforces the validity of my reticence.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by Tichy on Thursday April 05, 2012 @09:08AM (#3802375)
Is that kind of thing allowed on iOS by now? I thought it wouldn't be.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by codedivine on Thursday April 05, 2012 @09:52AM (#3802513)
You can distribute interpreters. However restrictions remain:

1. You cannot distribute an interpreter that can be used for running program code downloaded from the internet. So, for example, your user can save their script and use it themselves but they cannot give it to others (except perhaps through the app store bundled as an app itself).

2. Your interpreter cannot dynamically generate binary code so JIT compilers that generate binary code on-the-fly are not allowed.

edit: For example, LuaJIT cannot do JIT compilation on iOS but it can do JIT compilation for higher performance on Android.

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by mistercow on Thursday April 05, 2012 @10:29AM (#3802664)
Aren't JIT compilers technically pretty infeasible on iOS anyway because of security restrictions?
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by codedivine on Thursday April 05, 2012 @12:15PM (#3803235)
Yes. 1st restriction above is more for business reasons, so that there are no ways to circumvent the app store, while 2nd is a technical restriction on 3rd party apps for security purposes. Apple apps (like Safari) can obviously do JIT compilation.

However, I speculate even the 2nd restriction is partly for business reasons because it prevents some third-party toolkits (such as those compiling to LLVM) from achieving high performance. You might remember that Adobe was compiling Flash to LLVM to allow devs to port their Flash apps to iOS, but since LLVM cannot do proper JIT compilation on iOS, it will reduce performance.

FWIW: WinRT imposes both the restrictions above. Android technically doesn't impose either for sideloaded apps. But if you want to distribute app through Google Play, the 1st restriction is indeed imposed.

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by mistercow on Thursday April 05, 2012 @01:15PM (#3803534)
>Apple apps (like Safari) can obviously do JIT compilation.

I hadn't considered this before, but that means that you could potentially use JS as an intermediate representation for other languages in order to leverage Safari's JIT under iOS. Probably too inefficient to be worthwhile for any language that isn't a dialect of JS, but an intriguing concept nonetheless.

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by nickmain on Thursday April 05, 2012 @04:14PM (#3804398)
The ability to execute from writable memory is enforced at the process level, and only Safari and a few other Apple apps get that permission.

Javascript in Safari is jitted - but JS in a UIWebView used by a third-party app is not.

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by jmccaffrey on Thursday April 05, 2012 @05:14PM (#3804669)
Gotta love android, you can cheerfully mprotect away the write-protection on executable pages. I've done some dynamic stub code removal that way. Worst case, you can only hose your own process.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by mistercow on Thursday April 05, 2012 @06:18PM (#3804940)
Well that's a relief. Now I don't have to feel bad about not turning that idea into a proof of concept.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by darkf on Friday April 06, 2012 @03:15AM (#3806293)
I only have two problems with this: It's $7, and it requires iOS 5. Now this might not be a problem for newer iPad owners but I still have no reason to upgrade my first-gen to iOS 5.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by sjm on Thursday April 05, 2012 @11:03AM (#3802833)
Bought it. It is very cool, but please change the default font (or let us change it).
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by berntb on Thursday April 05, 2012 @08:55AM (#3802330)
Looks neat, I bought it.

I'm toying with the idea of getting an aws server and run an ssh client there, to get Emacs and bash. With dropbox installed on the server and an external keyboard -- I could maybe skip my heavy portable?!

Anyone has experiences/advice? [edit: E.g. git/svn integration instead of the Dropbox on the server? Or should I use an ssh app for file sync?]

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by SoftwareMaven on Thursday April 05, 2012 @11:54AM (#3803115)
I thought about that a lot before my last laptop upgrade. If I hadn't been buying a new laptop, I would have done it; but with a new laptop at play, I decided a MacBook Air would have roughly the same weight and far better ergonomics than an iPad with a keyboard.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by mgcross on Thursday April 05, 2012 @10:50PM (#3805765)
Actually, decoupling the display from the keyboard (iPad with BT KB) could result in a much more ergonomic setup. But in all honesty, the only time I use an iPad for dev is when my air is charging. Even Textastic pales in comparison to a hard keyboard/mouse.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by berntb on Thursday April 05, 2012 @01:58PM (#3803737)
You are probably correct, but... well, what is the fun in that? :-)

I found this http://yieldthought.com/post/12239282034/swapped-my-macbook-...

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by berntb on Tuesday April 17, 2012 @07:30PM (#3855583)
I got an answer that looks good in another place. When I have some more time, I'll experiment a bit.

http://apple.stackexchange.com/questions/48043/how-to-ssh-fr...

Re:Edit scheme on your iPad via the parse tree: Lisping laun... by uniquesnowflake on Thursday April 05, 2012 @08:18AM (#3802223)
First of all, this is a great idea. I wanted to play around with it but the price tag is way too steep for a toy.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by rbarooah on Thursday April 05, 2012 @08:51AM (#3802317)
Too steep for a next generation programming app, but not too steep for a coffee and a muffin.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by tjr on Thursday April 05, 2012 @10:08AM (#3802584)
Not even too steep for a toy; a basic Duncan butterfly yo-yo now costs $6.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by MatthewPhillips on Thursday April 05, 2012 @08:25AM (#3802238)
Toy for some perhaps, also seems like a fantastic way to learn Scheme. Worth the price to learn something that valuable, in my opinion.
[deleted]
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by MatthewPhillips on Thursday April 05, 2012 @08:41AM (#3802285)
I really don't get this at all. People spend $30 on programming books with the hopes of learning something and don't blink an eye about it. $7 for something that removes the "this is impossibly complex" stigma that programming has to non-programmers? Please, I would have loved to have something like this when I was copy/pasting Pascal into a text editor with little idea what it was doing.
Re:Edit scheme on your iPad via the parse tree: Lisping laun... by reitzensteinm on Thursday April 05, 2012 @08:55AM (#3802331)
I deleted my comment because I didn't think it really added to the discussion that much, but since you've replied I might as well too.

You're right, $7 shouldn't represent any barriers. You'll spend more on the coffee you drink while playing with it. It's easily disposable for anyone who can afford an iPad.

I was just saying that I think it will, and that's a shame.