Home
JAQForum Ver 20.06
Log In or Join  
Active Topics
Local Time 03:19 29 Mar 2024 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Python

Author Message
zeitfest
Guru

Joined: 31/07/2019
Location: Australia
Posts: 369
Posted: 01:38am 22 Dec 2019
Copy link to clipboard 
Print this post

Anyone tried Python ?
There is circuitPython for micros, micropython, jYthon, etc...
For me the dealbreaker is that it does not have interrupt handling and no real info on if/when it might, that would be critical for many tasks. Originally I avoided it as I thought it was lightweight and for academic/training etc but it seems to be getting momentum. The small development kits are often supporting it as routine.

Edit - I see JohnL mentioned  it before, with an inexpensive board

and a hackaday diy board appeared  just afterwards for diy

The boards look like they use winbond memory and atmel SAM21 ic's (?)
Edited 2019-12-22 15:28 by zeitfest
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 705
Posted: 03:27pm 22 Dec 2019
Copy link to clipboard 
Print this post

I have recently tried it .
The reason being it comes with Raspberry Pi .
Strange to me how you ' import ' this and that
for many tasks .
Seems to work after some getting used to .
I recently looked at the MicroPython in regards
to wanting to program this :
without trying to learn Arduino
( which looks too much like ' C ' to me ) .
It is definitely becoming way more popular
than Basic .
my site
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 08:31pm 23 Dec 2019
Copy link to clipboard 
Print this post

  hitsware2 said  I have recently tried it .
The reason being it comes with Raspberry Pi .
Strange to me how you ' import ' this and that
for many tasks .
Seems to work after some getting used to .
I recently looked at the MicroPython in regards
to wanting to program this :
without trying to learn Arduino
( which looks too much like ' C ' to me ) .
It is definitely becoming way more popular
than Basic .


Attempted to convey this, several times but it always falls on deaf ears.

I use the BASIC syntax exclusively. Always have done and always will.

Need to write Android apps in BASIC that give up nothing in terms of performance?

It's called B4A.

Need to write iOS apps in BASIC?

It's call B4i

Need to write Arduino apps in BASIC and use all Arduino resources?

It's called B4R.

For me, Python is a joke. It's trying to be basic without the uncool "Beginner's All-purpose Symbolic Instruction Code" Acronym.

I'm a huge fan of the Parallax Propeller chip and even over there, BASIC is treated like the red-headed stepchild. However, out of the several high-level languages on offer right now....BASIC is the fastest. Blows C away.
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 705
Posted: 11:03pm 23 Dec 2019
Copy link to clipboard 
Print this post

  Tinine said  

For me, Python is a joke. It's trying to be basic without the uncool "Beginner's All-purpose Symbolic Instruction Code" Acronym.



I looked @ B4x page .
Perhaps I misunderstood , but it appears as if
( even if you can write apps for say ( Raspberry Pi )
B4j is an .exe ( will not run on Raspberry Pi ) ?
my site
 
goc30

Guru

Joined: 12/04/2017
Location: France
Posts: 425
Posted: 03:29am 24 Dec 2019
Copy link to clipboard 
Print this post

i hate python.

You do not know how lucky you are to speak English, we non-English, we must always take attention, including in the comments, or an accented character can crash the program. And what about the python dictatorship concerning the type of variables, the delusional management of global variables that must be redeclared in the subroutines. Finally when we know the power of current processors and compilers, I have a lot of trouble understanding that a language requires you to have syntax dating from the Middle Ages, such as end of line characters, comparison operators, the tabs in the loops, and so on.
 
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1081
Posted: 07:12am 24 Dec 2019
Copy link to clipboard 
Print this post

Well, just remember, the Python language is named after Monty Python, a COMEDY act.

Mind you, I have earned money writing Python programs on pcs...
Visit Vegipete's *Mite Library for cool programs.
 
Decoy
Senior Member

Joined: 02/08/2019
Location: Denmark
Posts: 109
Posted: 05:10pm 29 Dec 2019
Copy link to clipboard 
Print this post

One of the things I love about this forum, is how different it is. Nobody
here likes Python - which is so alternative :)

I am not a programmer by any stretch of the imagination. I have created some
small games and a program that calculates bacterial count from a dilution range
including count uncertainty in CFU and % (I took my masters in microbiology)

In 'academia' Python is very popular. I tried it for a while, and I did not like
it. I does not do anything for me that I cannot do, or prefer to do, somewhere
else.

/Nicholas
 
Poppy

Guru

Joined: 25/07/2019
Location: Germany
Posts: 486
Posted: 08:34pm 29 Dec 2019
Copy link to clipboard 
Print this post

For me it is not a matter of liking or disliking it, it just makes no sense to me.

But it still is another opportunity, so therefore it has a value, just everyone must decide himself what kind of.

The Making-No-Sense-To-Me is already expressed by this sentence:

  "Tinine" said  It's trying to be basic without the uncool "Beginner's All-purpose Symbolic Instruction Code" Acronym.


But if there was no BASIC before and no up-to-date Dialects currently at all then Python could be quite valuable generally for probably being the best substitute.

... and without MMBASIC Micropython could be another choice.

It exists and therefore it is good!

But I donīt use it, not needing it at all.


Andre ... such a GURU?
 
zeitfest
Guru

Joined: 31/07/2019
Location: Australia
Posts: 369
Posted: 10:00am 20 Apr 2020
Copy link to clipboard 
Print this post

RIP John Conway... obituary..
Adafruit tribute clip, of  "Life"  on a led panel and python board.

clip
Edited 2020-04-20 20:08 by zeitfest
 
Tinine
Guru

Joined: 30/03/2016
Location: United Kingdom
Posts: 1646
Posted: 02:54pm 22 Apr 2020
Copy link to clipboard 
Print this post

  Quote  
But if there was no BASIC before and no up-to-date Dialects currently at all then Python could be quite valuable generally for probably being the best substitute.


I only just saw this.

BASIC exists as compilers or interpreters or something in between such as QuickBASIC or ByPic.

Many BASIC compilers produce code that is as fast and tight as can be.

Python is dog slow no matter what...I really don't know where it fits in.

Over in Parallax Propeller land, there are two BASIC compilers in development and at least one BASIC interpreter, possibly two.

There have been rumblings of Python but I guess it's more of a solution-looking-for-a-problem.

I see that FreeBASIC is supported on the Pi. Anyone tried it?
 
hitsware2

Guru

Joined: 03/08/2019
Location: United States
Posts: 705
Posted: 07:44pm 22 Apr 2020
Copy link to clipboard 
Print this post

  Tinine said  
I see that FreeBASIC is supported on the Pi. Anyone tried it?


I haven't but will .
I have tried this ..
And it works well ( And real nice GUI )

edit: FreeBasic too big of hassle to install ..
Similar to BBCBasic ..
Edited 2020-04-23 05:56 by hitsware2
my site
 
tgerbic
Newbie

Joined: 25/07/2019
Location: United States
Posts: 40
Posted: 02:03am 24 Apr 2020
Copy link to clipboard 
Print this post

I did a lot of BASIC programming in the 80's using about two dozen versions of BASIC, from mainframe to 8080 home built systems. Lots of versions with/without line numbers or optional line numbers, and compiled or interpreted. For a while I used a couple of versions of "Structured BASIC" as it was called back then.

I started playing around with python about 2.5 years ago, as it was getting a following at work. What struck me was how, with a couple keyword name changes and a couple of syntax/character changes, it looked just like Structured BASIC from the late 80's.

I worked with a lot of programmers (100s) whose world only revolved around JAVA and would never consider BASIC as a serious programming language. Now that python is getting more popular, many are chomping at the bit to learn this "new" language. I just have to laugh.

When asked what python is, I usually reply it is "politically correct" BASIC or "BASIC with a beard".

I still program in BASIC, assembler and on rare occasions C. Usually depends on size of program and speed. I expect I will do a bit of python as it is picking up in popularity, especially in the IOT/linux world.
 
Print this page


To reply to this topic, you need to log in.

© JAQ Software 2024