Search found 106 matches

by Paul
Wed Jul 15, 2009 9:57 pm
Forum: Common Lisp
Topic: terminal color output
Replies: 10
Views: 17998

Re: terminal color output

Jose Brava wrote:Hi,

is there a simple way of getting a colored output with sbcl? I need the same output as from the

Code: Select all

echo -e "\033[34mBlah"
bash command. Any ideas ;)?

Thanks
--
JB
http://users.actrix.co.nz/mycroft/terminfo.lisp

(ti:set-terminal)
(ti:tputs ti:set-a-foreground 4)
by Paul
Sat Jul 11, 2009 10:05 pm
Forum: The Lounge
Topic: Tragedy of the commons
Replies: 56
Views: 91857

Re: Tragedy of the commons

tayssir: "Planned economies can use price systems." How can they? I think you're missing the point of the pricing mechanism. By being parasites on the free(r) economies. Quoting Economics for Real People : Soviet planners even copied commodity prices out of The Wall Street Journal to use ...
by Paul
Sat Jul 11, 2009 8:11 pm
Forum: The Lounge
Topic: Tragedy of the commons
Replies: 56
Views: 91857

Re: Tragedy of the commons

Secondly almost none of the oceans/seas of the world have been divided into ownership, most of it doesn't even belong to any nation, most countries controlling fishing do so by licensing. This does not give much incentive for any individual fisher to fix pollution of their water, or to try improve ...
by Paul
Sat Jul 11, 2009 1:17 am
Forum: The Lounge
Topic: Tragedy of the commons
Replies: 56
Views: 91857

Re: Tragedy of the commons

Are you claiming that regulation of pollution, fishing or advertising on the streets, isn't restriction of liberty for parties involved. Or are you claiming that overfishing wouldn't happen, pollution would decrease itself and advertising on the streets would decrease itself, even without regulatio...
by Paul
Mon Jun 22, 2009 8:06 pm
Forum: Common Lisp
Topic: incorrect simple floating point math
Replies: 28
Views: 32835

Re: incorrect simple floating point math

Harleqin wrote:As long as the numbers stay inside the FIXNUM range, calculating in cents should be faster. Beyond that, it is a tradeoff between BIGNUM and RATIO arithmetic overhead.
Which is why it often is a good idea to use floats...use them as 53 bit hardware-supported big-fixnums...
by Paul
Tue Jun 02, 2009 8:52 pm
Forum: Common Lisp
Topic: Replacing elements in a list
Replies: 22
Views: 24179

Re: Replacing elements in a list

Hi All. I need some help cause I have no enough knowledge to complete my task. So what's the goal. I need to define a a function which places a simbol * before every less-than-zero (-1..-5 etc.) element. For ex. I've (setq a'(1 ,2 ,3 ,-1, -5 ,7 ,-8) a list. So then I should call a function forex My...