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

World: r4wp

[#Red] Red language group

Pekr
26-Sep-2012
[2289x2]
I know, but I need new NTB after almost 6 years - at least core i5, 
8GB RAM, SSD disk :-)
yes, my font is Lucida Console. There is only one other option - 
raster ... I can't select any other font in that dialog ...
DocKimbel
26-Sep-2012
[2291]
If you want you can manually install Consolas font as explained here: 
http://www.hanselman.com/blog/UsingConsolasAsTheWindowsConsoleFont.aspx
Pekr
26-Sep-2012
[2292]
OK, but the other reported things helped to find some bugs? All was 
it all just a font issue?
DocKimbel
26-Sep-2012
[2293]
No, there were bugs and that last one is a font issue.
Pekr
26-Sep-2012
[2294]
Downloaded Console2, which allows to have tabs, and allows me to 
change fonts, so I just choosed Consolas and the output is correct 
...
Andreas
26-Sep-2012
[2295x2]
Happy to report that Unicode on Linux with an all-UTF8 setup works 
just fine for me.
I noticed that the red/tests/hello.red file is UTF-8 with a BOM -- 
I'd suggest dropping the BOM, as using a BOM with UTF8 is not recommended.
DocKimbel
26-Sep-2012
[2297]
No problem to drop the BOM(b)! :-)
Andreas
26-Sep-2012
[2298]
Now off to try what happens with a Latin1 environment, but I guess 
it won't work :)
Pekr
26-Sep-2012
[2299]
OK, so now I am back after the reboot, so my default Vista console 
uses nice Consolas font, and it now displays everything (apart from 
Chinese) correctly ...
DocKimbel
26-Sep-2012
[2300x2]
Red currently maps only to Unicode C printing functions. We could 
tweak the code to detect (for Unix platforms) the locale and fall 
back to Latin1 if required.
Pekr: good!
Pekr
26-Sep-2012
[2302]
So, what's next? :-)
DocKimbel
26-Sep-2012
[2303x3]
Andreas: do you think we should add Latin1 locale support too or 
just assume that now everybody use Unicode-capable terminals?
Next: char! and all series actions already present in block! implemented 
for string!
Should be just a couple of hours of work, but I need first to fix 
one or two tickets for Kaj.
Arnold
26-Sep-2012
[2306]
Now Red can output texts it can produce strings with html code? And 
so theoretically is up to CGI processing maybe with a little help 
from REBOL. Or is that too early?
GrahamC
26-Sep-2012
[2307]
Can red access stdin and stdout ?
Pekr
26-Sep-2012
[2308x4]
Not yet imo. There's imo no I/O apart from print ....
but - Red apps is an executable, so theoretically, on systems like 
Linux, maybe it can be piped?
hmm, but it would have to support stdin/out for that probably anyway 
:-)
Kaj wrapped some libraries, maybe those cover some ground there, 
e.g. Curl binding allows you to work with networking:

http://www.red-lang.org/p/contributions_20.html
Kaj
26-Sep-2012
[2312x2]
There are functions capable of stdin/out in the C library binding. 
Some of them are included in Red/System itself
Those can be inlined in Red, but Red itself currently only has print 
to stdout
DocKimbel
26-Sep-2012
[2314x2]
We'll add stdin proper support when we'll implement console:// scheme.
We could add CGI support earlier though.
Pekr
26-Sep-2012
[2316x2]
Console scheme? We will have console? :-)
Nice though, I always liked schemes like console://, clipboard://, 
those were just under-utilised imo :-)
DocKimbel
26-Sep-2012
[2318]
Of course, as soon as it will be possible to make Red work in a console.
Kaj
26-Sep-2012
[2319]
Can we call it E: like on my Atari 8-bit? ;-)
Arnold
26-Sep-2012
[2320]
That would give a little showcase to Red. Pls do not feel pushed 
Doc! One fool can ask more than ten wise men can answer ;-)
DocKimbel
26-Sep-2012
[2321]
What was the Amiga device name for that? CON:?
Pekr
26-Sep-2012
[2322]
yes
Kaj
26-Sep-2012
[2323]
If it was like DOS :-S
Pekr
26-Sep-2012
[2324]
I just got an idea - we will reimplement Amiga OS in a modern way 
:-)
Kaj
26-Sep-2012
[2325]
Been doing that for a decade
Arnold
26-Sep-2012
[2326]
:D
Pekr
26-Sep-2012
[2327]
Will we also have a system object structure? I liked lurking in the 
internals of REBOL in initial days :-)
Kaj
26-Sep-2012
[2328]
Already in Red/System
GrahamC
26-Sep-2012
[2329]
Addimg CGI support early would be good ... for online demos
Kaj
26-Sep-2012
[2330]
You can do it in Red/System
DocKimbel
26-Sep-2012
[2331x2]
Without proper internal sandboxing, you certainly wouldn't want to 
give open access to anyone for running Red (and even worse Red/System) 
code on your server.
Once again, the best option for such live demos is adding a thin 
Red emulation layer on top of Topaz.
Kaj
26-Sep-2012
[2333x2]
On TryREBOL it's no problem. I've been giving the world a gaping 
hole into our server for three years now. It was a test, and people 
tried to break it, but they never got in
CGI is based on the same principle. It's supposed to be a gateway 
from a Unix web server to a Unix file system, so you can secure it 
with operating system tools
GrahamC
26-Sep-2012
[2335]
I think you'd run it on your own server ...
Gregg
26-Sep-2012
[2336]
Just skimming this group. Exciting to see so much going on here.
Arnold
27-Sep-2012
[2337]
Adding CGI would be good for online demo's? Well for building web-sites 
too! Finally drop php.
Oldes
27-Sep-2012
[2338]
Aren't you using Doc's Cheyenne server? ;-)