basicprogramming.org


Welcome, Guest. Please login or register.
Did you miss your activation email?
Forum time; Mar 12. 2010, 05:18
Home Help Search Calendar Login Register
News: Old bloggin: The Noob’S Robot Slave And How To Reactivate It by: Hartnell

+  BASIC programming forum
|-+  Basic Coding
| |-+  Other programming languages.
| | |-+  Genie
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] 2 Go Down Reply Print
Author Topic: Genie  (Read 745 times)
gersen
Sr. Member
****
Offline Offline

Posts: 281


« on: Sep 27. 2009, 16:31 » Reply with quote

Forgive me if this has already been discussed.

I'm going to try a new version of puppy linux, and while browsing came upon this article by Barry Kauler of puppy fame.

It's about genie and comparisons with python. Quite a nice read with links to genie's home page, worth a look at.

Regards

edit... forgot the link

http://puppylinux.com/genie/
« Last Edit: Sep 27. 2009, 16:31 by gersen » Report to moderator   Logged
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #1 on: Sep 27. 2009, 17:36 » Reply with quote

part i - before looking

first i've heard of it. people always make new languages, and most of them (for reasons mr. kauler must be familar with, and that i've talked about many, many, many times) are not going to be simple, easy languages like python (or ruby.) he's somewhat in two directions when it comes to choosing languages, because he loves simplicity but hates basic (i'm beginning to understand that much, most "basic" languages these days are more messy than fun or easy) but he's also a very big fan of tcl/tk, which (for the sake of puppy,) i took a serious look at. and never again...

i'm really not a fan of puppy (at all) but i was for at least half a year, until i figured out their hype machine is really powerful and they could make you believe they invented sliced bread. (having seen all the commercials for apple in the 80's i should know better.) but we're talking about genie and easy languages.

as i said, people always make new languages, so it's a good thing that some of them are easy and friendly, because ideally they all would be. i've read 4 books about python this week, and i had a poke through a ruby intro thanks to (gandalf? lancegary? i don't know) and i'll have a look at genie right now.

that said i won't disagree with kauler's conclusions but his reasoning about python raises an eyebrow. complaining that python is slow is kind of like complaining that midgets are short. it's true, but short people do just fine and unlike his article would have you think, python isn't supposed to be used in places where you need something faster... yet people use it all the time for almost everything, and unlike older languages where you're encouraged to find silly ways of making it faster, in python that's considered a last resort.

compiling it is certainly not the answer. what he's right about is using a faster language when a faster language is needed. i'll have a look at genie, i'm glad you mentioned it. (but if it's anything like tcl/tk, i'm going to run away from it as fast as i can.)

part ii - after looking

okay, i've been looking at barry kauler's tutorials (which are not bad) and at http://live.gnome.org/Genie which is no worse than the tutorials.

first impressions: yeah, it's kind of python. (i'd rather use ruby.) it has to be compiled, which means it produces binaries (cool) but also you have to get the compiler running, which is fine if someone has compiled it for your platform, but it's going to be more likely that you have a python interpreter available. that said, i'd rather rig a genie setup than pyexe.

when you think of most of the things he codes, it's a wonder that barry kauler needs something faster, but if he wants something faster, i guess that's what he wants. (i'm sure that speed tempts us all.) like he, i use bash when it suits my needs and if bash was as friendly as python, i probably wouldn't have any use for python. why even bother with bash? well, it's everywhere.

"it's available" can certainly be a circular argument, but it's a very practical argument. obviously some things won't do, if i could be happy using the tiny c compiler, i'd be able to write scripts that compile themselves on use and then run very fast, and then delete the compiled version. and it would be easier to setup than genie.

but i don't do that, because i'd rather use (and share and teach) python, which i fell in love with as part of the sugar on a stick distro, which does everything with python.

all of that is (mostly) irrevelant if genie is more tedious to use once it's setup. the idea that you have to use tabs or explicitly name the indentation is just... i'm going to use the word "stupid," even though i wanted to avoid it. whitespace almost kept me from appreciating python but it's not that bad! if tab was on the right side of the keyboard i would settle for tab. i'd rather use space- four times- (in python you can use tabs instead, just don't mix tabs and spaces.) this matters to me. (eh.) python is less demanding, genie's indentation is absurd.

the rest of the language is a lot easier than i don't know, c++, but i wouldn't say it's as easy as python. there are no colons where i'd expect them to be required (a bonus if you like simple token languages- which i do- such as aurelbasic) but all in all i'm not getting the "wow" i got when i first looked at python or even ruby. when i saw ruby i thought "wow, that really does look very clean and easy." when i look at genie i think "eh, i guess it could be a lot easier than c++." but i don't want to get into that old argument Smiley

i say, if you find genie easy, it's a lot easier to read than some compiled languages- noting that there have been very easy compiled languages (such as quickbasic.) it shouldn't matter whether a language is compiled or interpreted, per se, but it obviously does matter, and people often give up ease of use for a more difficult language that makes nice binaries.

i say that if you find genie an easy way to get a job done, maybe it's worth adding to your tools, but if you don't find it easy or worth the trouble, i won't be too surprised. then again (unlike python) it's very young and it would only be fair to have another look at genie in a year. sorry i know this is obscenely long, but i got excited about the topic. i demand it's better than no reply at all Smiley


edit: (wow! but not too much better- this is like how i used to do replies)
« Last Edit: Sep 27. 2009, 17:56 by menn » Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
gersen
Sr. Member
****
Offline Offline

Posts: 281


« Reply #2 on: Sep 27. 2009, 21:14 » Reply with quote

I like puppy linux, had great fun with it over the years, and give full marks to Barry Kauler for its conception. I also find their community very civil and helpful.

Genie, well I don't give a twopenny toss, I won't be using it, I posted the link for those who may be interested.

As for python, I just don't like it, tried it years ago and thought it awful, but hey that's just my opinion, Barry has one thing right though, it is bloatware.

 
Report to moderator   Logged
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #3 on: Sep 27. 2009, 23:16 » Reply with quote

Barry has one thing right though, it is bloatware.

our differences of opinion (which you'll find on any forum with at least two geeks) aside, i don't get that. bloatware? if all you need is basic python, it's pretty powerful and pretty lean- for what it is. not to say anyone has to use it but, i imagine that most of the "bloat" comes from optional libraries. if you want to strip it down to a true scripting language, rather than a development environment, even i can do that.

but i don't recommend a language to someone that tries it and hates it... python's not the right language for you. just like puppy is certainly not the right distro for me. i wish i'd been as sure about it sooner, like you're sure about python. but i learned a few useful things from using it.

bloatware can be an opinion too. i mean it's all relative when it comes to what's useful, what's not, what calls for more resources, and what shouldn't. the thing is, python's modular. don't need a module? delete it. that's why this is one of the times that- yours and my differences aside, i just don't get kauler's take on things sometimes. it's ok, he'd never get my take on puppy either. and he knows more languages than i do. i just... well i just don't know sometimes. i should add him to the short list of things i never mention, that will make things easier.
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 711



WWW
« Reply #4 on: Sep 28. 2009, 04:47 » Reply with quote

Wow, this Genie is awesome! Finally a language for the EASY gtk programming. All I need now is a how-to for all gtk/vala/genie functions.
BTW, one notes that the creator of the language is a Delphi fan. So Genie is highly recommended not only for disappointed Python programmers but also for the Freepascal/Lazarus and Delphi fraction.

@gersen: Thanks for the link!
Report to moderator   Logged

Best wishes,
Cybermonkey
Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 711



WWW
« Reply #5 on: Sep 29. 2009, 09:07 » Reply with quote

Seems there is no real place for questions regarding Vala/Genie. I think I will start a forum by my own since this language really needs one.
Report to moderator   Logged

Best wishes,
Cybermonkey
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #6 on: Sep 29. 2009, 09:49 » Reply with quote

Seems there is no real place for questions regarding Vala/Genie. I think I will start a forum by my own since this language really needs one.

here's a question i keep thinking of when i read the posts here: what does vala have to do with genie? i thought i understood what both of them were, but genie seemed the more interesting topic of the two, so i mostly ignored vala. i thought the only thing they had in common was that they were both mentioned at the same time. i didn't notice any other connection, but based on the posts here there is one?
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 711



WWW
« Reply #7 on: Sep 29. 2009, 11:12 » Reply with quote

Yes, they "share" the same compiler/translator. Valac compiles either your Vala source code or your Genie source code.
« Last Edit: Sep 29. 2009, 13:08 by cybermonkey342 » Report to moderator   Logged

Best wishes,
Cybermonkey
menn
Hero Member
*****
Offline Offline

Posts: 571


« Reply #8 on: Sep 29. 2009, 13:30 » Reply with quote

ah, that explains it, thanks!
Report to moderator   Logged

an "all purpose" language calls for- as much as can possibly be reasonable- an "all purpose" forum. the worst thing happening to modern basic? too many pointless rules and painting everything into corners. most modern basic forums are like that too.
Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 711



WWW
« Reply #9 on: Sep 29. 2009, 13:49 » Reply with quote

Okay, if anyone is more interested in Vala and/or Genie, try this link:
http://valac.freeforums.org/
 Grin
Report to moderator   Logged

Best wishes,
Cybermonkey
gersen
Sr. Member
****
Offline Offline

Posts: 281


« Reply #10 on: Sep 29. 2009, 15:23 » Reply with quote

You don't mess about cybermonkey, that was well done.

If you think it's that good, I may have to retract my words and give it a go.

Good luck with the new forum.



Report to moderator   Logged
gersen
Sr. Member
****
Offline Offline

Posts: 281


« Reply #11 on: Sep 29. 2009, 18:44 » Reply with quote

Had a good look this time. Load of APIs in the Vala package, must cover damn near everything, prominent ones are gtk, cairo, alsa, sdl.

The way I read it, the Vala package consists of a compiler "valac", for your code with associated libraries and  a bunch of APIs. Vala syntax is in the way of C#, but the compiler has a built in Genie parser, where the syntax is more like python for us mere mortals. Very clever.

I note the IDE for Vala also covers Genie.

Tried the gtk "hello world" program, compiled and ran just as it should, and that's  probably as far as I'll get   Smiley

Regards
.
Report to moderator   Logged
Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 711



WWW
« Reply #12 on: Sep 30. 2009, 02:31 » Reply with quote

Good luck with the new forum.
Thanks a lot. If you (or anyone else) have an idea how to get more traffic; any help is appreciated.
Report to moderator   Logged

Best wishes,
Cybermonkey
E.K.Virtanen
Blah
Administrator
Hero Member
*****
Offline Offline

Posts: 2220



WWW
« Reply #13 on: Sep 30. 2009, 05:14 » Reply with quote

All the best in a road you choosed cyb Smiley

I am not sure how to get more traffic with those free forum hosting. TBH, i do have only a bad experiences with them, though it does not mean they are bad necessarely.
Can you add google analytics there? I assume it could be one way. Second is, reconsider your subforums there. You really need that many different subforums there? I mean, even if you get 10 new posts every day, and they are shared in those subforums, it looks very abandoned. We did similar mistake here also at start. Comparing how many subpages google needs to study, and number of new posts, does not speak good for your hit-level.

Its better to let the forum to grow big, instead of making it big instantly?

Add some example codes there. Actually, add them as many as you can ever produce. Heck, fire-up a snippets subforum somewhere and fill it with code. Also dumb-ass-level guides how to install valac.

Also, posting to proper mailing lists (i assume there is atleast one), and just keeping a noice about it.

Evetho this is not too near of general basic, add a post about your forum to our news section, we are not so nitpickers here Wink Google seems to follow it up weekly. Every hit counts Wink

Ill add your forum to our links under Personal websites in my next update.

I would love to learn valac but no can do right now.
Report to moderator   Logged

Cybermonkey
Global Moderator
Hero Member
*****
Offline Offline

Posts: 711



WWW
« Reply #14 on: Sep 30. 2009, 08:25 » Reply with quote


Its better to let the forum to grow big, instead of making it big instantly?

Add some example codes there. Actually, add them as many as you can ever produce. Heck, fire-up a snippets subforum somewhere and fill it with code. Also dumb-ass-level guides how to install valac.

Also, posting to proper mailing lists (i assume there is atleast one), and just keeping a noice about it.

Evetho this is not too near of general basic, add a post about your forum to our news section, we are not so nitpickers here Wink Google seems to follow it up weekly. Every hit counts Wink

Ill add your forum to our links under Personal websites in my next update.

I would love to learn valac but no can do right now.
Yeah, you are possibly right that there are too many boards. I have to reconsider it. Thanks for all your help. Let's see what will happen ...  Wink
Report to moderator   Logged

Best wishes,
Cybermonkey
Pages: [1] 2 Go Up Reply Print 
« previous next »
Jump to:  
Atom RDF RSS 0.91 RSS 2.0


Login with username, password and session length

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2008, Simple Machines LLC Valid XHTML 1.0! Valid CSS!