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 14y ago · link · parent

This is rad, keep it up! Seriously when others detract remember minor threat: "what the fuck have you done?"

comment 14y ago · link · parent

And yet here we are on a thread months later discussing the occupy movement. A movement like this is async and concurrent. Promises declared are not immediately kept (opportunity must arise) - but that does not mean you can treat them as broken.

comment 14y ago · link · parent

Reminds me of http://coffeekup.org/

comment 14y ago · link · parent

http://jsfiddle.net/LWFg3/6/ here you go. I call it ouija. Will probably bundle it as a component shortly.

comment 14y ago · link · parent

I think one of the coolest things I have seen is the way that it has full support for what macro expansion gives you in a "normal lisp" but without the use of quasiquotation - instead it utilizes pattern matching.

comment 14y ago · link · parent

I have been obsessed with this ever since I read an article in the guardian (uk) circa 2003 of all places. If you want a better picture of the political situation check out "a promise to the dead" (by ariel dorfman http://www.imdb.com/title/tt1097260/).

You can also read designing freedom (written right after the coupe) to get a solid idea of what stafford beer was driving at http://ada.evergreen.edu/~arunc/texts/cybernetics/beer/book....

comment 14y ago · link · parent

Interesting, here is my stab at a very similar concept (using selectors to generate dom fragments) https://github.com/shaunxcode/bling

428.

Bling - jquery tag creation wrapper(github.com ↗)

3 points · by shaunxcode · 14y ago · discuss

comment 14y ago · link · parent

The thing I used to hate about smalltalk was having to define the temporary vars at the top of the method/block. Now it just seems like a great idea which clarifies any sort of ambiguity like this.

comment 14y ago · link · parent

Agile should also be subject to Agile. I like to think of it in terms of the Viable System Model in which the system has the potential to change itself based upon feedback. Put another way - make sure your implementation of Agile/Scrum supports tail call optimization and macro expansion or face the reality of being stuck in BlubScrum.

431.

Jsedn: edn reader for node(github.com ↗)

3 points · by shaunxcode · 14y ago · discuss

comment 14y ago · link · parent

https://github.com/shaunxcode/jsedn

This is my attempt at a js version. parse is working - now working on encode.

There is really nothing stopping it from working in browser other than I am currently working on it as an npm/node js package.

I can successfully load datomic schemas and .dtm files which I think is a pretty good test.

Need a lot more tests around int/float wrt the arbitrary precision. I would love to have some pull requests if anyone wants to write valid tests which break it.

comment 14y ago · link · parent

http://www.umuc.edu/undergrad/ugprograms/upload/CSCI-12-13.p...

comment 14y ago · link · parent

A lot of times it is about coming up with the right terminology and positioning of an idea for it to "take off". This is a really nice approach in that it utilizes concepts/a paradigm we are already comfortable with.

comment 14y ago · link · parent

I think they mean v1 as in not beta or mvp. Also I have to admit it's good! However it is a waiting game now to see what sort of community builds around it.

comment 14y ago · link · parent

Hey I think the copy behavior in inkscape is on purpose. "duplicate" now does what you would expect copy to do?

comment 14y ago · link · parent

Sort of a bum out wrt to the license. If I read it right it is free only for evaluation but not for use in your own product ala MIT? What is the pricing model then?

comment 14y ago · link · parent

Wow, this is incredible. The entity relationship example http://gojs.net/latest/samples/entityRelationship.html is dia quality. great stuff!

comment 14y ago · link · parent

There is no reason it would not work in node and browser currently is there?

comment 14y ago · link · parent

I think it's more like arguing that one can safely drive on the freeway with a tricycle, after all it has wheels and it moves quickly if you pedal fast and hard enough.

comment 14y ago · link · parent

Have you seen this? http://www.spacemonkey.com/

442.

Shen: The future direction(shenlanguage.org ↗)

40 points · by shaunxcode · 14y ago · 6 comments

comment 14y ago · link · parent

here is my alternative to laconic:

    String.prototype.$tag = (args...) -> 
	    args.unshift "<#{@toString()}/>"
	    $.apply window, args

    ("ul".$tag
        class: "someUL"
        html: "li".$tag
            text: "some text in an li"
            class: "some class"
            click: ->
                console.log "some click event").appendTo 'body'

444.

Keyword message dispatch and doesNotUnderstand in coffeescript(gist.github.com ↗)

1 points · by shaunxcode · 14y ago · discuss

comment 14y ago · link · parent

the non s-expr homoiconicity/macro stuff is really cool. http://elixir-lang.org/getting_started/5.html

comment 14y ago · link · parent

I dig what you are saying but after some reflection decided I would rather see kv args. Here is a gist to accomplish that: https://gist.github.com/2625081 (wish there was simple way to introspect a fn and get its arg names, but saying that a lot of underscore functions have dynamic arities so this only makes sense for specific functions anyway)

   $(window).scroll _.throttleKV
       func: -> console.log "This print's at most every 500ms"
       wait: 500
Nice thing about that is you don't have to rememeber arg order (though you do have to remember the kv names). In coffee though you have less commas, feels nearly smalltalkish.

comment 14y ago · link · parent

tried it on lion and it will not load - just dies before even showing interface and says "report this error" etc.

comment 14y ago · link · parent

I am curious what the internal hang up is which prevents:

funcReturnsFunc(1)(2)

comment 14y ago · link · parent

You may want to look into "computercraft" http://www.minecraftforum.net/topic/892282-11-computercraft-... which you can add right now! But I agree it needs to be more than just a terminal - it needs to have the feeling of crafting/building structures. Even if you could "zoom in" with a crafted microscope or something and then create circuits which you can then connect to larger sensors/peripherals.

comment 14y ago · link · parent

One of my "if I didn't have 30 other projects" projects is a minecraft type environment meets scratch event model/"build your own block" style system. Let kids interactively script their 3d world (and not just w/ redstone hah, not that there isn't something awesome about kids rediscovering logic gates from first principals!)
1
141516
30