Vala and Genie programming

For discussions about programming, programming questions/advice, and projects that don't really have anything to do with Puppy.
Message
Author
nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#401 Post by nikobordx »

[Message deleted]

See newer message !
Last edited by nikobordx on Sun 13 Sep 2009, 17:09, edited 2 times in total.

User avatar
Lobster
Official Crustacean
Posts: 15522
Joined: Wed 04 May 2005, 06:06
Location: Paradox Realm
Contact:

#402 Post by Lobster »

Nico am starting a new thread for your Geany (text editor) Vala-Genie (programming language) program here :
http://www.murga-linux.com/puppy/viewto ... 260#339260
Puppy Raspup 8.2Final 8)
Puppy Links Page http://www.smokey01.com/bruceb/puppy.html :D

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#403 Post by nikobordx »

[Message deleted]

See newer message !
Last edited by nikobordx on Tue 15 Sep 2009, 09:12, edited 1 time in total.

User avatar
MU
Posts: 13649
Joined: Wed 24 Aug 2005, 16:52
Location: Karlsruhe, Germany
Contact:

#404 Post by MU »

removed, forum works again.
[url=http://murga-linux.com/puppy/viewtopic.php?p=173456#173456]my recommended links[/url]

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#405 Post by technosaurus »

I edited the bk_scripts a bit and got a 75 kb nicoedit binary and 35kb pet. Working great so far, but haven't tried it with genie yet. Uploaded for your pleasure. (without the french it is only 32k)

you can get the same results by not deleting the .c file in bk_compile and using:

gcc -Os -ffunction-sections -fdata-sections -momit-leaf-frame-pointer -fomit-frame-pointer -mpreferred-stack-boundary=2 -fmerge-all-constants -march=i386 -mtune=i386 -Wl,-O,-Os,--gc-sections,-s `pkg-config --cflags gtk+-2.0 --libs gtk+-2.0` `pkg-config --cflags cairo --libs cairo` `pkg-config --cflags glib-2.0 --libs glib-2.0` `pkg-config --cflags pango --libs pango` `pkg-config --cflags gtksourceview-2.0 --libs gtksourceview-2.0` -I/usr/include/gee-1.0 -I/usr/include -I. -lgee -w -std=c99 nicoedit.c -o nicoedit
Attachments
nicoedit.pet
(34.73 KiB) Downloaded 800 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#406 Post by BarryK »

technosaurus,
Hey, my PET is 40KB! :)

I didn't use the scripts, did it the other way:

# ./waf configure
# ./waf build

...worked fine.
[url]https://bkhome.org/news/[/url]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#407 Post by ttuuxxx »

Wow just tried the latest nico edit and boy its came a long way.
One thing I would like to see in it is tabs, and when drag a new document to the gui it opens the file in a new tab, eg drag 5 files and have 5 tabs.
after that it could be a geany replacement and not just a leafpad replacement, very close, nice size also :) right now I'm using teagtk the pet is around 140kb and has highlight, line numbers, and drag and drop for tabs. Really thats all I use, I don't need fancy compiling in a editor etc. Geany just getting too bloated.
Oh I see you can export as pdf, hmmm maybe consider images? If you could add images and move them around, It would make a perfect pdf ebook creator. Just some ideas :)

Anyways keep up the excellent work:) very impressive.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#408 Post by BarryK »

Ttuuxxx,
Regarding tabs, I was thinking that too, but then I started playing with the History menu, and that works surprisingly well.

The problem with tabs is I often have several documents open, so have to scroll the tabs, which makes the whole thing somewhat inefficient.

However with the History menu I can flip between documents. However, what spoils that is it doesn't remember the last position. If it did, that would make it very easy to work with a large number of documents.

So, Nicolas, if you read this, my number one request is for the History menu to remember the last position of the window and the cursor position of each previously-opened file!
[url]https://bkhome.org/news/[/url]

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#409 Post by ttuuxxx »

Hi Barry I don't know if you ever tried Teagtk, but it does have a nice menu under file, Like recent documents, bookmarks, sessions, templates, etc and like I mentioned its really small compared to Geany about 1/4 the size. and once you setup the basic configures like I did in my last package its pretty good.

The sources 468kb
http://sourceforge.net/projects/tea-edi ... 2/download

The last package I made up, its good if you want to custom configs in root/choices
http://www.murga-linux.com/puppy/viewto ... h&id=21761

Playing around with the history is a good alternative way of getting around the tab issue, but for a person like myself I think the most tabs I ever need open at once is about 4, Firefox is different sometimes I have like 50 tabs open at once, lol
I would be happy to replace Geany with nicoedit if it had tabs.

ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

ITAmember
Posts: 167
Joined: Sun 13 Sep 2009, 18:50
Location: The middle of a cornfield

#410 Post by ITAmember »

I would like to use id3lib (http://id3lib.sourceforge.net/) in a vala program I'm planing to make. It's a c++ library that can be called from plain old C so it should work without much trouble. The problem is, I have no idea how to make the vapi file. Everything I found via google (which wasn't much) was for glib libraries and used glib only autogeneration. Any hints?

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#411 Post by BarryK »

ITAmember wrote:I would like to use id3lib (http://id3lib.sourceforge.net/) in a vala program I'm planing to make. It's a c++ library that can be called from plain old C so it should work without much trouble. The problem is, I have no idea how to make the vapi file. Everything I found via google (which wasn't much) was for glib libraries and used glib only autogeneration. Any hints?
I seem to recall there was some discussion on the Vala mail-list recently, someone asked that same question. Find the archive of the Vala mail-list ...I don't know the url offhand.
[url]https://bkhome.org/news/[/url]

User avatar
BarryK
Puppy Master
Posts: 9392
Joined: Mon 09 May 2005, 09:23
Location: Perth, Western Australia
Contact:

#412 Post by BarryK »

Ah, yes, there is another thing that prevents me from making NicoEdit 2.1 the main text editor in 4.3 -- no line-wrapping!

So, I have to leave Geany as the main text editor. NicoEdit 2.1 will be the secondary editor (Leafpad replacement) in 4.3final.

Line-wrapping is essential for a useful text editor.
[url]https://bkhome.org/news/[/url]

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#413 Post by nikobordx »

For NicoEdit, see newer message !
Last edited by nikobordx on Tue 15 Sep 2009, 16:22, edited 1 time in total.

nikobordx
Posts: 84
Joined: Sat 23 May 2009, 09:08
Location: Bordeaux, France

#414 Post by nikobordx »

Hi again,

I make a new version of NicoEdit.

This version correct a bug found on 2.3 when you use the fullscreen.

Download it here: http://www.murga-linux.com/puppy/viewto ... h&id=21799

See you,
Nicolas.

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#415 Post by ttuuxxx »

does anyone have it compiled ? I don't have python in 2.20, but the rest of the vala deps are install.
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#416 Post by 01micko »

ttuuxxx wrote:does anyone have it compiled ? I don't have python in 2.20, but the rest of the vala deps are install.
ttuuxxx
Yep! Just compiled it and it seems ok, word wrap and fullscreen working :) . Thankyou Nicolas!

One, point, I followed the bk_compile routine and the .pet package created has a bug. The structure is correct of course but the parent dir needs to be "nicoedit-x.x" and that will become the name of the .pet.

Cheers
Attachments
nicoedit-latest.pet
(43.68 KiB) Downloaded 518 times
Puppy Linux Blog - contact me for access

User avatar
01micko
Posts: 8741
Joined: Sat 11 Oct 2008, 13:39
Location: qld
Contact:

#417 Post by 01micko »

Please note, the .pet I packaged above is straight from nicolas' compile so may not work on some systems. :wink:
Puppy Linux Blog - contact me for access

User avatar
ttuuxxx
Posts: 11171
Joined: Sat 05 May 2007, 10:00
Location: Ontario Canada,Sydney Australia
Contact:

#418 Post by ttuuxxx »

01micko wrote:Please note, the .pet I packaged above is straight from nicolas' compile so may not work on some systems. :wink:
Worked fine for me Mick :) and the fullscreen bug is fixed :)
thanks for that :)
ttuuxxx
http://audio.online-convert.com/ <-- excellent site
http://samples.mplayerhq.hu/A-codecs/ <-- Codec Test Files
http://html5games.com/ <-- excellent HTML5 games :)

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#419 Post by disciple »

Hi guys, I haven't really looked at Vala yet, but I'm wondering - does anyone have any idea how hard it would be to convert a simple-ish gtk program from c to vala? And how much easier do you think it would be to learn vala than C? Is Vala:
0. No easier than C
1. A little easier than C
2. Quite a bit easier than C
3. A lot easier than C
4. So much easier than C that there's no comparison.

Any thoughts?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#420 Post by disciple »

I see Vala 0.7.6 is released too.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

Post Reply