« first day (2187 days earlier)      last day (1593 days later) » 

12:43 AM
rgchris has made a change to the feeds posted into this room
posted on October 21, 2016 by Arie

Hi folks! today we start a new community driven BLOG about all and everything about the Red Programming Language. While Nenad is working like crazy to continue to design and develop Red, a lot of people do interesting things with Red. It is amazing that at this stage so much is already possible with Red! We hope to post BLOGs from different people, who will let shine their light upon differe

 
Ohh!
They said Red is not even a fair match for Rust! Disrespected Red!
in Rust, 7 hours ago, by E_net4
Also, it doesn't seem like a fair match.
 
12:58 AM
"Does that language look like VBScript trying to be a Lisp-y D on drugs, or it's just me?" —just him, I'd say.
 
@rgchris haha..
what i actually really lvoe about Red is that no one really uses it much
and its not that hard to become well known at it
rather than C++ or C.. for example
 
If you've spent any time looking at languages and haven't heard of Rebol or Red, then you're doing it wrong. I don't mean you have to use it or like it, but to not have heard of it...
 
@rgchris Well
I havent heard of it..
 
Hadn't...
Yet here you are.
 
But i was just searching through OpneSource Langauges. And i found out Red to be one of them
@rgchris i searched through the repo.. yep yet here am i.
 
1:03 AM
So you're not doing it wrong :)
 
Guess not :D
 
1:26 AM
@HostileFork @MarkI Ok, one common expression that might break is: round 3 / 2
 
@rgchris Good one. Exception for unary functions, anyone?
Kidding of course. Hm. How much different than that is negate 2 + 3?
If add 4 2 * 2 is going to be (add 4 2) * 2, then it's not much of a stretch to get that to (negate 2) + 3.
But your example is destined to be a classic. When unary on an integer, ROUND is a pass-through, most misleading.
It also would break to integer! 3 / 2, of course, and I have written that exact line of code.
In any case, you can't have both (not x) and y and round (3 / 2)!
Well, maybe @HostileFork could get you that. That guy can do anything ...
 
Also too: positive? x - y
 
1:42 AM
OK, but that one will at least error.
 
 
4 hours later…
5:39 AM
@rgchris I've proposed that numbers pathed divide, so you could do round 3/2.
I still hold onto the vague hope that / can be a pathing operator, such that a / b / c and a/b/c are equivalent.
But, :a / b / c acting as :a/b/c has no obvious method; one would need a new type like a C++ reference or something.
@MarkI round could refuse to take integers.
 
6:02 AM
@rgchris Interestingly, set-words don't affect the evaluation. So x: 3 - 4 is -1, and positive? x: 3 - 4 is an error.
Basically SET-WORD!s are ghosts; probing the evaluation state wherever they are.
But this is really just the old quirk in a mirror.
>> 10 = 5 + 5
 
; Brought to you by: try.rebol.nl
; rebol.com/r3/docs/errors/script-expect-val.html
    *** ERROR
** Script error: expected logic! not integer!
** Where: +
** Near: + 5
 
>> 10 = probe 5 + 5
 
; Brought to you by: try.rebol.nl
10
== true
 
Now we get it on the left instead of the right.
 
 
5 hours later…
11:29 AM
@HostileFork round 3.0 / 2 failing seems just as bad, to me anyway.
But as I said before, if you want length foo > 10 to work, then round x / y will fail, and vice versa.
Really sad there appears to be no happy medium on this one.
 
11:49 AM
0
Q: Module can't export existing name

giuliolunatiI wish to redefine print in a module and to export it --- just noticed I can't: only non-existing names can be exported. Any workaround?

@ckolderup @tapoueh funny, indeed. Thanks for sharing. Now I go back to #rebol programming. And trying Red from time to time. Reliable.
 
 
2 hours later…
2:15 PM
0
A: Module can't export existing name

MarkISee http://www.rebol.com/r3/docs/concepts/modules-loading.html under the heading: Explicit references into modules. Loading a module will currently never redefine a word in the user context. I can't tell if this is a design decision or because modules are not fully baked yet. Fortunately, there...

 
 
1 hour later…
3:18 PM
>> print "int ********* ptr :-) "
 
; Brought to you by: try.rebol.nl
int ********* ptr :-)
 
Amanuel wonders if you guys have a Red bot
 
red> print 'Yep
 
; Brought to you by: try.rebol.nl
Yep
 
:)
 
3:22 PM
:) I'm learning red
Cause I like the color red lol 😁
red> function (int a, int b) { return a+b}
 
@Dsafds Can you elaborate on that?
 
That’s not Red :)
 
Yep was just testing lol
 
red> function [a [integer!] b [integer!]] [a + b]
 
; Brought to you by: try.rebol.nl
== func [a [integer!] b [integer!]][a + b]
 
3:25 PM
Testing the compiler lol
 
 
3 hours later…
6:17 PM
About my trouble doing HTTPS on my raspberrypi.
I guess that boot/boot-code.r is generated. It contains a function 'prf, which comes from mezz/prot-tls.r.
One of the first lines in this function is
Mid: (.5 * ( ...
In the code in boot-code, the .5 has turned into -N.aN9988
I don't understand how this can happen.
Maybe I should try another t3-make ...
@HostileFork ^ any ideas?
 
6:43 PM
@ingo Hmmm. That's no good. Is that R3-make consistently doing that (loading .5 and molding it out badly?)
It's very possible that those arm builds, which were made a while ago, suffer some of the same problems as the inscription build, because of the #pragma pack(4) that was putting double precision floating points on 32 bit alignments sometimes.
Emscripten sigh, I need to find the "don't auto correct me, ever" toggle on this phone.
 
7:12 PM
@HostileFork Hey Hostile! Have you seen my red skills?
 
7:29 PM
@giuliolunati @HostileFork Tinkered a little with the Emscripten wrapper. Includes console history (copied from my Try Topaz wrapper) and persistent file storage (only under the %/reb/ directory).
3
File sync can be a little slow and occurs after every statement. Just adds a little to the proof of concept.
 
@rgchris Great! I am going to set aside some time to sync up Rebmu (and the examples) and a "Try Rebmu" would be neat.
@Dsafds I saw a lack of them. :). If you want to try expressions the site that powers the bots is try.rebol.nl
 
@HostileFork hmm
your bots should have been able to do that.. Just have Three " to start and end
so like
>>red """

function whatever blahblhablha
blabhkabla
"""
 
@RebolBot do/red

foo: function [x][join "Foo: " x]
foo "Bar"
 
; Brought to you by: try.rebol.nl
== "Foo: Bar"
 
@Dsafds if you @ them and do shift-enter it works.
 
7:43 PM
Oh sorry didnt know :(
 
Don't know how to shift enter in the mobile chat.
 
@redbot

parse "Foo" [
"F"
"o"
"o"
]
 
; Brought to you by: try.rebol.nl
== true
 
@redbot

parse "Foo" [
"F"
"o"
"o"
"t"
"b"
"a"
"l"
"l"
]
 
; Brought to you by: try.rebol.nl
== false
 
8:05 PM
@giuliolunati Could you get @rgchris a recent emscripten release build to put on reb4.me/tt/rc ?
We do need to do something about thinning up the distribution for emscripten. If you just want the evaluator, it is actually still going to be fairly light for what it does.
 
8:23 PM
@RebolBot
 
Part of the motivation for the file i/o was to open the possibility of a client-side bot.
Leave it open in a tab somewhere answering requests inline.
 
Just having an online evaluator for people to try recent builds is a step up. Wish earl had stuck around to do the Ren-C build farm. :-( It's too bad he had all that infrastructure for rebolsource.net building each PR from master, all set up on a master that never changed.
 
Interestingly 'earl' is near permanently logged into #rebol on IRC.
(I don't check it often, but is always there when I look)
 
It may be worth it to bug him at some point, and point out the various progresses. He showed up all excited about the variadics, then left before I made them. But we have that, TCC integration, other good new things.
Right now I'm happy with functions and the evaluator. I think this new rule for enfix that it consumes the largest complete expression on the left and consumes full expressions on the right is a good rule. It keeps the "left to right" math operator gloss for those who care about that, it gives a real/useful postfix, it gives the uniform calling convention, it means we can write the variadic things like 1 + 2 <| print "evaluates to 3" print "no matter how many expressions on the right..."
If people could write up things they feel they know about modules, object methods, binding... that would be helpful. I've mentioned the historical dodginess of how free the code feels it can have write-access to bindings in blocks you give it.
 
8:47 PM
Wrt. Emscripten—would be interested to know if there'd be a way to build a port to invoke JS from within Rebol as it seems Rebol currently has no way to interact with the host environment.
 
9:05 PM
@rgchris Returning control to JavaScript currently means ending the running Rebol code. @giuliolunati looked at it. I should too.
There was some sort of work on a thread simulation in emscripten, don't know the status.
 
9:18 PM
I guess any bot would be written in JavaScript merely querying the Rebol object.
 
@rgchris Well we want PRINT to work. Some solution is needed.
 
9:47 PM
@HostileFork it seems to be the only case, bit I can do a grep tomorrow.
 
10:13 PM
@ingo So it doesn't do it just if you say mold 0.5 in r3-make?
 
10:24 PM
@HostileFork @rgchris From here pick files r3.html, r3.html.mem, r3.js
 
11:17 PM
@giuliolunati Thanks!
@ShixinZeng Do you have an opinion about the RL_API making that table of functions vs linking normally? Is there a benefit, or just jumping through hoops for no reason?
 
@HostileFork You're welcome.
@HostileFork trouble using return in adapt prelude:
print: adapt :print [
return void
]
print 1
** Script error: RETURN called with no generator providing it in use ** Where: return print do either either either --anonymous-- ** Near: ... return void ??
 

« first day (2187 days earlier)      last day (1593 days later) »