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

World: r4wp

[#Red] Red language group

Kaj
30-Oct-2012
[3143]
I get one on the GTK binding and one on WebKit. I haven't seen them 
before the 0.3.0 merge
NatasjaK
30-Oct-2012
[3144x2]
All that talk about my machine, I touched one button and it awoke 
again ;-)
Wich doesn't mean the problems are solved, but it's a start ;-\
DocKimbel
30-Oct-2012
[3146x2]
Kaj: the changes I did today are generating a lot of warnings with 
GTK binding, I will have a look at it later to see if it's a bug 
or if the binding code needs some minor changes.
Natasja: seems that you'll have a brand new system soon. :-)
Kaj
30-Oct-2012
[3148]
Is it correct that Red/System can't print Unicode on Windows like 
the other systems?
NatasjaK
30-Oct-2012
[3149]
DocKimbel: That would be very welcome :-)
PeterWood
30-Oct-2012
[3150]
AFAIK, windows consoles only supporting Windows 8-bit codepages or 
UTF16. Red/System can print the full range of UTF-8 characters (as 
can REBOL) but the console can't display them.
Kaj
30-Oct-2012
[3151]
Ah, right, I'd have to use UTF-16 source text
PeterWood
30-Oct-2012
[3152x3]
Probably the easiiest way would be to inculde the Red runtime and 
use red/unicode/load-utf8 to create a Red string and Red/Platform/print-ucs4 
to print it.
You would need to check that the Windows console is set to display 
UTF-16B.


This commit ( https://github.com/dockimbel/Red/commit/be271889ff03e44bdb55af04b60ea2bb280cb18f
) shows how.
) shows how.
Kaj
30-Oct-2012
[3155]
Thanks
PeterWood
30-Oct-2012
[3156]
The other way is to convert the utf-8 c-string! to  UTF-16E integers 
on the fly  and feed them into llibc putwchar yourself. More work 
upfront but may be easier in the long term.


The code in red/runitme/platform/win32.reds is a pretty clear exmpale 
of how to do it but you wuld still need to write the UTF-8 to UTF16-LE 
on the fly conversion yourself. (That one is UCS-4 to UTF16LE).
DocKimbel
31-Oct-2012
[3157x2]
Kaj: you can switch the Windows console to an UTF-8 compatible mode 
using _setmode():
http://msdn.microsoft.com/en-us/library/tw4k6df8.aspx


I haven't test it but it should work. Windows uses natively UTF-16LE, 
so you would probably have a speed penalty using that mode.
Question for everyone: I was thinking since a while to publish on 
red-lang.org the donations I get, including donator names (unless 
they want to remain anonymous). Is that ok? Are they best practices 
for doing that?
Pekr
31-Oct-2012
[3159x2]
I would not mind. Something like "sponsored by" or any other text 
would be ok with me ... not sure about the amounts of money displayed, 
but maybe then two lists - top donators, others who contributed too. 
Dunno - simply put - someone might make one donation for higher amount 
of money, so ask such person, if he would mind if only one list is 
available ...
The trouble with amounts displayed might be twofold - 1) legal one 
2) personal one - e.g. your girlfriend/wife noticing, that instead 
of going to vacation, you are sponsoring Red :-)
Henrik
31-Oct-2012
[3161]
That should be an opt-in thing. I'm not sure I'd want donations to 
be public.
DocKimbel
31-Oct-2012
[3162]
So, maybe just an anonymous list?
Pekr
31-Oct-2012
[3163]
what do you mean by anonymous? What I think is OK is to display list 
of donators, in no respective order. It is the same like list of 
eventual top frequent code contributors. I think that ppl could be 
ok with that. Of course, if someone opts to stay "hidden", you will 
not list him/her ....?
Endo
31-Oct-2012
[3164x2]
You can put something like: "thanks to those people for supporting" 
etc. and put their names if they don't want to be anonymous.
It looks better to not put  then amount of money.
* then = the
DocKimbel
31-Oct-2012
[3166]
My concern was to be transparent about the donations I get, so that 
people know how much I receive each month.
Bas
31-Oct-2012
[3167]
It can also stimulate people to give more.
Endo
31-Oct-2012
[3168]
So you can share the total donation amount (per month, or all), and 
"thanks to those people" text on the web site. Put people to the 
list if they donate even once.

There is something similar on C64 Scene Database: http://noname.c64.org/csdb/donate.php
ICarii
31-Oct-2012
[3169]
The other option is to do categories like kickstarter does and just 
indicate a number of donations in a certain range
Kaj
31-Oct-2012
[3170x2]
Indeed, executables for the Windows target don't use stdin/out like 
the MSDOS target does
The new casting warnings seem to assume that all structs are equal. 
Especially in GTK, many objects are both generic widgets and a specific 
class of widget. They need to be passed in different identities to 
different functions, even if those structs are only defined with 
the same dummy content
Bas
31-Oct-2012
[3172x2]
Here are the two movies of the presentation "Red running on the Raspberry 
Pi" done by Kaj during the first Hardware Freedom Day 2012 at the 
TkkrLab Hackerspace Enschede on saturday the sixth of october
http://www.youtube.com/watch?v=9eQPtrw8rIQ&list=PLN-OHO8jjoowvi5peIoOp_E05wpf2YQVh&index=1&feature=plpp_video
DocKimbel
31-Oct-2012
[3174]
Great, thanks Bas!
Gabriele
1-Nov-2012
[3175x2]
Nenad, I think the best for donations would be what they do here: 
https://www.humblebundle.com/
when you donate, you can choose to appear in the list or not, and 
if yes, what name to appear as.
Pekr
1-Nov-2012
[3177]
posted in ann-reply group, but really - could we stop calling those 
app being an MSDOS? That's absolutly innacurate imo ...
DocKimbel
1-Nov-2012
[3178x5]
I don't see Kaj calling his binaries "MSDOS apps". It is just a target 
ID meant to be easy to remember, nothing else.
I don't see any better ID for now other than that, if you do, please 
propose it. Anything else would look odd and inconsistent with other 
targets ID, except maybe "DOS", but that wouldn't change anything 
about the "accuracy".
The point of target names is that people can easily associate them 
with the set of config options they refer to.
IMO, the only way to get a new good replacement ID for "MSDOS" is 
to change all targets ID and adopt a different naming convention 
(one that is easy to remember).
Gabriele: that was my first intent, but I gave up to avoid having 
to code and maintain a dynamic web page...Also, I would need to set 
up a workflow, so that donators would need to fill a form first before 
accessing the donation options. I wanted to keep it simple, but maybe 
we need that.
Kaj
1-Nov-2012
[3183]
Petr, have you tested the Windows binaries?
Pekr
1-Nov-2012
[3184x7]
no, not yet, no time left for few days here ...
Kaj, it would be helpful to make it easy for ppl to get. I am an 
average user, and I can't locate the executables:

- esperconsultancy does not provide any link

- red lang does provide link to fossill (which UI I find terrible)

- I go to Files section, examples subdir - no executables there ....
I must have missed some other link probably poste around here?
Found them - it was scrolled away from the sight, as Max posted his 
source code in the Announce group :-) It would be usefull to add 
the link to the Contribution page ...

http://red.esperconsultancy.nl/Red-test/dir?ci=tip
We have new Samsung 64bit Win8 machine in the office, I might try 
next week to run some tests there too ...
uh, whoever came with the Fossil interface, is real example of idiot.
Click click click click, nonsense timeline, nonsense hashes, then 
you finally get to the point, where you can download a ZIP file, 
and it is named like a crap, subdir's name is weird too. I am really 
upset anytime I have to go to such an interface. It is not imo normal, 
in order to get a clue how to get a file, to twiddle around for a 
minute!
Kaj
1-Nov-2012
[3191]
The same idiot who gave the world SQLite
Pekr
1-Nov-2012
[3192]
First thing - unpacking the archive triggered the AVG antivirus alert 
...