Arc Forumnew | comments | leaders | submit | cooldude127's commentslogin
1 point by cooldude127 6626 days ago | link | parent | on: Odd behavior with some HTML-work

well, i know tab is already a macro defined for tables, but if your html is what you expect, that's probably not the problem.

-----

1 point by wfarr 6626 days ago | link

Just for the sake of having checked, renaming the macro makes no difference in this case.

-----

1 point by cooldude127 6626 days ago | link

i didn't think so. not really sure then

-----

5 points by cooldude127 6627 days ago | link | parent | on: Arc2.tar

well considering the real live sites arclanguage.org and hacker news are deployed with news.arc, i would say you can deploy a real live site with it.

-----

3 points by mattjones 6627 days ago | link

It's more a question of the stability of the language specification. I don't doubt the code is solid enough for production sites; it's just that keeping up with Arc's evolution might be difficult. But as I pointed out, you might not need to do that. (I edited the original comment to be more clear.)

-----

3 points by cooldude127 6627 days ago | link | parent | on: Arc2.tar

works for me on OS X. both the anarki and the vanilla arc2 date functions produce the same result.

-----

2 points by tjr 6627 days ago | link

Works for me on OS X as well.

-----


i don't arc is intended to have more than one implementation, or at least more than one popular implementation. if this is the case, nothing is unspecified. whatever the implementation does, that is the language.

-----

1 point by cooldude127 6627 days ago | link | parent | on: Arc2.tar

how soon will this be on anarki? would do it myself, but i'm pretty sure i'd mess something up.

-----

10 points by nex3 6627 days ago | link

I'm about to start merging.

-----

7 points by nex3 6627 days ago | link

Alright, all done. If someone (bsalty?) could look at srv.arc, that would be great.

-----

2 points by byronsalty 6627 days ago | link

will do

-----

1 point by cooldude127 6627 days ago | link

now master needs some love

-----

1 point by cooldude127 6627 days ago | link

awesome!

-----

3 points by cooldude127 6627 days ago | link | parent | on: ccc : is that a bug ?

[_] is equivalent to (fn (_) (_)) (notice the parentheses)

if you want to shorten (fn (_) _), use idfn:

  arc> (ccc idfn)
  #<continuation>

-----

1 point by sacado 6627 days ago | link

ok, never mind, silly me :) Thank you, btw :)

-----


the problem that other people have stated is that because arc's macros are unhygienic, allowing local variables to shadow macros causes some pretty serious problems.

-----


also the perfect name for a true value :D

but yeah, i've done that in my CL code before. so annoying.

-----

1 point by cooldude127 6628 days ago | link | parent | on: Is flat with stringstoo broken?

what is this ideally supposed to return? (1 2 #\a #\b #\c) ?

-----

6 points by cooldude127 6628 days ago | link | parent | on: arc-mode.el for emacs

thing that annoys me is there is nothing for arc that is anything close to what slime is for cl. i would settle for an inferior arc mode. my emacs skills are not good enough to take this into my own hands, i'm afraid.

-----

9 points by sjs 6628 days ago | link

Me neither, but I gave it a shot. I use it and it works, there may be bugs though. Maybe an Emacs guru will be kind enough to point out the errors I may have introduced while adapting cmuscheme.el.

http://samhuri.net/inferior-arc.el

In my dot-emacs:

  (setq arc-program-name "~/src/anarki/arc.sh")
  (load "~/.emacs.d/inferior-arc.el")
Then go ahead and do run-arc, arc-send-definition{,-and-go} (C-c C-e, C-c M-e) arc-send-region{,-and-go} (C-c C-r, C-c M-r), etc.

-----

5 points by nex3 6627 days ago | link

I've added this to Anarki. I'm working on making a few improvements.

-----

1 point by cooldude127 6627 days ago | link

i look forward to seeing what you come up with

-----

1 point by cooldude127 6628 days ago | link

it's a good start. the bugs i see immediately are it lets you erase the prompt and the prompt appears when results are printed too. i might see if there is a way to solve these problems.

-----

1 point by raymyers 6627 days ago | link

I think Slime lets you erase the prompt too. I wonder if there is a good reason for that...

-----

1 point by cooldude127 6627 days ago | link

just tried it. emacs says "text is read-only". which is what it should do. i haven't the slightest idea how it pulls this off, though.

-----

1 point by nex3 6627 days ago | link

Turns out it's just a simple option: comint-prompt-read-only. I've set it in Anarki.

-----

1 point by cooldude127 6627 days ago | link

that was far too easy. i wonder if it is possible to make it pretty print.

-----

1 point by nex3 6627 days ago | link

I think it just outputs whatever Arc sends its way. So this would really involve getting Arc to pretty-print its output.

-----

2 points by cooldude127 6627 days ago | link

that might not even be that difficult, but my main problem is arc's pretty printing (in "pprint.arc") is rather flawed.

-----

1 point by cooldude127 6627 days ago | link

the latest changes in anarki for the --no-rl option fix the problem with the repeated prompt. so now it's just that the prompt can be deleted, which is a really minor issue.

-----

More