Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical

Re^3: Open Human Readable Computer Aided Design file format

by toma (Vicar)
on Oct 09, 2005 at 09:05 UTC ( #498530=note: print w/ replies, xml ) Need Help??

in reply to Re^2: Open Human Readable Computer Aided Design file format
in thread Open Human Readable Computer Aided Design file format

I've been using YAML for storing CAD data for a while now. I use it to store simulation and design information about electrical designs.

Mostly YAML works but I have seen it get fooled by some of the data that I have tried to store.

I use YAML to serialize large perl data structures into files. I will probably change from using YAML to something more reliable, at least for complex data structures. XML is the leading candidate.

There are some very interesting ideas that would be useful for CAD in Higher Order Perl.

I don't agree that perl 5 is unsuitable for writing CAD tools. At least one company sells a very large perl program that is a full-featured CAD tool.

Since such a large percentage of CAD work is really data munging, it tempting to just write the whole thing in Perl.

I have run into a fundamental problem with perl and CAD, though. Perl ruins the accuracy of floating point numbers at about 16 digits when numbers get stringified. Many things can trigger stringification, so it is difficult to prevent it from happening.

It should work perfectly the first time! - toma

Comment on Re^3: Open Human Readable Computer Aided Design file format

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://498530]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2015-11-30 22:19 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (788 votes), past polls