Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

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?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://498530]
help
Chatterbox?
[Corion]: LanX: Ah, yeah - Frankfurt is in the quake region, but at the very border. I think I've never noticed a quake in Frankfurt myself
[marto]: good morning all
[Corion]: On another topic, in the process of Rubber Duck SoPWing, I wrote a post about the best API for generating HTTP requests (not sending them) and while writing it and fleshing out my sample implementation, I came up with some improvements to my ...
[Corion]: ... existing prototype. Cartesian Products will be proud of that module once it gets out ;)
[Corion]: Hi marto ;)
LanX has the same problem with English accents ...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2017-01-18 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (161 votes). Check out past polls.