r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Red] Red language group

Kaj
2-Feb-2012
[4733x2]
Cool :-)
value is supposed to be a widget object, so the 12 is bogus
Dockimbel
2-Feb-2012
[4735]
Good! At least we have a clue to follow.
Kaj
2-Feb-2012
[4736]
What's the source code that generates this?
Dockimbel
2-Feb-2012
[4737]
gtk-view label "Hello, Red/System GTK+ world!"
Kaj
2-Feb-2012
[4738x3]
The code is executed in this case:
either any-struct? type [
	either as-logic value [
That's correct, because the label generates the widget object to 
be added to the window container
Dockimbel
2-Feb-2012
[4741]
Right, I've added a lot of debug logs to GTK to follow the calls...(the 
planned stack trace feature for Red/System is climbing in priority)
Kaj
2-Feb-2012
[4742x3]
So type seems to be correct, but value is not the label object. At 
a guess, could value = type ?
They're set like this, so I expect a bug there:
type: list/type
value: list/value
Dockimbel
2-Feb-2012
[4745]
Right, I need to check the generated code for that part...
Kaj
2-Feb-2012
[4746]
Guessing further, did you maybe swap type and value in the struct 
when adding 64 bits floats?
Dockimbel
2-Feb-2012
[4747x5]
Yes I have, but the bug is older than that change.
And the swapping should be transparent.
I think there's definitely a stack offsetting bug in the ARM backend 
for typed/variadic functions.
Kaj, I've been able to reproduce a similar behavior (having 12 in 
list/value instead of an address) using a small program, I'm analyzing 
it right now.
I have fixed the bug (issue with variadic function's return value), 
but it is still crashing. It seems the real issue is that callbacks 
are not stable on ARM...I haven't found the time to properly test 
them, so I'll need to do it now. Fortunately, Andreas has joined 
the bug hunting party. :-)
Kaj
3-Feb-2012
[4752]
Good progress
Pekr
5-Feb-2012
[4753x2]
What's your experience with Red/System wrapping interface? Is it 
suitable to wrap (relatively saying) "any" C defines? I am recently 
scripting VLC a bit, to see if I can use that player instead of LED 
Studio (which is really bad chinese standard LED accompanying sw) 
for our LED screen.


So far, I am fine talking to VLC via TCP - 10 lines of Rebol code. 
But their RC (remote control interface) missess advanced playlist 
handling. I was looking into vlccore library API, and I found various 
wrappers, and e.g. Python one, is auto-generated, by going thru includes.


IIRC, Max worked on something similar for R3, but never released 
the code. Now I wonder, how difficult would it be to achieve using 
Red/System?
btw - VLC natively supports LUA, so I will also look, if it can't 
do more, than what is being exposed via RC interface ...
Kaj
5-Feb-2012
[4755x4]
Red/System's way to write bindings is the best I've seen. Barring 
C features it doesn't have yet, it should be able to bind any C function. 
Mostly only 64 bits integers and importing data values are still 
missing by now
I've been considering a VLC binding, but it isn't a priority for 
me right now
One issue with it is that VLC is GPL, even the library, so your code 
on top of it must be open source. If you don't want that, the remote 
programming is the way to go
It would be a problem for an R3 binding, because the GPL doesn't 
allow VLC and REBOL to run in the same process
Pekr
5-Feb-2012
[4759]
VLC library is going to be LGPL since 1.2, or I have read something 
like that. Anyway - I have basic remote thing working. That damned 
thing can't do so simple stuff as viewing jpg images, nor I can have 
transition effects, so I am considering another alternatives ...
Kaj
6-Feb-2012
[4760x2]
I missed the LGPL relicensing. That's really cool
That makes a Red binding much more interesting
Pekr
6-Feb-2012
[4762]
VLC is weak in my book - sorry that it belongs to vent most probably, 
but that player can't replay something as simple, as jpg or png files. 
How can they expect ppl using their solution to build player upon 
it? Every old LCD TV can replay images, VLC can't. Nor it has transition 
effects ...
Kaj
6-Feb-2012
[4763]
It's a video stream player, not an image viewer
Pekr
6-Feb-2012
[4764]
Kaj - that is just an excuse imo. My 3 years old TV played just audio 
plus images. New versions can play namely anything. Ommiting ability 
to display images is a big design flaw imo. Because you can do it, 
or you can't do it. And VLC can't do it. You are also not right, 
that it is only a stream player - it is also a normal player, so 
it should try to display us much content as possible. Imagine you 
want to build small hw media player - will you ommit ability to display 
photos? And if not, it is clear you have to use another kludges to 
combine VLC with something else ...
Kaj
6-Feb-2012
[4765]
An excuse? Should every program be able to do anything?
Pekr
6-Feb-2012
[4766]
No, not anything, but what normal consument expects. There is plenty 
of bare bones DVD players, DVB-T tuners, and apart from video, all 
handle even photos, as I think, that in the age of digital cameras, 
it is pretty normal to request such a feature. But - whatever ...
Kaj
6-Feb-2012
[4767x2]
Your multi-purpose TV contains an operating system. VLC is not an 
operating system
If you want a program that simulates a TV, you should use MythTV 
or something like that
Pekr
6-Feb-2012
[4769x2]
My conclusion is, that VLC does not fit my requirements needs, and 
that's all. No wonder, that if you look into their website, trying 
to find projects which build their solutions upon it, you find only 
few projects actually. mplayer is much better in that regards. Dunno 
why though, as both build upon ffmpeg, so I expect their core having 
similar features, and API wise VLC seems to be ven better (LUA interface), 
but mplayer seems being more popular indeed.
Of course wrapping mplayer would mean releasing the source of the 
project, I think it is GPL, not LGPL.
Kaj
6-Feb-2012
[4771x3]
VLC is doing just fine with "normal consumers". They downloaded it 
a billion times, a good deal less than competitors such as MPlayer
But you're right: this belongs in ~Vent
a good deal more, I meant
GrahamC
6-Feb-2012
[4774]
Is there anything others can do to speed up the development of Red?
Kaj
6-Feb-2012
[4775]
A lot, I'd say. Enhance Red, write bindings, write example programs, 
write documentation. etc.
GrahamC
6-Feb-2012
[4776]
Doc says he is starting soon on Red ?
Kaj
6-Feb-2012
[4777x3]
He has started months ago with the memory allocator and the tokeniser, 
but Red/System keeps postponing the rest
On the other hand, implementing things such as the allocator yields 
experience for further developing Red/System
If you don't think you can create a contribution with time, you could 
make a donation in money
Pekr
6-Feb-2012
[4780x3]
Kaj - donation is not a problem imo. I donated and will donate again 
in March. At least a bit, but the question is, if it can speed anything, 
apart from the fact, that Doc will be able to work on the Red fulltime 
eventually. I think that Graham might be in a position of need to 
work on new stuff, and is deciding what tool should he use. In such 
a case, it is a bit preliminary to consider Red imo. But who knows, 
how quickly the RED itself can be written.
We will have to wait for Doc's estimate. It is also a question, if, 
when implementing e.g. Red "natives", he will accept the work of 
other developers, or will want to write it himself.
I am also not sure, that in the case of Red, eventual R3 source release 
would help to speed things up, as Red "natives" are going to be written 
in Red/System, not C, or so is my understanding of the platform.