![]() |
Re: Vala for Maemo development
It's still a bit of a hack (I've made progress on interfacing in an OO way to libvala from Java, but it's not usable yet), but code complete now contains local variables, type information, restrict-as-you-type and restrict-based-on-preceding-characters and pretty icons as you get in Java:
http://bleb.org/software/valable/valable-4.png All pushed up to my branch, and this'll probably become the trunk of Valable in the next couple of days once some Launchpad admin gets taken care of. |
Re: Vala for Maemo development
More spam from me about the latest push up to my branch. Some bugs fixed with the recompilation of projects on start-up, and I've done a first pass over the implementation of the sparkling new outline view:
http://bleb.org/software/valable/valable-5.png Bundyo, since I couldn't get Monodevelop working - what's missing from Valable which monodevelop does? Would be good to have feature parity before polishing the features ;-) PS. Interestingly (FSVO "interesting"), that screenshot also shows a minor issue with keyword detection, in that "set_contents" should be just "set_contents"; but "set" is a keyword in Vala. |
Re: Vala for Maemo development
Like you don't have enough to do, but...
What about a 15 minute vala intro session at the summit? |
Re: Vala for Maemo development
Probably nothing :) Though Monodevelop didn't got fully working anyway (no working code completion if there are big VAPI files in there). The code browser is a little strange - it doesn't show the current file but instead the VAPI files. I'm using it more like a reference :)
|
Re: Vala for Maemo development
Quote:
|
Re: Vala for Maemo development
Seconded. I'm currently trying to learn/use vala as well and imho this would be the killer language for the tablet (python fans keep calm..).
I'd volunteer, but I'm a java/C# guy. Related, but different in too much things and I'll probably fail to become a guru in the next 2 month.. Any takers though? |
Re: Vala for Maemo development
I don't do lots :) I have two small apps, veeery small :). I'm foreign to GTK too and i keep meeting with the need of a X VAPI. However, this can't be done without a simple additional parser to at least specify which function is in which header (since vapigen doesn't bother to specify it). So I'm just beginning :) Maybe I'll have something to talk about in September, but i can't tell for sure now. :(
EDIT: Forgot to tell i'm all for a Vala talk and how it can help the tablet development evolve (not by me though :)). |
Re: Vala for Maemo development
Quote:
|
Re: Vala for Maemo development
Woo, I have genie without even knowing it - my vala compiler turned out to be new enough, so I can write Genie programs without installing anything extra! Just start writing code with a .gs file extension.
|
Re: Vala for Maemo development
Ok, help? Monodevelop failed miserably on Ubuntu. Eclipse has no clue how to plug in valable. vala won't install on the tablet 'cause it needs c-compiler which isn't available.
Any clues or should I start learning in joe and valac on the desktop? |
Re: Vala for Maemo development
Vala needs C compiler, you won't get away with that :) Also it will be probably too slow on the tablet (it is slowish in the emulator too). Monodevelop is easier to get running on openSUSE for sure, probably best for you is to try harder with Valable and compile in scratchbox.
|
Re: Vala for Maemo development
Try harder... Let me clarify. I have no idea where to GET it.
Launchpad is like Sourceforge without the files. There's just a bunch of announcements, developer's names and so on. Where should I look? |
Re: Vala for Maemo development
I think Andrew should be answering this one :)
|
Re: Vala for Maemo development
Bundyo,
Compilation time on the tablet for even the barest hello world (in performance mode) was over 30 seconds. I did not go further. for reference, each module in liqbase takes about 3-5 seconds for raw c. c++ modules of similar length take about 20 seconds |
Re: Vala for Maemo development
I was suspecting numbers like these :(
|
Re: Vala for Maemo development
Well my desktop compilation time has been so far 2 full days for 0 lines of code. I think the tablet wins! :D
|
Re: Vala for Maemo development
Right, to get Valable:
I've not yet looked at exporting the plugin for installation into Eclipse - it's a while off that yet. Let me know if this doesn't work. |
Re: Vala for Maemo development
Quote:
...sorry, it may be blindingly obvious but took me a while to realize this. Quote:
Great help so far! Getting the code was the first real roadblock. EDIT: I needed to do a couple of things: 1) make sure I had Sun's Java installed, not just OpenJDK 2) Make sure the Workspace properties are set to compiler compliance level of 6.0. And so far, it works! Now I have to get cracking I suppose. |
Re: Vala for Maemo development
Quote:
Quote:
Quote:
|
Re: Vala for Maemo development
Quote:
(And I'm all for a Vala talk, too. I won't be there, though, so I hope it gets videoed, or at least slides posted and maybe audio recordings.) |
Re: Vala for Maemo development
Quote:
As far as vala on the tablet, it works. You have to set up the SDK repo (which contains some packages that require removal of large chunks of your system to install, and thus is hazardous; you've been warned), and then apt-get install gcc, libgtk2.0-dev, and probably some other *-dev packages. But that's not as easy as it sounds, if you've been keeping up with SSU, because the *-dev packages in the SDK repo are not updated to new versions, and depend on the * packages of the same version; several of these wound up a revision or patch level behind the installed version. No sweat; just aBottom line: If you're scared, don't do any of this! If you're not scared, clone to an SD if you haven't yet (you'll probably need the extra room anyway), and back up your entire ext2/3 partition before you add the SDK repo. (Oh, and if you're not scared, you're crazy. Just so you know. :cool:) The GTK hello-world example in waf works fine, so I know Vala is working; as seen in my post above, I don't quite have it building what I want to build, but I think my trouble is platform-irrelevant. |
Re: Vala for Maemo development
I just tried out something much simpler: installing in deblet. It's chrooted already, so I could keep the systems separate.
I just finished testing this basic sample: http://live.gnome.org/Vala/BasicSample and it compiled in 12.260s on my tablet, to a final binary. To generate the C and header file it took 10.364s So, yes, C is considerably faster, but I'd call 12 seconds acceptable! I'm going to have to try out some projects that are more complex and see how it scales... More info: I tried building the Hildon sample on the same page; it wouldn't build, it doesn't seem to like either Gtk or Hildon packages. I have to surf around in the VAPI files and see if they're there or not. |
Re: Vala for Maemo development
Quote:
EDIT: Removing mentions of X in src/wscript should be enough. Updated the source - removed X. At the old place: http://www.internettablettalk.com/fo...&postcount=122 |
Re: Vala for Maemo development
I tried something like that, but it seemed to break worse. Like I said, I think I did something wrong. Maybe time for another go at it, though, now I know I was at least apparently on the right track...
|
Re: Vala for Maemo development
You just need to run
./waf configure ./waf build (or just ./waf) in the root dir of the project :) |
Re: Vala for Maemo development
Vala 0.4.0 was released some days ago. Has the following new things/changes:
Some things i discovered: They apparently rushed Vala 0.4 without updating all VAPIs with their new syntax additions (which seem to be required) (or maybe they didn't intend to update them all :)). So if you happen across an error message in the C compile stage that says something about not declared something_construct, be sure to add [CCode (has_construct_function = false)] right above the class constructor in the vapi file. I don't know which ones don't have constructor, so better fix them on sight :) For instance Hildon.Window was without one, so it should be fixed like this in the vapi: Code:
[CCode (cheader_filename = "hildon/hildon.h")]Also be wary of their fix for the UIManager's new_merge_id - doesn't seem to work as intended (or at all :) Patches upstream are probably encouraged. |
Re: Vala for Maemo development
Quote:
Now for the bad part - the plug-in installs, but is currently broken for me. :( |
Re: Vala for Maemo development
BTW, since you opened this thread - MonoDevelop 2.0 is in beta now. Vala completion doesn't work reliably yet, but the editor is quite stable.
|
Re: Vala for Maemo development
|
Re: Vala for Maemo development
Monodevelop 2.0 beta 2. Has packages for Debian/Unstable now.
http://monodevelop.com/Download/Rele...lop_2.0_Beta_2 http://monodevelop.com/Download |
Re: Vala for Maemo development
Thanks Jaffa for the Vala 0.7.3, had lots of issues with bad c code with the older versions, but latest fixed them. Anyways, few questions:
What the heck can I use for IO? Only FileUtils seems to work for basic file reading, but I need better than that. Diablo GLib seems to be too old for gio/gio-unix that I need. I installed libgio-dev, but it fails to compile with: Code:
/usr/lib/libgio-2.0.so: undefined reference to `IA__g_app_info_get_default_for_type'What about UDP? I need multicast udp and can't find a lib for that either. I had to do it C so I can add it to c code, but I'd rather use Vala for that too. Also libsoup-2.2 seems to be buggy, I get all kinds of weird stuff in body like extra chars and even headers etc, so I had to add ugly separators to rule them out. Vala ain't that bad once you get the hang of it and I do love the speed, but these issues are really making it unsuitable for my needs. Any advice especially for my io-problem? |
Re: Vala for Maemo development
You will also have those issues with C you know :) The problem is the old libraries on the NIT and Vala can't change that. At least in Frematle they updated at last.
What are you trying to do with files that requres GIO? |
Re: Vala for Maemo development
Quote:
http://valadoc.org/?pkg=glib-2.0&ele...ync_with_pipes |
Re: Vala for Maemo development
I don't see anything related to GIO in Process.spawn_async_with_pipes?
|
Re: Vala for Maemo development
Quote:
|
Re: Vala for Maemo development
|
Re: Vala for Maemo development
Thank you!!1
|
Re: Vala for Maemo development
Okay Jaffa, I managed to get Tear compiling on 0.7.3 without any additional changes, I'm using WAF for building (and deb building), so how can I get mud builder to use WAF? :)
|
Re: Vala for Maemo development
Quote:
|
Re: Vala for Maemo development
That overall means that I shouldn't use WAF at all, eh? :) Because if I should have a Makefile and a rules file then I should do all the build config again, only this time through make/dpkg-buildpackage and a lot harder and confusing... :(
|
| All times are GMT. The time now is 09:32. |
vBulletin® Version 3.8.8