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

World: r4wp

[#Red] Red language group

Janko
28-Dec-2012
[5001]
I sent 70eur in from 14.Dec to now (for NickA or Gregg deals / btw 
thanks for that).
DocKimbel
28-Dec-2012
[5002]
Janko: thanks for your donations!
Kaj
29-Dec-2012
[5003x3]
Shouldn't block/rs-head and rs-tail have a /local s ?
Same for string. Perhaps it comes out of string/rs-length? which 
doesn't have s
block/copy seems to need /local s too
DocKimbel
29-Dec-2012
[5006]
Yep, copy/paste bug.
Kaj
29-Dec-2012
[5007x2]
I've implemented the first string marshalling in the SQLite binding, 
of the version identifiers
version: routine [  ; Return SQLite version.
;	return:				[string!]
	/local				version
][
	version: sqlite/version
	SET_RETURN ((string/load version length? version))
]
DocKimbel
29-Dec-2012
[5009]
You should wait for me to add the marshalling and unmarshalling functions 
(that will be used everywhere Red needs to interface with non-Red 
code). In your code example, it should be: 1 + length? version (as 
it needs to account for terminal NUL character). Also, you need to 
get sure that the source c-string! buffer is always available or 
make a copy of it (a pointer to it is stored as a UTF-8 cache, unused 
yet, but intended for speeding up I/O, still experimental, not sure 
it will stay for v1.0).
Kaj
29-Dec-2012
[5010]
I was wondering about those things. There's not much I can do then 
to make working bindings currently
DocKimbel
29-Dec-2012
[5011]
I'll try to speed things up.
Kaj
29-Dec-2012
[5012]
Don't tremble apart when passing the sound barrier ;-)
DocKimbel
29-Dec-2012
[5013]
:-))
Kaj
30-Dec-2012
[5014]
I adapted the console to work on POSIX platforms with the ReadLine 
library, but due to bugs in ROUTINE it's currently impossible to 
keep it integrated with the Windows version
Marco
30-Dec-2012
[5015]
Since Red compiles to Red/system, how can I get the red/system source 
result?

Red is simpler to use but sometimes we want speed so why not let 
red compile to r/s

and then use that source to make a routine! or as a stand-alone program?
Kaj
30-Dec-2012
[5016]
You can use the -v options to the compiler, but you'll probably be 
disappointed. What Red generates is completely integrated with its 
runtime, not something you would use standalone or even hack
DocKimbel
30-Dec-2012
[5017x3]
Marco: it's explained in the README file there: https://github.com/dockimbel/Red
Red compiles to generic Red/System code, there's no optimizer yet. 
Routines allow you to hand-optimize Red/System code and use system 
programming features not available at Red level.
Kaj: have you reported those routine bugs somewhere?
Marco
30-Dec-2012
[5020]
About antivirus false positves (VERY annoing): Red exes give alerts 
while r/s ones not (at least not the demos), isn't it a bit strange?
Kaj
30-Dec-2012
[5021]
I'll get around to reporting some issues later tonight
DocKimbel
30-Dec-2012
[5022]
Marco: some antivirus have too aggressive heuristics, there's not 
much we can do for that. From time to time, I send some reports to 
AV vendors for notifying the false positive, most of the time, they 
take it into account.


Doing a quick test on virustotal using the latest console exe, it 
seems that my reports have been successfully processed, I don't have 
the old virus reported anymore (except with Panda): https://www.virustotal.com/file/a8c189ed790fd1d5bce2d86878e85445c21880dafb4220605df4ef2e4d4f4ce5/analysis/1356894544/

What AV are you using?
Marco
30-Dec-2012
[5023]
Avira Free Antivirus
DocKimbel
30-Dec-2012
[5024]
I recommend you to switch to MSE (Microsoft's one), it integrates 
better with Windows and has no annoying ads and  is totally free 
(I was an Avira user for long time before trying MSE).
Marco
30-Dec-2012
[5025]
But why r/s exes do not give alerts?
DocKimbel
30-Dec-2012
[5026]
You should ask that to the Avira developers. The heuristic routines 
they use might not be very stable and could be easier triggered by 
byte patterns produced by Red than byte patterns from hand-written 
Red/System programs.
Kaj
1-Jan-2013
[5027]
Since string/load-in caches the source string when under 64 bytes, 
should console/input not refrain from free'ing BUFFER?
Marco
1-Jan-2013
[5028]
About false positives: the console.exe does not give an alert, so 
I copy/pasted the first lines of console.red to demo.red and it did 
not give an alert...
DocKimbel
1-Jan-2013
[5029]
Kaj: right, the `free` call here is unsafe. Actually both allocate/free 
calls in input were just meant for temporary use. The whole current 
console code is temporary, it will need to be replaced by a proper 
cross-platform full-featured console.
NickA
1-Jan-2013
[5030]
'm offering a matching funds drive to for Kaj and Esper Consultancy's 
work on Red.  I'll match funds donated to them by January 31, 2013, 
up to a total of $200.  If you're interested in Red, please help 
them devote some additional time and effort to this project.
DocKimbel
2-Jan-2013
[5031]
Fast forwarding Red history: http://www.red-lang.org/2013/01/fast-forwarding-red-history.html
Kaj
2-Jan-2013
[5032]
Cool :-)
Arnold
2-Jan-2013
[5033]
Very good vid even without a fitting musical distraction! 

Today I watched a tutorial for the AVR Dragon, a kind of arduino 
thing, when I heard in that video the programming environment was 
a download of about 500MB and needed the .NET framework I stopped 
it and realised that would be about 5000 times bigger than the programmable 
memory of that board. That is why the world needs Red :)
DocKimbel
2-Jan-2013
[5034]
If someone wants to add music, he can make a new video using gource 
and add appropriate music, I hadn't the time to  also work on the 
audio part. :-)
GrahamC
2-Jan-2013
[5035]
amazing!
TomBon
2-Jan-2013
[5036]
wow!
Endo
2-Jan-2013
[5037]
Wow that's cool :)
Bo
2-Jan-2013
[5038]
I find graphical representations of data very interesting.  This 
one is one of those!
NickA
3-Jan-2013
[5039x2]
I can't wait to see how that video progresses as more people become 
involved!
The paypal address for Kaj and Esper Consultancy is [bas-:-esperconsultancy-:-nl]
Pekr
3-Jan-2013
[5041]
Doc - thanks for mentioning me, now I am famous again :-) Well, glad 
that as I can't program, I can be kind of usefull otherwise :-)
DocKimbel
3-Jan-2013
[5042]
Donations are currently vital for Red continuation as it is my only 
revenue stream. Without all the donations I have received, Red progress 
would slowdown a lot. So, it is probably even more important than 
contributing code. ;-)
Jerry
3-Jan-2013
[5043]
Doc, Issue! in Red will be Any-String! (like in R2) or Any-Word! 
(like in R3) ?
DocKimbel
3-Jan-2013
[5044]
Good question: I am just about to add issue! support to Red today. 
I think the change in R3 to treat it as a word is a good one, as 
the main issue! usage is for keywords. As in R3, it will allow digits 
as first character.
Kaj
3-Jan-2013
[5045]
I'm doubtful about it, as it is also commonly used to denote bug 
numbers and such, which is now expensive in R3
Andreas
3-Jan-2013
[5046]
Hmm, why is that expensive now?
Kaj
3-Jan-2013
[5047x2]
Each issue number adds a word to the word registry, that isn't garbage 
collected like strings are
I would like to be proven wrong
Andreas
3-Jan-2013
[5049x2]
No that's true. But I wouldn't consider that particularly expensive 
(esp not with R3 effectively abandoning the word limit).
For compiled Red, I think this would not matter at all (as strings 
are interned as well, afaik).