Arc Forumnew | comments | leaders | submit | akkartik's commentslogin
2 points by akkartik 4 hours ago | link | parent | on: How many people still lurk here?

Great idea, mikhail. Thanks for doing this. I now know of two readers that I wasn't at all aware of before! ^_^


1. Oh, the clean implementation of classic Lambda Calculus syntax is awesome.

2. Your string interpolation implementation is just begging for an injection attack proof of concept :)

3. Why bother with continuations?!! Them's fighting words :)


4 points by conanite 7 days ago | link

1. Thank you! I figured arc could have gone a lot further with special-syntax, by making it configurable inside arc code.

2. this "open source" has had only two eyeballs on it so far ... attacks welcome :)

3. The execution stack is entirely plagiarised from rainbow so it should not be hard to re-implement continuations in the same manner ... the need hasn't arisen yet though ...


3 points by akkartik 8 days ago | link | parent | on: 2D syntax in Racket

Oh, this is cute.


3 points by rocketnia 8 days ago | link

I don't know if I'd ever want to use this 2D syntax directly, but I'll probably "use" it as a thought experiment for non-hierarchical syntaxes, along with cellular automata and spreadsheets. :)

Can you imagine an 'unquote-splicing operation for this tabuleau syntax? Between lists, 'unquote-splicing can insert any list into any other, but the cells of these tables have externally imposed sizes and shapes, so for an 'unquote-splicing in a table (if we wanted one at all), we'd probably want to enforce that the sizes and shapes match up in a way that makes sense. What might make more sense is to do 'unquote-splicing in a full row or column at once, because at least we get one dimension of freedom that way. If the splice takes up a full row, then it can splice in any number of rows (of any height) to that location.

I'm probably a little obsessed with quasiquotation lately. I've been trying to write an implementation of a macro system where the meanings of notations like 'unquote, 'unquote-splicing, and parentheses themselves can be treated as user-defined macros, and where syntax-bound concepts like source locations and syntax highlighting are mostly managed automatically in the macroexpander rather than something every macro must deal with (except for the macros that do something unusual with them).


Welcome back, conanite! I was coincidentally just thinking about you yesterday when I ran across your bug report at Too bad that bug is still open in both Arc 3.1 and Anarki. I think I will try to fix it now that I've spotted it.


4 points by akkartik 9 days ago | link | parent | on: At-sign in string

Congratulations, you've run into at-strings, one of Arc's more awkward features.

Prior discussions:;;

Interesting idea to quote a string. I'd somehow never thought of that!


3 points by prestonbriggs 9 days ago | link

Got it, thanks.

I guess the quote idea came from me thinking that the strings were being evaluated. My untrained mind thought "strings evaluate to themselves", but apparently not. So I used the single quote to prevent evaluation.


1 point by akkartik 9 days ago | link

And it worked! Nicely done.


3 points by akkartik 20 days ago | link | parent | on: Anarki is now a Racket #lang

That is great! Welcome back :)


Google Drive? You can share a document so anyone with the link can access it.

Another option is Gitlab or Bitbucket. Put the file in a repository (ideally with any of your code for the paper!) and push it.

I can do it for you if you like. Just email the paper to me. (My address is in my profile.)


Seems reasonable to me :)


3 points by akkartik 117 days ago | link | parent | on: Admin Functions?

Did you see the instructions on running a HN clone at the bottom of Basically you add a username you want to designate as the admin, then you use HN as that user. Let me know if you have more questions.


3 points by gfawkes 117 days ago | link

Thanks for your reply akkartik. Yes..I did see what you referred to.... I have created an account using the user name I entered while setting up the software. Opening my admin user account is not the problem. The question I have is where is the admin panel...or how do I administer admin controls? For instance, while being logged in as admin how do I delete a comment? Or a thread? Look at a list of users, etc? One more thing now that I have have your attention, if I may. Do you know of any instructions on how to put anarki HN on my server so anyone can access it? I want to put a forum online for all to use. Thanks again. Guy


2 points by akkartik 116 days ago | link

There isn't much by way of admin tools. Basically what the admin can do is block content in various ways: Beyond that you're expected to rely on the Arc commandline, or to manipulate the files created under anarki/www/news.

Regarding putting HN on a server, you may be interested in this recent thread about a Docker image:


3 points by akkartik 115 days ago | link

Ah, I just remembered seeing various special pages just for admins in news.arc. For example /badsites seems to show sites that have been nuked in the past.

I'm not very familiar with these tools, but scanning for adop and defopa might provide tantalizing hints.


I just want to point out a conversation I had with fauria on GitHub, in case others here have ideas. Currently the HN code doesn't support keeping the HN data (.../anarki/www) on a separate partition from the code (.../anarki) as Docker would like to do to maintain stateless containers. This is because any file creation which performs a create-then-rename first creates the temporary file in .../anarki/tmp. Renames then fail if .../anarki/www is in a different volume.

I'm not sure what the cleanest fix is here.