Reply
Thread Tools
Baloo's Avatar
Posts: 276 | Thanked: 160 times | Joined on Jul 2007 @ Bath, UK
#11
Originally Posted by Benson View Post
No, Python is ******ed now, same as it's always been.

Subjective flamebait aside, certainly some people want to always play with a new language, but I do think that's a small factor in this area.
Vala is definitely in its infancy and to be honest I don't see what the fuss about it. It may become a great language over time (probably not) but I'm definitely sitting on the fence with this one.
__________________
LinuxUK.org - http://www.linuxuk.org
 
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#12
The fuss is that Vala can offer simplicity, speed and OO at the same time.

So back on the original topic - i did automate building Vala projects in scratchbox and running them on tablet directly from Monodevelop (will work with every editor that can run scripts).

Firstly - use WAF - its faster than autotools, simpler and supports Vala. Vala template here.

You will need ssh passwordless login with key - instructions here.

Use the WAF template to create your project in scratchbox, edit to your liking, create a solution in Monodevelop with the root dir in the your project dir in scratchbox (/scratchbox/users/[user]/home/[user]/[your-project-dir]), check the project option to auto add the files in the folder, reload it.

Add this build and execute commands in Monodevelop project options:

Build:
Code:
/scratchbox/login -d ~/[your-project-dir] -p ./project-build.sh
Execute:
Code:
/scratchbox/login -d ~/[your-project-dir] -p ./project-run.sh
Create executable project-build.sh and project-run.sh in [your-project-dir] with these contents:

project-build.sh:
Code:
#! /bin/sh

cd ~/[your-project-dir]
./waf configure
./waf
project-run.sh:
Code:
#! /bin/bash

scp ~/[your-project-dir]/_build_/default/[your-path-and-executable] root@[your-tablet-ip]:/usr/bin/
ssh user@[your-tablet-ip] '/bin/sh --login -c "/usr/bin/[your-executable]"'

EDIT: Forgot to mention - I'm using Monodevelop 2.0 alpha 1
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.

Last edited by Bundyo; 2008-07-10 at 07:43.
 
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#13
I've uploaded vala to extras-devel. Build log is at:

https://garage.maemo.org/builder/diablo/vala_0.3.4/

I've done a quick command line test, I might not have time to test it with the Hildon bindings today, so any feedback welcome.
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 

The Following User Says Thank You to Jaffa For This Useful Post:
luca's Avatar
Posts: 1,137 | Thanked: 402 times | Joined on Sep 2007 @ Catalunya
#14
Originally Posted by Bundyo View Post
The fuss is that Vala can offer simplicity, speed and OO at the same time.
Oh, I see, like delphi did almost 15 years ago (alas, I doubt that vala can be as good as delphi, maybe in 15 more years...).
Pity that fpc doesn't work right with armel yet
 

The Following User Says Thank You to luca For This Useful Post:
Baloo's Avatar
Posts: 276 | Thanked: 160 times | Joined on Jul 2007 @ Bath, UK
#15
Originally Posted by luca View Post
Oh, I see, like delphi did almost 15 years ago (alas, I doubt that vala can be as good as delphi, maybe in 15 more years...).
Pity that fpc doesn't work right with armel yet
Lets not get into a language debate. Having programmed for around 18 years in a wide variety of languages (I programmed on a z80 commercially for 6 years straight! ) I can safely say that you get lovers and haters of any language. We can debate semantics for hours but I learnt early on that you cannot convert the inconvertible in most cases.

I think the 'horses for courses' argument is best, select the best tool for the job. (BTW I have to fly to another country next week to debate the merits of Python on a particular project )

Vala may be the answer in some cases but, from a purely technical point of view, I'm on the fence.

Great work on the port though!
__________________
LinuxUK.org - http://www.linuxuk.org
 

The Following 3 Users Say Thank You to Baloo For This Useful Post:
Bundyo's Avatar
Posts: 4,708 | Thanked: 4,649 times | Joined on Oct 2007 @ Bulgaria
#16
I doubt Delphi is coming back...

What port? Vala compiles straight for the tablet/SDK. Even has some bindings on the official page.
__________________
Technically, there are three determinate states the cat could be in: Alive, Dead, and Bloody Furious.
 
Baloo's Avatar
Posts: 276 | Thanked: 160 times | Joined on Jul 2007 @ Bath, UK
#17
Originally Posted by Bundyo View Post
What port? Vala compiles straight for the tablet/SDK. Even has some bindings on the official page.
Originally Posted by Jaffa View Post
I've uploaded vala to extras-devel. Build log is at:

https://garage.maemo.org/builder/diablo/vala_0.3.4/

I've done a quick command line test, I might not have time to test it with the Hildon bindings today, so any feedback welcome.
Am I miss-reading Jaffa's comments?
__________________
LinuxUK.org - http://www.linuxuk.org
 
luca's Avatar
Posts: 1,137 | Thanked: 402 times | Joined on Sep 2007 @ Catalunya
#18
Originally Posted by Bundyo View Post
I doubt Delphi is coming back...
Probably not, but Lazarus is going forward at a steady pace.
 
Posts: 43 | Thanked: 10 times | Joined on May 2008
#19
I am starting to feel like modern languages need support for concurrency. Stackless Python is a good example. I've written so many state machines in my time that mimic this behavior that I feel it should be standard. Although I wish Stackless Python would automatically take advantage of symmetric multiprocessing (although python doesn't have rock solid threading in general :P).
 
Jaffa's Avatar
Posts: 2,535 | Thanked: 6,681 times | Joined on Mar 2008 @ UK
#20
Originally Posted by Bundyo View Post
I doubt Delphi is coming back...

What port? Vala compiles straight for the tablet/SDK. Even has some bindings on the official page.
It compiles straight and cleanly, as you say. Still needs to be in extras for other apps to use it for building.

Besides, it makes a good test of mud-builder given the package is entirely defined by:

Code:
<package>
  <fetch type="tarball">
    <url>http://download.gnome.org/sources/vala/0.3/vala-0.3.4.tar.bz2</url>
  </fetch>
  <build>
    <copyright>lgpl</copyright>
  </build>
  <deb prefix-section="0">
    <section>programming</section>
    <depends>c-compiler</depends>
	  <description>Vala is a modern programming language compiling to C.
Vala is a new programming language that aims to bring modern programming language
features to GNOME developers without imposing any additional
runtime requirements and without using a different ABI
compared with applications and libraries written in C.
.
Given its dependence on gcc, this is intended for use within the Maemo
SDK.</description>
  </deb>
</package>
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
 

The Following User Says Thank You to Jaffa For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 03:07.