6 ms·
Arc's Out
- Todd 19y agoAt long last...
- tjr 19y agoAnd there was much rejoicing!
- pg 19y agoBTW, most existing News.YC usernames are reserved (with the current News.YC password) on arclanguage.org. The UI should also be familiar...
- Todd 19y agoWorks like a charm.
- oditogre 19y agoHandy, thanks.
- shiro 19y agoIs the user database is shared, or just copied? I forgot my news.yc password and wonder if resetting password in news.yc propagates to the arc forum.
- pg 19y agocopied, but I'll reset your pw on both if you want
- vdm 19y agoNice, but I registered me2 because I didn't know this. A note to let me know would help.
- buro9 19y agoIt's true, the familiarity goes down to sharing the same favicon.ico
- oditogre 19y agoEdit: Ontopic: "So while Arc is not the perfect Lisp, it seems to be better for at least some kinds of programming than either of the leading alternatives." What kinds did you have in mind? Offtopic, but what exactly is that a picture of? I see chairs, and a face in the background (looks like a reflection) - is it a picture taken through a window? Why is it there?
- sri 19y agolooks like pg in europe taking the picture of a old hotel from the outside
- pg 19y agoWebapps like this one. The new picture on the frontpage of pg.com is a self-portrait shot in/through a window at the Grand Trianon, in the grounds of Versailles. I noticed that if I held my head in the right place I could line up my eyes with the wallpaper pattern.
- comatose_kid 19y agoYou hacked Proctor and Gamble's website? Cool!
- as 19y agoI had to tilt my monitor to see the pattern. Then it's pretty funny.
- axod 19y ago"Which is why, incidentally, Arc only supports Ascii." Is this why unicode is absolutely broken on ycnews? :( Seems a shame not to be even to use characters like pi in comments/titles IMHO Does a pound sign work? GBP edit: no it doesn't. Seriously, if done right unicode support doesn't have to take that long. Especially if you're building something without the need for backward compatibility. Just my 2c.
- mechanical_fish 19y agoNow is your chance. The source code is just sitting there. ;)
- axod 19y ago1. Spend time fixing major deficiency in language that prevents it from being usable. 2. Use language. Maybe I'm being harsh :) I'm sure it's great really, but these days people expect unicode support on websites.
- far33d 19y agoThese days, most people don't even know/care what Unicode is.
- Hexstream 19y agoThese days, most people don't even know/care what functional programming is.
- axod 19y agoWhat??? I kinda like being able to talk about things as fundamental as money, without having to use (GBP). I'd like to use currency symbols for a start, what about math? I'd like to use pi occasionally. How about I want to add a nice 'tm' or (c) sign. People care if a website is using correct unicode characters or not. Perhaps they don't know/care because the majority of websites now are unicode, and just work.
- 19y ago
- mynameishere 19y agoI predict a goldrush of people writing open source frameworks, widget libraries, and blog software.
- byrneseyeview 19y ago(load "blog.arc")
- gills 19y agoCongratulations! I'm looking forward to 'exploring' it.
- gills 19y agoWhat? Described as "for exploratory programming".
- Hexstream 19y agoPG: "I am a fairly representative Lisp hacker" I thought representative Lisp hackers liked long descriptive names over short cryptic ones? ;P PS: I feel my karma's going to hell in 3, 2, 1... edit: It wasn't a challenge. It wasn't "oh, I'll pretend to think my karma will go down to look like a cool rebel". Hope that clears things up.
- curi 19y agoI would have upmodded you, if you hadn't made the comment about your karma going down.
- paulgb 19y agoI wouldn't have upmodded you, if curi hadn't made the comment about not upmodding you.
- curi 19y ago+1: I see what you did there.
- yters 19y agoI commented because this seemed like an opportunity to say something funny and cleverly self referential, but I guess this'll get me modded down.
- Zak 19y agoIf you look at Arc's source, it certainly seems like PG prefers short names everywhere - it's more like what I've seen from Haskell people. I generally prefer medium-long names. Scheme's call-with-current-continuation is too long. Arc's ccc is too short. Ruby's callcc is just right.
- pius 19y agoVery cool . . . it'll be nice to play around with Lisp again. What's the license, by the way?
- curi 19y agoThis software is copyright (c) Paul Graham and Robert Morris. Permission to use it is granted under the Perl Foundations's Artistic License 2.0.
- dag 19y agoSo...what happens to Common Lisp now? As well, any bets on who writes the first book?
- koolmoe 19y agoCommon Lisp will keep chugging right along. You could ask on comp.lang.lisp if you wanted some really well-informed opinions wrt the impact of Arc on CL, but I wouldn't advise it unless your skin is thick and flame-resistant.
- rms 19y agoI couldn't resist. http://groups.google.com/group/comp.lang.lisp/browse_thread/thread/6bbce408fd6a10fa http://groups.google.com/group/comp.lang.lisp/browse_thread/...
- mnemonicsloth 19y ago> How wrong is it to regard [Arc] as a new Morris worm that infects > MzScheme installations with unhygienic macros and empty lists that > serve as false?
- binarykeats 19y agoA somewhat different question is its impact on Scheme. My bet is mzscheme gets pretty popular this year.
- mcxx 19y agoDo you really think that Arc is a competitor for CL?
- mnemonicsloth 19y agoMaybe not. But unlike CL, Arc has a snowball's chance in hell of competing with Java.
- pg 19y agoIt is for me. I literally wrote it so I wouldn't have to use CL anymore.
- dcurtis 19y agoArc is cool. I can't wait to see what it evolves into. P.S. Do you have a personal vendetta against the W3C, or something?
- deleted 19y ago[deleted]
- deleted 19y ago[deleted]
- deleted 19y ago[deleted]
- deleted 19y ago[deleted]
- Xichekolas 19y agoYou probably missed the thread here on YC News he is mostly like responding to... I would link you to it, but it was honestly pointless to begin with... and I'm lazy.
- brett 19y agoMan, I had shit to get done this afternoon.
- vlad 19y agoI called it! http://news.ycombinator.com/item?id=98502 http://news.ycombinator.com/item?id=98502
- mechanical_fish 19y agobash-3.2$ ls | xargs -n 1 wc -l 1093 ac.scm 535 app.arc 1496 arc.arc 16 as.scm 107 blog.arc 48 brackets.scm 61 code.arc 2 copyright 360 html.arc 7 libs.arc 80 pprint.arc 119 prompt.arc 462 srv.arc 223 strings.arc 4609 lines of code as of today.
- bayareaguy 19y agoI would suggest including a copy of the tut.txt ( aka wget http://ycombinator.com/arc/tut.txt http://ycombinator.com/arc/tut.txt ) too.
- tlrobinson 19y agowhat's wrong with wc -l *
- mechanical_fish 19y agoNothing! Nobody said I was going to be a highly efficient Arc programmer. :)
- eusman 19y agoi wonder how many lines were optimized/stripped until reaching this number
- pg 19y agoI usually measure code trees rather than LOC. There's a fn (called codetree) in there somewhere to do it.
- davidkellis 19y agoLooking through the tutorial (http://ycombinator.com/arc/tut.txt http://ycombinator.com/arc/tut.txt), I think it's beautiful.
- lg 19y agoJust read the first half, very good explanations in minimal verbiage. Arc looks beautiful here even if only for the de-parenning of so many CL operators (i.e. let). In fact I'm a little sad to still see so many parens in the code... I guess my whitespace-significant dreams were overreaching.
- bct 19y agoHuh. I would have said just the opposite about HTML; seems to me that slapping down some structural divisions and worrying about layout later is much more exploratory than starting with the layout.
- euccastro 19y agoIf your HTML is generated programatically, you can roll your own mechanism for separation of concerns in the source. I see merits in standards compliance, but making my life easier is not necessarily one of them.
- olavk 19y agoHis point is that it is more "exploratory" not to use semantic markup, since you might not know the semantics of the document structure while you are developing. It seems backwards to me though, surely the most "semantic-free" approach is to default to divs rather than tables to structure the markup.
- philh 19y agoIt's all meaningless unless you intend it to have meaning. But tables are probably easier to work with. (That may change in future, but right now I don't think any mainstream tools assume markup is semantic. And in any case, tables aren't much moreso than divs.)
- bct 19y ago> right now I don't think any mainstream tools assume markup is semantic. Depends on what you're talking about; anything that uses microformats does, for example. Tools generally can't assume that tables are semantic, because they've been so heavily abused. That's not going to change though. Perhaps the best solution is a <yes-this-is-really-a-table> element. > tables aren't much moreso than divs. Would you say that a table in a relational database isn't much more semantic than a string of bytes?
- parenthesis 19y ago(while 1 (pr "This is so exciting! "))
- parenthesis 19y agoOf course, while 0 would work just as well; my brain was half in C-mode.
- aristus 19y agoWow. $ wc -l arc0/* 1093 ac.scm 535 app.arc 1496 arc.arc 16 as.scm 107 blog.arc 48 brackets.scm 61 code.arc 2 copyright 360 html.arc 7 libs.arc 80 pprint.arc 119 prompt.arc 462 srv.arc 223 strings.arc 4609 total
- jsjenkins168 19y agoGWT also uses tables for layout extensively in its compiled output. I dont think its an ugly hack, as long as you can learn and work around ambiguities with table cell height between browsers. But then I guess that is all part of exploratory programming.
- tlrobinson 19y agoTables for layout is awful in terms accessibility and semantics, among other things. Tables are meant for tabular data, and when you use them for layout it breaks those semantics, which in turn makes it much harder for screen readers to make sense out of it. It's also just ugly, in my opinion.
- anewaccountname 19y agoName one screen reader that handles divs and doesn't handle tables.
- pius 19y agoMost screen readers handle both. The problem is that screen readers will attempt to read the contents of tables as if they were tabular data. (Surprise, surprise. :P) This turns out to be a relatively poor user experience.
- olavk 19y agoIt is a trade off. If you want to support Internet Explorer, some kinds of layout are not easily achievable without using tables. W3C cannot be blamed for the deficiencies of IE though, so I'm not sure if this is what PG is alluding to.
- Hexstream 19y agoAgreed, in fact if everyone used tables for tabular data only, we could have nice browser-supplied column-reordering and row resorting, I think. Right now that kind of thing is intractable because there's no easy way to distinguish a table-for-data from a table-for-layout. I think it could be cool to have some way of putting something in your page HEAD that means: "In this page, tables are used exclusively for tabular data: you can activate your reordering features".
- jmzachary 19y ago"We'll change stuff without thinking about what it might break, and we won't even keep track of the changes." Are you hoping to build a user community for Arc? If so, and why would you release Arc if you weren't, then why are you not interested in keeping track of changes that break things users might design/code against? Am I being stupid and missing something here? Edit: I forgot to mention something else. Congratulations and thanks for sharing Arc with the rest of us :)
- juanpablo 19y ago"Arc embodies a similarly unPC attitude to HTML. The predefined libraries just do everything with tables...." But, why should Arc libraries generate HTML at all, instead of a list?
- abstractbill 19y agoI remember reading this in "Arc at 3 Weeks" and being quite excited about it: The Scheme language sneakily increased the scope of the language designer's powers. From very early, maybe from the begining, the Scheme spec said that conforming implementations must do tail call elimination. The first time I read this, I thought "wait, can you require this in a spec?" Arc will see this increase, and raise it by some standards for profiling. I thought that was a great idea. Too few languages have good support for profiling. Did the idea get dropped? I don't see anything obviously related in arc.arc or in the tutorial.
- vegashacker 19y agoI'm sure the idea didn't get dropped cause it's pretty darn important -- and it'd be a major back peddle for PG. It certainly might have been postponed, though. I wonder if PLT Scheme's profiling tools are good enough on Arc programs (or useful at all?). I hear they have pretty good ones, but haven't used them myself. Arc might be different enough from MzScheme that the information that the PLT profiler returns on Arc programs isn't so useful.
- dawnerd 19y agoI've never looked into Lisp at all, but this actually sparked my interest.
- reitzensteinm 19y agoGoing to try it out now, but one thing really struck me in the announcement: "We'll change stuff without thinking about what it might break, and we won't even keep track of the changes." Is that really wise? What's wrong with doing a simple changelog with every modification? Since you'd expect only experienced programmers to be using Arc, you don't have to hold our hand explaining the implications of the changes - but making us diff the source would probably be a bit much. I mean it doesn't have to be verbose even. Or even tidy. This would be better than nothing: * Added a global weak reference hash map to treat any object like a hash using {} syntax, ie, (= {someobj hashindexobj} 5). * Hash idea sucked. Removed.
- curi 19y agopg has better things to do. you can maintain a website of arc changes, if you want. or set up a wiki. or diff the source and post results.
- reitzensteinm 19y agoYes, I could, but it would probably be easy to miss subtleties from just the source alone.
- mov 19y agoCongratulations PG! It's on my to-play-list ;-)
- dbrush 19y agohttp://news.ycombinator.com/whoami http://news.ycombinator.com/whoami
- iamelgringo 19y agoThanks, Paul.
- comatose_kid 19y agoPaul: Small detail - there's a minor typo in your article: "I spent a fews days" Thanks for arc.
- juanpablo 19y agoCongratulations
- akkartik 19y agoVersion control: $ git clone http://codewikia.com/arc
- deleted 19y ago[deleted]
- foonamefoo 19y agoThe function 'trues' seems like clutter when you can just write: (keep [_] seq)
- pg 19y agoThat would call the elements of seq.
- foonamefoo 19y agoOh, right.. two much python in my head, not enough lisp. Now I'm interested, what is the shortest lambda in arc that just returns the first argument? If I'm getting this right the best I can come up with is [progn _], turning my example into: (keep [progn _] seq) And thus I see the need for trues =P.
- foonamefoo 19y ago>two much python and two little english
- foonamefoo 19y agoHmm I bested it... ['(_) 0] beats [progn _] by one character, but it sure is ugly.
- bayareaguy 19y agoDoes [1 _] work?
- pg 19y agoThe shortest literal fn would be [if _]. But really you'd use idfn, not a literal fn.
- ced 19y agoSo, is this the right thread to talk about actual language design? 1. I think using cons to represent lists is an ugly hack. I mean, why should a cons only hold 2 elements? Why not generalize them to n elements, and call them lists? 2. Has anyone tried unifying macros and functions? The distinctions between the two is one of the worst part of Lisp IMO, and I don't think there should be anything fundamental about it. Otherwise, it's nice to see a new Lisp of course.
- rcoder 19y agoOkay, I'll bite... 1. Recursion and cons cells naturally complement one another. They can stand in for n-ary tuples, vectors, and arrays reasonably well for small values of n, and when your dataset gets large, well, you switch to a more efficient data structure. Hell, with Arc you even get 'push' and 'pop' as built-in functions. What exactly is the problem? 2. Again, I don't see how this is a problem. Macros are compile-time rewriting rules. In an eagerly-evaluated language like Lisp, they are pretty much a necessary evil to prevent unnecessary side-effects while still allowing for flexible syntax. I can imagine doing without them in a lazy language like Haskell, but I'm not aware of any popular, lazy languages in the Lisp family. That being said, I'm interested to know if you've working with other languages where #1 and #2 aren't a problem.
- ced 19y ago1. But what do you gain from having cons cells limited to 2 elements? I contrast cons cell list mostly to Python lists, which just seem to me to be a better abstraction... Do you think in terms of 2-element pairs or in term of lists? I guess in a way you are right, if the two are essentially equivalent, maybe there is no problem. 2. Macros come with a ton of pitfalls and limitations. On Lisp has a nice list of reasons to avoid macros. But consider if your macros are really called at run-time rather than compile-time, and you have a special operator like eval, but that evaluates in the calling context. Then you can write normal functions like this: (defmacro average (x y) (/ (+ (eval-in-caller x) (eval-in-caller y)) 2)) and (defmacro my-if (condition x y) (cond ((eval-in-caller condition) (eval-in-caller x)) (t (eval-in-caller y)))) defun can be written straightforwardly as a special case, and in fact extended so that eg.: (defun do-many-tymes (n-times ¬-evaluated body) ...) would behave half like a function and half like a macro. These run-time "macros" can be function-quoted, recursive, and have no problem with variable capture. With such a defun, you no longer need a defmacro. These are my fantasies about fixing stuff, so I won't waste anyone's time by writing more. I don't know if that could work. Macros are just so ugly... I was curious to see if PG or anyone had tried alternatives.
- bsaunder 19y ago"The most important thing is not to constrain the evolution of your ideas. So the less you commit yourself in writing to what your data structures represent, the better." Exactly! I think most developers don't get this statement. Committing yourself to data structures is like mixing cement IMHO. Once you've started this get harder to change quickly.
- allenbrunson 19y agojens alfke: http://mooseyard.com/Jens/2008/01/96-characters-ought-to-be-enough-for-anyone/ i agree with all of that.
- Tichy 19y ago"I would simply have made the language's "character" data type 16 bits wide instead of 8, and provided four trivial library routines to convert such strings to and from UTF-8 and CP-1252 encodings for I/O purposes. That's about an hour's work, and all you need for really basic Unicode support; once you have that, you" If he can do all that in one hour, I am really impressed. It would take me more than one hour alone to research the utf-8 and CP-1252 encodings. Changing regular expressions libraries to work with 16 bit, as well as the index operations for strings might take some work, too. I suppose that guy could rewrite the whole Arc within a day...
- eVizitei 19y agosigh every time I think that I know all the cool languages, somebody goes and builds a new one. ;)
- Tichy 19y agoWhat inspires me most about Arc is that it was created strictly for fun (or so I suppose). In that sense, it having no unicode support is the best feature for the time being: it is a powerful reminder that if you don't feel like doing something, it might be an option to simply not do it. It helps if you have other means to pay your bills, but still. I don't plan on using arc for the time being, but I hope that maybe I can steal some ideas from it, so I welcome it's release.
- Readmore 19y agoThe Arc tutorial is awesome! All the examples really hammer the dialect in to you. About half way through you start to realize, 'wait a minute... I can actually read this!'. Thanks PG
- extantproject 19y agoIt really is a simple and effective tutorial. I like it.
- brlewis 19y agoThis article has a lot of value besides the arc announcement; I think it should be listed among the pg essays.
- yawn 19y agoHow does Arc make exploratory programming easier than Scheme, Common Lisp, Python, etc?
- rob 19y agoHas there been any apps released with Arc yet? (aside from news.ycombinator.com)
- TheTarquin 19y agoSo I've been considering trying to get into Lisp. Any of you folks who have been playing with Arc have a sense about whether or not it would be a good dialect with which to start?