Arc Forumnew | comments | leaders | submit | akkartik's commentslogin

This is great!

-----

3 points by akkartik 3652 days ago | link | parent | on: Anarki: tagged templates aren't hashes

Yeah, I had to change the implementation of templates several years ago to fix a bug: http://arclanguage.org/item?id=15664. There was no way to fix this without moving away from pure tables.

There's now a corresponding function called temlist: https://github.com/arclanguage/anarki/blob/7ae9fbc782/lib/te.... Does that work for you?

In general, the place to look for incompatible changes in anarki is the CHANGES directory, e.g. https://github.com/arclanguage/anarki/blob/80278a4002/CHANGE.... In this case you might need to jump to 3 different locations to make sense of things :/ Let me know if you still have questions, and that'll help me improve the documentation.

-----

2 points by bugger 3651 days ago | link

This should work. I see temstore now. Is there a parallel version of https://arclanguage.github.io/ref/template.html ?

Thanks!

-----

1 point by akkartik 3650 days ago | link

Sorry, there isn't :/ I'd love to have an anarki version of the arc reference, but for now there's only online help. Though you might need to look at tem.arc to know what to ask for help on.. :/

-----

2 points by akkartik 3659 days ago | link | parent | on: Hi, straggling Archmen!

setuid isn't supported in windows, so you should just comment out that line in arc-nu/lib/arc3.1/srv.arc (and not run arc as an admin user). Arc 3.1 has the same problem, so it's unclear why you didn't run into it. Perhaps arc-nu is loading srv.arc automatically.

-----

3 points by akkartik 3664 days ago | link | parent | on: Found and fixed bug in todisk

Thanks! I gather you're on windows? I couldn't reproduce the problem, but I can confirm that things seem to continue to work after your fix. I've updated anarki: https://github.com/arclanguage/anarki/commit/7ae9fbc782

-----

1 point by highCs 3664 days ago | link

> I gather you're on windows?

Yes.

-----

2 points by akkartik 3670 days ago | link | parent | on: Bin from arc

Wow, that is from before the racket days. Were you trying it with mzc or racket? Were you trying it with arc 3.1? I wonder if the original post was with an earlier version..

-----

4 points by highCs 3670 days ago | link

Yup it's with top-of-tree Anarki on github using racket downloaded this weekend (70Mb install) under windows 8. Oh by the way, arc/anarki doesnt seems to run with "Racket minimal" (5Mb install).

I've used both mzc (from racket) and raco.exe, same error message. (I've tried to run create-embedding-executable from repl without success because I've not figured out how to call that correctly.)

Racket/Arc think the symbol is not bound - the symbol being the first symbol in arc.arc coming from scheme (xref disp). It's yet-another error due to namespace+eval I think.

I think it almost works. It creates an exe and calls everything. There is just that namespace thing to fix - hopefully nothing bad gonna happen after that. I've not figured out how to solve this though. Tried many combinations of current-namespace-pass-to-eval...

-----


Sadly nobody here has access to official arc or this forum :/

-----


Some gotchas to be aware of with arc 3.1: https://sites.google.com/site/arclanguagewiki/arc-3_1/known-...

In particular the second issue will cause random failures so it's worth guarding against. The stable branch of anarki has it along with a few other crucial bugfixes to arc 3.1.

-----

2 points by urs2102 3678 days ago | link

Great - I was wondering, what is the specific difference between the anarki branch and arc 3.1 provided at /install?

-----

2 points by rocketnia 3677 days ago | link

Anarki's "stable" branch is Arc 3.1 plus 15 extra commits (so far). There's a list of all the commits here:

https://github.com/arclanguage/anarki/commits/stable

I actually thought there were more crucial bug fixes on this branch, like akkartik said, but it seems that the rest of the commits are various improvements to Arc's usability from editors and from the command line.

Here's a holistic summary of the changes, so you don't have to trudge through the commits one by one:

- Adds a CHANGES/ directory which is supposed to host a summary of changes like this one. Anarki's master branch makes use of this directory, but so far it's been neglected on the stable branch. (I should probably add this list to it!)

- Adds an extras/ directory containing Vim and Emacs extensions.

- Adds arc.sh, a nicer way to run Arc from the command line. (Many of the other changes were made to support this.)

- Doesn't display the REPL when stdin is not interactive. (https://github.com/arclanguage/anarki/commit/eb55979588bb01d...)

- Outputs error messages to stderr rather than stdout. (https://github.com/arclanguage/anarki/commit/e518e3b323a63bc...)

- Makes it possible to execute Arc at the command line from directories other than the Arc directory. (https://github.com/arclanguage/anarki/commit/4df89245bb49ae2...)

- Interprets command line arguments as filenames of Arc scripts to load. (https://github.com/arclanguage/anarki/commit/5ac5d567bce0800...)

- Fixes a bug where mutating a list would sometimes fail depending on the state of the garbage collector. (https://github.com/arclanguage/anarki/commit/b683a84a6831fd4...)

-----

2 points by akkartik 3676 days ago | link

Thanks for that list! Maybe we should point people to the stable branch rather than vanilla arc 3.1 at http://arclanguage.github.io?

Edit 1 hour later: Check out the updated frontpage. Feel free to revert or ask me to do so.

-----

2 points by akkartik 3708 days ago | link | parent | on: Newlisp

Previously:

http://arclanguage.org/item?id=244

http://arclanguage.org/item?id=2887

http://arclanguage.org/item?id=8199

-----

2 points by akkartik 3730 days ago | link | parent | on: Arc News deployement

There was some discussion recently about running it on OpenShift: http://arclanguage.org/item?id=18900. I also changed some of the documentation/scripts in response. If you wrote up how you did it for some other service after you succeeded, that would be most appreciated.

-----


Interesting, there's already a prototype compiler generating it: https://github.com/WebAssembly/ilwasm

-----

More