Search found 43 matches

by Pixel_Outlaw
Thu Oct 17, 2013 10:59 pm
Forum: Common Lisp
Topic: Language agnostic graphics (Project in CL + LTK)
Replies: 14
Views: 27321

Re: Language agnostic graphics (Project in CL + LTK)

While you work on the LOGO part I'm trying to figure out how to simply pipe commands I was given a small snippet of code to test in #Lisp on freenode but it seems that even after piping lines to the program it exists before the (princ) line is evaluated... #!/usr/bin/sbcl --script (defun enumerate-l...
by Pixel_Outlaw
Thu Oct 17, 2013 4:11 pm
Forum: The Lounge
Topic: Learning to read and comprehend math notation
Replies: 3
Views: 11558

Re: Learning to read and comprehend math notation

Thanks for the help edgar-rft!
I'm going to look into these now. Much appreciated.
by Pixel_Outlaw
Wed Oct 16, 2013 8:10 pm
Forum: Common Lisp
Topic: Language agnostic graphics (Project in CL + LTK)
Replies: 14
Views: 27321

Re: Language agnostic graphics (Project in CL + LTK)

Thank you for cleaning up my code! I've replaced my old copy with your additions. Odd that you mention LOGO. It was actually my first language as a small grade school boy. Without knowing I was programming. We entered LOGO commands into the Apple ][e computers in school following instructions to mak...
by Pixel_Outlaw
Mon Oct 14, 2013 7:18 pm
Forum: Common Lisp
Topic: Language agnostic graphics (Project in CL + LTK)
Replies: 14
Views: 27321

Re: Language agnostic graphics (Project in CL + LTK)

Thanks for your help!

Much of my time on the week is take up by my day job so I don't have programming time until the weekends. :)

I'd welcome anyone who wants to work on this.
by Pixel_Outlaw
Sun Oct 13, 2013 9:43 pm
Forum: Common Lisp
Topic: Language agnostic graphics (Project in CL + LTK)
Replies: 14
Views: 27321

Language agnostic graphics (Project in CL + LTK)

So some time ago I was wondering about writing a language agnostic graphics terminal. My plans fell a bit short and I was only able to product a display device. http://i.imgur.com/ze4hK2cs.png This is not complete yet but supports drawing. Right now it just reads a file with commands and produces th...
by Pixel_Outlaw
Tue Oct 08, 2013 8:10 pm
Forum: The Lounge
Topic: Learning to read and comprehend math notation
Replies: 3
Views: 11558

Learning to read and comprehend math notation

Many times I wish to implement an algorithm but simply can't seem to grasp what is being said by mathematicians. Usually something to the effect of "large E" with subscripts some parens, then some collections of variables with subscripts some ellipses maybe some assignment type arrows etc....
by Pixel_Outlaw
Mon Sep 30, 2013 5:23 pm
Forum: Common Lisp
Topic: How to draw board
Replies: 2
Views: 5164

Re: How to draw board

Give this a try: (defun draw-board (num-across num-down square-width) (dotimes (y num-down) (dotimes (x num-across) (princ "+") (dotimes (z square-width) (princ "-"))) (princ "+") (format t "~%"))) You could also modify this to draw vertical bars | on the side...
by Pixel_Outlaw
Sat Sep 28, 2013 10:19 pm
Forum: Common Lisp
Topic: Working on a computational geometry lib...
Replies: 6
Views: 12617

Re: Working on a computational geometry lib...

Thank you for the links. :)
by Pixel_Outlaw
Sat Sep 28, 2013 12:17 am
Forum: Common Lisp
Topic: Working on a computational geometry lib...
Replies: 6
Views: 12617

Re: Working on a computational geometry lib...

I would encourage you to create a CL binding to an existing library rather than attempting to create a new one from scratch. These things require a large number of functions, and the math can be quite hard to get right. Here is an "easy read" showing some of the possible gotchas. http://w...
by Pixel_Outlaw
Thu Sep 26, 2013 10:15 pm
Forum: Common Lisp
Topic: Working on a computational geometry lib...
Replies: 6
Views: 12617

Working on a computational geometry lib...

Hello again, I really suck at math for the most part but I'm trying to implement a CAD like library of intersection functions. The user Bike from #Lisp (irc.freenode.net) said I should probably not return lists but use structures, classes and multiple return values. I'll probably get around to that ...