[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: Working on a tiny schematics editor



Go for it! I think your idea is really neat. I'm a hard core Ruby programmer and have had similar experiences - you can say a lot in a little bit of space, the code is very readable, and coding goes quickly. I can think of some other useful applications for a Ruby version of gschem. A small, highly portable version of gschem that works without the user having to deal with Makefiles and such (if you've got Ruby and the needed gems, it just works). And the second idea: Ruby/Rails is a popular framework for building websites. It might be possible to use your gschem core and a different front end (javascript) to make a web version of gschem (so anyone could run it from any web enabled device) - I have a need for something like this today.

Steve


On 10/7/10 1:31 PM, Stefan Salewski wrote:
Some weeks ago I started working on a very basic schematics editor,
compatible with current gschem file format. I am writing it in Ruby,
using GTK/Cairo.

You may ask: Do we really need one?

No, gschem works fine.

You may say: That is wasting of your time.

Maybe...

You may say: You should better use QT, C++, Java, Python, OpenGL...

Maybe...

So why I started that task, and why do I write this text?
Some weeks ago there was a discussion about subnet support for gschem.
The conclusion was, that I have to learn some guile to implement it. OK,
some day I may do that, but currently my motivation is not really great.

On the other hand, I am currently learning Ruby and GTK/Cairo, and I do
not really love programming in C.

So I started a Ruby parser for gschem schematic files, just for fun, and
progress was really fast. Current state, after only 150 hours of work,
is that I can read in most basic shapes and write a cairo PNG file. (OK,
currently only embedded symbols work...)

So chances are not too bade that I will continue working on it in the
next months -- it is really easy and fun. A basic GUI and export of PCB
netlist should be not too difficult. I am not sure if I will ever
support hierachical design and other netlist formats -- that may be
really complicated?

A copy of the Ruby source text, and the png output is here.

http://www.ssalewski.de/tmp/pet.rb
http://www.ssalewski.de/tmp/out.png

Please note, I am NOT looking for support. Smart programmer should
better support PCB and gEDA development, that is much more useful. But
of course, if someone is really interested in this project, he may
contact me.

Can you remember, some years ago someone wrote about a Python editor on
this list, I never have heard about it again. Maybe the same for my
stupid idea.

Best regards

Stefan Salewski




_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user




_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user