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

World: r4wp

[#Red] Red language group

Kaj
7-Oct-2012
[2596]
And hello.reds, but not hello.red
DocKimbel
7-Oct-2012
[2597]
I'll look into that as soon as my RPi is set up properly.
Kaj
9-Oct-2012
[2598]
Got Mandelbrot to work
Arnold
9-Oct-2012
[2599x3]
Good work.
I see update of docs typo in red-system-specs.txt saw in this file 
that mat operators including % are supported yet in BNF on line 1076 
it is not mentioned.
Also saw a typo, I read the document further tomorrow and note all 
typos I see.
DocKimbel
9-Oct-2012
[2602]
Maths op missing in BNF rules: good catch. You can add them and submit 
a pull request on the master branch.
Arnold
9-Oct-2012
[2603]
I will try that, I once did a pull request but it pulling doesn't 
make sense in my mind. I think it means the Github must be pulling. 
I will try again (with possible other improvements. If I am not succesful, 
I will put a file with my improvements up somewhere. Now to work 
(my job waits)
Arnold
10-Oct-2012
[2604x2]
Well I changed some text in this file, I changed it online in a black 
background box where I could not see my cursor nor the arrow pointer, 
so it sucked :( 

I thought it would be possible to edit the file offline but that 
is something to find out how to do next time ;)

Now I added a comment and it says I want to commit 182 changes into 
the master branch, which is not what I want, but Github says I want 
that. Including my comments it could be I typed in total 182 characters 
including the ones I deleted (?) but the 182 are the commits from 
the 0.3.0 branche I think. 

Me and my friend Github >:|
Going to need to shorten that phrase cause I will need it often: 
mamfg!
DocKimbel
10-Oct-2012
[2606]
:-) They are plenty of git / github tutorials online, you might want 
to go through one of them. Having basic git understanding is required 
if you want to contribute code to Red, otherwise, it would take us 
much more time to review and accept it. Anyway, I agree that git 
is unnecessarily complicated, even Linus says it's not for everyone. 
We'll see how Red can solve that once it is mature enough.
Arnold
10-Oct-2012
[2607]
Agreed did one today but it was for git not for github. As github 
doesn't support OSX10.5 with her github for mac program I am temp 
stuck. maybe a REBOL script can take over the git commandlines for 
me. I go and try that to take me over the githurdle.
DocKimbel
10-Oct-2012
[2608x2]
I can't accept your pull request, it's a complete merge of different 
branches (you're probably mixed up several branches, or you haven't 
rebase before submitting the pull request). You need to submit only 
the changes you did. For that, you need to have a clean codebase 
and up-to-date wrt the branch you're modifying.
Looking at the 182 commits you've submitted, it seems, you haven't 
checkout'd to master branch before making the change, so you are 
submitting the whole v0.3.0 branch to merge with master. You need 
to check carefully on which branch you are before doing any change.
Arnold
10-Oct-2012
[2610]
I managed to get it via the terminal but only the master not the 
0.3.0 

I want the 0.3.0 version of this file for that one contains the corrected 
typo you fixed, no need to manually correct then. 
And I want to give it then back to the 0.3.0 branche but no way. 
I'll mail my file to the mailinglist :(  github g=sh ;)
Kaj
10-Oct-2012
[2611x2]
You probably need to check out master, then cherry-pick the BNF file 
from v0.3.0, then make your change, then do the pull request for 
master
Alternatively, you'd stay in v0.3.0, but then you also have to make 
the pull request for v0.3.0
PeterWood
10-Oct-2012
[2613x2]
The way to switch git branches at the terminal is:

git checkout <branchname>

e.g 
	git checkout master

	git checkout v0.3.0
You can always check which branch you are working on with:

git status
Andreas
10-Oct-2012
[2615x2]
Arnold, no worries. I properly applied your patch against the v0.3.0 
branch.
Your patch was basically fine, what went wrong is that you submitted 
the pull request against the wrong branch. You changed something 
starting from v0.3.0, but your pull request was submitted against 
master, not v0.3.0.
DocKimbel
10-Oct-2012
[2617x2]
Arnold: the changes you did that were accepted have been pushed to 
master branch too and are now published on red-lang.org. For documentation 
changes, the master branch version is the one that gets published 
on the web site.
FYI: I got my RPi video problem fixed, still no network, but I will 
go buy a  long network cable tomorrow, so I should finally be able 
to look into the issues Kaj submitted. I would like to fix the main 
ones before releasing v0.3.0.
Kaj
10-Oct-2012
[2619]
I would like that very much, too
Arnold
11-Oct-2012
[2620]
thnx for applying the fix & support. One day I will be able to github 
on my own ;)
Pekr
11-Oct-2012
[2621x3]
Doc - web seems to stopped displaying twitter news messages?
I noticed, you tweeted, that 0.3.0 is close?
btw - once 0.3.0 is out, what about a blog post, summing what is 
already available? Maybe a short script? btw - do we have conditions/branching 
and loops yet?
DocKimbel
11-Oct-2012
[2624x2]
Twitter message on web site: that's blogger's widget for Twitter's 
feeds...can't do much about it.
Yes, v0.3.0 is close. Of course, I will write a blog post for that 
release, it's a major one. Condition/branching/loops: that's what's 
implied (among other things) by being "Turing-complete". Also, a 
quick look at last 10 days of commit in v0.3.0 branch should answer 
your question too. ;-)
Pekr
11-Oct-2012
[2626]
I can't decode anything from inspecting the sources yet. I can look 
into natives, there are some forall-loop etc functions whose purpose 
I don't understand. Then I can see datatypes, but where should I 
look for the definition of 'if, 'either, 'until, 'forall, 'while, 
etc.? :-)
Kaj
11-Oct-2012
[2627]
Click on the commit messages where they were implemented
DocKimbel
11-Oct-2012
[2628]
Pekr: look into the commits list, not in the source code.
Nicolas
11-Oct-2012
[2629]
Does the modulus operator work on floats at the moment?
DocKimbel
11-Oct-2012
[2630]
Yes (both modulus and remainder operators). Of course, this is for 
Red/System, Red doesn't have yet floats support.
Nicolas
11-Oct-2012
[2631x3]
*** Compilation Error: argument type mismatch on calling: //
*** expected: [number!], found: [float!]
print [4.0 // 2.0]
I've been looking at the compiler source for about an hour
Pekr
11-Oct-2012
[2634x2]
by commit list, do you mean eg. https://github.com/dockimbel/Red/commits/v0.3.0
?
DocKimbel
11-Oct-2012
[2636]
Pekr: yes
Kaj
11-Oct-2012
[2637]
Yes
Nicolas
11-Oct-2012
[2638x2]
I tried changing the modulus types to any-number! -- runtime error
but I don't know what I'm doing
DocKimbel
11-Oct-2012
[2640x3]
Nicolas: it is very possible that we have forgot to add unit tests 
for that feature. Obsviously, it's a bug, so please report it to 
github tracker so we can fix it asap.
number! is a virtual type used only internally by Red/System compiler.
It looks like a minor type checking bug, so it should be quickly 
fixed.
Nicolas
11-Oct-2012
[2643]
cool. I'll do that now
PeterWood
11-Oct-2012
[2644x2]
We don't have any tests for // for float. I'll look into it.
Red [] 4.0 // 2.0  compiles and runs.