World: r3wp
[!REBOL3]
older newer | first last |
Cyphre 3-Feb-2011 [7414x2] | To clarify the SSL stuff: Since the SSL is a layer on top of TCP the idea was that R3 will have all the neccesary encryption algorithms (RSA,DH, DSA, RC4, SH256 etc.) probably in form of embedded extension as part of the host-kit. These algorithms needs to be fast so they will be in C (probably ported from the R2 codebase if possible). Then the SSL/TLS protocol itself won't be written in C as it was in R2 but just done in R3 script. This way the protocol code will be: -smaller in size than the C version -easier to maintain because it is Rebol language, for example we can add 'server mode', certificate validation (simmilar to web browsers) etc. -crossplatform as much as Rebol script can be So far I did simple TLS implementation in R2 to prove that concept. The prototype is ~20KB of rebol script and uses only the build in encryption ports in R2. It covers most of the TLS functionality that is written natively in in form of 'tls scheme. So the next step is to get the encryption math to R3 (which can be useful not only for SSL so it is definitely worth doing that) and then try how the prototype will behave. |
Also, to bring some positive news...one note from Carl: "So, just an FYI, R3 is running on ARM now." I thought most of people here wanted to hear such thing :) | |
Pekr 3-Feb-2011 [7416x3] | Cyphre - very good work, and good aproach too imo ... |
WTF with ARM? Unbelievable :-) | |
Almost missed that note :-) | |
AdrianS 3-Feb-2011 [7419] | great to hear about ARM support - do you have any idea if this is just core or inc. graphics? |
Robert 3-Feb-2011 [7420] | Just core. |
Cyphre 3-Feb-2011 [7421] | I bet it is just core because so far there is noone who would like to port graphics to Linux. What would you Linux guys do without Wine? :-) |
Pekr 3-Feb-2011 [7422x3] | :-) Without Wine? Just whine :-) |
But as for "just core" argument - does it mean including the host kit part? I mean - did Carl manage just to compile Core under ARM, or is it runnable R3 without graphics? | |
Well, maybe "R3 is running on ARM" speaks for itself, that's really nice if at least Core works ... | |
TomBon 3-Feb-2011 [7425] | hopefully then 'BEIN' will follow soon... |
Andreas 3-Feb-2011 [7426] | > What would you Linux guys do without Wine? :-) Live happily ever after? :) |
Kaj 3-Feb-2011 [7427x2] | I live happily without it on my own Linux distro. Prevents a lot of frustration to be able to say to people that you can't run Windows software :-) |
For the record, I do want to port R3 graphics to Linux, but that doesn't mean that it's possible or wise. It's not possible due to fulltime work on other R3 stuff, and it's not wise because the Amiga patches haven't been integrated yet, so the host kit is still very Windows oriented while more work has already been done | |
Andreas 3-Feb-2011 [7429x3] | May sound stupid, but I agree :) |
Looking into porting R3 graphics to Linux has been on my "if you ever come across a free week" list for a while. | |
I've also asked Steven Solie in public and in private to put up his Amiga patches somewhere, as this will definitely help everyone interested in doing the same for Linux. | |
Kaj 3-Feb-2011 [7432] | Yeah, and you'd be spending that week redoing Steven's work in the current situation |
Andreas 3-Feb-2011 [7433] | Precisely. |
Kaj 3-Feb-2011 [7434] | Including porting his patces from A109 to A110 |
Andreas 3-Feb-2011 [7435x2] | Which seems unwise to me as well. |
(Redoing Steven's work, that is.) | |
Kaj 3-Feb-2011 [7437] | I thought the old Amiga hands here would be delighted that all ports are waiting for the Amiga ;-) |
Cyphre 3-Feb-2011 [7438x2] | I only tried to poke about the Linux port state. It's good to know there are at least two peopel who are willing to work on it. The Amiga port could behelpful but I still think you would need to write the majority of os specific stuff like, window + event handling, networking etc. from scratch. |
scratch the 'networking' part...this is already in the Core :) | |
Kaj 3-Feb-2011 [7440x2] | What we want mostly are the FreeType patches, because that's pretty much what everyone except Windows and Mac uses |
I also think that the Amiga code would be a better example for a port than the Windows code, which tends to be awkward | |
Andreas 3-Feb-2011 [7442x2] | And I think the hard part about the window/event handling stuff is isolating the parts of the hostkit code this affects. |
The Amiga patches would be handy for that too. | |
Kaj 3-Feb-2011 [7444] | Yes |
GrahamC 3-Feb-2011 [7445] | And S Solie isn't putting up his patches?? |
Kaj 3-Feb-2011 [7446] | He's also waiting for a new host kit with more patches integrated |
Pekr 4-Feb-2011 [7447] | So why are not Steven's changes included in the source-base? |
Cyphre 4-Feb-2011 [7448] | ...hard part about the window/event handling stuff is isolating the parts of the hostkit code this affects.... This is easy already...you have to create equivalents of the files in src\os\win32...the rest is non-OS specific code. |
Pekr 4-Feb-2011 [7449] | Cyphre - would it be able to fix receiving of resizing events, during the window border is dragged? That is kind of unpleasant effect it causes for the rebol apps. Next low level thing which would be nice is ctrl+tab for system compatible tab switching ... |
Cyphre 4-Feb-2011 [7450x4] | ...we want mostly are the FreeType patches - I have published the Freetype support changes in the RMA version of the hostkit so you should be able to just use simple define switch to use freetype in the Linux(or any other OS that have FT2 lib avilable) |
Pekr, ofcourse, all this can be improved but currently I have other things on my hi-priority list... | |
Amiga code would be a better example for a port than the Windows code, which tends to be awkward - I don't think so...there is minimum of 'windows' related code...in fact just couple of basic Win32 api function calls, the rest of the code logic will be very simmilar if not the same. | |
So...if you go thru the 5 files in src\os\win32 dir and make equivalents for Linux you are mostly done. | |
Henrik 4-Feb-2011 [7454x2] | I'm playing around with a dumb idea: find/instance [a b d a c] 'a 2 == [a c] ; find only the second instance of a value |
ok, you can do it with PARSE, but it requires an extra word | |
BrianH 4-Feb-2011 [7456] | Or with chained finds. |
Kaj 4-Feb-2011 [7457] | Cyphre, thanks for the FreeType code. It's a while ago that I looked at the src/os/ files, but they seemed fairly large and complicated. I won't have time to start that project until at least after ReBorCon |
Henrik 5-Feb-2011 [7458] | BrianH: Find the 10th item would mean chaining 10 FINDs. |
Gabriele 5-Feb-2011 [7459] | find-nth: func [series value n] [ loop n [unless series: find series value [return none]] series ] |
BrianH 5-Feb-2011 [7460] | I like Gabriele's solution, especially with FIND being an action. |
Henrik 5-Feb-2011 [7461] | that's ok |
Robert 5-Feb-2011 [7462] | Isn't this inconsistent? >> to-word "d" == d >> to-word #"d" ** Script error: expected word! not char! ** Where: to to-word ** Near: to word! :value |
BrianH 5-Feb-2011 [7463] | Yup. TO doesn't support all conversions, but from chars makes sense to support. |
older newer | first last |