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

This is how I would approach such an issue with php. This assumes it would be run through eval or written to file and included. Obviously to make this valid php I would replace { with Array( and } with ) -- but I decided to stick to the spec above for arguments sake.

$parsed = str_replace('{', '{"', '{'.str_replace(Array('[', ']'), Array('" => {', ''), $string)) .str_repeat('}', substr_count($string, '[')+1);

comment 17y ago · link · parent

Totally, for instance as a drummer and a programmer I find myself comparing "drum patterns" and riffs as procedures, but particularly with drum patterns they can be re-used across bands/styles and songs even within the same record! So being a drummer is definitely about code re-use and modular design. I could go off on my project to generate recursive music (live) but thats a whole other world. I would like to think that I drum with s-expressions.

comment 17y ago · link · parent

I am sure this has been discussed to death somewhere else (point me there?) but what is the advantage of adding [ ] for defining arguments to a proc/lambda? I assume it is to help it stand out a little more? What I love about lisp/scheme is the symmetry and simplicity in syntax - though it does clearly state in the scheme spec that [ ] are reserved for future language revisions.

comment 17y ago · link · parent

Are you serious? What about when you want to target multiple platforms with the same interfaces but don't want to commit to one form of markup/generated code? Imagine being able to easily render to flex, jquery ui, ext js, clean css/xhtml, gross but effective tables etc.

If you abstract it the idea will come.

comment 17y ago · link · parent

haha incredible - the truth wrapped in a lie. I believe they have implemented that macluhan-inspired concept of a "hyper" link which is allowing them to bridge the cyber-sphere via tcp/ip! Great work gentlemen.

comment 17y ago · link · parent

If this is 01 what is 00? Learning to count with arrays?

comment 17y ago · link · parent

All those years of trying to "be here now" seem to have back fired then?

comment 17y ago · link · parent

I would watch it that's for sure, I totally want to know what the deal with the grand canyon is.

comment 17y ago · link · parent

smalltalk, absolutely.

comment 17y ago · link · parent

it strikes me that it would be pretty trivial to implement such syntax in smalltalk seeing as whitespace is not an issue and you can implement operators how you please per class. Or even better yet an "array based language" like Nial would be a good fit as well (think apl/j but with out the "thats just noise" readability issue)

comment 17y ago · link · parent

I like to argue that people should take pascals wager to the next level and believe in absolutely every possibly permutation of a higher being/afterlife. you know... just in case.

comment 17y ago · link · parent

and thus could also be archived/truncated frequently as it is only relevant within a certain time frame right?

comment 17y ago · link · parent

Sweet, just added: http://utahcodemasons.blogspot.com/ we are having our first meeting this thursday at borders in provo at 6:30pm if anyone on here is interested. We are thinking something akin to the free hackers union.

comment 17y ago · link · parent

Zed Shaw: Joe Hill of programming. Though rather than organizing workers into unions/factions of the IWW he is advocating people reserve their "real" programming/creativity for themselves unless they stand to make a profit (which they would if labor conditions were equitable). I can totally get behind that.

comment 17y ago · link · parent

I could not get it to work in ff3 on os x, BUT from reading the site it seems to be a way of describing gradius esque bullet patterns like you get on those sort of scrolling shooter games?

comment 17y ago · link · parent

all I can say is "yes!". I have a ton of programming books that I would love to re-read and discuss even (the art of the meta object protocol, let over lambda, on lisp etc.) but I would also be down with relevant math and fiction stuff.

comment 17y ago · link · parent

I think it is important to note that the title should have read "MP3.COM founder"... as my first impression was "the guy who helped invent the mp3 compression algorithm." That would be: Karlheinz Brandenburg.

comment 17y ago · link · parent

The trade off between wasted processing and elegance is not high enough for most people. I could see it being nice if you are giving access to "non-developers" to modify the views/templates of your system and want to make sure they only have access to a given subset of functionality.

comment 17y ago · link · parent

Also does this make the jvm and or parrot like one of those weird new-age "all paths lead to the sun" sort of religions where "anything goes"/syntax so long as it involves some rough idea of a god/bytecode?

comment 17y ago · link · parent

I feel the omission of smalltalk is just further evidence of it's true strength considering it inspired so many of the attributes of the other religions yet still persists unknown to the masses as the true religion with no religion behind all religion.

comment 17y ago · link · parent

I am blatantly not a lawyer but from my understanding you can not patent rules to a game. So the clever thing to do would be implementing a "word game engine" which allows users to upload their rules to it and share those rules, if they happen to be scrabble-esque..? Are you responsible for all user content in that situation? (serious question)

comment 17y ago · link · parent

this is totally valid as it is related to youtube/new-media having a larger than "selling crap and getting laid" affect on the world.

comment 17y ago · link · parent

Honestly consider the smalltalk approach - particularly keyword parameters. The one thing I would do differently is use { and } for lambdas so you can use [ ] for arrays.

comment 17y ago · link · parent

This is cool - led me to http://www.paulgraham.com/javacover.html in which I read "Historically, languages designed for other people to use have been bad" which makes me feel a little less insane for spending the morning working on my "pet language".

comment 17y ago · link · parent

How easy is it to integrate with eye-fi as a partner site? They seem to have quite a few partners. I wonder if anyone from their company reads hn?

comment 17y ago · link · parent

Good point - there is definitely fundamentally beautiful and intrinsic about the balance and simplicity of lisp. Personally I find removing syntax (another way of changing it) to be an empowering project. My current project is to introduce a syntax for php which is something more along the lines of smalltalk meets lisp - the real trick here was removing syntax and making it more gramatically relevant if used at all.

comment 17y ago · link · parent

for real when I was living in england all I did for exercise was play drums at practice and a few times a week at shows and I was in the best shape of my life. Even now when working out/running I find it hard to stay in shape programming all day.

comment 17y ago · link · parent

I can see the point in terms of avoiding table locking etc. but I still don't see it (not that it is pretending to be) as a silver bullet - surely you would still want to maintain your relational data structure and then have it write to couch db when appropriate for read access, almost like a denormalized view onto your relational data.
1
252627
30