Arc Forumnew | comments | leaders | submit | garply's commentslogin
1 point by garply 5641 days ago | link | parent | on: Arc to JavaScript translator?

I started a port of parenscript a while back but never finished it. I'll upload it to github tmrw in the hope that someone will help me complete it.

-----

5 points by garply 5647 days ago | link | parent | on: Why "!"?

Thanks for the responses guys! I get it now. Actually, it's kind of clever:

. + ' => !

I think I read somewhere that some old typewriters saved key space by using that eliminating the exclamation point and forcing typists to use that combo.

Still, it seems kind of hard for me to scan it as two separate components: my brain parses "foo!bar" quite differently than "foo.bar" - I guess it'll become more natural with time.

-----

5 points by evanrmurphy 5646 days ago | link

As the next installment in our "A confession of stupidity" series [1], I never realized that before. :) Turns out that superimposing chars on top of each other to make other chars is an addictive game, though. Here are a few I came up with:

  |S => $
  :, => ;
  ++++ or //= => #
  o/o => %
  ao or aO => @
  \S => &
  -x or -X => *
  |_ => L
  /-\ => A
  |3 => B
  ][ => I
  |-| => H
  C- => G
  |= => F
  |^^| => M or m
  |< => K
  |? or |> => P
  |o => b
  |) => D
  -/_ => z
  O, => Q
  -| => +
  |\| => N
  bP => B
Unfortunately, few if any of these could be useful for Arc.

  .' => !
is really kind of a gem.

[1] http://arclanguage.org/item?id=11556

-----

1 point by garply 5662 days ago | link | parent | on: Environments for Arc programming?

The with macro indentation drives me nuts too, but I'm sure it's fixable.

-----

2 points by garply 5664 days ago | link | parent | on: Environments for Arc programming?

I use the same setup as you - have you made any significant changes to your emacs config files? Maybe we can share.

The Anarki emacs config could be improved. For example the indentation for the with macro drives me crazy, but I don't know how to fix it. Also, it breaks viewing of some Unicode chars (which is a problem for me as I write a lot of Chinese) - I've got a crappy workaround for that. And some other issues.

-----

2 points by evanrmurphy 5663 days ago | link

I'm just coming over from Vim so my .emacs file is still pretty vanilla, but I'd be interested in seeing yours!

-----

2 points by garply 5690 days ago | link | parent | on: popnth

I wrote a popnth in lib/util.arc a little while back which behaves well. Although it errors when you try to pop an empty list or a non-existent element - do you guys think it should return nil instead?

-----


Died for me on Arch Linux too:

$ mzscheme --version Welcome to MzScheme v4.2 [3m], Copyright (c) 2004-2009 PLT Scheme Inc.

Also, I second the notion that shared-memory threads are a bad idea. I really like Termite's message-passing model.

-----

1 point by aw 5708 days ago | link

Died for me on Arch Linux too

Which test were you running, akkartik's or palsecam's?

-----

1 point by garply 5707 days ago | link

akkartik's code died on me with the first time I ran it, but I haven't been able to reproduce it.

This is what happens with palsecam's code:

arc> (= var 0 tbl (obj var 0))

#hash((var . 0))

arc> (repeat 50000 (thread (++ var) (++ tbl!var)))

nil

arc> var

49999

arc> tbl!var

50000

-----

1 point by palsecam 5707 days ago | link

  arc> var
  49999
is strange, but the code you tried is not the one demonstarted a bug. You should 'sleep in the threads (i.e: the second example in my comment).

-----

1 point by garply 5707 days ago | link

When I do the second example, I get results similar to yours.

-----

2 points by garply 5770 days ago | link | parent | on: Ask ArcLang: What do you write Arc in?

Emacs in viper mode, with some customizations on the emacs config from Anarki.

-----


I was frustrated a bit ago with the lack of good web support so I wrote some get and post code for web-scraping and started on porting termite so we could get erlang-style message passing. If someone wanted to help out on the termite stuff, maybe we could get that finished. I guess I'll upload my scraping stuff to github.

-----

1 point by garply 5896 days ago | link | parent | on: Outgoing sockets

Thanks for this - do you think maybe this (or some form of this) should go into the nex3 repo? Ability to make outgoing connections seems pretty important for a language.

-----

1 point by rntz 5896 days ago | link

Done.

-----