Archive | Code RSS feed for this section

Best of Hacker News Leaders

Context: bitovod created a site which aggregates the “Best of ” for any user on Hacker News. After he added a feature to make queries linkable, we can now compile a “Best of” list for all the leaders on Hacker News. This is an attempt to compile and maintain such a list. If you’re active on [...]

Read full story Comments { 0 }

Arc Forum search in wake of SearchYC shutdown

It’s a bittersweet situation as we rejoice pg adding a search bar to Hacker News while mourning the sudden loss of SearchYC.

Read full story Comments { 3 }

On unhygienic macros

Unhygienic macro systems are not useful for architecting large systems of perfect, pure modules. They’re great for sketching out abstractions that work on a semi-local level. They essentially enhance your ability to quickly reinvent the wheel, which is very valuable since, despite our perennial efforts to make it otherwise, the wheel must be reinvented quite often [...]

Read full story Comments { 0 }

Lisp representation for the JS dot operator

I once took a poll on Arc Forum about the most ergonomic lispy representations for JavaScript dot notation. Recently I’ve been taken by all the options Clojure provides for its Java Interop and am inspired to consider similar possibilities for LavaScript:

Read full story Comments { 0 }

Fexprs and laziness

I believe there is a connection between fexprs and laziness. It could be that programming mostly in fexprs and only using eval when necessary gets you something like what lazy evaluation does for Haskell. However, it may be problematic to build programs mostly out of fexprs rather than functions.

Read full story Comments { 0 }

JavaScript representations of cons

1) Efficient implementation, but doesn’t allow for improper lists: ['a', 'b', 'c'] car = function(xs) { return xs[0]; } cdr = function(xs) { return xs.slice(1); }

Read full story Comments { 0 }

Acknowledgements – Try Arc

Developed using Chris Done’s jquery-console and Racket’s sandbox library. Color scheme and logo borrowed from arclanguage.org as a tribute. « Back to Try Arc

Read full story Comments { 0 }

You should Try Arc if…

You would probably find Try Arc useful if any of the following accurately describes you: You’re an experienced programmer who wants to try Arc or Lisp but doesn’t care for fussing around with installations.

Read full story Comments { 0 }

Try Arc

I wrote tryarc.org inspired by sites like Try Ruby and Try Haskell. My hope is that it can become a way for people to experiment with Arc and go through the tutorial without having to install mzscheme. The REPL points out that it’s “lacking certain refinements”. These correspond roughly to what’s on the Try Arc TODO list. [...]

Read full story Comments { 0 }

Try Arc TODO

Some things that could make Try Arc better: fix memory leak DONE a more advanced implementation could save the oldest client envs to disk and swap in/out based on need, rather than killing old clients; or better yet, only kill the continuations orphaned by their clients, and if at maximum capacity, ask new visitors to try back [...]

Read full story Comments { 0 }