Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 22 Sep 2017, 05:59
All times are UTC - 4
 Forum index » Taking the Puppy out for a walk » Suggestions
Suggestion for a new distro.
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [4 Posts]  
Author Message
systematic

Joined: 25 Mar 2017
Posts: 1

PostPosted: Sat 25 Mar 2017, 23:00    Post subject:  Suggestion for a new distro.  

Hi, I'm rather new to programming, and I have an idea for a new distro of puppy linux that is integrated with C++ or python or whatever makes sense. You see, they have engines based on C++ like UE4, because the language runs really fast and is versatile. So my idea basically combines the concept of a gaming engine with that of an operating system. So say you have several pieces of hardware running on your system—a microphone is one piece. But it's really hard for a programmer running C++ to extract data from that microphone without advanced knowledge of how the microphone interacts with the driver etc. Or say we want to use the microphone on an iphone over wifi on a home intranet. I'm not a spy or anything; I just mean as you would for a home recording studio. And if you could do this with several peripherals—not just microphones, I think that the result would be a highly dynamic computer.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10805
Location: Gatineau (Qc), Canada

PostPosted: Sun 26 Mar 2017, 08:10    Post subject:  

Hi systematic.

First of all, may I extend to you the warmest possible welcome to "the
kennels". Smile I hope you'll find what you need here and that you'll have an
enjoyable stay. As you'll no doubt find out, we are a friendly bunch!

To try to answer your question:

Well, once upon a time Wink, someone on this board announced a puppy
with all the Python trimmings. Maybe do a search with the forum engine
with keywords < Puppy AND Python > (without the chevrons), and see
what comes up.

About C++, I'm far from being a specialist, but I would suspect we have
the essentials in the devx of each Puppy. So... load the devx?

With lua, J, OcamL, or Gambas, etc., you can easily install these languages
on any run-of-the-mill Puppy and start programming.

I happen to know that member did18 has a Gambas package available
here. But certainly other language packages from other members
are available. As I mentioned, please do a forum search for the language
you're interested in.

About a recording studio Puppy, there were a couple of experiments which
presented ready-made solutions for Puppy. I remember one derived from
Ubuntu Studio. Again, please probe with the forum search engine.

Also, you can browse the "Puppy Derivatives" section for them. (Start from
the end, that's were the latest ones get listed.) They may not be based on
the latest Puppies, but that may not matter if your focus is creating and
recording music.

If the links to the iso's in those posts are dead, chances are you'll find
them in the Puppy Linux section at the archive.org site. That section of
the archive.org site is maintained courtesy of our much esteemed forum
member "ally".

IHTH.

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
Moose On The Loose


Joined: 24 Feb 2011
Posts: 767

PostPosted: Sun 26 Mar 2017, 10:57    Post subject: Re: Suggestion for a new distro.  

[quote="systematic"]Hi, I'm rather new to programming, and I have an idea for a new distro of puppy linux that is integrated with C++ or python or whatever makes sense.
[quote]

Welcome welcome welcome

The devx for a puppy will get you the C++. gcc for C++ can do C also so you have both covered. You can install FreePascal and Octave to have more programming options but there are a few programming areas you shouldn't overlook in your considerations:

The bash command line is a quite powerful strings based programming language all on its own. When combined with small programs you may create in C, C++ etc, it becomes an extremely powerful tool. You are quite likely to want to put at least some GUI onto your own program. This can be really simple if you do it as a wrapper using bash and XDialog. For example, you can make your program so it needs an input file given on the command line and then use:
Code:

if [[ "$1" = "" ]] ;then
  FILE="$(Xdialog  --title \"Select File\" --fselect \"*\" 0 0 2>&1 )"
  if [[ "$?" != "0" ]] ; then
    exit 0
    fi
else
  FILE="$1"
  fi

to ask for the file in a nice friendly way. This way you don't have to write any user interface into the code you are making.

I should point out here that:
Code:

echo "s($AA*3.14159/180)" | bc -l

will give you the sine of the angle AA inside a bash script.

JavaScript is a programming language. It lives inside webpages and web browsers. There are ways that you can connect it up with other stuff on your computer because you have hiawatha that can make your own PC be where the web server is. This can give you the ability to serve a web page to another PC on your home network and easily get hold of what the user over there clicks on etc.

vlc can be used to stream your webcam out to another machine on your home network. This can be great for doing things like using a spare computer and webcam to stream whats going on at the birdfeeder to the computer in some other room. Webcams will work on the end of a USB extension cable. So this is a workable option in a lot of cases.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 4640
Location: Republic of Novo Zelande

PostPosted: Mon 27 Mar 2017, 02:26    Post subject:  

I think what you are asking for is a method whereby an operating system takes a measurement ("input"?) from various devices (audio, mouse, joystick etc) and produces a "standard" output in a format that you could use in various ways.

I could call this method an "API" interface for every input device.

This would allow you to take the current "values" of each input device and decide what to do with it without the "interference" from the predetermined kernel responses that we currently get.

I don't know if this is possible, or what might be required to modify each driver (module) in such a way that we could use it in a standard (alternative) way.

Exciting thought though...
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [4 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Taking the Puppy out for a walk » Suggestions
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0981s ][ Queries: 13 (0.0176s) ][ GZIP on ]