Arc Forumnew | comments | leaders | submit | bOR_'s commentslogin
1 point by bOR_ 6073 days ago | link | parent | on: Howto: windows + command line arc?

Sounds interesting.. I've seen a friend work with DrScheme. Any shreds of memory how to hook it up to arc?

Ah. Step three here: http://arcfn.com/2008/05/using-opengl-with-arc.html

-----

1 point by bOR_ 6073 days ago | link

Small snag. I used drscheme 372 and anarki. opened as.scm as per instructions and ran it, but it error'd out on loading ffi.scm. I'll try and install drscheme 352 to see of that helps.

  > (require mzscheme)
  > (require "ac.scm")
  > (require "brackets.scm")
  > (use-bracket-readtable)
  > (require "bitops.scm")
  > (load "ffi.scm")
  procedure application: expected procedure, given: #f; arguments were: #<struct:fun-syntax> #<syntax:C:\Program Files\anarki\ffi.scm:18:14>
  >

-----

1 point by bOR_ 6065 days ago | link

Never fixed the snag.. but there also seems to be the problem that you open as.scm in the edit window, whilst I want my arc file in there.

-----

1 point by bOR_ 6082 days ago | link | parent | on: Explicit local =

what is exactly the advantage it has over 'let'? Just brevity? (I'm not sure if having explicit local variables adds clarity)

-----

2 points by drcode 6081 days ago | link

it's the combo of brevity, one less set of parens and one less indentation level.

-----

1 point by stefano 6082 days ago | link

It would let you avoid adding an indentation level.

-----


mmm. http://www.heise-online.co.uk/open/Shuttleworth-Python-needs...

I can imagine as a language founder you'd hate remarks like the one above, where other people tell you that in order for your language to remain popular, you have to address these and these and these points.

What would excite me most (but I'm somewhere at the bottom of the food chain when it comes to language design) is that different new and old ideas for implementation of certain language features can be tried in arc.. so.. if we want to be able to load modules, what kind of options do we have to design a loading system.. and what about arc gives us new / better options to design a module system that other languages did not have, and thus could not consider as an option.

-----

1 point by bOR_ 6085 days ago | link | parent | on: Return value of pr and prn

at least in agent-based models, printing is not the thing that is happening so often that consing up a new list is prohibitive.

How much more expensive is cons compared to multiple return values? I remember there being a long discussion against mrvs.

-----

2 points by stefano 6084 days ago | link

> How much more expensive is cons compared to multiple return values?

It depends on the GC used and on the implementation. mrvs are usually pushed on the stack, so there is no GC overhead. When I develop applications with Lisp, I notice that most of the time reducing the amount of garbage speeds up the program noticeably. It's not only a problem of consing, it's also a problem of collecting the garbage. More garabage, more collection cycles.

-----

1 point by bOR_ 6086 days ago | link | parent | on: Return value of pr and prn

Wouldn't it be even more beneficial to return the whole, rather than just the first (so that it prints out the whole content of the symbol)?

-----

4 points by bOR_ 6087 days ago | link | parent | on: Return value of pr and prn

Wouldn't it be more useful it prn and pr not only have their side-effect of printing, but also return the sideeffect (i.e., return the string they just printed)

-----


but you're having fun with it, right? =). That is important too.

-----

2 points by bOR_ 6089 days ago | link | parent | on: (serve 8080) trouble

Ha! Got it. I was using the Anarki stable download at http://github.com/nex3/arc/tree/stable . Now I just downloaded the master and it works. Gracias.

-----

3 points by bOR_ 6090 days ago | link | parent | on: Arc's web server in Lua

Heh. Lua is pretty nice. Wrote a few mods for warcraft in it. The prefix notation is growing on me though as it appears to be clearer to my mind what is happening when things are written in prefix than infix (took a bit of getting used to though).

-----

1 point by bOR_ 6090 days ago | link | parent | on: Improve this function 2 =)

thanks for the (- somevariable)! I was using there (and in other places) still ( -1 somevariable)..

-.variable = (* -1 variable) work just fine in arc.

errsafe was a trick I learned from my previous 'improve this function' post :).

-----

More