Arc Forumnew | comments | leaders | submit | pg's commentslogin
3 points by pg 5769 days ago | link | parent | on: Type Bug?

Yes, that coerce looks like a bug; will fix.

-----

1 point by pg 5765 days ago | link

Fixed in 3.1.

-----

3 points by pg 5792 days ago | link | parent | on: Bug in ++?

Will fix.

-----

5 points by pg 5787 days ago | link

Looks like the answer is to use & instead of +. I like the look of + better, but I can tell people are going to want to use it in names.

-----

5 points by pg 5799 days ago | link | parent | on: Anyone get Arc running on mzscheme 4.x?

Rtm tried for a bit, but eventually gave up. Versions of Mzscheme after 372 made conses immutable, and it was just too hard to work around this.

(I'm surprised they did that, actually, because it means Mz is no longer compatible with the Scheme standard.)

This might be the time to fork off a new MzScheme, if anyone is up for that.

-----

2 points by elibarzilay 5794 days ago | link

No fork is necessary for mutable pairs -- mzscheme is flexible enough to allow breaking itself...

-----

1 point by CatDancer 5794 days ago | link

I tried a port (http://hacks.catdancer.ws/plt4-port.html) but it's running 3.5 times slower... any suggestions?

-----

1 point by CatDancer 5794 days ago | link

This might be the time to fork off a new MzScheme, if anyone is up for that.

Are there any bugs or deficiencies in MzScheme 372 that we'd like to fix if we keep using it?

-----

1 point by rocketnia 5794 days ago | link

Wouldn't it be simpler just to fork from 4.2? Making immutable pairs not-really-immutable shouldn't actually break any existing PLT-based code, since that code won't modify them. ^_-

It might break some low-level optimizations in PLT Scheme itself (which could be fixed in the forked version), it might break compatibility with other projects that dig into the PLT code, and it might annoy some library writers who really didn't want careless users to shoot themselves in the feet or expose security holes, but that's all the trouble I can think of offhand.

-----

1 point by CatDancer 5794 days ago | link

Simpler in what way?

Breaking the PLT Scheme optimizer by mutating pairs it thinks are going to be immutable and then going in and figuring out which optimizations to fix doesn't sound very simple to me... but, assuming that it was easy to do, what does starting from 4.2 do for us?

-----

1 point by rocketnia 5794 days ago | link

I guess I just see "Take the newest MzScheme and implement not-so-immutable conses again" as a conceptually easier task than "Take the fork and implement feature A and feature B as inspired by the newest MzScheme." Of course, the more objections we have to MzScheme changes, and the more features of our own we want to include, the harder this becomes.

-----

2 points by elibarzilay 5794 days ago | link

There are a lot of new features, as well as more and better optimizations in v4.2.

-----


I don't think you need genstring. You can duplicate your example with +:

    > (apply + '("T" "h" "a" "d" "d")) 
    "Thadd"
or with string if you don't know what the first arg type will be:

    > (apply string '(t "h" "a" "d" "d")) 
    "thadd"

-----

1 point by thaddeus 5799 days ago | link

There are sooo many uses for these generic functions, I just need to get up to speed with all the possibilities...

thnx T.

-----

2 points by pg 5801 days ago | link | parent | on: New: inc, expanded range

Are there any plans to add the +=, -=, etc. operators?

Is the existing ++ not sufficient?

-----

2 points by shader 5801 days ago | link

I guess I never noticed that the existing ++ operator could take a second argument, sorry.

However, the *= and /= operators are still very useful, and it would be very cool if a simple ssyntax could make it general to all single argument functions, or at least functions in which the first argument is the one being modified/extended. Good examples would be += as applies to alists and tables, and things like cut or sort.

Is there a reason that you can't append an atom to a list with '+ or '++?

-----


I was talking about an earlier implementation of Arc. One day we'll take control of stuff like parameters and remove this restriction again.

-----

1 point by pg 5805 days ago | link | parent | on: New Version of Arc

Ok, it's gone.

-----

1 point by pg 5806 days ago | link | parent | on: Update: clearer +, inverse trig functions

Thanks, both fixed in the latest arc3.tar.

-----

1 point by pg 5807 days ago | link | parent | on: Inverse of trigonometric functions?

They're in the latest arc3.tar.

-----

1 point by pg 5807 days ago | link | parent | on: Update: clearer +, inverse trig functions

The latter.

-----

3 points by tc-rucho 5807 days ago | link

Hg/Git FTW ;)

-----

More