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

My Portuguese is a bit rusty. How about some background: Motivation, OS, hardware, reception by users, length of use, etc?

Thanks, Steve

-----

5 points by marcvs 4590 days ago | link

hi, steve

I've been working at big newspapers/news companies here in Brazil for many years, but I'm not that happy with these companies strategies, so I decided to try some side project...

I don't know much about programming, so I decided to try something that was really simple. I'm a reader of Hacker News, discovered it's open source, and started looking for how to set up a clone. São Paulo is a really large city (11,32 million people live here), but we lack hubs to connect all these people (I think our news companies aren't doing that very well). So, I came up with this idea of applying the HN concept to a local news project.

To be honest, my main goal here is to learn more about programming and other technical stuff, so, it's been an awesome experience. The site runs on Amazon Linux AMI, and the majority of users are still my friends and the friends of my friends. (I finished the translation work yesterday). :P

It will be a pleasure to share more data with you in the following weeks! And thanks for all the help and support I found here.

PS.: "Espaço" can be translated as "Space", or a generic place. It's a common word in portuguese.

-----

3 points by jsgrahamus 4589 days ago | link

Hi, Marcos.

Congratulations on all you've done starting even as a non-programmer. I'm impressed. Although I've been programming for decades, I have little experience in Arc or Lisp and have found the folks on this forum to be friendly and helpful.

Many years ago I lived in Brasil for about 2 years. Part of that time I spent in Sao Paulo: Pinheiros, Jacana, Santa and Jabaquara. Still have good memories of that time.

Ate logo.

-----

1 point by marcvs 4589 days ago | link

thanks! e até logo! :)

-----


And for the successor of Icon: http://unicon.sourceforge.net/

-----


Here is a link from the originating site for Icon: http://www.cs.arizona.edu/icon/

-----


I've used this language off and on for decades. And Unicon is the successor (http://unicon.sourceforge.net/).

-----

2 points by akkartik 4646 days ago | link

Care to do a mini-review? :)

-----

3 points by jsgrahamus 4668 days ago | link | parent | on: Number - Real

I vote for inexact.

-----

2 points by akkartik 4668 days ago | link

Hmm, I thought about it some more, and it seems worth preserving exact because you lose information in going to inexact.

The solution I ended up with was to use your name and Pauan's trick: https://github.com/nex3/arc/commit/4227a4a9b9.

Now instead of

  (coerce (/ 3 2) 'num)
You'd say:

  (real (/ 3 2))
What do you think? Easy to change if you prefer.

-----

1 point by Pauan 4667 days ago | link

Since that's being done in Anarki, I'd rather use $.exact->inexact, rather than relying upon Racket's auto-coercion. My trick is best used in Arc 3.1 which doesn't have (easy) access to Racket.

-----

2 points by akkartik 4667 days ago | link

Ok, done. For some reason I thought your trick was more permissive..

-----

2 points by jsgrahamus 4667 days ago | link

I like the (real (/ 3 2)) format. You easily get both.

-----

1 point by jsgrahamus 4668 days ago | link | parent | on: Number - Real

Good catch, Pauan. Thanks.

-----

1 point by jsgrahamus 4669 days ago | link | parent | on: Number - Real

Thanks, zck.

So I can use this:

  (coerce (num (/ 3 2)) 'num) --> 1.5

-----


And Gambit has been ported to iOS and Android.

-----

2 points by jsgrahamus 4792 days ago | link | parent | on: Requesting a hallway usability test

I received no error messages.

I did try factorial and got some strange answers:

  (def fact (n) (if (< n 2) 1 (* n (fact (- n 1)))))
 
  => (object function {sig, body, })
  (fact 5)
 
  => 120
  (fact 1000)

  => 0
  (fact 10)

  => 3628800
  (fact 21)

  => -4249290049419214848
This is was run on Scientific Linux 6.2 in Virtual Box on Windows 7 Home Premium (64-bit)

-----

1 point by akkartik 4792 days ago | link

Thanks a lot! Yes, wart doesn't support bignums yet. Its arithmetic is that of the underlying C, which on a 64-bit machine can handle factorial of 20, but not 21.

  fact.20

  => 2432902008176640000

-----

2 points by jsgrahamus 4820 days ago | link | parent | on: J Programming Language

I've spent most of 30 years programming in a language which was sparse in its notation. I think I could get used to J.

-----

1 point by kinleyd 4820 days ago | link

What language was that? J looks very interesting, particularly the jdb side of it. I'd only recently come across q/kdb so learning about the free j/jdb alternative was great.

-----

2 points by akkartik 4820 days ago | link

MUMPS. I've asked jsgrahamus this several times :)

-----

2 points by jsgrahamus 4819 days ago | link

Thanks, akkartik. Should have mentioned it.

-----

1 point by kinleyd 4820 days ago | link

Heh, a very intriguing name. :) Have to check it out. Thanks akkartik.

-----

More