Author Topic: Perl for CNC  (Read 23682 times)

Offline macbob

  • Storm Trooper
  • ***
  • Posts: 189
    • View Profile
    • Bob Mackay
Re: Perl for CNC
« Reply #15 on: February 17, 2015, 16:52:16 pm »
I'm glad you found it interesting!  Just trying to get people working on things!

Bob


p.s. I gather your drought in Brazil is worse than ours in California!  Good luck!


Offline rymaeda

  • Ewok
  • *
  • Posts: 13
    • View Profile
Re: Perl for CNC
« Reply #16 on: February 17, 2015, 19:18:41 pm »
Hi, MacBob.

Really its worst drought in 80 years, but worse than this are our political class, worst in 120 years, cause are expensive, incompetent and corrupt, all at excess. Last year there were elections and this delayed any providences by our governants about this serious climatic occurrence. Today are raining a lot but we need much more rain yet along next months.

I found one bug in my routines, cause there are a sentinel point at end of "d" string and some adjusts are necessary, project file in previous message fixed.

Regards

Ricardo
« Last Edit: February 17, 2015, 19:24:38 pm by rymaeda »

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8787
    • View Profile
Re: Perl for CNC
« Reply #17 on: February 17, 2015, 19:33:23 pm »
I'm interested in how Perl works out for this sort of thing.  I had such a BAD experience with Pascal back in the 1980s, that I eschewed any but the 'standard' languages ... which basically means variants of BASIC or 'C', or assembly-language for the processor in use.

Lloyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline macbob

  • Storm Trooper
  • ***
  • Posts: 189
    • View Profile
    • Bob Mackay
Re: Perl for CNC
« Reply #18 on: February 17, 2015, 21:43:19 pm »
Hi Lloyd,

Yes, Pascal was a language that only an academic could love.  It had overly aggressive type checking and very strange double-buffered I/O, which confused everyone.  I nearly ended up doing my Masters with Niklaus Wirth at ETH, because my university gave him an honorary degree.  I did write a Pascal compiler though.  It was a long time ago!  Good times!

Perl is especially good for text processing and and can easily handle both creating and consuming XML.  I tend to do everything with it, because it is what I have been using for work since the early '90s.  These days one would probably use Python for the sort of thing I do.   I would not try to parse XML in BASIC or C!

My code examples in this thread were more to make the point that there are other ways to skin a cat, and that writing plugins is not the only way to get things going in CamBam.  One of the best things about CamBam is the fact that it keeps its data in an XML structure; although the fields are specific to CamBam, the format is very general, opening it up to other tools.  You can even view a .cb file in a browser!

Bob

Offline BR52

  • Wookie
  • ****
  • Posts: 368
    • View Profile
Re: Perl for CNC
« Reply #19 on: February 18, 2015, 00:04:04 am »
Olá! Ricardo

   Seja Bem Vindo ao CamBam.

Eu também sou Brasileiro moro em São Paulo na capital.

Uso CamBam desde 2007, sou programador na linguagem C# e C++.
Tenho o Visual Studio 2005 Pro instalado num PC velho e no PC atual o
Visual Studio 2010 Ultimate.
Uma dica a arquitetura do CamBam é escrita em linguagem C#.

Infelizmente eu tenho uma doença que é "tremor essencial" consulte o Google.
Sou aposentado com 63 anos.

Eu concordo com você sobre ladrões e corrupção se não fosse isto o Brasil estaria
igual ao Estado Unidos e a Inglaterra em tudo!
Existe também manipulação externa.

Abraços.

   Armando
« Last Edit: February 18, 2015, 00:07:57 am by BR52 »

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8787
    • View Profile
Re: Perl for CNC
« Reply #20 on: February 18, 2015, 00:17:07 am »
What?  Are we ALL "old farts" around here?
 ;D

LLoyd
"Pyro for Fun and Profit for More Than Fifty Years"

Offline dwc

  • CNC Jedi
  • *****
  • Posts: 549
    • View Profile
    • corson.ch
Re: Perl for CNC
« Reply #21 on: February 18, 2015, 07:02:29 am »
What?  Are we ALL "old farts" around here?

Hey Lloyd, watch out what you say.
I passd the 60 two weeks ago and am not amused by such comments.
 ;D

Don

Offline rymaeda

  • Ewok
  • *
  • Posts: 13
    • View Profile
Re: Perl for CNC
« Reply #22 on: February 18, 2015, 11:51:30 am »
"old farts"? lol
Maybe fart but I'm "just" 46   ;)
Well, in my distant youth years I coded in basic and assembler Z80 and just a little in Pascal. My first contact with C was traumatic but at middle 90's, and today, C compilers was very good, free and runned on old machines, I had one 286 in 95...

Armando, I think that worst problem of brazilian people are the brazilian people, ours politicians reflect our society, unfortunately, same to north american and english people. I live in Campinas. For years I'm planning to learn C++, Java and recently Python maybe some day I learn C# but I have so little need to coding... so I tend to make everithing in C. MacBob approach and insights, in creating shapes with algorithms makes me wonder what, and if, I can create someting beautiful or just have some fun with this...

its raining again  :)

Regards

Ricardo

Offline lloydsp

  • CNC Jedi
  • *****
  • Posts: 8787
    • View Profile
Re: Perl for CNC
« Reply #23 on: February 18, 2015, 16:25:50 pm »
Bob,
There have recently been published (on The Code Project, and elsewhere) some open-source, tidy, and powerful libraries in C# for parsing and creating XML.

It's not quite as worrisome as it might have been years ago.

I'll admit the native language is not very powerful in its abilities to parse text, but the libraries solve all that.

LLoyd
"Pyro for Fun and Profit for More Than Fifty Years"