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: http://graphemica.com/search?q=apl

comment 14y ago · link · parent

Fair play - but as far as "missing comma" syndrome goes CS still has its problems. e.g. consider an array of objects:

  [
    a: 1
    b: 2
  ,
    a: 3
    b: 4
  ]
If you forget that "," which MUST be dedented a level - you are hosed.

This becomes uglier w/ nested objects

  [
    age: 30
    aliases: [ 
        first: "peter"
        last: "jensen"
      ,
        first: "walter"
        last: "gregor"
    ]
  ,
    age: 20
    aliases: [
        first: "tony"
        last: "foulard"
      ,
        first: "sam"
        last: "jakob"
    ]
  ]
I think I almost prefer:

  [
    {
      a: 1
      b: 2
    }{
      a: 3
      b: 4
    }
  ]

  [
    {
      age: 30
      aliases: [{
        first: "peter"
        last: "jensen"
      }{
        first: "walter"
        last: "gregor"
      }]
    }{
      age: 20
      aliases: [{
        first: "tony"
        last: "foulard"
      }{
        first: "sam"
        last: "jakob"
      }]
    }
  ]

comment 14y ago · link · parent

Sometimes I am surprised to find I am the only straight edge hacker I know. Most of the time though I just don't care. So while I totally concur with the article I fail to see how this parses as hacker news?

comment 14y ago · link · parent

toro actually looks pretty clean - if you have to use php I'd say go for it. also - check out red bean for rapid orm style db development. BUT I'd also advocate checking out python, ruby, clojure, node js if you aren't already bound to PHP...

comment 14y ago · link · parent

just do it? I'd suggest spinning up a few flavors of *nix on aws/linode or what not (which you can probably do at the free tier level) and just get to grips w/ the different package managers and what not. I'd also say brush up on your bash skills and probably pick up python and node js while you are at it.

comment 14y ago · link · parent

I worked at a publicly funded inner city technology center in one of the larger UK cities whose mandate was to integrate technology into the curriculum of the surrounding schools. I can not tell you how much potential was wasted. Huge computer labs essentially used as annex class rooms. spyware installed to make sure kids weren't "googling bad things" or "speaking ill of their teachers in email". There were attempts to teach programming but the few kids that were interested had to come after hours and use notepad to write javascript to run in internet explorer from the desktop (not a bad way to learn just how easy it is really, I am just saying there was no official support/classes for such programs).

So in short: I really hope this is a sign of change but I also know that money thrown at these programs is often just squandered on projectors and digital white boards.

edit: upon reflection I think I feel guilty that I did not do more to make things the way I envisioned. I could have easily created a "programming class" image that we flashed the systems with to let them have linux, learn emacs, vim, apache etc. but I think I was too inexperienced to really be sure of myself. I'd love the opportunity now as I could offer a scratch/squeak course, a scheme course, web apps, lua/love for game programming. So many awesome free tools for every type of aptitude.

comment 14y ago · link · parent

just so you know, you were probably downvoted because hn approach is to upvote the story and then click your name to enter your profile and finally click "saved stories" to peruse at your leisure.

comment 14y ago · link · parent

for the record arc is built on scheme.

comment 14y ago · link · parent

yeah corona sdk (which is not free, but seems to be worth the price of entry from my dabbling) compiles for iphone and android from common lua codebase. The api docs are easy to read, tons of examples and plugins (box2d etc.). I threw together an ipad app for my "boiling water" game I've been joking about for years with corona in about an hour having only ever looked at lua from afar. If you grok js/ruby/python than lua will be simple.

comment 14y ago · link · parent

what about lua/love/corona?

461.

Qi (lisp dialect preceding Shen) being deleted from wikipedia (en.wikipedia.org ↗)

2 points · by shaunxcode · 14y ago · 1 comment

comment 14y ago · link · parent

My resolution regarding php this year: no new php projects. I will continue to support existing projects/clients but from here forward I am done. I have studied other languages extensively and even worked on relatively interesting personal projects in them (racket/node js etc.) but now is the time to draw the line and start using them for new projects. My last argument for using php in which hosting is easier/cheaper w/ php is moot now. So I am left with the realization that I keep reaching for it like a kid who still watches pokemon instead of doing his chemistry homework.

comment 14y ago · link · parent

I like the cut of your jib, however: I believe APL actually exposes you to an even higher(est) order of abstraction which makes you truly confront the meat of the problem space/algorithm v.s. allowing for a few sessions of syntax abstraction before you get down to business. Believe me I LOVE lisp, but I also recognize that many times I enjoy it because it allows me to create these amazingly succinct domain specific languages before ever "getting to work". When I attempt to write/think something in APL I find myself actually just pondering the problem. It was the language in which I realized math was my true (and neglected) love.

Also: http://archive.vector.org.uk/art10500180 - great article on array languages for lisp programmers.

comment 14y ago · link · parent

the ommision of APL makes me sad.

comment 14y ago · link · parent

Here is a ghetto "let" form in coffee

((a = 5, b = 6, log = x -> console.log x) -> log a + b)()

comment 15y ago · link · parent

the ability to work/meet remotely full time.

comment 15y ago · link · parent

I am aware of the gnarliness of the following BUT You could do something like:

   class Object { 
       public function __call($method, $args) {
           if(isset($this->$method) && $this->$method instanceof \Closure) {
               $this->$method->bindTo($this);
               return call_user_func_array($this->$method, $args);
           }
       }
   }

   $context = new Object;
   $context->foo = "Hello World";
   $context->closure = function() {
       echo $this->foo;
   };
   $context->closure();
Once traits are in the language (5.5?) that could just be mixed in.

comment 15y ago · link · parent

Does this mean he uses ruby in the same way you he was using GOAL?

comment 15y ago · link · parent

literally just wrote this last night and pushed it live this morning before hearing the news. I had just changed my gmail status to "season of the lisp" as I go through a seasonal fixation w/ lisp every year starting in october - when an old colleague messaged me to inform me of his passing.

https://github.com/ORDER-OF-NO/scphpeme

(CONS (QUOTE R) (LIST (QUOTE I) (QUOTE P)))

comment 15y ago · link · parent

try and implement a classic game that you know the rules of really well (Astroids, Missle Command, Pac Man) using canvas for graphics and spine js/jquery html5 local storage for the ui/high schore/save game/network communication.

comment 15y ago · link · parent

Interesting, doesn't seem to explicitly handle nested arrays/objects.

http://jsfiddle.net/uxAFb/

I imagine passing a flag to indicate the properties which are arrays of objects should also be packed could work too.

comment 15y ago · link · parent

I agree, but only in that he limits the statement to hackers. All creatures are driven by novelty. Sometimes this makes it seem as as if we are "pleasure driven" but really it is novelty we seek. I have been thinking about this a lot lately and it answers the question as to why things like google, twitter, flickr, thrive: novelty aggregation.

comment 15y ago · link · parent

I think the main spine.js project is 1.0 but it happens to include this new mobile feature.

comment 15y ago · link · parent

Will this do? http://metanullcomic.com/ I don't have it quite in shirt format but couldn't help but throw richard stallman into the mix.

comment 15y ago · link · parent

I really don't want this to come off as flippant - but: fuck yes. Honestly the most important experience in my computer science "self education". I am still working on SICM. Every year I seem have learned just enough more math/physics to grok another page or two.

comment 15y ago · link · parent

"APL was originally popular for computer graphics programming."

define "graphics"? I suppose matrix operations and the ability to visualize them could count?

comment 15y ago · link · parent

Possibly. This was being discussed on NPR a few weeks back and I seem to remember the expert saying the real key, as usual, is catching it when people are young and spending more time with fundamentals like counting/sorting physical objects.

comment 15y ago · link · parent

I have a class called Tag with static methods for all relevant tag names which merely wraps $('<' + tagname + '/>') and thus allow for stuff like:

   Tag.ul(
       Tag.li('unclickable li tag')
           .addClass('unclickable'),
       Tag.li('test clickable li tag')
           .addClass('clickable')
           .click(function() {
               alert('clicked on test')}))
I prefer this as it keeps my view code "in language" and makes it easy to apply any sort of jquery methods which I need to the different elements.

comment 15y ago · link · parent

Hey, in case you are interested I constructed a reply to your post here: http://commonphp.blogspot.com/2011/05/keyword-functions-in-p...

In a nut shell though it's essentially a write up of my library which allows for creating keyword function wrappers so you can do stuff like:

   myStrPos(
       needle, 'peter', 
       haystack, 'is peter in here?'
   );

comment 15y ago · link · parent

hah I totally misunderstood that. Once you log into the dashboard it's really clear because you see the slider w/ $per 30 days. It would be cool to stick that on the pricing page directly.

From what I can see per 30 days: 1 clone($0.00) .. 25 clones($864.00)

1
151617
30