• Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r4wp

[#Red] Red language group

Pekr
2-Dec-2012
[4534]
This one from Carl is even kind of nice - http://www.rebol.com/docs/reference.html
Oldes
2-Dec-2012
[4535x2]
it should be easy to improve Carl's reference to look like the Clojure 
one - showing the help string on roll over event which is nice and 
helpful.
Regarding the Red's VID discussion - I think it's still too early 
to ask something like this. First there must be I/O implemented in 
Red. You cannot start bulding a house from the roof. I'm pretty sure 
that once Red will be mature enough, there will be people trying 
to make own VID clones. I have also no problem with native VID. It 
should be transparen imho. And tt should be clever enough to support 
different screen resolutions. Not like old R2's one. I don't remember 
if the R3's version was better in that.
Arnold
2-Dec-2012
[4537x4]
Turn it around. You cannot seriously start building a house without 
knowing how the roof is going to be. After all the house is built 
because of the roof!
(at) Clojure jafingerhut: To be honest I hate those popup messages. 
You cannot copy anything from them and to keep them in site you are 
required to hover the mouse over the link. Not  what I want if I 
have to type something from its contents in another window.
site = sight
clojuredocs: check out this http://api.clojuredocs.org/search/clojure.core/map
real state of the art documentation :D
Kaj
2-Dec-2012
[4541]
If you need to know how the roof will be before starting on the floor, 
we can do it like REBOL 3 and not release Red until we have VID
AdrianS
2-Dec-2012
[4542]
Arnold: it's clear that people will have different preferences. I 
find the tooltips handy for when I just want to refresh my memory 
by a quick hover without having to lose the context of the page I'm 
on. If I want more details (which could be copied and pasted), I 
just click through. What's the problem with that? If you don't want 
tooltips, don't keep moving your cursor, or make tooltips optional.
Pekr
2-Dec-2012
[4543]
His point is, that with PC world converging towards touch, tooltips 
are a dead concept - there is no hover with touch devices. I also 
myself don't like pop-up menus, etc. - it was always a hell, and 
requires special treatment in GUI subsystems ....
AdrianS
2-Dec-2012
[4544x3]
Not so sure that mobile trends will mean no hover ability - I expect 
there's going to be a rise in the use of active styluses (along with 
touch) with the growing number of higher resolution tablets on which 
you can do some real work.
Put it this way - why should it bother someone if I want/like these 
tooltips as long as each person gets to configure the UI to their 
liking?
I've had a tablet pc (with active stylus) since 2007 and I still 
like what that brings for certain applications.
BrianH
3-Dec-2012
[4547]
Adrian, tablets with styluses are rare now; the iPad led the way 
toward finger-only interfaces. It's been announced that the Surface 
Pro will have a stylus, but it's a passive one. The Android tablets 
with styluses are passive too, just using the stylus for a sharper 
pointer. An active stylus is an expensive peice of electronics, while 
a passive stylus is just plastic with maybe some metal or rubber 
on it, so you can see why they're preferring passive now. Hover is 
going away for a lot of platforms, or was never there for some of 
the new ones.
AdrianS
3-Dec-2012
[4548x2]
I think I'm seeing a different trend Brian. Non-active styluses were 
first used on the not tablet pc tablets because it's the cheapest 
solution and the first tablets had relatively low rez screens and 
were primarily meant for consuming content. When you start doing 
any serious content creation palm rejection is a big issue and the 
non-active styluses do a relatively poor job of this. BTW, the Surface 
Pro looks to have an active stylus - not sure where you heard otherwise. 
Also see the Samsung Galaxy Note tablets (hugely popular)  which 
also have an active stylus. IMO, you're just going to see more and 
more tablets support these as screen resolutions go higher and people 
start doing real work on their devices. 


http://forum.tabletpcreview.com/microsoft/54066-microsoft-announces-surface-pro-pricing.html
sorry, Doc - we shouldn't be polluting this group
DocKimbel
4-Dec-2012
[4550x3]
EXIT and RETURN support have been added. Function! support is now 
complete. I plan to add closure! support too (and maybe R2-like functions 
also), but having object! seems like higher priority for now, as 
I want to implement port! datatype asap.
A mention about THROW function attribute: I will add support for 
it, but it won't be usable until we get  dynamic function creation 
support.
I need to process some pending tickets from the bugtracker, so I 
will probably start working on object! support tomorrow.
Pekr
4-Dec-2012
[4553]
btw - will you allow append to objects, like R3 does? (at least I 
think it does :-)
DocKimbel
4-Dec-2012
[4554x2]
I always had mixed feelings about it, on one side it allows to extend 
objects in-place, which is very useful when they are referenced (in 
a tree structure for example), but it also encourages a, IMHO bad 
coding pattern, which is using objects to store data when you should 
use (the much cheaper) blocks instead.
So far, I think that the pros are more important than the cons, so 
Red will probably support it too.
Pekr
4-Dec-2012
[4556]
Well, it would be strange from you to try to push us to recreate 
an object just to expand it, whereas in REBOL3 group you are wondering, 
why function bodies are not hot-patchable anymore, no? :-)
DocKimbel
4-Dec-2012
[4557x3]
Well, it is not the same thing. APPEND on object is blurring the 
semantic lines between an object and a block, that is not a good 
thing IMHO. It makes the choice more confusing between them for newbies 
(or maybe even some more experienced REBOL coders) while the distinction 
should be clear.
it would be strange from you to try to push us to recreate an object 
just to expand it


That is part of the basic semantics of the R2 object! datatype, it 
follows the prototype-based model. You construct new objects by copying 
existing ones, it can be just a copy (cloning the source object), 
or derivation (extending the source object with new words). Changing 
object context (adding/removing words) without creating a new one 
is not consistent anymore, so it can look like a big hack.
Correcting myself: "derivation" might not be the best word in such 
context, "extension" would be more neutral.
Gregg
4-Dec-2012
[4560]
On the subject of hot-patching, I've thought for a long time that 
the ability to instrument apps--like DTrace--would be very helpful. 
I know DTrace is deep kernel voodoo, and not available on all OSs. 
If Red supported probe points for DTrace, that would be great for 
those who use it. My question is whether it would be better to use 
a DTrace model, where the analysis happens from outside the app, 
or if having an instrumentation/tracing/logging model internally 
is better. Or can you support both with the same set of probe points 
in an app?
DocKimbel
4-Dec-2012
[4561x2]
It is in my plans since the beginning to support internal profiling 
feature for Red, though I was thinking about processing them in the 
IDE mainly. In the Red/System v2 specs, I have already made some 
provision for low-level profiling of native functions.


I know about DTrace but never used it. I would need to study how 
it implements probe points to see if same technic could be used internally.


Currently, it would be quite easy to add a profiler to Red layer, 
it would just need to extend the stack/mark*, stack/unwind* and stack/unroll 
function to collect the data. But as we have other high-priority 
features to implement first, it will probably wait a few months (unless 
someone wants to implements it, I would be glad to give the basic 
hints on how to achieve it easily).
I might make a 0.3.1 release tomorrow to set a milestone for functions 
support. If you have Red scripts, it's time to test them with latest 
commit.
Gregg
4-Dec-2012
[4563]
Thanks Doc. Excellent info.
Kaj
4-Dec-2012
[4564x3]
I agree that objects should be used sparingly, but not being able 
to expand them makes it expensive to implement VMs for substantial 
dialects. I did that and started out with blocks only, but over time 
I had to decide to use objects in places crucial to the user dialect
My conclusion was that, being fundamental to the language abilities 
of REBOL, contexts should be more flexible
I did a build run of the examples. It looks OK, but the many casting 
warnings on the GTK bindings are still there. I think that should 
be fixed
Jerry
4-Dec-2012
[4567]
Doc, Is is possible to support something like VFS in SQLite (http://www.sqlite.org/c3ref/io_methods.html), 
So we (OK, me) can develop a simple RDBMS on Red, instead of doing 
it using Red/System
DocKimbel
5-Dec-2012
[4568]
I'm not sure what you mean exactly by "support". I haven't implemented 
yet the interface for cross-access between Red and Red/System. A 
minimal interface will probably appear in the next weeks.
Kaj
5-Dec-2012
[4569x2]
That VFS is about the file system interface. Do you want to write 
your own RDBMS on top of it, or do you want to use SQLite?
Part of that VFS is covered by the REBOL file access methods, but 
not the advanced functions
DocKimbel
6-Dec-2012
[4571]
I am a bit short on time for testing on all platforms, did anyone 
find any regression in Red before I release v0.3.1?
Arnold
6-Dec-2012
[4572]
Hi I had a look at the last changes yesterday . For what it's worth, 
code was cleaner/prettier. That's a good sign in general :)
DocKimbel
6-Dec-2012
[4573x2]
It would be really nice to have automatic builds+tests running on 
all major supported platforms for each new commit on main branch, 
and an automatic report generated online. That would really saves 
us time and avoid missing some obvious regressions.


I know that Andreas started working on that. Andreas, do you already 
have a good plan to achieve it?  Do you need help/resources?


I can provide a Linux server for Linux/x86 targets. Having a Windows 
machine online + MacOS X would be great. Also a Linux/ARM (RPi for 
example) that is always up and reachable from the net could nicely 
complete the list.
Arnold: thanks! :-)
Arnold
6-Dec-2012
[4575]
youre welcome my friend ;) Did you find time to read my latest reply 
on the mailing list?
DocKimbel
6-Dec-2012
[4576]
Yes, I have even replied to it. ;-)
Arnold
6-Dec-2012
[4577x2]
I freed up some space on my mac I'll download latest version from 
github and have a little go. Anything specific to look for/try? Imho 
you are allowed to patch as much as you want, release or not. We 
will follow anyhow.
Great reply! Thanks.
Too bad they got old monitors at work without hdmi support or I could 
test my new Raspberri Pi there too :D
Kaj
6-Dec-2012
[4579x3]
Doc, I don't think you fixed the struct warnings on GTK yet?
Arnold, do the monitors have DVI?
Please test the example programs from the binary repository on Mac. 
I'm still looking for the correct library names of the dependencies
DocKimbel
6-Dec-2012
[4582]
Struct warnings: not yet, I will have a look at them before the release.
Kaj
6-Dec-2012
[4583]
Thanks