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

World: r4wp

[#Red] Red language group

Andreas
23-Apr-2013
[7192]
I'll push a fix shortly.
Kaj
23-Apr-2013
[7193]
Thanks!
Andreas
23-Apr-2013
[7194]
Pushed. If you give it a try, please let me know if it works for 
you as well.
Kaj
23-Apr-2013
[7195]
Iīll have a go tomorrow
PeterWood
23-Apr-2013
[7196x3]
Did you run the tests before pushing the commit Andreas?  I now have 
a few failing Red/System tests. I'm in the middle of writing some 
tests and need to get those commitable before I can take a look.
From a quick look your commit has changed the default for red/system 
so that executablles are now built in the current working directory 
rather than the builds directory.
Quick-Test is built to handle the previous behaviour so is broken 
at the moment.
Arnold
24-Apr-2013
[7199]
(@Kaj your apostrophe is a Yen sign in my AltME on Mac)
PeterWood
24-Apr-2013
[7200]
Being written in REBOL/View, ALTME encodes characters in the Windows 
codepage under Windows, MacRoman under OS X and UTF-8 (I think, it 
may be ISO-8859-1) under Linux. So if you use any character  other 
than standard ASCII characters, it will appear differently on differnet 
systems.
DocKimbel
24-Apr-2013
[7201x3]
Andreas: watch out for regressions, this is a sensitive feature as 
it affects everything else: test suite, my own local tests scripts, 
Red compilation toolchain, documentation on github homepage, etc...
Such kind of change needs to be coordinated.
FYI, my plan is to get rid of %rsc.r and merge its features to %red.r 
(deciding on the compiler to use based on input script header). The 
%red.r  front-end is smarter and able to better handle relative paths.
Andreas
24-Apr-2013
[7204x5]
Unintended regression, sorry.
Fix coming up in a second.
Pushed; sorry for the mess-up.
Test suite runs again, relative path handling for explicit output 
paths (-o) and sources passed to rsc.r should also work.
And w/o an explicit output path, builds are again stored in the builds/ 
directory.
Pekr
24-Apr-2013
[7209]
watching pic-emitter Commits section - Doc, you are a coding hurricane 
:-) I can smell first shared library generated by Red coming over 
the weekend :-)
DocKimbel
24-Apr-2013
[7210]
I hope it won't take me that much time. ;-)
PeterWood
24-Apr-2013
[7211]
Thanks Andreas
Pekr
24-Apr-2013
[7212]
+1 for the merge of  %rsc.r into %red.r . Never liked the name %rsc.r
Kaj
24-Apr-2013
[7213]
Arnold, Iīm on a new Linux installation set to dead keys, so itīs 
manipulating quotes and such. I guess I canīt keep up that experiment
Henrik
24-Apr-2013
[7214]
So, what's the prospect for getting Red/System running on a Parallella?
DocKimbel
24-Apr-2013
[7215]
Pekr: %rsc.r, like it or not, the naming scheme was following the 
usual conventions for naming compiler launchers, maybe you would 
have preferred %red-system-compiler.r?
Pekr
24-Apr-2013
[7216]
I would prefer it would not exist. I find "do/args %rsc.r "-v 5 %tests/hello.reds"" 
still being rather cryptic and I hope everything gets replaced, once 
we get red.exe?
DocKimbel
24-Apr-2013
[7217x2]
Parallella: Red should be able to run on it from day one as we already 
support their system (Ubuntu/ARM). For the risc chips cluster (Epiphany), 
simply making a Red/System backend for them would not be enough to 
leverage the computing power. We would probably need some new abstractions 
at Red level, specific new natives in Red or even dialects to take 
real avantage of it. For example, we could have a MapReduce native 
support in Red that would   delegate execution to such kind of cluster 
(there are other competing hardware products in that area).
Pekr: you understand that building Red is not going from 0.0 to 1.0 
in one step? So, like in any other long ang complex building processes, 
you have intermediary building steps and states that are not necessarily 
representative of the final product. Think of a house in construction 
with scaffoldings, you don't point at the scaffoldings saying that 
the house will look horrible.
Kaj
24-Apr-2013
[7219x4]
I've found a nice keyboard configuration that seems to do everything 
I want
Petr, there's already a red.exe in my downloads; just not a compiler, 
but the interpreter :-)
rsc.r works better now
I would still like the default output to be deposited in the working 
directory, instead of the builds directory
Endo
24-Apr-2013
[7223]
Pekr: You are welcome to use Online Red & Red/System compiler here: 
http://bircomteknoloji.com:8181/

Just don't forget to change script header when you switch between 
Red & Red/System. 


Red compilation takes 10-25 seconds, Red/System compilation is 1-2 
seconds.
DocKimbel
24-Apr-2013
[7224]
Endo: did you encapped Red compiler?
Arnold
24-Apr-2013
[7225x3]
@Kaj, The Yen sign has disappeared here! Congratulations! :)

I would still like the default output to be deposited in the working 
directory, instead of the builds directory

 I think I agree with this. In the ideal situation you could specify 
 these things, maybe in a settings file or in a preference in a compilation 
 assisting program. (Started one once)  

The integration of rsc.r within red.r sounds as a logical step. (rsc.r 
Red System Compilation, not so bad and a clear difference from red.r 
for Red scripts)
@PeterWood Thank you again Peter! 

Peter answered a question on the Red mailing list (all subscribe!) 
about me calling a function in Red like f(10) where it should have 
been f 10 and I didnot get this. The (10) part was being processed 
as a paren! type so the value was calculated before giving to the 
function f as input.
Time is almost ripe for Red school group.
Henrik
24-Apr-2013
[7228]
DocKimbel: Parallella: Sounds like a very interesting challenge. 
:-)
Arnold
24-Apr-2013
[7229]
They have devs focussing on Erlang, Go, interesting stuff. Beating 
them with Red is ambitious. Pointing them to Red is ok.
Endo
24-Apr-2013
[7230]
Doc: "did you encapped Red compiler?" Nope, RedCompiler.exe is just 
calling the rsc.r or red.r according to the extension of given script 
file. It should be placed in the red-master directory.

I tried to make a encapped Red compiler but there are some problems 
with #include or other compiler directives.
DocKimbel
24-Apr-2013
[7231]
Once we merge %red.r and %rsc.r, I will look into encapping the whole 
thing, so we'll be able to start distributing Red as a unique binary 
file.
Endo
24-Apr-2013
[7232]
Yeah it will be great. People can try Red & R/S easily then.
DocKimbel
25-Apr-2013
[7233]
ZLib binding for Red/System released by Bruno:

https://github.com/dockimbel/Red/tree/master/red-system/library/zlib
Pekr
25-Apr-2013
[7234]
Looking at http://www.red-lang.org/p/contributions.htmlit seems 
to me, that Red has more bindings, than for R2 + R3 combined :-) 
Maybe just an impression, as I miss such a conscise list on rebol.com 
website ....
Kaj
25-Apr-2013
[7235]
That page is incomplete...
Marco
25-Apr-2013
[7236]
Am I doing something wrong with this?:
Red/System []
mem: declare pointer! [byte!] len: 10
while [all [0 < len: len - 1]][mem: mem + 1]


*** Compiler Internal Error: Script Error : get-function-spec expected 
name argument o
f type: word
*** Where: get-type
*** Near:  [either 'op = second get-function-spec]
Arnold
25-Apr-2013
[7237]
What are you filling mem with?
Marco
25-Apr-2013
[7238x2]
I am not filling mem, that is only an extract of my code (a part 
of a search function).
Why the compiler gives an error?
Arnold
25-Apr-2013
[7240x2]
Could be it is a compiler error, the message suggests it imho.
Pointers are not my specialty :(