Arc Forumnew | comments | leaders | submit | bd's commentslogin
2 points by bd 4760 days ago | link | parent | on: Online interactive tutorial

I saw this online interactive set of tutorials for learning Javascript. Something similar could work well for learning Arc or other lisps.

-----

2 points by akkartik 4760 days ago | link

Great idea. I notice that http://tryarc.org has the repl and PG's tutorial in separate tabs. Perhaps we could try integrating them.

-----

2 points by jsgrahamus 4759 days ago | link

Also, I've seen some languages which allow you to jump from a defined work to its definition and/or description. May be a lot of work but could be quite helpful.

-----

5 points by bd 6044 days ago | link | parent | on: IDEA: Loading remote files

I must confess I used (tostring (system "wget -O - http://...")) when working through an example in Software Engineering for Internet Applications (http://philip.greenspun.com/seia/). This let me capture the HTML into a string for processing.

-----

1 point by bd 6112 days ago | link | parent | on: arc-mode.el for emacs

I tried out arc.el and inferior-arc.el from Anarki in Xemacs, and arc.el gave the following error:

Invalid syntax description flag: "\" 23bn"

I traced it down to line 74 of the version I downloaded yesterday, but I'm unfamiliar with what it does, and why it would differ between the emacsen:

(modify-syntax-entry ?\| "\" 23bn" st)

Any ideas? Works great in Emacs.

-----

2 points by nex3 6112 days ago | link

No clue... I'm totally unfamiliar with Xemacs. Likely it just has slightly different syntax for syntax-tables. I think that line was copied from lisp.el, though... maybe whatever Xemacs' equivalent file is has a compatible version.

-----

1 point by bd 6110 days ago | link

The only other reference to "modify-syntax-entry" I found was in slime.el, both for Emacs and XEmacs. lisp.el doesn't have it. There were only two "modify-syntax-entry" lines used, vs. the many in arc.el. Lines 6451-6462 from slime.el:

  (defvar sldb-mode-syntax-table
    (let ((table (copy-syntax-table lisp-mode-syntax-table)))
      ;; We give < and > parenthesis syntax, so that #< ... >    is treated
      ;; as a balanced expression.  This enables autodoc-mode to match
      ;; #<unreadable> actual arguments in the backtraces with formal
      ;; arguments of the function.  (For Lisp mode, this is not
      ;; desirable, since we do not wish to get a mismatched paren
      ;; highlighted everytime we type < or >.)
      (modify-syntax-entry ?< "(" table)
      (modify-syntax-entry ?> ")" table)
      table)
    "Syntax table for SLDB mode.")

-----