Better HN
topnewbestaskshowjobs
Log inSign up

shaunxcode

1,751 karma · joined Mar 26, 2008 (18y ago) · 893 submissions

symbolic homoiconicist

shaunxcode@gmail.com

Submissions

comment 17y ago · link · parent

Seeing as it is on MAKEzine I am upset there are not plans to build your own... Seriously that would be one hell of a weekend(s) project. Writing the software/midi stuff sounds fun too!

comment 17y ago · link · parent

I got mine right off of amazon - and yesterday I noticed you can buy it straight from the MIT press page as well.

http://www.amazon.com/Art-Prolog-Second-Programming-Techniqu... (if you click on the used link there is a hardback going for 13 bucks right now)

http://mitpress.mit.edu/catalog/item/default.asp?ttype=2&... (they use asp..? regardless brand new hardback for 65)

comment 17y ago · link · parent

Lately I have been showing a lot of younger kids how to program in scheme. This means I have been setting up a lot of older laptops with linux + dr scheme as that is the ideal environment for books like the little schemer, how to design programs etc. I have to say that it feels like there should be a MUCH lighter way to accomplish this. I understand dr scheme can do a lot of cool graphical stuff too but I would LOVE it if there was a linux distro that had nothing except for a lisp/scheme interpreter like this + ncurses dr scheme type interface. This way it would run on next to nothing hardware and not run into so many strange hic-ups w/ x on spurious hardware.

A moleskine tablet like you mention with an external rollout keyboard would be so ideal. I'm not asking for a lisp-all-the-way-down (well I would like that too) OS but it would be rad if someone rolled a x-less version of ubuntu or what not w/ the exclusive purpose of teaching/learning scheme.

comment 17y ago · link · parent

If you click on "threads" to see your comments it still shows your scores per comment.

comment 17y ago · link · parent

Will comments still change tone til they fade to nothing as they are down voted?

comment 17y ago · link · parent

In scheme does this mean all standardly available functions or just the truly fundamental special forms?

comment 17y ago · link · parent

do you need any proof readers? I have already pre-ordered but I am so excited and would love to lend a pair of eyes if you need it.

comment 17y ago · link · parent

I would answer the question in my best alan partridge voice and say "but I'm using smalltalk you bastards!"

comment 17y ago · link · parent

http://www.purevolume.com/drugshit - straight edge/hardcore band I play drums in. Recorded in one take by our friend. Lately I've been recording more life stuff with a zoom h2 and I am really happy with that.

comment 17y ago · link · parent

No luck for me either. I added factorial, saved, saved, image, loaded image (it shows factorial in transcript being loaded). Try it out in workspace and nothing. It was interesting to "show it" on an anonymous block and see the javascript function it is creating:

  [:x | (x + 1) + x].

  function (thisObject, x) {
    x['perform:with:']("+", 1)['perform:with:']("+", x);
  }

comment 17y ago · link · parent

I am curious to see what the macro system is like but I do not have any windows machines at my disposal. Time for virtual box!

comment 17y ago · link · parent

you'll end up with the inverse problem when you go back to infix notation though - be warned! when I see func(arg) I feel like I am on the inside of a star fruit.

comment 17y ago · link · parent

I do not feel that it is fair to dismiss php as merely a "template engine". It probably outgrew such a small scope of use around 3x. On a more philosophical level: the reason programmers long to create/control/extend the platform on which they exist is because they are programmers. I think once you reach this point you should go for it but also be prepared to move onto a programmable programming language.

comment 17y ago · link · parent

It's because you are missing the other part of the and

  (if (and (not (null suggest-key-bindings))
           (null executing-kbd-macro)) 

  if(not(null(suggest-key-bindings)) && null(executing-kbd-macro))
Does that help?

comment 17y ago · link · parent

Ok, the syntax does not exactly lend itself to clarity. If you're going to be parsing why not add key:value pairs so you don't have to use the back tick? Something like:

{@ users ? before: "<div id='users'>Users<ol>" each: "<li>{fullname}</li>" after: "</ol></div>" else: "No users found" @}

comment 17y ago · link · parent

I am not sure if this is the best advice but: have you tried to implement a scheme yourself? I found doing so gave me a much better understanding and appreciation of SICP. Also you might consider starting with "simply scheme", "how to design programs" or "the little schemer".

If it makes you feel better I am currently going through the same thing with "the art of prolog". It is just such a huge departure from everything I have ever done before that I am constantly running into the same barrier you spoke of "I wouldn't have ever even have asked that question". But that is why I am reading it - to flex my head. Once I fully understand it I know I'm going to miss that feeling just like the first time your muscles hurt form a hard work out or conditioning session. Once they develop - unless you injure them - it's never quite the same rewarding burn.

comment 17y ago · link · parent

Wait, how is this any cleaner/better than a ternary statement? Beyond that the initial ugliness comes from using conditional markup in the first place. The only thing that is going to fix that is abstracting yourself from markup entirely.

comment 17y ago · link · parent

It was on the front page of digg as well - and when I clicked the link from there an hour or so before the story was on here it was having trouble loading all the images etc. so I am sure hitting hn was just the cherry on top of their server meltdown.

comment 17y ago · link · parent

Really?

I guess if you exclusively work on legacy codebases whicih already smell a certain way introducing stuff like this may cause some headache but if you have the opportunity to design something from the ground-up why would you NOT go for elegance?

comment 17y ago · link · parent

Yeah and unfortunately there comes a time when you have to admit that the entire premise of the project was flawed and it's time to liquidate and start-up a new.

comment 17y ago · link · parent

perhaps they are more adapt at finding bugs and implementing fixes in all realms of their lives?

comment 17y ago · link · parent

I don't think the lambda and closure support was intended to mesh so succinctly object oriented features of php. You have to realize php is a multi-paradigm language and proceed accordingly. You can honestly implement your own oo system using arrays and anon functions/closures if you would like (much like perl). The only thing making it a little fugly/brutal is the HORRIBLE php "array(" syntax.

comment 17y ago · link · parent

You are missing the other side of the argument. How ubiquitous/easy to setup/find cheap hosting for is lisp? Not very. That is why people still use php even when they "know better" - I feel those same people can leverage these new capabilities to write even cleaner code whilst living with the compromise. That is not a "blind spot" or out right denial it's pragmatism at it's finest.

comment 17y ago · link · parent

I for one think this is awesome - particularly for those of us who sling php for a living by day and read programming romance novels by night. My contribution in a similar vein can be found here: http://commonphp.blogspot.com/

comment 17y ago · link · parent

I think this should be enough evidence to let people know he is physically alright so let's leave it at that. He'll be back in some form or another in a few months or a year at most. But maybe not if he get's e-stalked to the point he decides the only way out is to join an amish community.

comment 17y ago · link · parent

On the flipside it certainly makes implementing TCO a lot more possible for those of us generating php.

comment 17y ago · link · parent

Man - what a bum out. The talk he gave at art + code was awesome and seriously inspired me to focus more on educational material for teaching kids to program. I hope he at least gives a more valid reason for removing everything. I can understand letting something become dormant - but others can take what you have done and be inspired and or build upon it. That is not a slight to you it's just the way a system grows. Like layers of sediment upon rock upon sediment. If I ever discovered that a piece of my code/idea had made its way into something someone else had done I would be stoked not bummed out.

comment 17y ago · link · parent

my bookshelf contains tons of books, hardcore zines and vinyl - I wouldn't have it any other way. The chance of me finishing reading a pdf/ebook of the smalltalk 80 manual from front to back including the appendix is slim to none - however order it for 3 bucks off ebay and keep it around and with in a month or so I've read the entire thing at my leisure. On top of that When people come over and I start ranting about programming I have physical implements to push my point - "look at this book!!" I almost scream as I reach for the sacred yellowed tome, "It's from the 80s and it's more relevant than 90% of everything that's come since!"

Also the chance of lending someone a book or record and having a meaningful discourse follow from that incident (during/post lending) is much greater than just saying "check out w3c" or "listen to minor threat on myspace".

comment 17y ago · link · parent

I could be wrong but I believe cnc stuff can end up being stronger than the equivalent cast version of a part.

Also if it was a high performance/custom or proto-type engine it would make sense to not cast it as well.

1
212223
30