Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Sunburned Surveyor

#1
newLISP in the real world /
May 09, 2006, 11:17:44 AM
Thanks for the quick response Lutz.



I have looked over the manual, but still wasn't clear on a couple things. I will spend some more time thinking about my problem. In a few days I'll try to post some more details if I can't get it working.



Thanks for your explanation and help.



The Sunburned Surveyor
#2
I'm back. :]



I've done some reading on the "open", "exec", and "pipe" commands in the NewLISP manual and I'm still a little confused about the best way to approach a particular problem.



I'm trying to set up communication via text messages between a NewLISP application and an application that doesn't support pipes. (Namely AutoLISP...) However, I can write to text file from the other application.



I think I can write my message for the NewLISP application into a text file and use a combination of the "pipe", "exec" and "open" functions in my NewLISP application to incrementally read that text from the same file.



Is this possible, and if so, how might I use the three newLISP functions to do so?



Thanks for the help.



The Sunburned Surveyor
#3
I would like to know if there is a function in NewLISP that will return all the elements of an association list based on the value of any of the lists members.



For example, I have the following list:



("fruit" "bannana" "pear" "apple" "plum" "grapes")

("vegatables" "lettuce" "celery" "cucumbers" "olives" "onions")

("junk food" "ice cream" "licorice" "chocolate bar" "carmel apple" "bubble gum")



I want to be able to retrieve the entire "junkfood" list by searching for any one of the elements. I believe the lookup and assoc functions only allow you to do this when using the first element in the association list.



Thanks for the help.



The Sunburned Surveyor
#4
newLISP in the real world / Breaking out of dolist...
November 30, 2005, 04:10:43 PM
Is it possible to break out of a dolist loop before all of the elements in the subject list have been iterated through?



For example, I want to use dolist to manipulate each element in a list until I reach an element with a certain value. Is this possible?



What syntax would I use to break out of a dolist or other loop in NewLISP?



I checked the NewLISP manual, but I couldn't find a "break" statement that is common to other languages.



The Sunburned Surveyor
#5
Whither newLISP? / newLISP Manaual
July 29, 2005, 07:39:17 AM
Lutz,



Thank you for the information. I do have a printed copy of the newLisp manual. It is highlighted and has notes scribbled in the margins. :]



However, I seem to have a difficult time making sense of some of the things in the manual. It is a great reference, but I wish there was some more newLISP documentation for beginners.



I did also download the Design Patterns in newLISP doc. I haven't read through it thoroughly yet, but will.



I hope my questions are not a bother. I am trying to implement an object-oriented framework for newLISP, which I will use to implemement my geometry library.



This is a lot of work though, and the source of my many questions! I will release all my code back to the community when I have my first stable build.



More importantly, I will prepare thorough documentation that will guide a new lisper through the process of using newLISP, and will help them to understand how to use newLISP printing for object oriented programming. The documentation will take them through the construction of my geometry library step by step, so that they understand the concepts.



I haven't forgotten about my IDE for newLISP either. I'm still learning about how to write a parser in Java. When I've got a handle on this, I will start the newLISP plug-in for Eclipse, which will support my newLISP OOP system.



My newLISP OOP system will offer these features to the newLISP community:



Object-Oriented Programming Abilities

Overloaded Methods

Object Inheritence and Polymorphism

Error Handling

Event Handling

newLSIP OOP Wrapper for GTK/GTK-Server GUI Components



In the future I also hope to implement a Unit Testing feature similar to JUnit.



Thanks again for your help.



Landon



P.S. - Is it possible for a symbol to contain more than 32 bytes? For example what if I use symbol A to store a list that contains symbol B and symbol C, which are both 32 bytes? Are symbol B and symbol C stored by reference only?
#6
Whither newLISP? / Newlisp Memory Usage
July 28, 2005, 04:54:04 PM
I've got 3 brief questions about newLISP memory usage. I looked over the manual, but didn't see anything that answered my question directly.



[1] Is there a way to see the total amount of memory newLisp is using at a given moment?



[2] Is there a function that returns a list of all the symbols currently in memory? How about the size of each symbol in memory?



[3] Is there a way to time the execution of a newLISP function?



Thanks,



The Sunburned Surveyor
#7
Is it possible to have a custom function defined in newLisp that accepts a variable number of arguments?



For example, could I have the "doThis" function accept an integer named "number1" and a string named "text" or just two integers, "number1" and "number2"? How would I do this? Can you do it by just specifying all parameters in the define statement for the function, and then if the values are not used they are passed as nil?



Thanks,



The Sunburned Surveyor
#8
Question for the NewLISP pros:



I am setting up a programming library in NewLisp, and I would like to use an object-oriented programming model. I know that this can be accomplished using contexts in NewLISP, but I believe it could also be accomplished with lists.



For example, my geometry library will contain "point" objects, with 3 simple properties, or symbols. (One property for each coordinate value.)



I could represent each point object with a context, or each point object with a list containing the 3 properties as the list elements.



What are the advantages and disadvntages of each method? (As far as speed, memory usage, simplicity, and ease of use?)



Thanks,



The Sunburned Surveyor
#9
pjot and HJH,



Thanks for the suggestions. I may indeed incorporate ideas from other geometry libraries.



However, I am modeling most of my library on concepts in JTS, or the Java Topolgy Suite.



My library will be built primarily for GIS and Surveying applications, although it could be used for other pruposes. This will give the library a unique slant I think.



I would also like to implement some functionality not common to many geometry libraries. My geometry will also include a unique spatial indexing system and persistent XML storage of geometries.



The Sunburned Surveyor
#10
NewLISPers,



I've been brainstorming ideas for a geometry library for NewLISP. (When I can't sleep at night...)



I've jotted some things down on paper, and I'm getting ready to start writing code.



The geometry library will work with 3D entities, and will include the following geometry objects:



Points

MultiPoints

Lines

MultiLines

Polygons

MultiPolygons

3D Faces

3D Solids

3D Composite Solids

TIN Surfaces

LinearNetworks



The library will allow you to do basic geometry operations like:



[1] Scaling

[2] Rotation

[3] Translation

[4] Copying/Duplication

[5] Arraying



And lots of other things like:



- Calculate the slope and vertical difference of a 3D line.

- Determine the percentage of overlapping polygons in a MulitPolygon.

- Calculate the volume of a composite solid.



All of these functions will be available via NewLisp functions.



If you are interested in the development of this library, please let me know. I could use some advice and comments before I invest a lot of time in the design.



Thanks,



The Sunburned Surveyor
#11
newLISP in the real world /
March 21, 2005, 01:45:42 PM
Thanks Hans-Peter...I'll take a look.



The Sunburned Surveyor
#12
I'm designing a simple database in newLisp based on an XML document. I was wondering if anyone has tried to run any compression utlities from newLisp? I would like to compress the XML file representing the database as part of the save/serialization process, but I would like this step to be invisible to the user. (The same would apply to decompression when the user opens the database.)



Any ideas? I prefer open source solutions if at all possible.



I would also like to know if anyone has done any work validating XML schemas with newLisp? Either internally, or via an external tool.



The Sunburned Surveyor
#13
newLISP newS / newLisp IDE Website
March 03, 2005, 05:04:28 PM
I've got the newLisp IDE website up at SourceForge, although development hasn't begun just yet.



http://newlispeclipse.sourceforge.net/">http://newlispeclipse.sourceforge.net/



Let me know if your interested in helping with the project...........I could use some experienced Lispers and anyone that has experience with Eclipse or Java programming.



The Sunburned Surveyor
#14
newLISP Graphics & Sound /
February 17, 2005, 11:56:08 AM
Thanks HPW....I'll want to talk to you when I start coding. Thanks for your help.



Landon
#15
newLISP Graphics & Sound /
February 17, 2005, 11:29:56 AM
Thanks Lutz.....I'll check out chapter 20.



The Sunburned Surveyor